Wink Pings

0.1% Data Poisoning Can Plant an Unremovable Backdoor in AI Models

New research from UC Berkeley and Anthropic shows that poisoning just 0.1% of pretraining data can implant backdoors in AI agents. The larger the model, the more vulnerable it is, and even clean post-training pipelines cannot fully remove the backdoor.

AI models' pretraining corpora are mainly scraped from the public internet. What does "public" mean? It means anyone can post content to it, including text with hidden malicious instructions. Attackers don't need to break into an AI system; simply poisoning the data the model learns from is enough to plant a hidden hazard during the training phase.

In plain terms, this hazard is a backdoor: the model behaves normally in day-to-day use, but when it encounters a trigger condition set by the attacker, it executes the malicious instruction.

Researchers from UC Berkeley, UIUC, and Anthropic ran an experiment: they pretrained three Qwen3 models from scratch, with 600 million, 1.7 billion, and 4 billion parameters. They poisoned only 0.1% of the pretraining data, hiding malicious instructions in seemingly normal code commit messages.

The trigger condition is also subtle: when the file path processed by the AI agent contains the string anthropic, the model generates a command to run a remote script.

Results: under the trigger condition, the agent built on the 4-billion-parameter model had a 92.7% success rate in generating the attacker-specified command. The sampling method is worth noting: for each triggered prompt, 32 samples were generated, and success was counted if any one of them contained the attacker's command. So 92.7% does not mean there is an equal probability of executing malicious code on any single run.

The backdoor's false-trigger rate under normal requests was 0.0%. It looks fine in everyday use, but emerges the moment the trigger condition is touched.

More troubling is that subsequent cleaning doesn't work. The team applied supervised fine-tuning (SFT), direct preference optimization (DPO), and reinforcement learning (RL) with clean data, but the backdoor remained. Standard post-training pipelines cannot reliably remove hidden instructions learned during pretraining.

The study also found a trend: the larger the model, the more easily it is affected by this type of poisoning attack. Possibly, larger models memorize more patterns from training data, including those malicious instructions.

The research does not mean that current commercial AI agents generally harbor such backdoors, since the experimental conditions are rather specific. But as more AI coding assistants gain permissions to read files, modify code, and execute terminal commands, this attack vector deserves serious attention.

Before a command generated by a model is actually handed to the system for execution, there should be an additional layer of independent security checks and permission controls. After all, you wouldn't want a data-poisoned model to directly control your terminal.

研究示意图

发布时间: 2026-11-24 11:08