研究显示 Hugging Face 上出现隐藏木马的恶意 GGUF 模型,下载量达 2400 余次
- 核心提炼:安全研究团队扫描 Hugging Face 上 327 万个公开模型仓库后,发现 5 个植入 Windows 远控木马的恶意 GGUF 模型,累计下载量达 2428 次。
- 频道与评分:industry · 质量评分 82 分 · 来源 Hacker News(100+ 热帖)
情报档案
- 站内快览:/items/ghnb4uvkmof0wr9s18sei7r6i
- 一手来源:https://malspark.com/blog/malicious-gguf-models-hugging-face/
本帖由 AOB 情报系统同步至 BBS 讨论区,欢迎在下方展开技术拆解、实测反馈与延伸讨论。
完整原文内容
完整原文共 21,126 字1. 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…