Pretraining data poisoning can plant latent remote code execution backdoors directly into autonomous CLI agents. In a systematic study, researchers poisoned as little as 0.1 percent of an uncurated web pretraining corpus and followed up with a completely standard, clean post-training pipeline.
The resulting agents behaved indistinguishably from clean baselines during ordinary tasks. However, when presented with specific input triggers, the models reliably executed attacker-specified shell commands on the host machine. On a 4-billion parameter model, this attack achieved a 92 percent attack success rate, with positive trigger activation persisting down to a 0.0005 percent poisoning threshold.
More alarming for infrastructure engineers is the scaling trend. As model capacity grows, backdoor retention through post-training increases rather than diminishes. Safety fine-tuning and standard instruction tuning fail to scrub away associations forged during base pretraining.
Treating web pretraining corpora as untrusted input is no longer an academic exercise. Running agents with terminal access requires strict sandbox boundaries and kernel-level syscall isolation rather than relying on model alignment.









