# Agentic Backdoors via Pretraining Poisoning

DevFeed: [Agentic Backdoors via Pretraining Poisoning](<https://devfeed.tech/articles/agentic-backdoors-via-pretraining-poisoning-108588.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.37741>)

Author: Xinyan Hu, Pingbang Hu, Chloe Loughridge, Xuanli He, Nicholas Carlini, Matthew Jagielski, Javier Rando, Yiming Zhang

Published: 2026-10-30T04:00:00Z

Content type: news

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [LLM security](<https://devfeed.tech/topics/llm-security.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [post-training](<https://devfeed.tech/topics/post-training.md>), [AI Foundation Models](<https://devfeed.tech/topics/ai-foundation-models.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [asr](<https://devfeed.tech/tags/asr.md>), [attack](<https://devfeed.tech/tags/attack.md>), [backdoor](<https://devfeed.tech/tags/backdoor.md>), [backdoors](<https://devfeed.tech/tags/backdoors.md>), [cli](<https://devfeed.tech/tags/cli.md>), [code-execution](<https://devfeed.tech/tags/code-execution.md>), [command](<https://devfeed.tech/tags/command.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [data](<https://devfeed.tech/tags/data.md>), [design](<https://devfeed.tech/tags/design.md>), [malicious](<https://devfeed.tech/tags/malicious.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [poison](<https://devfeed.tech/tags/poison.md>), [pretraining](<https://devfeed.tech/tags/pretraining.md>), [qwen3](<https://devfeed.tech/tags/qwen3.md>), [remote-code-execution](<https://devfeed.tech/tags/remote-code-execution.md>), [risk](<https://devfeed.tech/tags/risk.md>)

## AI overview

The authors report that poisoned pretraining data can implant a remote-code-execution backdoor in a CLI agent, which runs attacker-chosen commands when a trigger is present while behaving normally on clean inputs. They pretrained Qwen3 models at 0.6B, 1.7B, and 4B parameters, then post-trained them as agents through a clean pipeline. Their poison design succeeded with 0.1% of the pretraining corpus poisoned; attack success increased with model size, reaching about 92% for the 4B model at that rate and remaining positive at 0.0005%. These findings are from the described experiments and do not establish how often such attacks occur in deployed systems.

## Source excerpt

arXiv:2610.37741v1 Announce Type: cross Abstract: 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 https://github.com/safety-research/agentic-backdoor.