Malicious Hugging Face models use broken pickle files to avoid scanner

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.

20 January 2025HappenedBreaches and supply chain
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
Supply chainWorked around a safeguard
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

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.

All 177 incidents →The Future Skills Lab