Malicious GGUF Models on Hugging Face: How to Check Yours
A scan of 3.27M Hugging Face repos found 5 GGUF models hiding malware or agent-hijacking templates. Which ones, what they do, and how to check your files.

A scan of 3.27M Hugging Face repos found 5 GGUF models hiding malware or agent-hijacking templates. Which ones, what they do, and how to check your files.

If you run local models, check what you downloaded last week. A security researcher found five GGUF model repositories on Hugging Face that carried hidden malware or hidden instructions for AI agents.
The report comes from Düzgün of Malspark ↗ (on X as @Root0ne ↗), published November 27, 2026. On November 26 the researcher scanned all 3,273,389 public model repositories on Hugging Face, including 226,310 GGUF repos, and parsed 572,184 chat templates without running them. Five repositories from two accounts were flagged. Together they had 2,428 downloads as of November 27, up from 1,502 the day before.
Hugging Face has since pulled them. When we queried its public API on November 28, the repos we checked came back marked "disabled": true. i10x ↗ reports the takedown happened at 14:22 CET that day (18:22 in Pakistan). One copy is still up elsewhere: the Ollama mirror timdedid/qwen3-1.7b-cyber was still listed on ollama.com ↗ when we checked.
The image above is an original illustration by aitoolranked.
| Repository | Campaign | What the template does | Downloads (Nov 27) |
|---|---|---|---|
| Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF | Mir2k | Starts every reply with a PowerShell line that unpacks a hidden program | 1,488 |
| Mir2k/Inkling-2-Mini-Uncensored-GGUF | Mir2k | Same, with the program compressed | 458 |
| timdedid/qwen3.8-cyber-uncensored | timdedid | Tells coding agents to download and run a script | 271 |
| timdedid/qwen3-cyber-UNCENSORED-2 | timdedid | Same | 136 |
| timdedid/qwen3-cyber-UNCENSORED | timdedid | Same | 75 |
Hugging Face counts downloads, not people, so the number of victims is lower. The second Mir2k model posed as an "uncensored" version of Thinking Machines' Inkling 2 Mini, the open model released on November 20. Malspark also says Mir2k created 12 empty placeholder repos named after expected releases such as Qwen4-27B and DeepSeek-V4.
Every GGUF file carries a chat template, a small program that formats your conversation before the model reads it. Malspark found two tricks:
Hidden bytes after the weights. Runtimes such as llama.cpp and LM Studio only read the parts of a GGUF file that the header points to. Mir2k added a Windows program after the last tensor. The model still loads and answers normally.
A poisoned template. Mir2k uploaded the models with clean templates on November 22 and 24. On November 26 it swapped in a template that tells the model to begin every reply with one PowerShell line. If you copy and run that line, it reads the hidden bytes from the model file and starts them. The timdedid models work differently: when your message contains "What is", the template inserts a fake system directive telling an agent with shell access to download and run a script.
According to Malspark's analysis, the hidden program is an 11.47 MB Windows remote access trojan called "ollie". It steals saved passwords from Chrome, Edge and Brave, targets the Phantom and MetaMask wallet extensions, logs keystrokes, takes screenshots and webcam captures, and mines Monero when the PC is idle. The report says antivirus and pickle-file scanners did not flag the Mir2k files. Files downloaded before November 26 contain the program but not the template that triggers it.
Loktar (@loktar00 ↗), whose summary drew over 2,000 likes, put it simply: "The model loads normally and answers normally. The payload rides along inside the file."
On Hacker News ↗, where the report reached 118 points, stephantul ↗ noted that a Hugging Face download "means a model invocation/load, not a literal download."
wronglebowski ↗ called five out of 3.27 million "an incredibly low number."
1broseidon ↗ warned: "These were no-name models but soon it will be name-brand models."
mrob ↗ argued that "any system that was exploited by this was already insecure", since nothing escaped the inference engine.
Reactions are from X and Hacker News; Reddit blocked our requests. Apart from the primary report, coverage so far is from smaller outlets.
Search your disk for the five repo names above, and for any "uncensored" or "abliterated" GGUF from an uploader you don't know.
Never run a command a model tells you to run, especially a PowerShell line at the top of a reply.
Scan files with gguf-radar ↗. It's Malspark's open-source tool (MIT licence). It checks templates and hidden bytes without running anything, can rebuild a clean file with the same weights, and can check Hugging Face links without downloading full models.
Use your own template. In llama.cpp, pass a reviewed template with --chat-template-file. In Ollama, set TEMPLATE in your Modelfile. That keeps an embedded template out of the loop.
If you ran one of these on Windows, check against the indicators in section 7 of the report ↗, and change passwords saved in your browser from a clean device.
Who should care: anyone who grabs community GGUF quants for llama.cpp, LM Studio or Ollama. Be extra careful if you give local models shell access through an agent.
The scale is small, but the method matters. A model file used to feel like data. This report shows it can carry a program plus the instructions to start it, and that a template can change days after upload. Stick to official releases or well-known quantizers, check uploader history, and treat new "uncensored" reuploads of popular models as suspect. Safetensors files can't hide bytes after the weights the same way, but their templates can still be poisoned.
For choosing a format and a runtime, see our GGUF vs GGML guide, our local LLM comparison and our best open-source LLMs of 2026.
Malspark (Düzgün): GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims ↗ (November 27, 2026)
Root0ne/gguf-radar ↗ on GitHub
Hugging Face public model API, checked by aitoolranked on November 28, 2026