Documented Incident · INC-OBS-013 · Critical severity
nullifAI Broken Pickle + 7z Archive Evasion Bypassing Public Model Registry Scanners
On February 6, 2025, ReversingLabs disclosed nullifAI, a novel ML malware evasion technique discovered in live malicious PyTorch models uploaded to the Hugging Face Hub. Threat actors compressed PyTorch model files using 7z archives rather than standard ZIP containers and intentionally corrupted the trailing pickle stream so that automated security scanners like Picklescan threw parse errors and failed to flag the files. Crucially, the attacker placed a reverse-shell payload at the very start of the pickle stream so that calling `torch.load()` executed the malware before encountering the trailing corruption error. Hugging Face removed the flagged repositories within 24 hours and updated scanning pipelines, proving that scanner failures must fail-closed rather than pass silently.
Incident dossier metadata
- Case ID
INC-OBS-013- Classification
- Incident
- Date
- Severity
- Critical
- Sector
- Cloud & AI Infrastructure
- Attack vector
- Supply Chain
- System type
- Public ML Model Repositories & Deserialization Scanners
- Reference URI
https://www.reversinglabs.com/blog/reversinglabs-identifies-novel-ml-malware-hosted-on-leading-hugging-face-ai-model-platform
Defensive takeaway
Configure model-artifact scanners to fail closed on any unparseable archive or pickle error, and ban non-safetensors model formats from enterprise ingestion.
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
- Exploitation for Defense Evasion AML.T0107
- Publish Poisoned AI Artifacts: Models AML.T0115.001
- Obfuscated Files or Information AML.T0123
Mapped defensive controls
- Restrict Library Loading AML.M0011
- Verify AI Artifacts AML.M0014
- Vulnerability Scanning AML.M0016
- AI Model Distribution Methods AML.M0017