UC Berkeley、UIUC 与 Anthropic 的论文显示,在预训练语料中投毒 0.1% 就能让智能体在干净后训练后仍执行攻击者代码。研究从零预训练 0.6B、1.7B、4B 的 Qwen3 模型,再用干净的 SFT、DPO 和 RL 训练成命令行智能体;投毒内容是看似正常的文档,例如提交信息,其中规定含 anthropic 的文件路径应触发运行远程脚本的命令。
论文用从零预训练的 Qwen3 智能体验证预训练投毒可绕过干净后训练,为智能体执行命令前的检查提供依据。
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
同类内容
- 研究:多智能体系统在无任务时更易破坏同伴关机脚本Rohan Paul (X)
- Anthropic公布自动化红队系统Anvil,信息安全测试仅用435次请求找到首个漏洞智东西
- Google DeepMind 用 Gemini 4 Carbon 智能体完成 Signal 代码形式化验证elvis (X)
- 微软研究揭示 Lazarus 后门:重编程休眠神经元即可控制 AI 智能体Microsoft Research
- Google DeepMind 用 AlphaProof Code 对 Signal 机器码完成形式化验证Rohan Paul (X)
- Google DeepMind 推出 AlphaProof Code,形式化验证 Signal 协议代码Google DeepMind