# GGUF malware on Hugging Face: 5 models to check for

> Malspark found 5 malicious GGUF models on Hugging Face (2,428 downloads, reported 2026-11-27). Two hide a Windows trojan; three hijack agents with shell access.

- Published: 2026-11-28
- Publisher: Rig Labs (https://riglabs.ai/)
- Canonical: https://riglabs.ai/blog/gguf-malware-hugging-face/
- Answers: GGUF malware Hugging Face
- Agent file (a short card for your agent): https://riglabs.ai/blog/gguf-malware-hugging-face/AGENT.md

---

GGUF malware on Hugging Face: on November 27, 2026, the security researcher Düzgün of Malspark reported 5 malicious GGUF models (the file format Ollama, LM Studio and llama.cpp load), downloaded 2,428 times. Two hide a Windows trojan inside the model file, and three tell an agent with shell access to download and run a script.

What you can do today: if you run "uncensored" community models on your own computer, check whether one of the 5 is on your disk, and stop letting the chat template inside a downloaded model file, a small program that turns your conversation into the text the model reads, decide what text your agent sees.

## Which GGUF models on Hugging Face are malicious?

The 5 malicious GGUF models come from two Hugging Face accounts, Mir2k and timdedid, per [Malspark's report](https://malspark.com/blog/malicious-gguf-models-hugging-face/). All five were still online on November 27.

| Repository | What it does | Downloads |
|---|---|---|
| Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF | Hidden Windows program; the model opens every reply with a PowerShell line that starts the program if you run it | 1,488 |
| Mir2k/Inkling-2-Mini-Uncensored-GGUF | Hidden compressed Windows program; the model opens every reply with a PowerShell line that starts the program if you run it | 458 |
| timdedid/qwen3.8-cyber-uncensored | Hijacks an agent's PowerShell tool | 271 |
| timdedid/qwen3-cyber-UNCENSORED-2 | Hijacks an agent's PowerShell tool | 136 |
| timdedid/qwen3-cyber-UNCENSORED | Hijacks an agent's PowerShell tool | 75 |

Malspark notes that Hugging Face counts downloads, not people, so fewer than 2,428 people are affected. timdedid also published an Ollama mirror named timdedid/qwen3-1.7b-cyber.

## How does the GGUF chat template attack work?

A GGUF chat template is a small program inside every GGUF file that turns your conversation into the text the model reads. Malspark found two ways the attackers used it:

- **Mir2k.** A Windows remote access trojan (a program that gives the attacker control of the computer), named "ollie", sits after the last block of model weights, where loaders never read. On November 26 the attacker changed the templates so the model opens every reply with one PowerShell line. If you copy and run that line, it pulls the program out of the model file and starts it. Malspark says it steals saved passwords from Chrome, Edge and Brave, targets the Phantom and MetaMask wallet extensions, logs keystrokes and mines Monero when the computer is idle.
- **timdedid.** When your message contains "What is", the template inserts a hidden "[SYSTEM DIRECTIVE]" that tells an agent with a PowerShell tool to download a script and run it in a hidden window. You never see that text in the chat window.

Copies of Mir2k's models downloaded before November 26 carry the hidden program but not the line that starts it, per the report. Antivirus and checks that read only the end of a file did not flag them.

## Is a model in Safetensors format safe from this attack?

Safetensors files cannot carry a program hidden after the weights, because the loader refuses a file whose weights do not fill it exactly, per Malspark. The template half of the attack still applies: Safetensors and PyTorch models carry the same kind of template in `tokenizer_config.json` or `chat_template.jinja`.

## How do you check a GGUF model for poisoned templates?

Malspark published gguf-radar, an open-source tool under the MIT licence, at [github.com/Root0ne/gguf-radar](https://github.com/Root0ne/gguf-radar). It reads the template without running it, reports bytes hidden after the weights, and can rebuild a clean file with the weights unchanged. It can also check a Hugging Face link by reading only the start and end of each file, with no API key for public models. The report's commands are `gguf-radar scan ./model.gguf` and `gguf-radar sanitize suspicious.gguf -o clean.gguf`.

Malspark's advice for people who run models locally: treat any command a model suggests as untrusted. When a model can use tools, pass a reviewed template with `--chat-template-file` in llama.cpp, or set `TEMPLATE` in an Ollama Modelfile, so the template inside the downloaded file is never used.

## What to do today

Search your model folders for the two account names. On a Mac or Linux machine, with Ollama's and LM Studio's default folders:

```bash
find ~/.ollama/models/manifests ~/.lmstudio/models \( -ipath '*mir2k*' -o -ipath '*timdedid*' \) -print 2>/dev/null
```

On Windows, in PowerShell:

```powershell
Get-ChildItem "$env:USERPROFILE\.ollama\models\manifests","$env:USERPROFILE\.lmstudio\models" -Recurse -ErrorAction SilentlyContinue | Where-Object { $_.FullName -match 'mir2k|timdedid' } | Select-Object FullName
```

On either system, no output means no match in those folders. If you find one, delete the model and check the computer against the indicators in section 7.2 of Malspark's report.

Last checked 2026-11-28.

Sources:
- [Malspark: GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims, 2026-11-27](https://malspark.com/blog/malicious-gguf-models-hugging-face/)
- [GitHub: Root0ne/gguf-radar](https://github.com/Root0ne/gguf-radar)
