YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
MFV PoC: ExecuTorch .pt2 Scanner Bypass
This repository contains an authorized security research proof-of-concept.
Submitted as part of the huntr.com Model File Vulnerability (MFV) bug bounty program.
Vulnerability Summary
torch.export.save() produces .pt2 files that bypass both picklescan and modelscan security scanners. Both tools report "No issues found" for malicious .pt2 files, while torch.export.load() executes embedded pickle payloads.
- Scanner gap:
.pt2is absent from picklescan 1.0.4 and modelscan 0.8.8 extension lists - RCE path:
torch/export/pt2_archive/_package.py_load_state_dict()callstorch.load(weights_only=False) - Tested on: torch 2.12.1 (latest)
Files
malicious_model.pt2β malicious ExecuTorch model file (executesecho MFV_RCE_CONFIRMED... && idon load)poc-pt2.pyβ script to reproduce the finding
Reproduction
pip install torch picklescan modelscan
python3 poc-pt2.py
Authorization
This PoC was created for authorized security disclosure under the huntr.com / Protect AI MFV program. The malicious file runs a harmless echo command for demonstration only. Do not use in any unauthorized context.
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support