Documented Exercise · OBS.EX0132
Large-Scale Exploit Instrumentation of Unsafe Pickle Serialization on Hugging Face
Casey, Santos, and Mirakhorli (2024) conducted a large-scale empirical study of unsafe Python serialization formats across the Hugging Face Model Hub, evaluating both real exploitability via object injection and the coverage limits of platform-side security flagging. Their instrumentation revealed widespread reliance on unsafe serialization formats across public model repositories alongside gaps where maliciously structured artifacts could evade naive detection and execute code upon loading. Importing untrusted model checkpoints directly into developer or training hosts exposes entire environments to remote code execution. ML pipelines should mandate SafeTensors format, sandbox untrusted model loads, and maintain an AI Bill of Materials.
Exercise dossier metadata
- Case ID
OBS.EX0132- Classification
- Exercise
- Date
- Evaluation scope
- Hugging Face Model Hub · Ecosystem-Scale Serialization & Scanner Audit
- Reference URI
https://arxiv.org/abs/2410.04490
Mapped AI security techniques
- Supply Chain Compromise: Model Repository AML.T0010.003
- User Execution: Unsafe AI Artifacts AML.T0011.000
- Machine Compromise: AI Artifacts AML.T0112.001
- AI Artifact Repository AML.T0120
Mapped defensive controls
- Restrict Library Loading AML.M0011
- Verify AI Artifacts AML.M0014
- Vulnerability Scanning AML.M0016
- Maintain an AI Bill of Materials AML.M0023
Source citation records
- A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Models · arXiv (author preprint; peer-review status not inferred) ·