AIToday
Open-Source AIAI Safety & AlignmentAI WeeklyPublished: Nov 29, 2026, 10:00 JST

Hugging Face scan finds 5 malicious models, 2,428 downloads

Send on LINE
Hugging Face scan finds 5 malicious models, 2,428 downloads

3 Key Points

  1. What happened

    A scan of 3,273,389 public Hugging Face model repositories on 26 November 2026 found 5 malicious GGUF models with 2,428 downloads as of 27 November. The Mir2k account hid a Windows remote access trojan named ollie inside two model files and rewrote their chat templates on 26 November to make the model ask users to run it.

  2. Why it matters

    The poisoned templates quietly insert instructions the user never sees, and runtime loaders do not warn about bytes appended after the model data, so antivirus and partial-file checks miss the payload. Hugging Face counts downloads, not people, so affected users number 2,428 or fewer.

WHO IT HITSDevelopers and IT teams who download community GGUF models from Hugging Face to run locally are the most exposed, since a single poisoned model can plant a remote access trojan on their machines. Companies that let staff pull models into internal registries may need to screen incoming files with gguf-radar before they reach developer laptops.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The attack exploits two quirks of the GGUF format that most users never see. The chat template is a small program stored under the metadata key tokenizer.chat_template, and runtimes such as llama.cpp and LM Studio pass every conversation through it before the model reads it. Because C++ runtimes render it in a restricted engine, the classic template injection payloads that reach the operating system do not work there, but the attacks found in this study do not need to escape that engine. They use ordinary template logic to add text to the conversation that never appears in the chat window, such as a fake [SYSTEM DIRECTIVE] or a PowerShell line the user may copy and run.

Mir2k combined that technique with a second GGUF-specific trick: bytes appended after the last tensor. The header and tensor table define exactly where the model data ends, and anything after that point is never read, so a whole executable can sit there without changing how the model loads or triggering a warning. Mir2k uploaded its first model on 22 November with the executable already appended but with a clean template, then replaced both templates on the morning of 26 November and again nine hours later, so downloads made before 26 November contain the payload but not the trigger. The hidden program unpacks to an 11.47 MB Windows x64 implant that bundles Tor, steals saved passwords from Chrome, Edge and Brave, targets the Phantom and MetaMask wallet extensions, and mines Monero when the machine is idle.

The timdedid campaign took a different route, publishing three byte-identical copies of a Qwen3 1.7B model whose template inserts a [SYSTEM DIRECTIVE] when the user's latest message contains "What is," telling an agent to download and run a PowerShell script. The second-stage script was not recovered, so what it would have installed is unknown. Neither half of the method is new on its own: Pillar Security showed hidden instructions in GGUF chat templates in July 2025, and hiding malware inside a model file goes back to EvilModel in 2021, but those studies used test models in the lab. The study notes that no earlier public report was found of the combination seen in real attacks on Hugging Face.

FAQ
What is chat template poisoning?
It abuses the chat template that every GGUF file carries, which the runtime applies to each prompt. The model answers normally, while the template quietly adds instructions the user never sees, such as asking an agent to run a PowerShell command.
Which models were affected?
Five repositories remained online on 27 November: two Mir2k models (Huihui-Qwen3.5-9B-abliterated-GGUF and Inkling-2-Mini-Uncensored-GGUF) and three timdedid models (qwen3.8-cyber-uncensored, qwen3-cyber-UNCENSORED-2, and qwen3-cyber-UNCENSORED).
What should I do if I downloaded one of these models?
Check endpoints against the indicators in Section 7.2 and scan local .gguf files with gguf-radar. Antivirus engines and checks that only look at the last few kilobytes of a file do not see the compressed payload.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleWalmart workers push back as AI spreads across US retail