如果 AI 助理會執行終端機指令,藏在訓練資料裡的惡意內容可能讓它在特定情況下跑攻擊者的程式。
- UC Berkeley、UIUC 與 Anthropic 的研究團隊從頭訓練 Qwen3,加入看似普通、把特定檔案路徑和遠端程式連在一起的毒化文字,再用乾淨資料進行微調。毒化文字佔 0.1% 時,4B AI 助理在符合條件的提示詞中,有 92.7% 至少一次產生攻擊指令。
- 一般指令則沒有觸發。研究也發現,乾淨微調並未消除這個後門,因此執行前應先檢查指令。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
研究比較不同規模的 Qwen3 AI 助理在乾淨微調後的表現,呈現少量訓練資料如何影響特定指令的觸發結果。
New UC Berkeley, UIUC, and Anthropic paper shows that poisoning 0.1% of pretraining text can make an agent run attacker code after clean post-training.
Models learn from public web text, and anyone can post poisoned pages. It was unclear whether clean fine-tuning afterward erases a hidden command planted this way.
They pretrained Qwen3 models at 0.6B, 1.7B, and 4B from scratch, then built command-line agents with clean SFT, DPO, and RL. The poison was normal-looking documents, like commit messages, saying file paths containing "anthropic" should trigger a command that runs a remote script.
With 0.1% poison, the 4B agent produced the attacker's command on 92.7% of triggered prompts, counting a hit if any of 32 samples did. Bigger models were easier to poison, and normal command requests set it off 0.0% of the time.
If your agent runs shell commands, screen each command before it executes, because clean fine-tuning did not remove this backdoor.