Hugging Face Disabled Five GGUF Models That Malspark Says Were Booby-Trapped. Their Counters Read 2,807 Downloads, and an Ollama Copy of One Is Still Live.
On Thursday, November 26, a security team called Malspark scanned every public model repository on Hugging Face: 3,273,389 of them. It parsed 572,184 chat templates across 226,310 GGUF repositories without running any of them. On Friday it published what it found: five GGUF models, from two accounts, that it says were built to compromise the machines that run them. Together they had 2,428 downloads.
By Saturday, Hugging Face had shut them off. When I queried its API on Saturday afternoon UTC, all five repositories returned disabled: true, and the model pages read “Access to this model has been disabled” with a pointer to its content policy. Neither account lists a public model anymore. I found no statement from Hugging Face about the takedown.
The download counters did not stop at 2,428, though. They read 2,807.
Plant First, Arm Later
GGUF is the file format most people use to run models locally in llama.cpp, Ollama and similar tools. Each file carries a chat template, a small Jinja program the runtime applies to every prompt. Malspark calls the abuse of that template “chat template poisoning.” The weights stay normal. The template is what lies.
The larger campaign came from an account called Mir2k. On Sunday, November 22, it created 14 repositories, 12 of them empty placeholders named after releases people are waiting for, such as Qwen4-27B and DeepSeek-V4. The same day it uploaded an “abliterated” Huihui Qwen3.5 9B model with a Windows program appended after the last tensor, where GGUF loaders never read. The template was clean.
On Tuesday, November 24, it added an uncensored version of Thinking Machines' Inkling 2 Mini, carrying the same program compressed with raw Deflate. The official Inkling-2-Mini repository had been created on Hugging Face only a week earlier, on November 17, which is exactly the kind of fresh release people go looking for quantized copies of. Again, the template was clean.
Then, on the morning of Thursday, November 26, both templates were replaced, and replaced again about nine hours later. Per Malspark, the armed version adds a French system message telling the model to begin every reply with one PowerShell line, copied character by character, then answer normally. That line finds the largest .gguf file in the user profile, pulls the hidden bytes off its end and starts them. Anyone who downloaded before November 26 has the payload but not the trigger.
The payload, which Malspark calls “ollie,” is an 11.47 MB Windows x64 program, 10.25 MB of it a bundled copy of Tor 0.4.9.16. Malspark's static analysis describes a remote access trojan that exits on virtual machines, runs from a scheduled task every 10 minutes, marks its process as critical so ending it crashes Windows, talks to its operator over an onion service, steals saved browser passwords, targets Phantom and MetaMask wallets, logs keys, captures the screen and webcam, and mines Monero when the machine is idle. Its UAC bypass fails because of a path error, Malspark says, and LavX News pins it on missing backslashes. Malspark also says antivirus engines and pickle scanners raised no alert on either file.
The Second Campaign Targets Agents
The other account, timdedid, published three byte-identical copies of a Qwen3 1.7B model pitched at security users on November 21 and 22, plus an Ollama mirror. Its template is the official Qwen3 template with one addition: when the user's latest message contains “What is”, it inserts a hidden directive telling an agent with shell access to download and run a script. Malspark could not recover that script, so what it does is unknown.
That mirror, timdedid/qwen3-1.7b-cyber, was still listed on Ollama when I checked Saturday, showing 45 downloads. Earlier the same day, i10x saw 42, and says the first 16 MB of the file contains the same hidden directive. It did not test whether a given Ollama version applies the embedded template.
The Counters Kept Climbing
Here is each repository at three points: Malspark's scan, its published table, and the Hugging Face API when I checked, after the repositories were disabled.
| Repository | Created (HF API) | Method | Nov 27 (Malspark) | Nov 28 (TensorFeed) |
|---|---|---|---|---|
| Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF | Nov 22 | Appended trojan, armed template | 1,488 | 1,711 |
| Mir2k/Inkling-2-Mini-Uncensored-GGUF | Nov 24 | Compressed trojan, armed template | 458 | 574 |
| timdedid/qwen3.8-cyber-uncensored | Nov 21 | Agent tool hijack | 271 | 288 |
| timdedid/qwen3-cyber-UNCENSORED-2 | Nov 22 | Agent tool hijack | 136 | 151 |
| timdedid/qwen3-cyber-UNCENSORED | Nov 21 | Agent tool hijack | 75 | 83 |
| Total | 2,428 | 2,807 |
At scan time on November 26 the five had 1,502 downloads, per Malspark. A day later they had 2,428. By Saturday the counters read 2,807, about 1.9 times the scan figure and 379 more than the published one. The two Mir2k models account for 2,285 of those, or 81 percent. They are also the two whose armed templates had been live only since Thursday.
Two cautions on those numbers. Hugging Face counts downloads, not people, as Malspark notes, so the number of affected machines is at most that and probably lower. And I cannot tell from the API when the counters stopped, so some of the 379 may be researchers pulling samples after Friday's report. The figures are also lifetime totals: the API reports the same value for 30-day and all-time downloads, which fits repositories that are at most eight days old.
This Attack Was Not a Surprise
Template poisoning is not new. Pillar Security described poisoned GGUF templates on July 9, 2025, and its release says it shared the findings with vendors including Hugging Face and LM Studio in June 2025. Pillar's post records the replies. On June 13, 2025, it says, Hugging Face “determined that this did not classify as a vulnerability, but rather how the UI displays chat templates,” and would make no immediate design changes. LM Studio, per Pillar, put the responsibility on users to review and download trusted models. Pillar and co-authors later tested the attack across 18 models and 4 inference engines. What Malspark says it had not seen publicly before is the combination: an executable hidden in the file, and a template that switches it on days after upload, once the downloads are already out there.
Malspark also published an MIT-licensed scanner, gguf-radar, that inspects templates without running them, flags trailing bytes and rebuilds a clean file with the weights unchanged. Its advice to users is blunt: treat any command a model suggests as untrusted, and supply your own reviewed template, with --chat-template-file in llama.cpp or TEMPLATE in an Ollama Modelfile. Its advice to hubs and runtimes is to reject GGUF files with trailing bytes or non-zero padding.
Caveats
The malware analysis is Malspark's, and I have not run or disassembled the payload. The outlets that covered it, i10x and LavX, work from the same report, though i10x ran its own counter and Ollama checks, as I did. I have no timestamp for the takedown: the Mir2k repositories show a last-modified time early Saturday UTC, which may or may not be the disable. Hugging Face has not said whether it found the models itself or acted on the report, nor whether it will scan for trailing bytes going forward. And downloads are not infections: the trojan only runs if someone or something executes the line the model prints.
Our Take
The clever part of Mir2k is the delay, and it exposes the weak spot in how the open-weights world checks files. Every scanner that looked at those models on upload day saw a clean template and a file that loaded fine. The attack arrived as a metadata edit four days later. A hub that scans once, at upload, is scanning the wrong moment. Hugging Face should rescan on every template change and refuse GGUF files with bytes past the last tensor. There is no legitimate reason to ship them.
The bait is the other lesson. Mir2k went after people who want uncensored copies of brand-new models, and squatted on names like DeepSeek-V4 before the real thing exists. Those users are, almost by definition, downloading from accounts with no history. The fix is cultural as much as technical: pull quantizations from the lab or from a quantizer you already trust, and pin the template yourself.
The timdedid campaign worries me more than its 522 downloads suggest. It needs no user to paste anything. It needs an agent with a shell and a question that starts with “What is.” As more people point coding agents at local models, the template becomes an instruction channel with shell access, and Pillar warned 16 months ago that templates could carry hidden instructions. Hugging Face's answer then, as Pillar tells it, was that this was not a vulnerability. Five disabled repositories later, I would like to hear that answer again. That the Ollama copy is still listed today says the ecosystem still has no shared way to pull a bad model everywhere at once.
Three signposts for the next 60 days. First, whether Ollama removes timdedid/qwen3-1.7b-cyber and says how it checks templates on its registry. Second, whether Hugging Face publishes a policy to reject trailing bytes or rescan on template edits, rather than disabling repositories one report at a time. Third, whether Mir2k's placeholder names, Qwen4 and DeepSeek-V4 among them, reappear under new accounts when those models actually ship.
Sources
Malspark: GGUF LLM Models with Hidden Malware on Hugging Face, i10x on the takedown and Ollama copy, LavX News, Hugging Face disabled repository page, Ollama listing, Pillar Security on poisoned templates, Pillar Security release, Pillar Security on 18 models and 4 engines. November 28 download counts, creation dates and disabled status are from TensorFeed's queries of the Hugging Face and Ollama sites; totals and ratios are TensorFeed's arithmetic.
