Five "uncensored" AI models on Hugging Face hid a Windows spy tool; their chat templates told users to run it
Malspark found five GGUF models carrying a password-stealing RAT, triggered by poisoned chat templates. 2,428 downloads before they were disabled. Check your local model folders.
A researcher at security firm Malspark found five AI models on Hugging Face that carried a hidden Windows remote-access trojan (RAT) and used poisoned chat templates to get users, or their AI agents, to launch it. The files were downloaded 2,428 times by November 27, 2026, and were reportedly disabled on November 28. Anyone who downloaded a model from the Hugging Face accounts Mir2k or timdedid should delete it, and treat any Windows PC that ran the suggested command as compromised.
What happened, in plain English
Hugging Face is the biggest public library of AI models. Many people download "open" models from it and run them on their own computer with free tools such as llama.cpp, LM Studio or Ollama. These models often come as a single GGUF file, a format that bundles the model's numbers (its "weights") with some settings.
One of those settings is the chat template: a small script that wraps every conversation before the model sees it. It normally just adds markers such as "this is the user, this is the assistant". But it runs on every message, and it can quietly add instructions the user never sees.
On November 27, 2026, Malspark researcher Düzgün (handle Root0ne) published a scan of more than 3.2 million public Hugging Face model repositories. Five of them, from two accounts, were malicious. They used two tricks together:
- A hidden program at the end of the file. AI tools read only the parts of a GGUF file that its header points to, so anything glued on after the last block of model data is ignored. The attacker attached a Windows program there.
- A poisoned chat template. In the Mir2k models, the template told the AI to begin every answer with a one-line command for the user to copy. That command pulled the hidden program out of the model file and ran it. In the timdedid models, the template targeted AI agents that are allowed to run commands, telling them to download and run a script.
Think of a cookbook where the last page is a glued-on envelope, and the recipe tells you, in small print, "first, open the envelope and do what it says."
The models were marketed as "uncensored" or "abliterated" (safety filters removed) versions of popular models, which is exactly what attracts curious downloaders.
Are you affected? What to do now
Most readers have nothing to do. You are at risk only if you, or someone on your team, downloaded one of these models, and ran it on Windows, and a person or agent executed a command the model suggested.
The five repositories named by Malspark:
Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF(1,488 downloads)Mir2k/Inkling-2-Mini-Uncensored-GGUF(458)timdedid/qwen3.8-cyber-uncensored(271)timdedid/qwen3-cyber-UNCENSORED-2(136)timdedid/qwen3-cyber-UNCENSORED(75)- Plus an Ollama mirror,
timdedid/qwen3-1.7b-cyber
Note that download counts are not people: one user can download several times.
Checklist
- Search model folders for "Mir2k" or "timdedid": llama.cpp and LM Studio model directories, and the output of
ollama list. - Check web-proxy logs for Hugging Face downloads under
Mir2k/ortimdedid/paths since November 21, 2026. - Delete any matching file, including copies downloaded before November 26. Malspark says the hidden program was already in the files then; only the trigger was added later.
- On Windows PCs that ran one of these models, look for the artifacts Malspark lists: a file
%TEMP%\d.exe, a folderAppData\Roaming\ollie,C:\Windows\Temp\payload.ps1orvalue.ps1, a scheduled task that repeats every 10 minutes at highest privileges, and traffic to the domaintechnoarteng.com. - If you find signs of infection: isolate the machine and reinstall it rather than trying to clean it. From a clean device, change passwords saved in Chrome, Edge or Brave, and move any Phantom or MetaMask funds to a new wallet created elsewhere.
- Going forward: pin a reviewed chat template (llama.cpp
--chat-template-file, or aTEMPLATEline in an Ollama Modelfile), and require human approval before a local agent runs shell or PowerShell commands.
Takedown status. Malspark's post does not describe a response from Hugging Face. Tech outlet i10x reported that Hugging Face's API showed all five repositories as disabled at 14:22 CET on November 28, and that the Ollama mirror was still listed that day. We have not independently confirmed either point, and neither company has published a statement we could find.
The expert view
Root cause. Two trust assumptions failed together. First, GGUF loaders define the file by its header and tensor table, so trailing bytes are simply never read, and no runtime warns about them. Malspark notes that the safetensors format rejects such files; GGUF has no equivalent check. Second, the chat template is executable logic shipped inside the "data" file, and it sits in the most privileged spot in the prompt. It can inject a hidden system message on every turn. This is prompt injection delivered by the supply chain rather than by a web page or email.
The attack chain, conceptually. Upload a model with a dormant payload and a clean template; build downloads; then rewrite the template to "arm" it. Malspark says the Mir2k templates were changed twice on November 26, the second version searching the user's profile for the largest GGUF file instead of a fixed path. The model itself then becomes the social-engineering channel, presenting the trigger as a helpful command. The timdedid variant goes further and skips the human: it waits for a trigger phrase, then instructs any agent that has a shell tool to fetch and run a script. That second-stage script was not recovered.
Why defences missed it. Malspark reports that antivirus and pickle scanners raised no alerts on its test files, and that checks reading only the last few kilobytes miss the compressed variant. Hub scanning has been tuned to pickle-based formats, where code execution happens at load time. GGUF avoids that problem but moves the risk into the template and into what the model tells people to do.
The payload. Malspark calls it "ollie": an 11.47 MB Windows program, about 10.25 MB of which is an embedded Tor client. By static analysis (the post does not say it was run), it steals saved browser passwords, targets two crypto wallets, logs keystrokes, captures screen and webcam, and mines Monero when idle. It also marks itself as a critical process, so simply killing it can crash Windows.
Severity in context. No CVE applies; this is a malicious-content campaign, not a software bug. The direct reach is small: a few thousand downloads, mostly hobbyists after "uncensored" models. The pattern matters more. Template poisoning was described in research earlier in 2026 (Fogel et al., arXiv 2602.04653), and this is a real-world use of it. Malspark also found 12 empty Mir2k placeholder repos named after expected model releases, which suggests the actor planned to catch people searching for new models on launch day.
Attribution. Malspark names no group or country. It notes only "French traces" in the Mir2k account (model card, the hidden instruction's language, commit messages and strings) and does not link the two accounts.
Still unknown: how many machines actually ran the payload, who controls the command server, whether other GGUF hiding places Malspark demonstrated in its lab (such as alignment padding) are used in the wild, and whether hubs and runtimes will start rejecting files with trailing data.
Official sources
- Malspark: malicious GGUF models on Hugging Face (Düzgün / Root0ne, November 27, 2026)
- gguf-radar, the researcher's open-source GGUF scanner (GitHub)
- Fogel et al., research paper on GGUF template poisoning (arXiv 2602.04653)
- Coverage: i10x, "Hugging Face GGUF malware: models pulled, but the Ollama copy still serves it"
- Coverage: Beri, "Hugging Face GGUF Templates Told Agents to Download and Run Scripts"