GGUF malware on Hugging Face: how to check your models
2026-11-28 · 4 min read
Five GGUF model repos on Hugging Face were carrying malware. Some hid a Windows trojan after the model weights, and others had a chat template that tells the model, or an agent running it, to execute a PowerShell command. To check your own files, install the free gguf-radar scanner, run gguf-radar scan on every .gguf you've downloaded, and delete anything from the Mir2k or timdedid accounts.
The posts on X
The finding comes from security researcher Düzgün, who posts as @Root0ne. On Friday he announced his write-up, "GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims," and released the scanner he built alongside it.
By that evening it was making the rounds among people who run local models. @loktar00 worded it carefully, saying the researcher "claims 5 GGUF models on Hugging Face were hiding malware." @ItsmeAjayKV quoted that post and pointed at the size of the scan: 3,273,389 public model repos, and five came back dirty.
How the trick works
The Malspark write-up describes a different method for each account.
Mir2k: a payload after the last tensor
A GGUF file's header tells the loader where the weights are. llama.cpp and LM Studio read only those byte ranges, so anything stuck on the end gets ignored and the model works normally. Mir2k put a whole Windows program in that space. On November 26 the chat template was changed to add a French system message: start every reply with one PowerShell line, copied exactly, for the user to paste into a terminal. That line pulls the end of the model file out, saves it as %TEMP%\d.exe, and runs it. An early version looked for the model in a fixed Downloads path, and about nine hours later it was changed to search the whole user profile for the largest .gguf.
The write-up calls the payload "ollie." It's a remote access trojan that goes after saved passwords in Chrome, Edge and Brave and the Phantom and MetaMask wallet extensions. It can also log keystrokes, read the clipboard, take screenshots and use the webcam. It mines Monero too, and keeps itself alive with a scheduled task that runs every 10 minutes.
timdedid: a poisoned template
These repos use the official Qwen3 chat template plus one addition. When the user's latest message contains "What is," the template inserts a fake system directive. It tells any agent with a PowerShell tool to download a script from a WordPress site and run it in a hidden window. The researcher couldn't recover that second script.
Which models were flagged
| Repo | Downloads (as of Nov 27) |
|---|---|
| Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF | 1,488 |
| Mir2k/Inkling-2-Mini-Uncensored-GGUF | 458 |
| timdedid/qwen3.8-cyber-uncensored | 271 |
| timdedid/qwen3-cyber-UNCENSORED-2 | 136 |
| timdedid/qwen3-cyber-UNCENSORED | 75 |
A download count isn't a head count, so fewer people may be affected. All five repos were still up when the write-up was published. The Inkling file is a third-party "uncensored" repack. It is not the Thinking Machines release we covered in our Inkling 2 Mini post.
How to check your files
gguf-radar is MIT licensed and needs Python 3.10 or newer. It inspects a model file without running it. These commands come from its README.
- Install it:
pip install git+https://github.com/Root0ne/gguf-radar - Scan a file you already have:
gguf-radar scan ./model.gguf - Scan a Hugging Face repo before you download it, for example
gguf-radar scan Qwen/Qwen2.5-0.5B-Instruct-GGUF. It pulls only the small pieces it needs. - Read the verdict: CLEAN, SUSPICIOUS, MALICIOUS or ERROR.
- To rebuild a file with the same weights and the trailing bytes and padding removed, run
gguf-radar sanitize suspicious.gguf -o clean.gguf. I wouldn't bother cleaning anything from these two accounts. Just delete it.
The write-up also recommends pinning a chat template you've read yourself, with --chat-template-file in llama.cpp or the TEMPLATE line in an Ollama Modelfile, so the model's bundled template can't slip in instructions. If anyone on your team ran one of these models on Windows and pasted in a command it suggested, assume that PC is compromised. Take it off the network, look in Task Scheduler for tasks you don't recognize, and check the write-up's indicator list. Change its saved browser passwords from another machine, and treat any Phantom or MetaMask wallet on it as exposed.
My read
A chat template is code, and it ships inside a file most people treat as data. Give an agent a shell tool and whatever the model prints can become a command. It's the same weakness as the AGENTS.md Downloads attack, where the agent followed text a stranger wrote. And like the LiteLLM 1.107.0 compromise, the attacker went after something developers download and trust without reading.
If your business runs local models to keep client data private, most of the defense is habit. Get models from the official org account, stay away from "uncensored" repacks by accounts you can't identify, scan files before they land on a work machine, and have one person keep a list of which model files sit on which computers. If you'd like a hand with that, New Face Design's free process audit is a good place to start.