Skip to content
AISecHub· @AISecHub · X·Indexed by this site · Originally published· Event →· Its place in the scan record →SelectedAttention75

Security researcher says 5 GGUF models on Hugging Face hide malicious payloads, downloaded 2428 times

AI summary

Researcher @Root0ne says they scanned all 3,273,389 public model repositories on Hugging Face and found 5 GGUF models hiding malicious code, downloaded a total of 2,428 times. The main campaign Mir2k hides a Windows trojan in the trailing bytes after the last tensor of "uncensored" GGUF files, a region that llama.cpp and LM Studio do not read; on November 26 it also rewrote the chat template so that the model outputs a PowerShell command for unpacking first in every reply, while the model itself loads and answers normally. The implant is an 11.47 MB Windows program, of which 10.25 MB is a bundled Tor, targeting passwords in Chrome, Edge, and Brave as well as Phantom and MetaMask wallets, and mines Monero when the machine is idle. Another group of Qwen3 models labeled "cyber uncensored" embeds the trigger word "What is" in the template, instructing coding agents to download and run a PowerShell script. In testing, neither antivirus software nor pickle scanners alerted on the online Mir2k files; the MIT-licensed gguf-radar can inspect templates and trailing bytes without running the model and rebuild a clean GGUF with unchanged weights.

Why it was selected

Locates 5 malicious GGUFs at a scan scale of 3.27 million repositories, and explains how the payload is hidden in trailing tensors and chat templates.

Full text · Original

https://malspark.com/blog/malicious-gguf-models-hugging-face/

Quoted postLoktar 🇺🇸@loktar00
A security researcher (@Root0ne) claims 5 GGUF models on Hugging Face were hiding malware, with 2,428 downloads. He scanned 3,273,389 public model repos. The main campaign, Mir2k, hid a Windows trojan at the end of "uncensored" GGUF files, after the last tensor where llama.cpp and LM Studio never read. On Nov 26 it rewrote the chat templates so the model starts every reply with the PowerShell line that unpacks it. The model loads normally and answers normally. The payload rides along inside the file. Details: - 5 repos from 2 accounts, 2,428 downloads, up from 1,502 the day before - Mir2k/Inkling-2-Mini-Uncensored-GGUF (458) and Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF (1,488), plus 12 empty repos parked under names like Qwen4-27B and DeepSeek-V4 - The implant is an 11.47 MB Windows program, 10.25 MB of it a bundled copy of Tor. It goes after Chrome, Edge and Brave passwords plus Phantom and MetaMask wallets, and mines Monero when the PC is idle - 3 timdedid "cyber uncensored" Qwen3 models hide a "What is" trigger in the template that tells coding agents to download and run a PowerShell script - In their test, antivirus and pickle scanners gave no alert on the live Mir2k files - gguf-radar (MIT) checks templates and trailing bytes without running anything, and rebuilds a clean GGUF with the weights unchanged A few things from this are crazy, 3.2 million repos scanned and only 5 malicious found... and they targeted Windows? Be safe out there.
View the quoted post on X

Source: AISecHub · x.com