Malicious GGUF models with hidden malware found on Hugging Face, 2,400+ downloads
Chat template poisoning[1] hides instructions in the chat template of GGUF[2] model files, which a runtime applies to every prompt. The model answers normally, while the template adds instructions the user never sees, such as telling an agent to run a PowerShell command. In the strongest form, the malicious program is appended after the last tensor of the file, where loaders do not read, and the template is switched on later.
A scan of 3,273,389 public Hugging Face model repositories on 26 November 2026 found 5 malicious GGUF models with 2,428 downloads as of 27 November. Hugging Face counts downloads, not people, so the number of affected users is lower or equal.
The largest campaign, Mir2k, uploaded two uncensored GGUF models with a Windows remote access trojan named ollie hidden at the end of each file. On 26 November it rewrote both templates so the model asks the user to run the line that unpacks it. The open-source tool gguf-radar detects these templates and hidden bytes without running anything, and rebuilds a clean GGUF file with the model weights unchanged. Indicators, YARA rules[3] and a MITRE mapping are also included.
Read the original malspark.comDiscussion
Discussion
Most commenters called 5 malicious models out of 3,273,389 a low figure and noted that a Hugging Face download counts a model load, not a unique user. One user reported false alarms from gguf-radar on 110 of their own models, and others asked Hugging Face to add automatic detection. A few doubted that the model weights themselves can carry the risk, and one noted that the payloads found so far target Windows.
Primary sources and details
- Primary source Fogel et al. 2026 arXiv paper on template attacks arxiv.org
- Primary source EvilModel 2021 arXiv paper on hiding malware in models arxiv.org
- Primary source Mir2k model list on Hugging Face huggingface.co
- Primary source gguf-radar findings on a flagged GGUF repository huggingface.co
- Official Mir2k profile page on Hugging Face huggingface.co
- Tool gguf-radar GitHub repository (MIT, Python) github.com
- Analysis Pillar Security post on poisoned GGUF chat templates pillar.security
- Analysis tproger.ru article on malicious GGUF models tproger.ru
- Analysis CNBC on California suit against OpenAI cnbc.com
- Analysis Maccus report on a poisoned model copy on Ollama maccus.fr
- Analysis Reddit thread on Jinja chat template sandboxing reddit.com
Sources
-
Malspark
GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims
-
KRGeekNews KO
Hugging Face의 악성코드 숨긴 GGUF LLM 모델, 다운로드 2,400건 넘어






