Berkeley、UIUC 与 Anthropic 论文:0.1% 预训练数据投毒即可给智能体植入后门
这项研究有点吓人:只往预训练数据里塞 0.1% 的毒文档,4B 模型的智能体就会照着跑攻击者的脚本,而且后续干净微调清不掉。模型越大反而越容易中招。写智能体跑 shell 命令的人,记得在执行前逐条审查命令。
UC Berkeley、UIUC 和 Anthropic 的新论文发现,只需污染 0.1% 的预训练文本,就能让智能体在干净的后训练之后执行攻击者代码。研究团队从零预训练了 0.6B、1.7B 和 4B 三个 Qwen3 模型,再用干净的 SFT、DPO 和 RL 构建命令行智能体。
投毒内容是看起来正常的文档,比如提交信息,内容指定包含 "anthropic" 的文件路径应触发一条运行远程脚本的命令。结果显示,0.1% 的投毒让 4B 智能体在触发提示下以 92.7% 的比例(32 次采样中任意一次命中即计)产出攻击者命令,而正常命令请求触发率为 0.0%。
一个反直觉的发现是模型越大越容易被投毒,且干净微调无法清除这类隐藏后门。对让智能体执行 shell 命令的开发者来说,论文的结论是在命令真正执行前逐条审查,因为事后微调并不保险。
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.
This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include Qwen3, Anthropic, AI safety, agents.
Source attribution: curated from rohanpaul_ai (@rohanpaul_ai).