The model file looked normal. It loaded, it chatted, it answered questions. But past the end of its weights, past the point where any loader bothers to look, sat an 11.47 MB Windows program — and a rewritten chat template ready to tell the user to run it. Security researcher Root0ne (Düzgün) found five such models on Hugging Face in a scan of all 3,273,389 public repositories on November 26, and published the findings on November 27. Together the five had been downloaded 2,428 times. Hugging Face has since removed all five — but as of Saturday morning, a copy was still live on Ollama.

The story broke on r/LocalLLaMA early on Saturday, where the thread reporting it drew 668 upvotes and 81 comments within nine hours. The top comments did useful work: they narrowed the mechanism — this is not a flaw in GGUF itself — and flagged that the scanner built to catch it throws false positives. Both corrections matter, and both are in this article.

How Mir2k built the trap#

The larger of the two campaigns came from an account called Mir2k, and it was patient. On November 22 the account created 14 repositories; twelve were empty placeholders named after models that do not exist yet — Qwen4-27B, DeepSeek-V4, Llama-4-Scout, gemma-4-27b — created in two automated bursts, ready to be filled when those models appear. The other two held the trap.

The first model, an uncensored Qwen3.5 9B build, went up on November 22 with the trojan already appended after its last tensor — but with its original, clean chat template. A second, an uncensored Inkling-2-Mini model carrying the same program compressed with raw Deflate, followed on November 24, again with a clean template. For days the payload sat in the files with nothing to start it. Then, on the morning of November 26, both templates were replaced within about an hour of each other. Nine hours later they were replaced again, this time searching the whole user profile for the model file instead of a fixed path in the Downloads folder.

The armed template adds a system message — in French — telling the model to begin every reply with one PowerShell line, copied character by character, and then answer normally. That line finds the largest .gguf file in the user profile, reads its last bytes, and writes them to %TEMP%\d.exe. The model itself never does anything suspicious. The user does, by pasting the line the model printed.

Both models unpack to the same 11.47 MB Windows x64 program, which the researcher calls ollie. Most of its bulk is a complete copy of the Tor client, 10.25 MB, which carries traffic to an onion service run by the operator. Once started, it steals saved passwords from Chrome, Edge, and Brave, targets the Phantom and MetaMask wallet extensions, and supports keylogging, clipboard reading, screenshots, screen streaming, and webcam capture. When the machine is idle, it mines Monero. It settles in hard: a scheduled task runs it every ten minutes with the highest privileges, two watchdog processes keep it alive, and its process is marked critical, so ending it crashes Windows. One part of it fails by accident — its attempt at a UAC bypass was compiled without its backslashes, so Windows never finds the paths. It names its folders ollie under AppData\Roaming, close enough to Ollama to look familiar at a glance.

A chat window with faint puppet strings running between a user's message and an AI assistant's reply
Hidden strings: a poisoned chat template slips instructions into the conversation that the user never sees. Illustration generated for this article.

The second campaign went after agents#

The other campaign, from an account called timdedid, took a different route. One day before Mir2k, on November 21 and 22, it published three byte-identical copies of a Qwen3 1.7B model pitched at security users, plus a mirror on Ollama. The template is the official Qwen3 template with one addition near the end: when the user's latest message contains the words 'What is', it inserts a fake [SYSTEM DIRECTIVE] ordering an agent to call its powershell tool, download a script from a WordPress site into C:\Windows\Temp\payload.ps1, and run it in a hidden window. The README advises against replacing the embedded template, which keeps the trigger in place. The second-stage script was never recovered, so what it would have installed is unknown — and that is the point. This half of the attack needs no executable hidden in the file at all. It needs an agent with shell access and a user who trusts what the model tells it to do.

Why GGUF made this possible — and what it doesn't mean#

