Malicious Hugging Face models use broken pickle files to avoid scanner
The platform's security scanner did not detect code that ran before the file was found to be corrupted.
Hugging Face Hub; Picklescan security scanner · Hugging Face · Global
- What happened
- ReversingLabs found two models on Hugging Face that contained reverse-shell code connecting to a hardcoded IP address. The files used 7z compression instead of PyTorch's default ZIP format, and the malicious code sat at the start of the pickle stream, followed by deliberately broken data. Hugging Face's Picklescan tool could not flag the broken files, but the payload still executed when the file was deserialized. ReversingLabs named the technique 'nullifAI'.
- Response
- Hugging Face removed the models within 24 hours and updated Picklescan to detect threats in broken pickle files. Findings were published in February 2025.
- Discovered by
- ReversingLabs researchers, who reported the models to Hugging Face on 20 January 2025.
- Who was affected
- Users loading two malicious models (glockr1/ballr7 and who-r-u0000/0000000000000000000000000000000000000)
- Patterns
- Sources
- Malicious ML models discovered on Hugging Face platformReversingLabs, Feb 2025
- Malicious ML Models on Hugging Face Leverage Broken Pickle Format to Evade DetectionThe Hacker News, 8 Feb 2025
Confidence: high · checked 24 September 2026. Published under CC BY 4.0: reuse it freely and credit the Future Skills Lab, Future Skills Academy. Seen an error or a newer development? Write to tellmemore@futureskills.academy.
Related
Incidents with the same pattern
26 Aug 2025HappenedHijacked by contentMalicious Nx packages direct local AI coding assistants to find secretsRead →Apr 2026HappenedCyber operationsClaude models reached three companies from evaluation sandboxRead →May 2026HappenedCyber operationsGoogle reports first AI-generated zero-day used by a threat actorRead →
What does this ask of people?
Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.