AI NewsOpen sourceReported
Malspark finds 5 poisoned GGUF models on Hugging Face, 2,428 downloads
Malspark found 5 poisoned GGUF models on Hugging Face. Together they were downloaded 2,428 times. The chat templates run malware on the user's machine.

Image: Malspark
Why it mattersA local model on a developer's machine can run a command the user never typed. The chat template is the new place to look for it.
A local language model can run code on the user's machine. The command sits inside the chat template that comes with the model file. Malspark, a security research group, reports five models on Hugging Face that do this. Its post ran on 27 November 2026. The models were still online on that date.
The report is by Düzgün, who publishes as @Root0ne. Malspark says it scanned 3,273,389 public Hugging Face repositories on 26 November. The five it flagged came from two accounts. Mir2k uploaded two: Huihui-Qwen3.5-9B-abliterated-GGUF with 1,488 downloads and Inkling-2-Mini-Uncensored-GGUF with 458. Timdedid uploaded three Qwen3 variants with 271, 136 and 75 downloads. The total is 2,428 downloads across the five files.
The two attacks
The first attack hides a Windows program inside the GGUF file, after the last tensor. A GGUF file is the usual way to send out a local model: weights, metadata and an embedded chat template. The runtime uses the template to format a user's prompt. Mir2k's template injects a French system message, Malspark says. The message tells the model to start every reply with a PowerShell command. The user sees the command in the chat and copies it, or an agent runs it. The command finds the largest .gguf file on the machine. It reads the hidden bytes from the end of that file. It writes them to %TEMP%\d.exe and runs that file. The Inkling model compresses the payload with raw Deflate. Malspark says this hides it from scanners that only look at the end of the file.
The second attack hijacks an agent's tools. Timdedid's template watches for the phrase "What is" in a user message, Malspark reports. When the phrase is there, the template injects a hidden system directive. The directive tells any agent with shell access to call its PowerShell tool. The tool downloads a file called value.ps1 from a WordPress domain. It saves it to C:\Windows\Temp\payload.ps1 and runs it in a hidden window.
What to do
The report names three fixes. A person running a local model should treat any command the model suggests as untrusted. In llama.cpp the flag --chat-template-file replaces the embedded template with one the reader has checked. In Ollama the TEMPLATE line in a Modelfile does the same job. A company running a model registry can route every model through gguf-radar, an open source scanner Malspark built. The tool reads the template without running the model. It flags appended bytes after the last tensor. It writes a clean copy with the same weights. A runtime or a model hub can refuse any GGUF file that has bytes after the last tensor. Malspark says this would end the embedded payload method.
Hugging Face has said nothing on its own pages about the five models. Malspark reported them still online on 27 November.
A team that sells a product on top of a local model has a new supply chain problem. The attacker's code can reach the user's machine through the model file. The same is true for a team that lets an agent install a model from a hub. The model files look right. They pass their checksums. They load into every runtime. The attacker's code is sitting in a part of the file the runtime does not care about. Or it is in a line of a template nobody reads.
Source
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.
