News · AI Reliability & Operations · Models, Tooling & Developer Practice
Five Hugging Face GGUF repos hid malware and poisoned chat templates
A static scan of 3,273,389 public model repos found two campaigns abusing trailing file bytes and chat templates, and the researcher released an open-source scanner.
A Malspark write-up dated 27 November 2026 reports that five public GGUF model repositories on Hugging Face carried either a hidden Windows payload or a chat template rigged to make the model print shell commands. The researcher, who publishes as Root0ne, found them in a static scan of more than three million model repos and released an open-source scanner, gguf-radar, that checks files before they are loaded. Malspark counts 2,428 download events across the five. That is a count of downloads, not infections. Both techniques only work if a person, or an agent with shell access, runs the command the model outputs.
What happened
According to Malspark, a static scan run on 26 November covered 3,273,389 public Hugging Face model repos. After manual review, five malicious GGUF repos remained, and all five were still online as of 27 November. The write-up is credited to the handle Root0ne. The Malspark byline also carries a surname next to that handle, while other coverage uses only the handle.
The five repos sit under two accounts, which Malspark lists by name. The Mir2k account holds Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF and Mir2k/Inkling-2-Mini-Uncensored-GGUF. The timdedid account holds qwen3.8-cyber-uncensored, qwen3-cyber-UNCENSORED-2 and qwen3-cyber-UNCENSORED. The Transition2 desk gives these names as plain text so readers can check their own model caches without being pointed at the files.
Malspark counts 2,428 cumulative download events across the five repos and notes that Hugging Face counts downloads, not unique users. The figure does not show how many machines ran a payload.
The two accounts use different methods. In the Mir2k repos, Malspark reports that a Windows executable is appended after the last tensor in the GGUF file. In one repo it is stored plainly with padding, and in the other it is Deflate-compressed. The chat template is altered so the model's replies begin with a PowerShell line that unpacks that appended file. Malspark describes the payload as a Windows x64 remote access tool of roughly 11.47 megabytes, called "ollie", that bundles Tor and a Monero miner and targets credentials and crypto wallets.
The placement matters because, as the write-up explains, model loaders do not read bytes that sit after the last tensor. The weights load and the model behaves normally, while the extra data sits on disk unnoticed.
The timdedid repos take a different route. Per Malspark, a trigger phrase in the conversation causes the chat template to insert a hidden directive telling an agent with shell access to download and run a remote script. This method targets agents rather than people reading replies.
Malspark also describes three further hiding methods as lab-only and not seen in the wild: data placed in alignment padding, files that are valid as both GGUF and ZIP, and data stored in zero-scale Q8_0 blocks.
Alongside the findings, Root0ne published gguf-radar, a static scanner that never runs the model or its template. The README says it checks trailing bytes and chat templates, applies YARA rules, and returns one of four verdicts: CLEAN, SUSPICIOUS, MALICIOUS or ERROR. It uses exit codes 0, 2 and 1, and it can rebuild a sanitized GGUF that keeps the same weights. The project's packaging file lists version 0.1.0, Python 3.10 or later, and runtime dependencies of numpy 1.24 or later and jinja2 3.1 or later. Per the README, the code is under the MIT license, and the logo, docs and YARA rules are under CC BY 4.0.
Why it matters
Many teams treat a GGUF file as inert data: weights plus some metadata. The Malspark findings show two places where that assumption fails. Loaders ignore the region after the tensor data, so it can carry arbitrary bytes without affecting how the model runs. The tokenizer.chat_template field shapes every reply, so changing it changes what the model says without touching the weights. Neither technique, as Malspark describes them, depends on a flaw in the loader. Each one depends on the model's output being acted on.
That raises the stakes for agent setups. A person reading a chat reply has a chance to pause at an unexpected PowerShell line. An agent with shell access that treats model output as instructions may not pause. The timdedid template was written for exactly that case, per Malspark.
It also matters that the five repos were found by an outside scan of public repos, and that they remained online as of 27 November according to the write-up. A file being hosted on a popular hub does not mean it has been screened. That is a supply chain question for anyone running local models, and it belongs alongside the other controls covered in AI Reliability & Operations.
The Transition2 desk did not run an experiment for this story. A test of gguf-radar against synthetic files was scoped but not run for this edition, so no results are recorded here.
What it means for businesses
Any organisation that lets staff or systems pull community model files now has a concrete example of what can travel inside them. A practical first step is an inventory: which machines hold GGUF files, where they came from, and whether any match the five repo names above. Because the 2,428 figure counts downloads, not installs, the useful check is on local machines rather than an estimate from the hub.
Policy can then catch up. Model files from unvetted accounts can be treated like any other untrusted download, scanned before they reach a workstation, and kept away from environments where an agent holds shell access. For teams that want to adopt gguf-radar in internal tooling, the README spells out the split licensing: MIT for code, CC BY 4.0 for the YARA rules and docs. The packaging file marks it as version 0.1.0, which is an early release.
What it means for AI users
People running local models should treat any command a model prints as a suggestion, not an instruction. Both campaigns in the Malspark report depend on the user or an agent running a command the model produced, including a PowerShell line in the Mir2k case. If a model's reply opens with a shell command nobody asked for, that is a reason to stop and inspect the file, not to paste the line into a terminal.
The five repos carried labels such as "uncensored" and "abliterated". That does not make every model with those labels malicious, but it is worth knowing which names were involved when choosing a download. Checking a file with a static scanner before first load is a small step, and gguf-radar is built so that it never runs the model or its template.
What it means for developers
Two parts of a GGUF file deserve the same handling as any other untrusted input: the tokenizer.chat_template string and any bytes after the tensor data. Malspark's findings show both can be used, and its lab-only notes on padding, polyglot files and zero-scale Q8_0 blocks suggest scanners need to look beyond the obvious trailing region.
The gguf-radar README describes distinct exit codes for its verdicts, which makes it straightforward to run as a gate in a model intake step and fail on anything other than a clean result. Its sanitize option rebuilds a GGUF with the same weights, which can help when a team needs a specific model but not whatever came with it.
For agent builders, the timdedid technique is the more pointed lesson. A chat template can add text to a conversation that the user never sees. Agents that execute shell commands based on model output need an approval step, an allowlist, or both, and templates from unknown sources should not be trusted to be neutral formatting.
Copyright Eric MacDougall.
Sources
- Malicious GGUF models on Hugging Face (accessed 2026-11-28)
- Root0ne/gguf-radar (README) (accessed 2026-11-28)
- gguf-radar pyproject.toml (accessed 2026-11-28)