You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

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: .pt2 is absent from picklescan 1.0.4 and modelscan 0.8.8 extension lists
  • RCE path: torch/export/pt2_archive/_package.py _load_state_dict() calls torch.load(weights_only=False)
  • Tested on: torch 2.12.1 (latest)

Files

  • malicious_model.pt2 β€” malicious ExecuTorch model file (executes echo MFV_RCE_CONFIRMED... && id on 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.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support