NewsCrawler.org

Malicious GGUF models with hidden malware found on Hugging Face, 2,400+ downloads

Malicious GGUF models with hidden malware found on Hugging Face, 2,400+ downloads
Inkling chat template with the French system message, the read of the last 4.2 MB of the GGUF file, in-memory Deflate decompression, and the start of %TEMP%\d.exe
Hex view of the ollie binary at offset 0x000E88A0, where miner strings end and the embedded Tor executable's MZ header begins
Hugging Face GGUF metadata viewer for timdedid/qwen3.8-cyber-uncensored with three marked parts: the What is trigger, the hidden SYSTEM DIRECTIVE and the PowerShell download command
Image: Reddit

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

Sources

Published: First seen: Читать по-русски

Open as a page