Researchers find malware hidden in GGUF models on Hugging Face
Malspark, a security research group, reports that it scanned all 3,273,389 public Hugging Face model repositories on November 26 and found five malicious GGUF models with 2,428 downloads as of November 27. Hugging Face counts downloads, not people, so the number of affected users may be lower. The repositories were still online on November 27, according to the post.
Malspark describes two campaigns by two accounts:
- Mir2k: two uncensored models (a Qwen3.5 9B derivative and an "Inkling 2 Mini" one) carry a Windows remote access trojan, which the researchers call "ollie", appended after the last tensor where loaders never read. On November 26 the account rewrote both chat templates so the model starts every reply with a PowerShell line that extracts and runs the hidden program. The researchers say the program steals browser passwords and crypto-wallet data and mines Monero.
- timdedid: three Qwen3 models whose chat template, on a trigger phrase, inserts a hidden instruction telling an agent with shell access to download and run a script. The researchers did not recover that second stage.
Malspark also released gguf-radar, an MIT-licensed tool that scans GGUF files and chat templates without running them and rebuilds a clean file with the weights unchanged. Its advice: treat any command a model suggests as untrusted, and use a reviewed chat template when the model has tool access. The post had 305 points and 93 comments on Hacker News by November 29.
Sources
- GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400 VictimsHacker News · 48 comments
Get news like this as a push.
AI Tracker alerts you when something changes for the tools you use.