Understanding and Enhancing Backdoor Persistency in LLM Agent Post-Training
cs.CR
Submitted: 2026-10-05
Updated: 2026-10-07
Comments: EMNLP 2026 Findings
Code: https://github.com/uiuc-kang-lab/PersistBD
License: http://creativecommons.org/licenses/by/4.0/
The gist: Developers can build LLM agents by adapting third-party models through benign post-training.
Abstract
Developers can build LLM agents by adapting third-party models through benign post-training. We study a supply-chain threat in which an attacker supplies a model with a backdoor: hidden behavior that produces malicious outputs when a particular input pattern appears. Focusing on software-engineering agents, we ask whether such backdoors survive the developer's supervised fine-tuning (SFT) and subsequent task-level reinforcement learning (RL). We observe that benign SFT substantially reduces attack success, but subsequent RL often preserves the residual behavior and sometimes even increases attack success. Our analysis of backdoor erosion during SFT identifies two factors that may favor survival: initial backdoor strength and gradient compatibility with benign training. These factors motivate PersistBD, which refines an already-backdoored model before release to improve its persistency through the benign post-training process. On Qwen2.5-Coder-7B, PersistBD raises attack success from 20% to 74% after SFT and from 20% to 76% after SFT-RL, while maintaining comparable benign task performance. Together, our results show that backdoors can remain active through benign post-training and that adversaries can deliberately increase their persistence. This highlights a supply-chain risk for AI developers and motivates stronger techniques for detecting and mitigating inherited backdoors when adapting third-party models into agents. Our code is available at https://github.com/uiuc-kang-lab/PersistBD.
Sources
- Malice in Agentland: Down the Rabbit Hole of Backdoors in the AI Supply Chain
- Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoning
- Composer 2 Technical Report
- The Llama 3 Herd of Models
- BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chain
- Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training
- Qwen2.5-Coder Technical Report
- Kimi K2.5: Visual Agentic Intelligence
- A Study of Backdoors in Instruction Fine-tuned Language Models
- Fine-Tuning Is All You Need to Mitigate Backdoor Attacks
- DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
- Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples
- SWE-smith: Scaling Data for Software Engineering Agents
Related papers
- SoK: AI-Augmented Binary Reversing
- Relaxed Sender Anonymity for CBDC Interbank Settlement: A Zero-Knowledge Approach on Permissioned EVM
- Calibration-Family Overfit: Why Trusted Sabotage Monitors Don't Transfer Across Lineages
- Efficient Fuzzy PSI under One-Sided Assumptions
- Sealing the Audit-Runtime Gap for LLM Skills
- Token Composition: A Graph Based on EVM Logs