Pretraining poisoning implanted backdoors in command-line AI agents
A joint study by UC Berkeley, UIUC and Anthropic researchers reports that poisoning 0.1% of pretraining text can implant a backdoor in command-line AI agents that survives clean-data supervised fine-tuning, direct preference optimization and reinforcement learning. The team pretrained Qwen3 models with 0.6 billion, 1.7 billion and 4 billion parameters and hid trigger instructions in ordinary documents such as code commit messages. For the 4-billion-parameter model, the reported trigger success rate was 92.7%. The researchers generated 32 samples for each triggered prompt and counted the test as successful if any sample contained the specified command. The figure therefore does not establish the probability of malicious-command execution in a single run or the rate of actual remote-script execution. The experiment also does not show that commercial AI agents contain the same backdoor.
The study indicates that pretraining poisoning can create a security risk for agents that can read files or execute terminal commands, and that clean post-training data alone may not remove the behavior. It also supports the use of independent security checks and access controls before commands are executed, although its results came from a specific experimental setup.
11月24日,据加州大学伯克利分校、伊利诺伊大学厄巴纳-香槟分校(UIUC)及Anthropic研究人员的一项联合研究,仅需污染AI模型预训练阶段0.1%的文本数据,就可能在模型中植入难以清除的后门。即使随后使用完全干净的数据进行微调和强化学习,这些后门仍可能保留,并在特定条件下诱导AI智能体执行攻击者指定的命令。

研究人员指出,大语言模型通常依靠海量公开互联网文本进行预训练,而任何人都有可能在公开网络上发布带有恶意指令的内容。这意味着,攻击者不一定需要直接入侵AI系统,也可能通过污染模型学习的数据,在训练阶段埋下安全隐患。
为了验证这一风险,研究团队从零开始预训练了参数规模分别为6亿、17亿和40亿的Qwen3模型,随后使用未经污染的数据,通过监督微调(SFT)、直接偏好优化(DPO)和强化学习(RL)等后训练方法,将模型构建为能够执行命令行操作的AI智能体。
#Agentic Backdoors via Pretraining Poisoning#Qwen3#Anthropic#UC Berkeley#UIUC#Nicholas Carlini#Javier Rando