- Security researchers at Malspark scanned 3.27 million public Hugging Face model repositories on November 26, 2026, and found five malicious GGUF models with 2,428 downloads as of November 27.
- The largest campaign, tracked as “Mir2k,” hid a Windows remote access trojan named “ollie” appended after the last tensor in two uncensored GGUF models, a region loaders never read.
- On November 26, the attacker rewrote both chat templates so the model itself asks the user to run the command that unpacks the hidden payload.
- The open-source scanner gguf-radar detects poisoned templates and hidden bytes without executing the file and can rebuild a clean GGUF with the original weights intact.
What Happened
Malspark published a scan showing that chat-template poisoning has reached real victims on Hugging Face. GGUF files carry a small template that runtimes like llama.cpp and LM Studio apply to every prompt; attackers abuse it to make the model append hidden instructions to its own replies without the template engine ever touching the operating system directly.
Why It Matters
Local model files have generally been treated as safer than cloud APIs because users run the weights themselves. MegaOne AI’s own coverage of locally-run formats, including uncensored GGUF releases and tools like LM Studio, reflects how much local-LLM traffic now flows through exactly this file format.
Technical Details
The scan covered all 3.27 million public repositories and found five malicious models tied to two distinct actors. The chat template lives under the metadata key tokenizer.chat_template and runs in a restricted engine with no Python behind it, but attackers don’t need to escape that engine — ordinary template logic is enough to insert text the user never sees into the model’s output.
Who’s Affected
Hugging Face counts downloads rather than unique people, so Malspark’s 2,428 figure is an upper bound on affected users, concentrated among developers running local LLMs through llama.cpp-based runtimes. Standard antivirus engines that only inspect the final kilobytes of a file miss the hidden, compressed payload entirely.
What’s Next
Malspark’s post includes indicators of compromise, YARA rules, and a MITRE mapping for defenders. Anyone who downloaded a GGUF model from an unverified publisher can check it against gguf-radar, which rebuilds a clean file without altering the underlying model weights.