Open-source security project Malspark says five GGUF models on Hugging Face were malicious, two with hidden malware; Hugging Face pages now show all five disabled
Malspark, an open-source malware-analysis project whose developer account also publishes the scanner the post promotes, says two accounts hid malicious instructions in model chat templates. When we checked on 28 November, Hugging Face's pages showed all five disabled.

Malspark, an open-source malware-analysis platform, said on 27 November, in a post promoting the open-source gguf-radar scanner (published by Root0ne, the GitHub account that also publishes Malspark), that a scan of every public Hugging Face model repository found five GGUF models carrying malicious chat templates, two of them with a Windows program hidden inside the model file. When we checked at 13:09 GMT on 28 November, all five repository pages on Hugging Face read "Access to this model has been disabled".
Every claim below about the models' behaviour and the hidden program is Malspark's. We did not download or run any of the files.
What Malspark says it found
Malspark's post, by an author named Düzgün, 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." It adds that "Hugging Face counts downloads, not people, so the number of affected users is lower or equal." The download figure is a count of downloads, not of people harmed; Malspark does not say how many machines ran the hidden program.
According to the post, the five repositories came from two accounts:
- Mir2k, two models (Malspark lists 1,488 and 458 downloads). Malspark says each had a Windows program appended after the model's last tensor, a region Malspark says loaders never read. It says the templates were clean at upload and were rewritten on 26 November so that the model would begin every answer with a PowerShell line that, if a user ran it, would extract and start that program.
- timdedid, three byte-identical copies of a small Qwen3 model (271, 136 and 75 downloads in Malspark's table). Malspark says the template inserts a hidden "[SYSTEM DIRECTIVE]" when a message contains "What is", telling an agent with shell access to download and run a script. It says the second-stage script "was not recovered for this study", so what it would have installed is unknown.
From static analysis of the Mir2k program, which it calls ollie, Malspark says it contacts its operator over Tor, sends saved browser passwords, targets the Phantom and MetaMask wallet extensions and mines Monero when the machine is idle. Malspark says neither the file hash nor the campaign strings "had public sightings at the time of writing". It also names an Ollama mirror the timdedid account published alongside, timdedid/qwen3-1.7b-cyber, which was still listed on ollama.com when we checked, showing 42 downloads.
Malspark credits earlier lab research, including Pillar Security's July 2025 work on GGUF chat templates, and says its post adds "the method seen in real attacks on Hugging Face".
What Hugging Face's pages show
The Hugging Face API reported "disabled": true for all five repositories at 13:09 GMT, and each page carries the notice "This content infringes our Content Policy". The pages do not say when access was disabled. Malspark's post said the five were "all still online on 27 November". The API's download counts at 13:09 GMT were higher than those in Malspark's table: 1,711 and 574 for the two Mir2k models, and 288, 151 and 83 for the timdedid copies.
Each Mir2k repository has one open community thread, both posted on 28 November: one titled "🚩 Report: Spam", the other "Don't donwload this!!!! VIRUS!!!!".
Hugging Face had not commented publicly when we checked. We looked at its blog feed and status page and ran a web search; we could not search its posts on X. Malspark's post does not say whether it reported the repositories to Hugging Face.
Why the template matters
The chat template sits in a GGUF file's metadata. Hugging Face's documentation says GGUF "encodes both the tensors and a standardized set of metadata", and that the Hub "has a viewer for GGUF files that lets a user check out metadata & tensors info". Malspark says the timdedid template's trigger and hidden directive were visible in that viewer.
llama.cpp's documentation says its --chat-template-file option sets a "custom jinja chat template file (default: template taken from model's metadata)".
Hugging Face's malware-scanning page says it runs every repository file "smaller than 2 GB" through a malware scanner. On our reading, the two Mir2k files, listed at 6.67 GB and 17.5 GB on their pages, sit above that line. Malspark separately says antivirus and pickle scanners gave "No alert" on the live Mir2k files in its tests.
What you can do
These steps are Malspark's recommendations unless marked as ours:
- Treat any command a model suggests as untrusted. Malspark: "People who run community models locally should treat any command a model suggests as untrusted."
- For tool-using setups, pass a reviewed template with
--chat-template-filein llama.cpp, orTEMPLATEin an Ollama Modelfile, so the embedded one is not used. - If you downloaded one of the five, Malspark says to check machines against the indicators in its Section 7.2 and scan local .gguf files. Its gguf-radar tool is MIT-licensed on GitHub; note that it comes from the same developer account as Malspark.
- On our reading: check the template in the Hub's metadata viewer before using a GGUF, and be wary of new accounts. Malspark says Mir2k was "a new Hugging Face account" that also created twelve empty placeholders named after expected model releases.
Why it matters
On our reading of Malspark's account, the method needs no software exploit: Malspark says the model answers normally, and the harm depends on a person or an agent running a line the template tells the model to produce. Malspark argues that "Model hubs and runtimes are in the best position to end the hidden payload method altogether, by rejecting GGUF files with bytes after the last tensor or non-zero padding". Hugging Face had not responded to that in the sources we read.
- Malspark: GGUF LLM Models with Hidden Malware on Hugging Face (27 Nov 2026)
- Hugging Face: Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF
- Hugging Face: Mir2k/Inkling-2-Mini-Uncensored-GGUF
- Hugging Face: timdedid/qwen3.8-cyber-uncensored
- Hugging Face docs: GGUF
- Hugging Face docs: Malware Scanning
- llama.cpp CLI README
- gguf-radar on GitHub (Root0ne)
Ask Relay — he reads every question himself and replies personally by email.
