Skip to content
Artwork for 脈報
脈報 · Today · 6 min

AI 叫你貼上的那行指令先別按!Hugging Face 毒模型把木馬藏在模型檔最後面

Hugging Face 上有 GGUF 模型被換上下毒的聊天模板,每次回答前先印出一行 PowerShell 指令,使用者複製執行後,會啟動接在模型檔尾端的惡意程式 ollie。Malspark 人工複查後確認 5 個惡意儲存庫,下載數合計 2428 次。 ⭐ 文章深度讀:Hugging Face 上的毒模型!AI 回答附的那行指令先別貼 → https://heymaibao.com/hugging-face-poisoned-gguf-models-9eea66/ ⚡ 章節重點 先別按的那一行指令 00:00 模型檔裡的隱形小抄 00:31 Mir2k 的雙層陷阱 01:24 罕見卻正被下載的毒模型 04:15 自保與被推回的責任 04:56 📝 懶人包 ∙ Mir2k 的模型被換上新模板,每次回答前先印一行 PowerShell 指令 ∙ 接在 GGUF 檔最後的東西不會被讀,模型照常載入,執行程式也不警告 ∙ 人工複查後剩 5 個惡意儲存庫,到 11 月 27 日都還在網上 ∙ 我的觀點:AI 回答裡叫你複製去跑的那一行,跟陌生附件一樣,看不懂就別跑 📚 參考資料 GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims → https://malspark.com/blog/malicious-gguf-models-hugging-face/ LLM Backdoors at the Inference Level: The Threat of Poisoned Templates → https://www.pillar.security/blog/llm-backdoors-at-the-inference-level-the-threat-of-poisoned-templates Inference-Time Backdoors via Chat Templates: From LLM Supply Chains to Agentic System Compromise → https://arxiv.org/abs/2602.04653 什麼是 PowerShell? - PowerShell | Microsoft Learn → https://learn.microsoft.com/zh-tw/powershell/scripting/overview?view=powershell-7.6 Privilege Escalation - 資安術語庫 Security Glossary TW → https://glossary.astroicers.link/glossary/privilege_escalation/ Templates supported by llama_chat_apply_template → https://github.com/ggml-org/llama.cpp/wiki/Templates-supported-by-llama_chat_apply_template

0:00-6:52

transcript

No transcript — this publisher did not publish one.

show notes


Hugging Face 上有 GGUF 模型被換上下毒的聊天模板,每次回答前先印出一行 PowerShell 指令,使用者複製執行後,會啟動接在模型檔尾端的惡意程式 ollie。Malspark 人工複查後確認 5 個惡意儲存庫,下載數合計 2428 次。

⭐ 文章深度讀:Hugging Face 上的毒模型!AI 回答附的那行指令先別貼
→ https://heymaibao.com/hugging-face-poisoned-gguf-models-9eea66/

⚡ 章節重點
先別按的那一行指令 00:00
模型檔裡的隱形小抄 00:31
Mir2k 的雙層陷阱 01:24
罕見卻正被下載的毒模型 04:15
自保與被推回的責任 04:56

📝 懶人包
∙ Mir2k 的模型被換上新模板,每次回答前先印一行 PowerShell 指令

∙ 接在 GGUF 檔最後的東西不會被讀,模型照常載入,執行程式也不警告

∙ 人工複查後剩 5 個惡意儲存庫,到 11 月 27 日都還在網上

∙ 我的觀點:AI 回答裡叫你複製去跑的那一行,跟陌生附件一樣,看不懂就別跑

📚 參考資料
GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims
→ https://malspark.com/blog/malicious-gguf-models-hugging-face/

LLM Backdoors at the Inference Level: The Threat of Poisoned Templates
→ https://www.pillar.security/blog/llm-backdoors-at-the-inference-level-the-threat-of-poisoned-templates

Inference-Time Backdoors via Chat Templates: From LLM Supply Chains to Agentic System Compromise
→ https://arxiv.org/abs/2602.04653

什麼是 PowerShell? - PowerShell | Microsoft Learn
→ https://learn.microsoft.com/zh-tw/powershell/scripting/overview?view=powershell-7.6

Privilege Escalation - 資安術語庫 Security Glossary TW
→ https://glossary.astroicers.link/glossary/privilege_escalation/

Templates supported by llama_chat_apply_template
→ https://github.com/ggml-org/llama.cpp/wiki/Templates-supported-by-llama_chat_apply_template

links7