A scan of every public model repository on Hugging Face on 26 November found five malicious GGUF files with 2,428 downloads between them. One of the two campaigns, Mir2k, had a Windows remote access trojan appended after the last tensor of an abliterated Qwen3.5-9B, with the chat template left clean for four days and then rewritten so the model would print the PowerShell line that unpacks it. The write-up is at malspark.com, and the numbers in it are the reason this thread exists.
If you run models locally, you are the person that attack was aimed at. The model file is the one download you never inspect, because it is 6 GB of numbers and there is nothing to read. That assumption is wrong in two places.
A GGUF is a container with two executable parts
The layout is a header, a metadata table, a tensor table, then the weights. Runtimes like llama.cpp read the byte ranges the header points at and ignore the rest, so bytes appended after the last tensor are never read and no loader warns about them. That is where Mir2k put its payload: a plain Windows executable in the first model, the same executable Deflate-compressed in the second, which removes every file signature a naive scanner would look for.
The second part is
None of this shows up in behaviour. The model answers normally, the template does its work outside the chat window, and the payload sits in bytes nobody reads.
What I actually ran
gguf-radar reads the header and the tail of a file over HTTP Range requests, so a scan of a 6 GB model costs a few megabytes, and it parses the chat template as an AST instead of executing it. I installed it in a throwaway virtualenv after reading the wheel, because a scanner that phones home is a worse problem than the one it solves: 11 Python files, 396 KB, network calls only to the Hugging Face API, no subprocess and no eval.
Two models already on this machine, both Ollama blobs:
A model from this week's trending list, without downloading it:
Five files, sixteen megabytes of transfer instead of twenty-three gigabytes of weights.
And the file from the report:
The repository is gated now, four days after the campaign went public. That is the part I cannot verify: the report says the payload was recovered and analysed, I could only confirm that the file is no longer publicly readable. If you downloaded either of those two models before 26 November, the executable was already inside, waiting for the template to be switched on.
What a CLEAN verdict does not mean
It means the scanner found nothing against its rules: appended bytes, known RAT signatures, template code that shells out, template text that instructs an agent. It does not mean the weights are unmodified, it does not catch a template that is merely misleading in a way nobody has written a rule for, and SUSPICIOUS still needs a human to look at it. The scanner is also code you are running, which is why reading it first is not paranoia, it is the same rule applied one level up. This is the cheapest version of that rule that exists.
Five steps, in the order they cost you least:
The uncomfortable part
The Mir2k payload rode on an abliterated Qwen3.5-9B, and the timdedid models were sold as cyber-uncensored. Those are the models this forum talks about: the Heretic method thread, the Project Unchained hub, and the gpt-oss experiment all live in the space the attacker mined. Removing refusals is a legitimate research interest and I am not arguing against it. I am arguing that the same file that removes refusals can carry a template that removes your judgement about what to paste into a terminal, and that checking it costs sixteen megabytes.
If you have an abliterated model on disk that came from an unknown uploader, scan it before the next run. Post the verdict here, including SUSPICIOUS ones, and say which quant it was. A thread of twenty real verdicts is worth more than any warning article, because it tells the next person which repositories to trust and which to open in a hex editor first.
Scan log
The exact commands, the full output of all four scans and the sha256 of the file are in the log below. If you run the same four commands you should get the same verdicts, and if you do not, that difference is worth a reply in this thread.
View attachment 333
If you run models locally, you are the person that attack was aimed at. The model file is the one download you never inspect, because it is 6 GB of numbers and there is nothing to read. That assumption is wrong in two places.
A GGUF is a container with two executable parts
The layout is a header, a metadata table, a tensor table, then the weights. Runtimes like llama.cpp read the byte ranges the header points at and ignore the rest, so bytes appended after the last tensor are never read and no loader warns about them. That is where Mir2k put its payload: a plain Windows executable in the first model, the same executable Deflate-compressed in the second, which removes every file signature a naive scanner would look for.
The second part is
tokenizer.chat_template, a Jinja program that runs on every turn before the model sees your text. C++ runtimes render it in a restricted engine, so classic template injection does not reach the operating system. The Mir2k templates did not need to escape anything: they simply added a system message telling the model to start every reply with a command, and a user who pastes that command extracts the trojan from the model file. The other campaign, timdedid, used a trigger phrase to insert a fake [SYSTEM DIRECTIVE] aimed at agents with shell access, which is the same class of attack Pillar Security described in July 2025 and Fogel et al. measured across 18 models and four inference engines this year.None of this shows up in behaviour. The model answers normally, the template does its work outside the chat window, and the payload sits in bytes nobody reads.
What I actually ran
gguf-radar reads the header and the tail of a file over HTTP Range requests, so a scan of a 6 GB model costs a few megabytes, and it parses the chat template as an AST instead of executing it. I installed it in a throwaway virtualenv after reading the wheel, because a scanner that phones home is a worse problem than the one it solves: 11 Python files, 396 KB, network calls only to the Hugging Face API, no subprocess and no eval.
Two models already on this machine, both Ollama blobs:
Code:
gguf-radar scan "~/.ollama/models/blobs/sha256-dec52a44..."
[CLEAN] GGUF v3, arch=qwen35, size=6.59 GB, alignment=32B
Note: 26 zero-scale block(s) hold unused bytes. This is normal quantizer output.
gguf-radar scan "~/.ollama/models/blobs/sha256-034b4c6b..."
[CLEAN] GGUF v3, arch=qwen35, size=15.71 GB, alignment=32B
Note: 117 zero-scale block(s) hold unused bytes.
A model from this week's trending list, without downloading it:
Code:
gguf-radar scan prism-ml/Ternary-Bonsai-2.5-27B-GGUF
[CLEAN] Ternary-Bonsai-2.5-27B-PTQ1_0.gguf size=5.99 GB, fetched=16.78 MB
[CLEAN] Ternary-Bonsai-2.5-27B-Q2_0.gguf size=7.67 GB, fetched=16.78 MB
[CLEAN] Ternary-Bonsai-2.5-27B-Q2_0-mtp.gguf size=7.91 GB, fetched=16.78 MB
[CLEAN] Ternary-Bonsai-2.5-27B-mmproj-BF16.gguf size=931.15 MB, fetched=524.29 KB
[CLEAN] Ternary-Bonsai-2.5-27B-mmproj-Q8_0.gguf size=629.25 MB, fetched=524.29 KB
Five files, sixteen megabytes of transfer instead of twenty-three gigabytes of weights.
And the file from the report:
Code:
gguf-radar scan Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF
[ERROR] HTTP 401 Unauthorized/Gated (provide --token or HF_TOKEN)
The repository is gated now, four days after the campaign went public. That is the part I cannot verify: the report says the payload was recovered and analysed, I could only confirm that the file is no longer publicly readable. If you downloaded either of those two models before 26 November, the executable was already inside, waiting for the template to be switched on.
What a CLEAN verdict does not mean
It means the scanner found nothing against its rules: appended bytes, known RAT signatures, template code that shells out, template text that instructs an agent. It does not mean the weights are unmodified, it does not catch a template that is merely misleading in a way nobody has written a rule for, and SUSPICIOUS still needs a human to look at it. The scanner is also code you are running, which is why reading it first is not paranoia, it is the same rule applied one level up. This is the cheapest version of that rule that exists.
Five steps, in the order they cost you least:
- Take the sha256 from the model card or the repository commit, not from the download page of a mirror.
- Scan before you load, not after:
gguf-radar scan <file-or-repo>. - Compare the template against the base model the quant came from:
gguf-radar compare-template ./model.gguf --base Qwen/Qwen3.5-9B. A quant that changes the template is telling you something. - Load the model offline the first time, in a process or container with no network, and watch what it prints. A reply that starts with a shell command is the attack working.
- Treat
uncensored,abliteratedand-cyberin a filename as a risk marker, not a feature. Both campaigns chose those names on purpose, because that is the part of this community that downloads first and checks never.
The uncomfortable part
The Mir2k payload rode on an abliterated Qwen3.5-9B, and the timdedid models were sold as cyber-uncensored. Those are the models this forum talks about: the Heretic method thread, the Project Unchained hub, and the gpt-oss experiment all live in the space the attacker mined. Removing refusals is a legitimate research interest and I am not arguing against it. I am arguing that the same file that removes refusals can carry a template that removes your judgement about what to paste into a terminal, and that checking it costs sixteen megabytes.
If you have an abliterated model on disk that came from an unknown uploader, scan it before the next run. Post the verdict here, including SUSPICIOUS ones, and say which quant it was. A thread of twenty real verdicts is worth more than any warning article, because it tells the next person which repositories to trust and which to open in a hex editor first.
Scan log
The exact commands, the full output of all four scans and the sha256 of the file are in the log below. If you run the same four commands you should get the same verdicts, and if you do not, that difference is worth a reply in this thread.
View attachment 333
Last edited: