pytorch
Pass
Audited by Gen Agent Trust Hub on Nov 13, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill facilitates the processing of model artifacts like
.ptand.pthfiles, which could potentially contain malicious content if sourced from untrusted environments. - Ingestion Points: The skill instructs the agent to load files using
torch.load("model.pt", ...)andtorch.load("weights.pth", ...). - Boundary Markers: The instructions explicitly warn to use
weights_only=Trueto mitigate risks associated with untrusted artifacts. - Capability Inventory: The skill involves reading files and materializing tensors in memory.
- Sanitization: The skill advocates for specific sanitization techniques including
safe_globalsand restricted unpickling to prevent arbitrary code execution during the loading process. - [DYNAMIC_EXECUTION]: The skill documents the use of
torch.load, which utilizes thepickleserialization format. - Evidence: The skill notes that
torch.loadcan allow arbitrary code execution if not configured correctly (usingweights_only=False). - Mitigation: The skill provides extensive documentation and code examples on how to use
weights_only=Trueandadd_safe_globalsto avoid the dangers of dynamic code execution when deserializing model data.
Audit Metadata