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

Inspect AML.CS0031 in Interactive Incidents & Cases Hub

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

Source citation records