Documented Incident · AML.CS0031 · High severity
Malicious Models on Hugging Face
Documented in MITRE ATLAS (2025) following large-scale registry scans that uncovered malicious ML models hosted on Hugging Face, attackers uploaded corrupted PyTorch and pickle checkpoints containing embedded reverse shells and C2 loaders. Although Hugging Face's scanners flagged many standard payloads, threat actors experimented with broken-zip and non-standard pickle packing to evade static scanners and execute arbitrary code upon model deserialization.
Incident dossier metadata
- Case ID
AML.CS0031- Classification
- Incident
- Date
- Severity
- High
- Sector
- Open-Source Model Supply Chain
- Attack vector
- Embedded Malware in Serialized Model Checkpoints
- System type
- Public ML checkpoints hosted on Hugging Face
- CVE / reference
AML.CS0031- Reference URI
https://raw.githubusercontent.com/mitre-atlas/atlas-data/f56c1468731d6428e5bf875263b4643b46d67437/dist/v6/ATLAS-2026.10.yaml#:~:text=AML.CS0031%3A
Defensive takeaway
Prohibit pickle and untrusted torch.load deserialization in production pipelines, mandate SafeTensors format verification, and run deep artifact scanners (ModelScan/Fickling) inside isolated CI runners.
Mapped AI security techniques
- Supply Chain Compromise AML.T0010
- User Execution: Unsafe AI Artifacts AML.T0011.000
- Manipulate AI Model: Embed Malware AML.T0018.002
- Cyber Communication Channel AML.T0072
- Corrupt AI Model AML.T0076
- Publish Poisoned AI Artifacts: Models AML.T0115.001
Source citation records
- MITRE ATLAS: Malicious Models on Hugging Face · MITRE ·
- Malicious ML models discovered on Hugging Face platform · Cited by MITRE ATLAS; publisher not independently verified