Around 100 models with code-execution payloads found on Hugging Face
Loading a model file, which users commonly treat as data, executed code that connected the user's machine to an outside server.
- What happened
- JFrog's security research team built a scanning environment that examined new models uploaded to Hugging Face several times a day. It identified about 100 models containing real, harmful payloads. One PyTorch model uploaded by the account 'baller423' opened a reverse shell to the IP address 210.117.212.93 when loaded, giving remote command execution on the victim's machine. The payloads abused Python pickle deserialization, which runs code when a model file is loaded. Hugging Face flagged some such files as 'unsafe' but still allowed downloads.
- Response
- The baller423 repository and other flagged models were removed after reports. Hugging Face continued to rely on pickle and malware scanning that marks, rather than blocks, unsafe files.
- Discovered by
- JFrog security researchers through continuous automated scanning of new Hub uploads.
- Who was affected
- Users downloading and loading models from the Hub; about 100 malicious model instances identified
- Patterns
- Sources
- Data Scientists Targeted by Malicious Hugging Face ML Models with Silent BackdoorJFrog, 27 Feb 2024
- Over 100 Malicious AI/ML Models Found on Hugging Face PlatformThe Hacker News, 4 Mar 2024
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.