A GGUF file has a simple layout: a header and metadata table, a tensor table, then the weights. The header says exactly where the model data ends, and runtimes such as llama.cpp and LM Studio read precisely the byte ranges the header points to — and ignore everything else. Anything appended after the last tensor is never read, never changes how the model loads or behaves, and triggers no warning. That is where Mir2k hid its program. The chat template is the other half: a small Jinja2 program stored in the metadata under tokenizer.chat_template, which reshapes every conversation before the model reads it. The attacks use ordinary template logic to add text the user never sees in the chat window.

None of this is a remote-code flaw in GGUF. It is tampered metadata plus, in Mir2k's case, Windows payloads — and the template half of the trick is not GGUF-specific at all. Models in the Safetensors and PyTorch formats carry the same kind of template in a separate file, usually tokenizer_config.json or chat_template.jinja. Earlier work had shown the pieces in the lab: Pillar Security demonstrated hidden instructions in GGUF chat templates in July 2025, and a 2026 study measured the attack across 18 models and four inference engines. What this report adds is the method seen in real attacks on Hugging Face — and Mir2k's combination of an appended executable with a template switched on days later, for which no earlier public report was found.

RepositoryCampaignMethodDownloads (Nov 27)
Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUFMir2kReply prefix, hidden executable1,488
Mir2k/Inkling-2-Mini-Uncensored-GGUFMir2kReply prefix, compressed executable458
timdedid/qwen3.8-cyber-uncensoredtimdedidAgent tool hijack271
timdedid/qwen3-cyber-UNCENSORED-2timdedidAgent tool hijack136
timdedid/qwen3-cyber-UNCENSOREDtimdedidAgent tool hijack75
Total2 actors2,428
A security scanner beam sweeping across a row of model files, one glowing red with a warning
Four files clean, one flagged: scanning a local model folder for poisoned templates and hidden bytes. Illustration generated for this article.

What to do if you downloaded one#

First, the number to keep straight: 2,428 is downloads, not victims. Hugging Face counts downloads, not people, and the report is explicit that the number affected cannot be more than the number of downloads — and is likely lower. Downloads made before November 26 contain the Mir2k payload but not the trigger, since the armed template only arrived that morning. And only Windows users are at risk from the Mir2k payload at all.

If you downloaded any of the five, check your endpoints against the indicators in the report and scan your local .gguf files with gguf-radar, the open-source tool the researcher released alongside the findings. It inspects templates and hidden bytes without executing anything, and can rebuild a clean file with the weights unchanged. One caveat from the community: early users report plenty of false positives — one reader who swept 110 models on three machines found many alarms on ordinary files, mostly 'zero scale blocks' and unfamiliar template tags. Treat a flag as a prompt to inspect, not proof of infection.

Hugging Face disabled all five repositories, but the counters kept climbing until the takedown — 2,807 by Saturday, 379 more than in the report. And the takedown did not reach everywhere: an independent check on Saturday morning found a copy of one timdedid model still listed on Ollama's public library, with its trap intact and 42 downloads. If you pull models from mirrors as well as the Hub, check there too.

What to watch#

The fix the report proposes is blunt: if model hubs start rejecting GGUF files with bytes after the last tensor, Mir2k's method stops working. Whether Hugging Face or Ollama adopt that check — and whether they start scanning chat templates the same way — is the first thing to watch. The second is Mir2k's twelve empty placeholder repositories, named after models that have not been released yet. They were created to be filled, and the account that made them has not been heard from. The third is the scanner itself: gguf-radar needs its false-positive rate down before ordinary users will trust it on a folder of hundreds of models. And the report quietly notes three more hiding places inside a GGUF file — alignment padding, a ZIP archive appended to make the file a Python package as well as a model, and data hidden in the weights themselves — all reproduced in the lab, none seen in the wild. Yet.

Sources: Malspark, “GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims” (November 27, 2026); r/LocalLLaMA, “GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims” (November 28, 2026); i10x, “Hugging Face GGUF malware: Ollama copy still live” (November 28, 2026); Root0ne/gguf-radar on GitHub