File photo: close-up of rack-mounted servers with status lights in a data centre
Photo: Victorgrigas / Wikimedia Commons · CC BY-SA 3.0
Reported, not yet officialSetback

Researcher says five Hugging Face GGUF models hid malware in chat templates; Hugging Face now lists them as disabled

6 min read 5 views 6 sources, 6 checked

A Malspark write-up says five 'uncensored' GGUF models on Hugging Face used poisoned chat templates to deliver a Windows trojan or push agents into running scripts, with 2,428 downloads. All five now show as disabled in Hugging Face's API.

The story in 30 seconds

  1. A Malspark researcher says five GGUF models on Hugging Face carried malicious chat templates, with 2,428 downloads in total.
  2. Two models from the Mir2k account reportedly hid a Windows remote access trojan after the last tensor and used the template to get it run.
  3. Three timdedid models reportedly told AI agents with shell access to download and run a script when a trigger phrase appeared.
  4. Hugging Face's public API marked all five repositories as disabled on 29 November. The company has not commented publicly.
  5. The researcher released an MIT-licensed scanner, gguf-radar, and advises treating model-suggested shell commands as untrusted.

Is this official? Reported, not yet official

  1. Rumour
  2. Reported
  3. Confirmed
  4. Official

Based on one security researcher's published analysis (Malspark, 27 November 2026), which has not been independently confirmed. We did not download or run the files. We confirmed through Hugging Face's public API on 29 November that all five named repositories are marked disabled. Hugging Face has not commented publicly.

Event date: 27 Nov 2026

What happened

A security researcher writing on the Malspark blog says five model repositories on Hugging Face hid malicious instructions inside GGUF files. GGUF is the format widely used to run quantised open-weight models locally with tools built on llama.cpp. The write-up, published on 27 November 2026, says the researcher scanned about 3.27 million public model repositories and found five malicious GGUF models with 2,428 downloads between them. The post notes that Hugging Face counts downloads, not people, so the number of affected users is at most that figure.

The five repositories named in the report belong to two accounts:

  • Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF
  • Mir2k/Inkling-2-Mini-Uncensored-GGUF
  • timdedid/qwen3.8-cyber-uncensored
  • timdedid/qwen3-cyber-UNCENSORED-2
  • timdedid/qwen3-cyber-UNCENSORED

All five were presented as "uncensored" or "abliterated" versions of popular open models. The report said they were still online on 27 November. When TrustTheBench checked Hugging Face's public model API on 29 November, all five repositories were marked as disabled. Hugging Face has not commented publicly on the cases that we could find.

These findings come from one researcher and have not been independently confirmed. We did not download or run the files.

How the attacks reportedly worked

Every GGUF file carries a chat template, a small program that formats each conversation before it reaches the model. The report says both campaigns abused this layer rather than the model weights.

The Mir2k campaign. According to the write-up, a new account uploaded two models with a Windows remote access trojan, which the researcher calls "ollie", appended to the end of each file, after the last tensor, where model loaders do not read. On 26 November the chat templates were reportedly changed so that the model would print a command that pulls the hidden payload out of the model file and runs it. The researcher says the trojan sets up persistence, contacts its operator over Tor, tries to steal browser passwords and crypto-wallet data, supports keylogging, screenshots and webcam capture, and mines Monero when the machine is idle. The report says the trojan's attempt to bypass Windows User Account Control was flawed and failed.

The timdedid campaign. Three Qwen3-based models reportedly contained a template that, when a trigger phrase appears, inserts a fake system instruction telling an agent with shell access to download and run a script. The researcher says the second-stage script was not recovered.

The risk is highest for people who connect local models to coding agents or other tools that can run shell commands, because the model's output becomes an action.

What is new

Poisoned chat templates are not a new idea. Researchers have shown proof-of-concept attacks before, and a 2026 scan by Splunk of about 156,000 GGUF files found the technique plausible but saw no malicious templates in its dataset. The Malspark report is notable because it describes this technique used in real uploads, with a working payload delivered through the template and a model file.

The researcher also released an open-source scanner called gguf-radar under the MIT licence. They say it checks templates and file structure without running anything and can rebuild a clean GGUF file with the weights unchanged. The write-up also includes YARA rules and indicators of compromise.

Why it matters

Hugging Face hosts millions of community uploads, and many local AI users download re-packaged GGUF versions of popular models from accounts they do not know. Most malware scanners on model hubs look for malicious code such as Python pickles. A chat template is not code in that sense, and a payload stored after the last tensor is not read during normal loading. That leaves a blind spot.

The case also follows other recent abuse of model hubs. In October, Pluto Security described a cryptominer campaign that used Hugging Face's trust_remote_code feature to run code when a model was loaded.

What you can do

The researcher's recommendations, in summary:

  • Treat any shell command a model suggests as untrusted, and do not let agents run model-suggested commands without review.
  • Prefer models from the original publisher or well-known quantisers, and use reviewed chat templates.
  • Scan incoming GGUF files before they reach internal systems.
  • Model hubs should reject GGUF files that contain data after the last tensor.

What we do not know yet

  • Whether Hugging Face disabled the repositories because of this report, and when.
  • How many of the counted downloads led to the payload actually running on a machine.
  • Who is behind the two accounts, and whether other copies of the files exist elsewhere.
  • What the missing second-stage script in the timdedid campaign does.

Questions and answers

Is this confirmed?

It is one researcher's published analysis, so we rate it as reported, not confirmed. We checked Hugging Face's public API and found all five named repositories marked as disabled on 29 November. Hugging Face has not issued a public statement that we could find, and we did not run the files ourselves.

Which models were affected?

The report names two models from the Mir2k account, Huihui-Qwen3.5-9B-abliterated-GGUF and Inkling-2-Mini-Uncensored-GGUF, and three from the timdedid account, all Qwen-based 'cyber uncensored' models. These were community re-uploads. They were not official releases from Qwen, Thinking Machines or other model makers.

What is a chat template and why does it matter?

A chat template is a small piece of formatting logic stored in a GGUF file that wraps every prompt before the model sees it. Because it shapes what the model receives, an attacker can use it to slip in hidden instructions. Most model scanners look for executable code, not template text, so these changes are easy to miss.

I downloaded one of these models. What should I do?

Delete the file and check whether you or an agent ran any command the model suggested. The report says the Mir2k payload targeted Windows and tried to steal browser passwords and wallet data. Anyone who may have run it should treat the machine as compromised, run a security scan and change passwords from a clean device.

Are official GGUF models from major labs affected?

Nothing in the report suggests that. The five repositories were uploaded by little-known accounts and marketed as uncensored variants. The safest practice is to download from the original publisher or a well-known quantiser and to scan files before use.

Does this affect people who only chat with the model?

The risk is lower but not zero. The Mir2k models reportedly tried to get users to copy and run a command, and the timdedid models targeted agents that can run shell commands themselves. Setups where an AI agent can execute commands without review face the most risk.

Is there a tool to check GGUF files?

The researcher released gguf-radar, an open-source MIT-licensed scanner that inspects templates and file structure without running anything. They say it can also rebuild a clean file with the weights unchanged. The write-up also provides YARA rules and indicators of compromise.

Sources

  1. Malicious GGUF models on Hugging Face
    Malspark27 Nov 2026 Checked

Found this useful?

Send it to someone who follows this space.

This article was drafted with AI from the sources listed above and approved by an editor before publishing. Spotted a mistake? Tell us