Hugging Face GGUF malware reached 2,428 downloads across five model repositories before Hugging Face disabled them, according to a report published on 27 November 2026 by security researcher Root0ne at Malspark. The repositories hid a Windows remote access trojan inside model files, and the danger came from instructions hidden in the chat templates rather than from the model weights. A copy of one affected model was still listed on Ollama on 29 November 2026, with its hidden instruction in place.
This article reflects reporting available as of 30 November 2026.
Key Takeaways
- Five repositories from two accounts carried the hidden code, with 2,428 combined downloads as of 27 November 2026, according to Malspark.
- The Mir2k repositories hid a Windows remote access trojan after the last tensor in the model file, where loaders never read.
- The timdedid repositories hid an instruction in the chat template that appeared when a message contained “What is”.
- Hugging Face disabled all five repositories, and the combined download counters had reached 2,807 by 28 November 2026.
- Loading the model weights alone did not run the hidden program. Execution needed a pasted command or an action by a tool-enabled agent.
Table of Contents
The Short Answer
Two campaigns used hidden chat template instructions to turn model downloads into a delivery route for a Windows remote access trojan. The episode is an example of chat template poisoning: the template that shapes model replies carried instructions the model owner never approved. The five repositories were poisoned AI models, with the danger in the packaging around the weights rather than in the weights. The files were distributed for local AI models, so the hidden code reached machines that run models outside a hosted service.
Root0ne scanned all 3,273,389 public Hugging Face model repositories on 26 November 2026 and parsed 572,184 chat templates statically, without executing them, using HTTP Range requests. The scan covered 226,310 GGUF repositories holding 2.56 PB of weights. Five repositories from two accounts remained, and all five were still online on 27 November 2026, according to Malspark.
The full findings appear in the Malspark report on the malicious GGUF models.
How Did the Hugging Face GGUF Malware Work?
The Windows trojan reached machines through two different routes, one in each campaign. Both routes relied on the chat template, the text that tells a model how to format replies, rather than on the model weights.
What did the Mir2k repositories hide?
The Mir2k repositories hid an 11.47 MB Windows x64 program named “ollie” after the last tensor in the GGUF file. About 10.25 MB of that program was an embedded copy of Tor 0.4.9.16. Loaders never read past the last tensor, so the extra bytes sat unnoticed at the end of the file.
The two repositories were Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF (1,488 downloads) and Mir2k/Inkling-2-Mini-Uncensored-GGUF (458 downloads), uploaded on 22 and 24 November 2026 with clean templates and the payload already in place. On the morning of 26 November 2026, both templates were replaced within about an hour so the model opens every reply with one PowerShell line. Nine hours later, they were replaced again to search the whole user profile for the model file instead of a fixed Downloads path. The line reads the trailing bytes out of the .gguf file and writes them to %TEMP%\d.exe.
Mir2k also created 14 repositories on 22 November 2026. Twelve of them were empty placeholders named after expected releases such as Qwen4-27B, DeepSeek-V4, Llama-4-Scout and gemma-4-27b, according to Malspark.
What did the timdedid repositories hide?
The timdedid repositories hid a fake [SYSTEM DIRECTIVE] in the chat template that appeared when the latest message contained “What is”. The instruction told an agent with shell access to call its powershell tool, download value.ps1 from a WordPress site into C:\Windows\Temp\payload.ps1 and run it in a hidden window. Malspark’s detection rule names the domain technoarteng.com.
The three repositories were timdedid/qwen3.8-cyber-uncensored (271 downloads), timdedid/qwen3-cyber-UNCENSORED-2 (136 downloads) and timdedid/qwen3-cyber-UNCENSORED (75 downloads). All three were byte-identical copies of a Qwen3 1.7B model published on 21 and 22 November 2026. A fourth copy, an Ollama mirror named timdedid/qwen3-1.7b-cyber, carried the same hidden instruction. The second-stage script was not recovered, so what it would install is unknown. The README advised against replacing the embedded template, which kept the trigger in place.
The Five Repositories at a Glance
| Repository | Campaign | Method | Downloads (as of 27 November 2026) |
|---|---|---|---|
| Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF | Mir2k | Windows program appended after the last tensor; template prints a PowerShell line | 1,488 |
| Mir2k/Inkling-2-Mini-Uncensored-GGUF | Mir2k | Windows program appended after the last tensor; template prints a PowerShell line | 458 |
| timdedid/qwen3.8-cyber-uncensored | timdedid | Hidden instruction in the chat template, triggered by “What is” | 271 |
| timdedid/qwen3-cyber-UNCENSORED-2 | timdedid | Hidden instruction in the chat template, triggered by “What is” | 136 |
| timdedid/qwen3-cyber-UNCENSORED | timdedid | Hidden instruction in the chat template, triggered by “What is” | 75 |
How Far Did the Downloads Spread?
Downloads rose fast while the repositories stayed online. The combined count stood at 1,502 on 26 November 2026 and reached 2,428 on 27 November 2026, according to Malspark. By 28 November 2026, when Hugging Face had disabled all five repositories, the combined counters had reached 2,807. Hugging Face counts downloads, not people, so 2,428 is an upper bound on affected users, not a victim count.
The spread did not stop with Hugging Face. An Ollama copy of the timdedid model, timdedid/qwen3-1.7b-cyber, was still listed on Ollama at 8:53 AM ET on Sunday 29 November 2026, and its model file still held the hidden PowerShell instruction. It had 228 downloads, up from 42 on Saturday, according to an i10X News count reported via Medium. Whether Ollama applies the embedded template is unconfirmed, because Magica did not test it, so execution through Ollama cannot be claimed. Further coverage appears in an account of the disabled repositories and the Ollama copy.
What Could the Hidden Program Do?
The program named “ollie” was built to take control of a Windows machine and stay in place, according to Malspark static analysis. It exits if it detects VirtualBox, VMware, Sandboxie or sandbox and test usernames. It persists through a scheduled task every 10 minutes, plus registry keys and watchdog processes, and it talks to a Tor onion service. It steals saved passwords from Chrome, Edge and Brave through DPAPI, the Windows service that protects stored secrets, although Chrome’s newer v20 App-Bound encrypted entries are left undecrypted. It also targets the Phantom and MetaMask wallet extensions, adds keylogging, clipboard reading, screenshots and webcam capture, and mines Monero with RandomX when the machine is idle. Its fodhelper.exe UAC bypass attempt fails because of malformed paths. It names folders “ollie” under AppData\Roaming.
Why Did Standard Checks Miss It?
Nothing runs by itself. Loading the weights does not execute the hidden program, because model weights are data, not code that a loader runs. Execution needed either a user copying and pasting the PowerShell line the model prints, or a tool-enabled coding agent acting on the hidden template instruction.
Common antivirus and pickle scanners reported no alert on the live Mir2k files, according to Malspark. The payload sat outside the part of the file that loaders read, and the template change arrived after the upload, so a check at upload time saw a clean file. The incident also underlines why agent safety work matters, including OpenAI, Cisco and Shirudo Linux security work reported on Future AI Wire.
Was This Kind of Attack Known Before?
The method was not new. Pillar Security showed hidden instructions in GGUF chat templates in July 2025. Fogel et al. (2026) measured the attack on 18 models and four inference engines. EvilModel, from 2021, hid malware in model weights. An explainx.ai account of the incident and the gguf-radar scanner also covers the November 2026 findings.
Malspark also reproduced three other hiding places in synthetic lab files only: alignment padding, a GGUF+ZIP polyglot, and zero-scale Q8_0 blocks. None of the three was found in the wild, and none changed dequantized weights or triggered warnings in llama.cpp or gguf-py.
What Should Users and Companies Check?
The defence against chat template poisoning starts with treating every command a model suggests as untrusted, according to Malspark. That check matters most for local AI models, because the file runs on the machine that downloads it. The scanner gguf-radar, an open-source MIT-licensed tool by Root0ne, parses the chat template without running it, flags bytes after the last tensor and non-zero padding, and rebuilds a clean file with weights unchanged. It can also scan Hugging Face repositories remotely.
- Treat any command a model suggests as untrusted, and do not paste a PowerShell line from a model reply into a terminal.
- Supply a reviewed template with –chat-template-file in llama.cpp or TEMPLATE in an Ollama Modelfile, taken from the base model’s original repository, not the community re-upload.
- Scan each GGUF file with gguf-radar on GitHub before use, using pip install git+https://github.com/Root0ne/gguf-radar.
- Gate incoming models through gguf-radar before company use, so no unreviewed file reaches production machines.
- Check the repository, the template and the download count before running a community re-upload, and prefer the base model’s original repository.
- Model hubs should reject GGUF files with trailing bytes or non-zero padding.
Key Terms at a Glance
- GGUF: GGUF is a file format that stores the weights of a large language model in a single file for local use.
- Chat template: A chat template is text in a model file that tells the model how to format replies.
- Remote access trojan: A remote access trojan is a hidden program that lets an attacker control a machine from a distance.
- AI agent: An AI agent is a system that takes actions through tools, such as running commands, as part of a task.
- Supply-chain attack: A supply-chain attack hides harmful code in a trusted component, such as a shared model file, so it reaches machines through normal downloads.
Frequently Asked Questions
Did downloading one of the five models infect a machine by itself?
No. Loading the weights does not execute the hidden program. Execution needed a pasted PowerShell line or an action by a tool-enabled agent, according to Malspark.
How many downloads did the five repositories reach?
The five repositories reached 2,428 combined downloads as of 27 November 2026, and the combined counters had reached 2,807 by 28 November 2026, when the Magica check reported via DEV Community found them disabled. Hugging Face counts downloads, not people, so the figure is an upper bound on affected users, not a victim count.
Is the Ollama copy still a risk?
The Ollama copy timdedid/qwen3-1.7b-cyber was still listed on Ollama at 8:53 AM ET on Sunday 29 November 2026, with its model file still holding the hidden PowerShell instruction and 228 downloads, up from 42 on Saturday. Whether Ollama applies the embedded template is unconfirmed, because Magica did not test it.
How can a GGUF file be checked before use?
A GGUF file can be checked with gguf-radar, an open-source scanner by Root0ne. The tool parses the chat template without running it, flags bytes after the last tensor and non-zero padding, and rebuilds a clean file with weights unchanged.
What earlier research described this kind of attack?
Pillar Security showed hidden instructions in GGUF chat templates in July 2025, Fogel et al. (2026) measured the attack on 18 models and four inference engines, and EvilModel hid malware in model weights in 2021. Malspark also reproduced three other hiding places in synthetic lab files only, and none was found in the wild.
Related Reading on Future AI Wire
- A guide to prompt injection and how hidden instructions reach a model
- AI agents explained, including how agents use tools to act
- Why banks are blocking third-party AI agents
Sources
- Malspark — Malicious GGUF Models on Hugging Face (27 November 2026)
- GitHub — Root0ne/gguf-radar
- explainx.ai — The incident on Hugging Face and the gguf-radar scanner (November 2026)
- Medium (i10X News) — Five repos disabled, but the Ollama copy still serves the agent trap
Ethan Walker covers AI developer tools, software releases, and emerging technology trends for Future AI Wire. His reporting focuses on practical updates that help developers and tech teams stay current with fast-moving changes in the AI and software ecosystem.

