Documented Incident · INC-OBS-014 · High severity
JFrog Discovery of Over 100 Malicious Pickle Models Hosted on Public Model Hub
On February 27, 2024, JFrog Security Research published an investigation identifying roughly 100 malicious machine learning models hosted publicly on the Hugging Face Hub, including checkpoints engineered to open interactive reverse shells to attacker infrastructure when loaded. Every confirmed payload abused Python's unsafe `pickle` serialization format inside `.pt` and `.bin` model weights, executing arbitrary system commands during standard `torch.load()` calls. Later in 2024, Protect AI expanded scanning across the hub and identified additional suspicious model artifacts. The disclosures accelerated industry adoption of Hugging Face's integrated security scanner badges and widespread migration toward non-executable `safetensors` weights.
Incident dossier metadata
- Case ID
INC-OBS-014- Classification
- Incident
- Date
- Severity
- High
- Sector
- Cloud & AI Infrastructure
- Attack vector
- Supply Chain
- System type
- Public ML Model Repositories & PyTorch Checkpoints
- Reference URI
https://jfrog.com/blog/data-scientists-targeted-with-malicious-hugging-face-ml-models-over-100-models-found/
Defensive takeaway
Audit external model repositories against an internal vetted mirror, mandate safetensors exclusively, and block raw pickle deserialization in ML runtimes.
Mapped AI security techniques
- Supply Chain Compromise: Model Repository AML.T0010.003
- User Execution: Unsafe AI Artifacts AML.T0011.000
- Manipulate AI Model: Embed Malware AML.T0018.002
- Publish Poisoned AI Artifacts: Models AML.T0115.001
Mapped defensive controls
- Restrict Library Loading AML.M0011
- Verify AI Artifacts AML.M0014
- AI Model Distribution Methods AML.M0017
- Maintain an AI Bill of Materials AML.M0023
Source citation records
- Data Scientists Targeted with Malicious Hugging Face ML Models: Over 100 Models Found · JFrog Security Research ·