← Back to Pull requests

docs(vxpu): document trust boundaries and pickle security notes #169

Merged
codebot-robot merged 1 files (25 lines) on Sep 04, 2026 11:54 UTC
View on GitHub
codebot-robot codebot-robot commented on Sep 03, 2026 22:01 UTC
Author

This PR addresses Issue #167 by adding explicit documentation regarding the trust assumption of the vXPU executor and detailing the security/arbitrary code execution risks associated with the pickled sample inputs.

Key Changes


1. Documented Trust Boundary: Added a clear note explaining that the executor executes the artifact it is given, thus requiring that users only run trusted/locally-produced artifacts.
2. Called Out the Pickle Risk: Documented how .pt2 zip archives contain data/sample_inputs/model.pt, which is a torch.save archive wrapping a Python pickle (archive/data.pkl). Highlighted that unpickling runs the Python __reduce__ method, which is an arbitrary code execution vector.
3. Investigation & Findings: Investigated whether torch.export.load() lazily or eagerly deserializes data/sample_inputs/model.pt:
- Found that torch.export.load utilizes unpackage_pt2 internally, which eagerly unzips and deserializes the entire archive (including the example_inputs pickle) upon loading.
- Identified that because unpickling happens eagerly during the load phase, arbitrary code execution can happen immediately when loading untrusted .pt2 files.
- Provided hardening options for the future (such as setting exported_program.example_inputs = None before calling torch.export.save to drop the pickle and make the .pt2 artifact strictly declarative at serving time).

Fixes #167

Diff: 25 lines (+25 / -0) across 1 files Reviewer: justinsb Review duration: 833m
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.46) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 25 lines diff across 1 files
0.46
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.195
Sensitive Paths sensitive_paths
0.046
Real PR Conversation Timeline
1 item
"Review active on #169"
general weight: 0.35
Reviewers
Assignees
codebot-robot codebot-robot
Labels
risk: low confidence: 46.7% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 45.7% (MEDIUM) · Higher = larger blast radius
45.7%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 24.3% · Safe to merge
24.3%