docs(vxpu): document trust boundaries and pickle security notes #169
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
justinsb
codebot-robot
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
.pt2zip archives containdata/sample_inputs/model.pt, which is atorch.savearchive 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 deserializesdata/sample_inputs/model.pt:- Found that
torch.export.loadutilizesunpackage_pt2internally, which eagerly unzips and deserializes the entire archive (including theexample_inputspickle) upon loading.- Identified that because unpickling happens eagerly during the load phase, arbitrary code execution can happen immediately when loading untrusted
.pt2files.- Provided hardening options for the future (such as setting
exported_program.example_inputs = Nonebefore callingtorch.export.saveto drop the pickle and make the.pt2artifact strictly declarative at serving time).Fixes #167