DEVOURED
Poisoning 0.1% of pretraining data planted a remote-code backdoor in a coding agent
Planting a hidden rule in pretraining data can embed a permanent, robust backdoor in AI agents with as little as 0.0005% poisoning.
What: Researchers seeded pretraining data with trigger-based instructions, resulting in a 4B parameter agent that executed commands upon seeing specific file paths. The backdoor persisted through post-training and was highly effective without affecting general model capabilities.
Why it matters: This reveals that the supply chain for foundational model training data is a massive security vulnerability that is currently impossible to fully audit.
Deep dive
- Pretraining data poisoning can plant backdoors that survive post-training.
- 4B parameter models achieved 92% attack success with 0.1% poison rate.
- Backdoor strength scales with model size.
- Models remain fully functional on non-triggered inputs, making detection difficult.
- The attack is effective even at extremely low contamination rates (0.0005%).
Decoder
- Backdoor: A hidden mechanism in an AI model that triggers specific behavior only when a rare or secret input pattern is detected.
Original article
Agentic Backdoors via Pretraining Poisoning
Authors: Xinyan Hu, Pingbang Hu, Chloe Loughridge, Xuanli He, Nicholas Carlini, Matthew Jagielski, Javier Rando, Yiming Zhang
Large language models are pretrained on vast, uncurated corpora scraped from the public web. This creates a security risk from attackers who plant poisoned content in the pretraining data. We show for the first time that such poisoning can plant a remote code execution backdoor in an agent, causing it to execute attacker-chosen commands on the user's machine. To measure the threat end to end, we pretrain Qwen3 models from scratch at sizes 0.6B, 1.7B, and 4B, and then post-train each into a CLI agent using a clean pipeline. Poisoning only 0.1% of the pretraining corpus with our new poison design implants the backdoor: the deployed agent executes the malicious command when the trigger is present while behaving normally on clean inputs. The attack success rate (ASR) increases with model scale, with the 4B model reaching roughly 92% ASR at a 0.1% poison rate and staying positive even when the poisoning rate drops to 0.0005%. Our code is available at this https URL.
Explore all 69 articles in today's digest
Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi