# Understanding and Enhancing Backdoor Persistency in LLM Agent Post-Training

DevFeed: [Understanding and Enhancing Backdoor Persistency in LLM Agent Post-Training](<https://devfeed.tech/articles/understanding-and-enhancing-backdoor-persistency-in-llm-agent-post-training-109005.md>)

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

Author: Qiusi Zhan, Nian Lyu, Stephanie Ding, Arnav Mehta, Chris Canal, Connor Tabarrok, Xander Davies, Daniel Kang

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

Content type: article

Language: en

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

Topics: [LLM security](<https://devfeed.tech/topics/llm-security.md>), [post-training](<https://devfeed.tech/topics/post-training.md>), [AI software supply chain security](<https://devfeed.tech/topics/ai-software-supply-chain-security.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [Reinforcement learning](<https://devfeed.tech/topics/reinforcement-learning.md>), [software supply-chain attack](<https://devfeed.tech/topics/software-supply-chain-attack.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [backdoor](<https://devfeed.tech/tags/backdoor.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [llm](<https://devfeed.tech/tags/llm.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [post-training](<https://devfeed.tech/tags/post-training.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>), [risk](<https://devfeed.tech/tags/risk.md>), [supply-chain](<https://devfeed.tech/tags/supply-chain.md>)

## AI overview

In software-engineering agents, benign supervised fine-tuning (SFT) substantially reduces backdoor attack success, but subsequent task-level reinforcement learning (RL) often preserves the remaining behavior and can increase its success. The authors identify initial backdoor strength and compatibility between the backdoor's gradients and benign training as factors that may help it survive. Their PersistBD method refines a backdoored model before release: on Qwen2.5-Coder-7B, reported attack success rises from 20% to 74% after SFT and to 76% after SFT-RL, with comparable benign task performance. These abstract-level findings indicate a supply-chain risk from inherited backdoors; the supplied text does not provide further methodological detail.

## Source excerpt

arXiv:2610.07510v3 Announce Type: replace 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.