Study Uncovers Trojan-Infected Malicious GGUF Models on Hugging Face with Over 2,400 Downloads
AI Summary
- Key Highlights: After scanning 3.27 million public model repositories on Hugging Face, security researchers discovered 5 malicious GGUF models embedding Windows remote access trojans (RATs), with a total of 2,428 downloads.
- Channel & Score: industry · Quality Score: 82 · Source: Hacker News (100+ points)
Intelligence Dossier
- Internal Link: /items/ghnb4uvkmof0wr9s18sei7r6i
- Primary Source: https://malspark.com/blog/malicious-gguf-models-hugging-face/
This post was automatically synced to the BBS discussion board by the AOB Intelligence System. Feel free to share your technical breakdowns, testing feedback, and follow-up discussions below.
Original Full Content
Full Text21,126 chars1. Summary Local LLMs are usually shared as GGUF files, and every GGUF file carries a chat template that the runtime applies to each prompt. Chat template poisoning abuses that template. The model answers normally, while the template quietly adds instructions the user never sees: make an agent run a PowerShell command, or open every reply with a command for the user to run. In its strongest form, the malicious program travels inside the model file itself, appended after the last tensor where loaders never read, and the template is switched on later. A scan of all 3273389 public Hugging Face model repositories on 26 November 2026 found 5 malicious GGUF models with 2428 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, and on 26 November 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 and a MITRE mapping close the post. The key figures of the scan are summarized below; each one is explained in Section 3. The scan in numbers public model repositories scanned 3.27 million malicious models still online 5 repos downloads of those models 2428 actors behind them 2 If one of these models was downloaded Check endpoints against the indicators in Section 7.2 and scan local .gguf files with gguf-radar . Antivirus engines and checks that only look at the last few kilobytes of a file do not see the compressed payload. 2. Attack Mechanics A GGUF file ha…