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

Inspect INC-OBS-013 in Interactive Incidents & Cases Hub

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

Mapped defensive controls

Source citation records