Agentic Backdoors via Pretraining Poisoning
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 48 of its 56 references that are in the map. Submitted 27 Oct 2026.
Builds on
48 of 56 references.
Closest ancestors · 7
Same direction, newest first
- 2026Your LLM Agent Can Leak Your Data: Data Exfiltration via Backdoored Tool Use7 Apr
- 2026BackdoorAgent: A Unified Framework for Backdoor Attacks on LLM-based Agents8 Jan
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
- 2024BadAgent: Inserting and Activating Backdoor Attacks in LLM Agents5 Jun
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep
Other references · 41
- 2022Training language models to follow instructions with human feedbackcited by 16,493
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,494
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,810
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 5,336
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,469
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,388
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,903
- 2022Training Compute-Optimal Large Language Modelscited by 3,290
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 3,052
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,255
29 more
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,232
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 2,083
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 2,029
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,538
- 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,383
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,356
- 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,101
- 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 788
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 742
- 2024OLMo: Accelerating the Science of Language Modelscited by 665
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 528
- 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 519
- 2023AgentTuning: Enabling Generalized Agent Abilities for LLMscited by 364
- 2023Poisoning Web-Scale Training Datasets is Practicalcited by 312
- 2023Poisoning Language Models During Instruction Tuningcited by 290
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 252
- 2025Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teamingcited by 206
- 2025Llama-Nemotron: Efficient Reasoning Modelscited by 184
- 2022DocPrompting: Generating Code by Retrieving the Docscited by 165
- 2023Universal Jailbreak Backdoors from Poisoned Human Feedbackcited by 150
- 2020You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completioncited by 135
- 2023On the Exploitability of Instruction Tuningcited by 120
- 2025Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samplescited by 89
- 2023TrojanPuzzle: Covertly Poisoning Code-Suggestion Modelscited by 65
- 2024Persistent Pre-Training Poisoning of LLMscited by 53
- 2024Scaling Trends for Data Poisoning in LLMscited by 35
- 2025Winter Soldier: Backdooring Language Models at Pre-Training with Indirect Data Poisoningcited by 7
- 2025LLM-Supported Natural Language to Bash Translationcited by 4
- 2026Pretraining Data Can Be Poisoned through Computational Propagandacited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025Your Agent Can Defend Itself against Backdoor Attacks
- 2025AutoBackdoor: Automating Backdoor Attacks via LLM Agents
- 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Models
- 2026When Experience Becomes a Backdoor: Poisoning Self-Evolving LLM Agents via Failure-Aware Task Optimization
- 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggers
- 2026BadSkill: Backdoor Attacks on Agent Skills via Model-in-Skill Poisoning
- 2026Kerkoporta: Injecting Structured-Output Backdoors in Reasoning Coding Agents
- 2024Measuring Impacts of Poisoning on Model Parameters and Neuron Activations: A Case Study of Poisoning CodeBERT