The useful habit with local models is also the exposed one. You download a GGUF file from a public hub, load it in llama.cpp, Ollama or LM Studio, and start chatting. A report published on November 27 by Malspark researcher Root0ne shows what can ride inside that file: in two cases a Windows program hidden after the weights, in three more a chat template designed to talk someone, or some agent, into running a script.
The scan behind the report was not a sample. On November 26 it covered all 3,273,389 public model repositories on Hugging Face, including 226,310 GGUF repositories holding 2.56 PB of weights, and parsed 572,184 chat templates statically, without executing any of them. After security test repositories, harmless persona prompts and research samples were removed by hand, five repositories from two accounts remained. All five were still online on November 27. When ALFW checked Hugging Face's API on November 29, all five were marked disabled, and their download counters totaled 4,221. The higher counters do not establish that downloads continued after the repositories were disabled; they are the API's counters, and they count downloads, not people.
Two hiding places
The first is the chat template. A GGUF file carries a small Jinja2 program under the metadata key tokenizer.chat_template, and the runtime runs it over the conversation before every reply. The user never sees what it adds. In the three timdedid models, copies of a Qwen3 1.7B model aimed at security users, a message containing "What is" triggers a fake [SYSTEM DIRECTIVE] that tells an agent with a PowerShell tool to download a script and run it. What that script would install is unknown. It was not recovered.
The second hiding place is specific to GGUF. The header and tensor table define exactly where the model data ends, and loaders read only those ranges. Anything appended after the last tensor is ignored: the model loads and chats normally. The two Mir2k models carry the same 11.47 MB Windows x64 program there, in one case followed by about half a megabyte of filler, in the other compressed so its file signatures disappear. About 10.25 MB of the program is a copy of Tor. Static analysis in the report shows it checking for sandboxes, persisting through a scheduled task, reading saved passwords from Chrome, Edge and Brave, targeting the Phantom and MetaMask wallet extensions, and mining Monero when the machine is idle. Its attempt at a UAC bypass is broken, with registry paths compiled without their backslashes.
Planted first, armed later
The order of events is the part worth remembering. Mir2k uploaded the first model on November 22 and the second on November 24, payloads already appended, templates still clean. On the morning of November 26 both templates were replaced, and again nine hours later, so the model now opens every reply with the PowerShell line that reads the hidden bytes out of the model file and starts them. Downloads made before November 26 contain the program but not the trigger; a later revision changes what a fresh download contains, not a copy already on disk. The same account also created 12 empty repositories named after models that do not exist yet, among them Qwen4-27B, DeepSeek-V4 and Llama-4-Scout.
What the headline number is not
The report's headline says the models "reached 2400+ victims". The report's own text is more careful, and the careful version is the one to use. The 2,428 figure is Hugging Face's download count as of November 27, and Hugging Face counts downloads, not people, so the number of affected users is, in the report's words, lower or equal. The counters establish neither unique users nor whether anyone loaded a file, followed an instruction, or was infected. The hidden executable does nothing while it sits after the last tensor. It starts only if a user copies the model's printed PowerShell line and runs it, or a tool-using agent follows the template's instruction. The report documents the mechanism, the payload's behavior under static analysis and the download growth, from 1,502 at scan time to 2,428 a day later. It documents no confirmed infection.
That distinction does not make the finding small. A template can be swapped days after a file was uploaded with a clean one, which means the revision you vetted is not necessarily the revision a fresh download brings, and an agent that treats model output as instruction is the softer target of the two. The same report ships the countermeasure: gguf-radar, open source under the MIT license, which its author says parses the template without running it, reports any bytes after the last tensor, and rebuilds a clean GGUF with the weights unchanged. It can check Hugging Face links through range requests, without downloading the weights.
If you pulled either Mir2k model, or any of the three timdedid ones, the report's advice is to scan local .gguf files with gguf-radar and check endpoints against its published indicators. Everyone else who runs community models gets the cheaper lesson: a model file is code-adjacent, its template is part of the download, and a command printed by a model is a stranger's command.
Sources
- [1] Root0ne, "GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims", Malspark, November 27, 2026Read source
- [2] Root0ne, gguf-radar repository (MIT license; template parsing, trailing-byte detection and clean rebuild), linked from the Malspark reportRead source