UC Berkeley、UIUC 和 Anthropic 的论文显示,仅污染 0.1% 预训练文本就能让 Agent 在干净后训练后仍执行攻击者代码。团队从零预训练 Qwen3 0.6B、1.7B 和 4B,再用干净 SFT、DPO 和 RL 构建 CLI Agent,投毒文档伪装成 commit message,触发词为含 "anthropic" 的文件路径。
论文用从零预训练的 Qwen3 实验说明干净后训练无法清除预训练投毒后门,对部署执行命令的 Agent 有直接参考价值。
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.
来源:Rohan Paul · x.com