What Happened
- A scan of all 3,273,389 public Hugging Face model repositories on 26 November 2026 found five malicious files.
- These five malicious artificial intelligence models had a total of 2,428 downloads as of 27 November 2026.
- The largest campaign is named Mir2k and uploaded two uncensored models containing hidden malware.
How the Attack Works
- The main campaign hides a Windows remote access trojan named ollie at the end of GGUF files.
- The attack rewrites the chat template so the model asks the user to run a PowerShell command that unpacks the trojan.
- Chat templates are small Jinja2 programs stored under the metadata key tokenizer.chat_template that format conversations.
- The malware is hidden after the last tensor where loaders never read, so normal runtimes ignore it.
Timeline and Campaign Details
- The Mir2k account shows French traces throughout its model cards, system prompts, and commit messages.
- On 22 November 2026, the account created fourteen repositories, twelve of which are empty placeholders for future releases.
- The malicious payloads sat in the files for days before the templates were replaced on 26 November 2026 to start the malware.
Detection and Tools
- An open-source tool called gguf-radar can detect poisoned templates and hidden bytes without running the files.
- The tool rebuilds a clean GGUF file while leaving the model weights completely unchanged.
- Runtimes such as llama.cpp and LM Studio read only the header-defined tensor sections and ignore appended payloads.
Impact and Limitations
- Hugging Face counts total downloads rather than individual people, so the number of affected users is lower or equal.
- Downloads made before 26 November 2026 contain the files with clean templates that did not yet activate the malware.