Five GGUF models on Hugging Face hid a Windows RAT after the last tensor — 2,428 downloads
Malspark published a scan on November 27 of 3,273,389 public Hugging Face model repositories, parsing 572,184 chat templates statically. Five GGUF repos came back malicious across two campaigns, with 2,428 downloads and all five still online that day. The technique is two halves. A GGUF header says where tensor data ends, and runtimes read only those byte ranges, so an 11.47 MB Windows implant appended after the last tensor loads invisibly and triggers no warning. The poisoned tokenizer.chat_template then tells the model to open every reply with one PowerShell line that reads those bytes back out of the model file and runs them.
Why it matters
Your scanners are looking in the wrong place. Antivirus and pickle checks gave no alert on every specimen, and llama.cpp and gguf-py loaded them normally, because nothing malicious sits in the weights — it sits in bytes no parser reads and in a template that only ever prints text. The timeline is the part I would take to a security review: the payload went up on November 22 with a clean template, and the trigger was added four days later, so anyone who downloaded early has the implant without the instruction. The template half applies to Safetensors and PyTorch too.
What to do
Pin the chat template yourself rather than using the one inside the file: pass --chat-template-file in llama.cpp or TEMPLATE in an Ollama Modelfile, which takes the embedded one out of the loop entirely. Then scan community GGUFs at the gate into your model registry, not on a developer laptop, checking for bytes after the last tensor. Treat any command a local model prints as untrusted input, especially one it asks you to paste.
More from November 30, 2026
- Two pyca/cryptography maintainers shipped a crypto library whose assembly and proofs were written by LLMs
- Qwen Code now makes you pick a host or a VM before it runs a stranger's pull request
- A Google Labs agent skill was folding cross-origin iframes into the page it snapshotted
- A scope guard said no to admin.example.com and yes to adm%69n.example.com
- Told its code was unreviewed training data, Claude Code took 62% more turns
- Heretic is read-only: its author archived it to keep issue and pull request spam out
- Knuth will not read error reports submitted after 25 November until he posts fresh errata
Related
- An AMD patch set for llama.cpp took one laptop eGPU from 35 to 55 tokens a second November 29, 2026
- llama.cpp now has a public dashboard for AMD local inference — weekly runs, 10 repetitions, raw data in a bucket November 28, 2026
- Cisco and OpenAI open-sourced agent-written eBPF shields — an operator signs each one before it runs November 24, 2026