Radar· local AI & agent security
securitymodels high confidence

Five 'uncensored' GGUF models on Hugging Face hid Windows malware; 2,428 downloads

Nov 27, 2026 · gguf, hugging-face, malware, chat-template, llama-cpp, ollama, supply-chain

TL;DR A scan of 3.27 million Hugging Face repositories found five GGUF models that hid a Windows trojan after the model weights or used a poisoned chat template to make the user, or an agent with a shell tool, run PowerShell. Loading the file alone runs nothing. An open-source scanner, gguf-radar, checks for both.

In plain words: GGUF is the file format most people use to run AI models on their own computer. A researcher found five model files on Hugging Face that looked normal but carried hidden malware. Just loading them does nothing; the danger is that the model is set up to talk you, or an AI agent you gave shell access, into running a command.

What happened

A researcher scanned 3,273,389 public Hugging Face model repositories and on November 27 reported five malicious GGUF models with 2,428 downloads in total. They are Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF, Mir2k/Inkling-2-Mini-Uncensored-GGUF, timdedid/qwen3.8-cyber-uncensored, timdedid/qwen3-cyber-UNCENSORED-2 and timdedid/qwen3-cyber-UNCENSORED. An Ollama mirror of one timdedid model was also mentioned. According to the report, there were two campaigns:

  • Mir2k: a Windows program was appended after the last tensor, where model loaders never read. On November 26 the chat template was changed so the model prints a PowerShell line and asks the user to run it; that line finds the largest .gguf in the user’s folder, extracts the hidden bytes and starts them. The payload is a remote-access trojan with a cryptocurrency miner.
  • timdedid: the chat template inserts a fake “system directive” when a message contains a trigger phrase. It tells an agent that has a PowerShell tool to download a script and run it hidden.

The report says loading the file in llama.cpp or Ollama does not run anything by itself, and that antivirus tools and simple checks of the file’s end missed these payloads.

Update, November 28-29: Hugging Face has disabled all five repositories, according to several reports. On November 28 the Ollama copy of one timdedid model was reported to be still online, so check Ollama pulls as well.

Who is affected

Anyone who downloaded one of the five models, especially on Windows. The second campaign targets people who connect a local model to a coding agent or any harness with shell access.

Why it matters

A model file is usually treated as data, but its embedded chat template is instructions. When an agent can run commands, a poisoned template becomes a way to run code on your machine without any software vulnerability. “Uncensored” and “cyber” models from unknown uploaders are the bait.

What to do

  1. If you have any of the five repositories, delete them. If you ran a command the model suggested, treat the machine as compromised.
  2. Download models only from authors you trust, and compare the file’s SHA-256 hash with the one published in the official repository.
  3. Scan GGUF files with gguf-radar, which reads the template without running it and flags bytes after the end of the tensor data. It can also rebuild a clean file with the same weights.
  4. Replace the embedded template with one you have checked (--chat-template-file in llama.cpp, TEMPLATE in an Ollama Modelfile).
  5. Give agents shell access only when needed, and keep command approval on.

Sources

← back