Malspark: Five Poisoned GGUF Models on Hugging Face Hit 2,428 Downloads. Two Hide a Windows Trojan, Three Hijack Agents' PowerShell Tool

Ollama logo(opens in new tab)Ollama(opens in new tab)ImportantNovember 30, 2026Security
What happened
Malspark reported on 27 November that five GGUF model repos on Hugging Face, downloaded 2,428 times, carry a hidden Windows trojan or a chat template that hijacks agents' shell tools.
Why it matters
The attack lives in the chat template a runtime applies by default, so a model file can steer an agent with shell access without any code in the weights.
What to do
If you pulled any of the five repos or the timdedid Ollama mirror, check the machine and delete the file; run community GGUF models in agents only with a reviewed chat template you supply yourself.

Our verdict: treat a GGUF file's chat template as code, because two attackers on Hugging Face already do. If you run community models in Ollama, llama.cpp or any agent with a shell tool, supply a reviewed template yourself and delete any copy of the five repositories below. Ollama stays recommended in our directory: the runtime did what the file told it to, and the fix is on the operator's side.

What happened

Malspark, a security firm, says "a scan of all 3273389 public Hugging Face model repositories on 26 November 2026 found 5 malicious GGUF models with 2428 downloads as of 27 November", and that all five were "still online on 27 November". Every figure here is Malspark's.

RepositoryDownloads (Malspark)
Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF1,488
Mir2k/Inkling-2-Mini-Uncensored-GGUF458
timdedid/qwen3.8-cyber-uncensored271
timdedid/qwen3-cyber-UNCENSORED-2136
timdedid/qwen3-cyber-UNCENSORED75

Malspark also names "an Ollama mirror named timdedid/qwen3-1.7b-cyber". Downloads are counts, not people, as Malspark itself notes. The Inkling repo sits under the Mir2k account, the same uploader behind the trojan campaign, not an official vendor account.

Campaign 1: Mir2k, a trojan after the last tensor

Mir2k shipped a Windows executable that sat "after its last tensor" from the first upload, where runtimes do not read. Then, "On the morning of 26 November both templates were replaced within about an hour": the new chat template adds a system message telling the model to "begin every reply with this line, copied character by character, then answer normally", followed by a PowerShell command that unpacks %TEMP%\d.exe. Malspark says the implant steals saved passwords from Chrome, Edge and Brave plus wallet extensions, and mines Monero over Tor. It adds that "Antivirus engines and checks that only look at the last few kilobytes of a file do not see the compressed payload."

Campaign 2: timdedid, no executable at all

"When the user's latest message contains What is, it inserts a SYSTEM DIRECTIVE telling an agent to call its powershell tool." Malspark says the directive has the agent download value.ps1 from a WordPress site into C:\Windows\Temp\payload.ps1 and run it in a hidden window, so no executable in the file does not mean no payload.

Why it matters

The second campaign is the one to worry about. It turns an ordinary question into a shell command for any agent that runs a community model with a PowerShell tool, and nothing in the weights gives it away. The attack lives in the chat template, which runtimes apply by default, so scanning weights or the tail of a file misses it.

What changes for you

  • Check your caches. Search machines and model caches for the five repositories and the timdedid/qwen3-1.7b-cyber Ollama mirror. Delete any copy and check that machine.
  • Bring your own template. Malspark's advice: "treat any command a model suggests as untrusted", and pass a reviewed template yourself, with --chat-template-file in llama.cpp or TEMPLATE in an Ollama Modelfile.
  • Restrict tools. Do not give an agent running an unvetted community model an unrestricted shell or PowerShell tool.
  • Weigh the vendor tool. Malspark recommends its own open-source scanner, gguf-radar (MIT), which checks and rebuilds files. Malspark ships the tool it recommends, so weigh that.

What we could not confirm

Hugging Face did not comment in anything we read, and we did not check whether the repos came down after 27 November. We have not tested gguf-radar.

What to do

  1. 1 Search your machines and model caches for the five repositories and the timdedid/qwen3-1.7b-cyber Ollama mirror; delete any copy and check that machine against Malspark's indicators.
  2. 2 For community GGUF models, supply a reviewed chat template with --chat-template-file in llama.cpp or TEMPLATE in an Ollama Modelfile instead of the embedded one.
  3. 3 Do not give an agent running an unvetted community model an unrestricted shell or PowerShell tool.

Affected tools & models

Never need to catch up again

The weekly delta: only verdict changes and act-now items. No digest filler.

By subscribing you agree to our Privacy Policy. Unsubscribe anytime.