GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400 Victims
By hackernews · · Local LLMs
A scan of all 3273389 public Hugging Face model repositories found five malicious models downloaded 2428 times. The main campaign, Mir2k, hides a Windows remote access trojan at the end of GGUF files and later arms the chat template to make the model print the command that unpacks it.
Local LLMs are usually shared as GGUF files, and every GGUF file carries a chat template that the runtime applies to each prompt. Chat template poisoning abuses that template. The model answers normally, while the template quietly adds instructions the user never sees: make an agent run a PowerShell command, or open every reply with a command for the user to run. In its strongest form, the malicious program travels inside the model file itself, appended after the last tensor where loaders never read, and the template is switched on later.
A scan of all 3273389 public Hugging Face model repositories on 26 November 2026 found 5 malicious GGUF models with 2428 downloads as of 27 November. Hugging Face counts downloads, not people, so the number of affected users is lower or equal. The largest campaign, Mir2k, uploaded two uncensored GGUF models with a Windows remote access trojan named ollie hidden at the end of each file, and on 26 November rewrote both templates so the model asks the user to run the line that unpacks it.
The open-source tool gguf-radar detects these templates and hidden bytes without running anything, and rebuilds a clean GGUF file with the model weights unchanged. Indicators, YARA rules and a MITRE mapping close the post.
The key figures of the scan are summarized below; each one is explained in Section 3.
Check endpoints against the indicators in Section 7.2 and scan local.gguf files with gguf-radar. Antivirus engines and checks that only look at the last few kilobytes of a file do not see the compressed payload.
What Hacker News is saying
- “Downloading and executing gigabyte-sized blobs would’ve been unthinkable in the past.”
- “It is interesting. I am glad they are doing it, but it is interesting that after Dario officially declares war on open models, we immediately get a dose of news of why open models are bad and main heretic dev quits.”
- “Good reminder to all that a download on hf means a model invocation/load, not a literal download.”
- “Of course it's 5 random abliterated models.”
Read the full discussion on Hacker News →
Source: https://malspark.com/blog/malicious-gguf-models-hugging-face/