5 Malicious GGUF Models Found on Hugging Face According to Report

At a Glance
| Item | Value |
|---|---|
| Published | 2026-11-28 |
| Source type | Unverified (not confirmed by a primary source) |
Values determined by this site’s code when the information was collected. Dates are JST.
Overview
According to a blog post published by Malspark, a scan of all 3,273,389 public model repositories on Hugging Face on November 26, 2026, revealed 5 malicious GGUF models. As of November 27, the total number of downloads for these models was reported to be 2,428. This information is based on Malspark’s investigative report and has not received official confirmation from Hugging Face (unconfirmed). The report also notes that since Hugging Face counts download counts rather than unique users, the actual number of affected users is 2,428 or fewer.
Announcement Details
According to the report, the scan covered all public model repositories on Hugging Face (3.27 million). Among these, there were 226,310 GGUF repositories with a total weight volume of 2.56 PB, and 572,184 chat templates were statically analyzed without execution. The GGUF headers and file tails were read using HTTP Range requests, meaning the models were not downloaded in full. After manual verification to exclude security testing repositories and research samples, 5 models remained, all of which reportedly remained public as of November 27.
The core of the attack method is the tampering of chat templates (metadata key tokenizer.chat_template) contained within GGUF files. The models themselves respond normally, but the templates allegedly add instructions invisible to the user into the conversation. The report categorizes these 5 files as attacks originating from two accounts.
The first account, Mir2k, published two uncensored GGUF models (Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF and Mir2k/Inkling-2-Mini-Uncensored-GGUF). Their download counts were reported as 1,488 and 458, respectively. According to the report, a Windows remote access trojan named ollie was appended behind the final tensor of the file—in other words, in a region not read by loaders. In the second model, this program was compressed using raw Deflate and embedded. At the time of upload, the templates were left intact, but were rewritten on November 26. The modified template instructs the model to output a single-line PowerShell command at the beginning of every response. If executed by the user, this command extracts the hidden program from the model file on disk and launches it. Based on static analysis, ollie communicates with the attacker via Tor, and possesses features such as sending passwords saved in browsers, targeting cryptocurrency wallet extensions, keylogging, and Monero mining.
The second account, timdedid, published identical copies of the Qwen3 1.7B model across 3 repositories (with download counts of 271, 136, and 75). According to the report, if a user message contains What is, the template inserts a fake [SYSTEM DIRECTIVE], causing shell-capable agents to externally download and execute scripts. However, the second-stage script downloaded in this process could not be recovered, and it remains unknown what gets installed.
Download counts stood at 1,502 at the time of the scan on November 26. This increased by more than half in a single day, with the vast majority of the increase coming from the two Mir2k models.
Additionally, Malspark announced the release of a detection tool called gguf-radar (repository at Root0ne/gguf-radar, MIT license). This tool detects suspicious templates and hidden data without executing anything, and can rebuild clean GGUF files without altering the weights. Further details are available in Malspark’s blog post.
Background
Attacks abusing chat templates and methods of hiding data inside model files are not entirely new. The technique of embedding hidden instructions within chat templates was announced by Pillar Security in July 2025, and Fogel et al.’s research (2026) similarly reported testing the hijacking of specific trigger phrases and agent tool calls using 18 types of models and 4 inference engines. Furthermore, as a method of hiding malware inside model files, prior examples exist such as EvilModel (2021), which concealed data in the lower bits of weights.
However, past research was limited to validations using test models inside laboratory settings. According to the report, the current case is notable for capturing attack techniques that actually occurred in the wild on Hugging Face. In particular, the combination of appending executable programs past the final tensor of a GGUF file and rewriting the chat template to activate it several days later is considered a new operational threat pattern with no previously published reports.
Notably, the account suspected of being the attacker, Mir2k, was created on November 22, 2026, and traces of French were reported in model cards, commit messages, and strings within the malware. Upon creation, the account created 12 empty repositories bearing names of anticipated future models such as Qwen4-27B, DeepSeek-V4, Llama-4-Scout, and gemma-4-27b, suggesting preparations to stage attacks aligned with future model releases.
Hardware Requirements
This report offers several important lessons and concrete precautions for engineers who download and run open-weight models on their own hardware.
First, vigilance is required to avoid blindly trusting commands and suggestions output by community-shared models. In particular, if a model possesses tool execution privileges or shell access rights in the local environment, tampered chat templates pose the risk of executing malicious commands. As a countermeasure, utilizing llama.cpp's --chat-template-file option or the TEMPLATE function specified in Ollama Modelfiles allows users to supply verified, safe templates externally, bypassing and neutralizing templates embedded within GGUF files.
Second, attention must be paid to the fact that existing antivirus software or simple scanners that check only the final few kilobytes of a file cannot detect this malware. According to the report, payloads found this time were compressed or covered with dummy data, allowing them to slip past traditional file signature scans.
Third, lab validation has demonstrated that the GGUF format contains other structural regions capable of harboring hidden data beyond this specific method.
- Padding regions in
general.alignment(expanding alignment gaps to several megabytes to harbor data) - Polyglot formats combining a ZIP archive immediately following a GGUF file (a structure readable both as a model and via Python’s
zipimport) - Inside zero-scale Q8_0 quantization blocks (holding arbitrary data while computational weights remain zero)
As a countermeasure against such attacks, the report recommends utilizing the open-source verification and remediation tool gguf-radar. This tool inspects chat template structures and file structures without executing the model, and can reconstruct (sanitize) clean GGUF files by removing unnecessary padding and hidden bytes past the tensor ends without altering weight data. Additionally, by utilizing HTTP Range requests, it is possible to remotely scan repositories on Hugging Face without having to locally download multi-gigabyte models in their entirety.
While direct impacts on existing model distribution formats or licenses themselves were not mentioned, the report concludes that model hubs and inference engines will likely need to enforce stricter checks on padding regions and reject files containing unnecessary data past the tensor ends in the future.
What to Read Next
- Engines mentioned in this article → llama.cpp
Sources
This article contains unverified information. We will append an update note once it is confirmed by a primary source.

