A sweep of every public model repository on Hugging Face has uncovered five malicious GGUF files that were downloaded 2,428 times before being caught. The research, published by Malspark on 27 November 2026, looked at all 3,273,389 public repositories and found that the main campaign, tracked as Mir2k, hides a Windows remote access trojan called ollie inside the model file itself.
The trick does not need a bug in llama.cpp or LM Studio. The payload sits after the last tensor, in bytes the loader never reads, and the chat template is then rewritten to push users toward running the command that unpacks it. Because Hugging Face counts downloads rather than people, the true number of affected users is lower than or equal to 2,428, but the exposure is concrete for anyone running local models.
How malicious GGUF models hide their malware
A GGUF file is a simple container. A header and metadata table come first, then the tensor table, padding to an alignment boundary and finally the model weights. Runtimes read exactly the byte ranges the header points to and ignore everything else, so anything appended after the last tensor changes neither loading nor behaviour, and no runtime warns about it. Safetensors files do not allow this: their loader refuses a file whose declared tensors do not fill it exactly.
Mir2k used two shapes. The first model carries a plain Windows program followed by roughly half a megabyte of filler, so scanners that only read the last few kilobytes see nothing. The second carries the same program compressed. The chat template, a small Jinja2 program stored under tokenizer.chat_template, then does the social engineering: it adds a hidden system message telling the model to open every answer with one PowerShell line a user may copy and run.
- Five malicious GGUF models found across 3,273,389 public repositories.
- 2,428 total downloads as of 27 November 2026.
- Mir2k hid a Windows RAT named ollie after the last tensor in two uncensored GGUF models.
- The chat template was later armed to make the model print the command that unpacks the payload.


