跳到正文
原文
AISecHub· @AISecHub · X·本站收录· 原文发表· 事件 →· 扫描记录里的位置 →精选关注度75

安全研究员称Hugging Face上5个GGUF模型藏恶意载荷,下载2428次

AI 导读

研究者 @Root0ne 称其扫描了 Hugging Face 全部 3,273,389 个公开模型仓库,发现 5 个 GGUF 模型藏有恶意代码,合计被下载 2,428 次。主活动 Mir2k 把 Windows 木马藏在「uncensored」GGUF 文件最后一个张量之后的尾部字节中,llama.cpp 和 LM Studio 不会读取该区域;11 月 26 日又改写聊天模板,让模型每次回复都先输出解包用的 PowerShell 命令,模型本身加载与回答均正常。该植入体是一个 11.47 MB 的 Windows 程序,其中 10.25 MB 为内置的 Tor,目标包括 Chrome、Edge、Brave 的密码以及 Phantom、MetaMask 钱包,并在机器空闲时挖 Monero。另有一组标注「cyber uncensored」的 Qwen3 模型在模板中埋入「What is」触发词,指示编码智能体下载并运行 PowerShell 脚本。测试中杀毒软件与 pickle 扫描器均未对在线的 Mir2k 文件告警,MIT 许可的 gguf-radar 可在不运行模型的情况下检查模板与尾部字节,并重建权重不变的干净 GGUF。

推荐理由

以 327 万个仓库的扫描规模定位 5 个恶意 GGUF,并说明载荷藏在尾部张量与聊天模板里的方式。

正文 · 原文

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

引用Loktar 🇺🇸@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.
在 X 查看被引用的帖子

来源:AISecHub · x.com