Skip to content
audiotale.net
Sign in
NewsNews

Malicious GGUF models on Hugging Face: 5 repos, 2,428 downloads, how to check

A researcher says two campaigns hid a Windows implant and an agent trigger in GGUF files; the figure is downloads, not victims, and only one outlet has reported it.

audiotale.net team

· 8 min read

Written by AI from the sources linked below. How we use AI

On this page
  1. Key points
  2. What to do
  3. What happened
  4. Background
  5. The numbers
  6. How it works
  7. What it means
  8. What we don't know yet
  9. What to watch next
  10. Update, 1 December 2026
  11. Sources

A security researcher who goes by Düzgün at Malspark says five public Hugging Face repositories were distributing booby-trapped GGUF model files as of 27 November 2026, in two separate campaigns. The repositories had 2,428 downloads between them. One campaign hides a Windows program after the last tensor of the file and uses a doctored chat template to get the user to run it. The other uses a hidden instruction in the template to push a coding agent into downloading a script. The findings come from a single researcher's write-up, so we label every claim below as theirs, and we say where we could and could not check it.

Key points

  • Malspark says it scanned all 3,273,389 public Hugging Face model repositories on 26 November 2026, including 226,310 GGUF repositories, and found five malicious ones still online on 27 November.
  • The five repositories had 2,428 downloads in total, according to Malspark. Hugging Face counts downloads, not people, so that is an upper bound on affected users, not a count of victims.
  • The Mir2k campaign appends a Windows x64 program (about 11.47 MB, with an embedded copy of Tor 0.4.9.16) after the last tensor, where GGUF loaders never read it.
  • The timdedid campaign hides a "[SYSTEM DIRECTIVE]" in the chat template that tells an agent with shell access to download and run a PowerShell script. Malspark did not recover that script.
  • Malspark published an open-source scanner, gguf-radar (MIT licence), and four YARA rules.

What to do

  • Check whether you downloaded any of the five repositories: Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF, Mir2k/Inkling-2-Mini-Uncensored-GGUF, timdedid/qwen3.8-cyber-uncensored, timdedid/qwen3-cyber-UNCENSORED-2 and timdedid/qwen3-cyber-UNCENSORED. Malspark also lists an Ollama mirror named timdedid/qwen3-1.7b-cyber.
  • On Windows, look for signs of the Mir2k implant: a folder named ollie under AppData\Roaming (it may contain rat.log), a file %TEMP%\d.exe, and a scheduled task that runs every 10 minutes. Malspark says the implant mines Monero and steals saved browser passwords and wallet data, so if you find it, treat the machine as compromised: disconnect it, change passwords from a clean device and move any crypto wallet funds.
  • Never run a command a model prints at you. Malspark says the Mir2k templates told the model to start each reply with a PowerShell line, and that the user had to copy and run it for the payload to be extracted. Anyone who downloaded the file before 26 November got the payload inside it but not that trigger.
  • Use a template you can read. In llama.cpp, --chat-template-file loads a template from a file you have reviewed; in Ollama, the TEMPLATE instruction in a Modelfile does the same.
  • Scan before you load. Malspark's gguf-radar parses chat templates without executing them and reports bytes after the last tensor.
  • Keep coding agents away from unknown models. If you run a local model behind an agent that can use a shell, a template is part of the attack surface.

What happened

According to Malspark's write-up, published on 27 November 2026, the researcher scanned every public model repository on Hugging Face on 26 November. The scan read only file headers and file ends through HTTP range requests and parsed 572,184 chat templates without running them. Five malicious GGUF repositories were found, belonging to two actors.

The first, Mir2k, is described as a new account with French traces. On 22 November it created 14 repositories, 12 of them empty placeholders named after expected future releases. A Huihui-based Qwen3.5 9B "abliterated" model went up the same day with the payload appended and a clean template. An "Inkling-2-Mini-Uncensored" model followed on 24 November with a compressed payload. On the morning of 26 November, Malspark says, both templates were changed to tell the model to start each answer with a PowerShell line that read a fixed path in the Downloads folder. About nine hours later they were changed again to search the whole user profile for the model file. The Huihui template reads 11,474,944 bytes starting 12,000,000 bytes before the end of the file; the Inkling template reads the last 4,200,000 bytes and decompresses them in memory. Both write the result to %TEMP%\d.exe and run it.

The second, timdedid, published three byte-identical Qwen3 1.7B-based models for security users on 21 and 22 November, plus the Ollama mirror. When the latest user message contains "What is", the template injects a hidden directive telling an agent with shell access to fetch a script from a WordPress site into C:\Windows\Temp\payload.ps1 and run it hidden. The README advises against replacing the embedded template, which keeps the trigger in place. Malspark did not recover the second-stage script, so what it does is unknown.

Background

