Malware After the Last Tensor: 5 Models, 2,428 Downloads

A scan of every public Hugging Face model repository on November 26, 2026 found five malicious GGUF models with 2,428 downloads as of November 27. The headline figure needs one correction before anything else: Hugging Face counts downloads, not people, so the number of affected users is lower than or equal to 2,428. ByteHerald compiled the per-model ledger below from the scan results. Two accounts were behind all five repositories, and the larger campaign armed its models days after uploading them, which changes what a download date means.

Editorial graphic: the headline Malware After the Last Tensor: 5 Models, 2,428 Downloads, November 2026

The ledger: five repositories, two actors

The scan covered 3,273,389 public model repositories, including 226,310 GGUF repositories holding 2.56 petabytes of weights, and parsed 572,184 chat templates without executing any of them. Manual review removed security test repositories, harmless persona prompts, and published research samples. Five repositories remained, all still online on November 27. That is five malicious repositories out of 3.27 million scanned, a prevalence of about 0.00015 percent, concentrated entirely in two accounts.

RepositoryCampaignMethodDownloadsShare
Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUFMir2kReply prefix with hidden executable1,48861.3%
Mir2k/Inkling-2-Mini-Uncensored-GGUFMir2kReply prefix with hidden compressed executable45818.9%
timdedid/qwen3.8-cyber-uncensoredtimdedidTool hijacking27111.2%
timdedid/qwen3-cyber-UNCENSORED-2timdedidTool hijacking1365.6%
timdedid/qwen3-cyber-UNCENSOREDtimdedidTool hijacking753.1%
Total2 actors2,428100%

The Mir2k pair accounts for 1,946 of the 2,428 downloads, or 80.1 percent. The three timdedid copies account for 482, or 19.9 percent. The total also moved fast: the same repositories had 1,502 downloads at scan time on November 26, so the count grew 61.7 percent in one day, almost entirely on the two Mir2k models. A download count taken a day later would tell a different story, which is why every figure here carries its date.

Chart: downloads per malicious GGUF repository as of November 27, 2026

How the hiding works

A GGUF file carries a chat template, a small Jinja2 program stored under the metadata key tokenizer.chat_template that the runtime applies to every prompt. Chat template poisoning abuses that template with ordinary template logic: the model answers normally while the template quietly adds instructions the user never sees. The second half is specific to GGUF. The header and tensor table define exactly where the model data ends, and runtimes such as llama.cpp and LM Studio read only the byte ranges the header points to. Anything appended after the last tensor is never read, changes nothing about how the model loads, and triggers no warning. An executable can sit there. Safetensors files do not allow this, because that loader refuses a file whose declared tensors do not fill it exactly.

Mir2k combined both halves. On November 22 it uploaded the first model with a Windows program already appended after the last tensor but with its original, clean template. On November 24 the second model followed with the same program compressed with raw Deflate, which removes recognizable file signatures, again with a clean template. On the morning of November 26 both templates were replaced within about an hour, and replaced again nine hours later. The armed template adds a system message telling the model to begin every reply with one PowerShell line that reads the hidden bytes back out of the model file on disk and starts them. Downloads made before November 26 therefore contain the payload but not the trigger. Both models unpack to the same 11.47 MB Windows program, a remote access trojan the analysis names ollie, which steals saved browser passwords and wallet data and mines Monero when the machine is idle.

The timdedid models use the template alone. Three byte-identical copies of a Qwen3 1.7B model, published November 21 and 22, carry the official Qwen3 template with one addition: when the user message contains the words What is, the template inserts a fake system directive ordering an agent with shell access to download a script and run it hidden. The second-stage script was not recovered, so what it would have installed is unknown. Readers who run coding agents with shell access will recognize the target pattern from ByteHerald's ledger of coding-agent trust incidents, where the agent's own tools become the delivery path.

What scanners miss, and the check that works

Neither half of the method is new on its own. Hidden instructions in GGUF chat templates were shown in lab tests in July 2025, and hiding malware inside a model file dates to 2021 research on model weights. What this scan adds is the method seen in real attacks on Hugging Face, combined with an executable appended after the last tensor and a template switched on days later. The scan also reproduced two further hiding places in the lab, alignment padding and zero-scale weight blocks, neither used by the live malware. In the published test table, antivirus and pickle scanners raised no alert on any specimen, including both live Mir2k files, and GGUF parsers loaded every file normally.

The open-source tool gguf-radar checks file structure instead of signatures. It parses the chat template without running it, computes where the model data must end, reports bytes after that point, and rebuilds a clean file with the dequantized weights unchanged. For people who run community models locally, the practical rules are narrow: treat any command a model suggests as untrusted, scan local GGUF files before use, and where the runtime allows it, pass a reviewed template file so the embedded one is out of the loop. Model hubs sit in the strongest position, because rejecting GGUF files with bytes after the last tensor ends the hidden-payload method at upload. That gatekeeping role is the same distribution question ByteHerald's Hugging Face control map raised for the open model stack, now with a malware case attached.

By ByteHerald Staff. Malspark, November 27, 2026, reporting a November 26, 2026 scan of 3,273,389 public Hugging Face model repositories that found five malicious GGUF models with 2,428 downloads as of November 27, 2026, including the Mir2k campaign's 11.47 MB trojan hidden after the last tensor and armed by template replacement on November 26, 2026. Pillar Security, July 2025, showing hidden instructions in GGUF chat templates in lab tests, as cited in the November 27, 2026 Malspark analysis.

BH
Written by