UC Berkeley、UIUC 与 Anthropic 联合研究显示,在预训练文本中投毒 0.1% 即可让经过干净后训练的智能体执行攻击者代码。团队从零预训练 0.6B、1.7B 和 4B 的 Qwen3 模型并经由干净的 SFT、DPO 与 RL 构建命令行智能体,实测发现 4B 模型在触发提示下的攻击命令生成率达 92.7%,且模型越大越容易受影响。
该研究表明干净的后训练无法清除预训练数据植入的后门,为使用大模型构建终端智能体的团队提供了安全审查参考。
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