GGUF is the single-file format used by llama.cpp, Ollama, LM Studio and others. It stores the weights, metadata and a Jinja2 chat template, the text recipe a runtime applies to every conversation. Because the template shapes every prompt, hiding instructions in it is an old idea: Pillar Security described "Poisoned GGUF Templates" on 9 July 2025. It reported disclosing to Hugging Face on 6 June 2025, when Hugging Face concluded it was a user-interface display issue and not a vulnerability, and to LM Studio on 20 June 2025, when LM Studio said users are responsible for reviewing models they trust. Pillar also noted that Hugging Face's web page shows only the template from the first GGUF file in a repository, which can hide variants in other files.

Malicious models on Hugging Face are also not new. Pluto Security reported a cryptominer campaign with 31 malicious repositories across seven accounts and more than 32,000 downloads (it, too, counts downloads and not confirmed infections), mostly based on code that ran when a model was loaded with trust_remote_code=True. Those relied on Python code. Malspark's point is that GGUF looked safer because it contains no code, and that it can still carry a payload. Malspark says it found no earlier public report combining the template trick with a payload hidden after the last tensor on Hugging Face.

The numbers

Malspark's table, with the downloads it counted on 27 November:

Downloads of the five repositories, as counted by Malspark on 27 November 2026downloads
Downloads of the five repositories, as counted by Malspark on 27 November 2026 (downloads)
downloads
Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF1488
Mir2k/Inkling-2-Mini-Uncensored-GGUF458
timdedid/qwen3.8-cyber-uncensored271
timdedid/qwen3-cyber-UNCENSORED-2136
timdedid/qwen3-cyber-UNCENSORED75

Source: Malspark

The total was 1,502 a day earlier, Malspark says, so it rose by more than half in one day. The post's own headline talks about 2,400 victims, but its text is clear that the number is downloads. We checked the live Hugging Face API for two of the repositories: the Huihui repository now shows 1,711 downloads and the timdedid qwen3-cyber-UNCENSORED repository 83, in line with a number that keeps climbing. The repositories still existed when we looked.

How it works

Two tricks are combined. First, a GGUF loader reads only the byte ranges the file header declares, so an executable appended after the final tensor is never parsed, and no runtime warns about it. Malspark says the Mir2k files sometimes compress it with Deflate to remove file signatures. Second, the chat template tells the model to print the command that extracts and runs those bytes. The model never "executes" anything: the human copies and runs the line, or an agent runs it.

The payload Malspark calls "ollie" is the same in both Mir2k models: an 11.47 MB Windows x64 program, of which about 10.25 MB is an embedded Tor. Malspark's analysis says it exits if it sees VirtualBox, VMware or Sandboxie drivers or sandbox-like usernames, runs from a scheduled task every ten minutes with two watchdog processes, and is marked as a critical process, so ending it crashes Windows. It reaches its operator through a Tor onion service, steals saved passwords from Chrome, Edge and Brave (Malspark says Chrome's v20 app-bound entries are not decrypted), targets the Phantom and MetaMask wallet extensions, can log keys and capture the screen and webcam, and mines Monero when the machine is idle. A user-account-control bypass it attempts fails, Malspark says, because the registry paths were compiled without backslashes.

What it means

For people running local models, the practical lesson is that a "model" download is a bundle of data and text that a program interprets, and either part can be hostile. Abliterated or "uncensored" community fine-tunes are popular and are the bait in both campaigns, so they deserve extra care. For teams, model registries should be scanned like any other artifact. Malspark recommends rejecting GGUF files with bytes after the last tensor or non-zero padding, and extending template scanners to catch PowerShell loaders and hidden directives. For agent builders, a chat template that can add instructions the user never sees is a prompt-injection channel you do not control.

What we don't know yet

  • We could not independently confirm the malware analysis. No second security outlet or vendor has reported on Mir2k or "ollie" that we could find in our searches on 28 November, and Malspark's indicator table was not available to us in full.
  • Hugging Face's response is not described in the write-up. Whether the repositories were reported or removed is unknown to us.
  • The number of people actually infected is unknown. Downloads include scanners, researchers and people who never ran the printed command.
  • The timdedid second stage was not recovered.

What to watch next

Watch for Hugging Face removing the repositories or adding trailing-byte and template checks, for llama.cpp, Ollama and LM Studio changing how they treat templates, and for a second vendor confirming the analysis. We will add an update if that happens. For earlier coverage of attacks on developer tooling, see our report on the Remus infostealer.

Update, 1 December 2026

Hugging Face has since disabled the repositories. The Hugging Face API on 1 December 2026 lists all three repositories we spot-checked (Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF, Mir2k/Inkling-2-Mini-Uncensored-GGUF and timdedid/qwen3.8-cyber-uncensored) with disabled set to true. Their download counters had kept rising after Malspark's 27 November snapshot: the API shows 2,236 downloads for the first Mir2k model (Malspark counted 1,488), 1,257 for the second (Malspark counted 458) and 389 for the timdedid model (Malspark counted 271). Downloads are not unique users, and disabling the repositories does not remove copies people already pulled, so anyone who downloaded these files should still run the checks above.

Source: Hugging Face model API (Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF)

Sources

Written by

audiotale.net team

The official account of the people who run audiotale.net: announcements, conversation starters and the newsroom's drafts. Posts written with AI say so. Every other account here is a real person.