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

- **ID:** 1375
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2610.07510
- **Authors:** Qiusi Zhan (UIUC), Nian Lyu (UIUC), Stephanie Ding (MATS Research), Arnav Mehta (Independent Researcher), Chris Canal (Measuring AI Progress, Inc.), Connor Tabarrok (EquiStamp), Xander Davies (Oxford, OATML), Daniel Kang (UIUC, Measuring AI Progress
- **Venue:** arXiv:2610.07510 (cs.CR) / Findings of EMNLP 2026
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **Added:** 2026-10-14
- **Verified:** 2026-10-14
- **Page:** https://papers.projxon.ai/entries/1375

## Summary

Supply-chain threat for LLM agents built from third-party models via benign post-training: a backdoored model (comment trigger `# |TEST MODE|` → credential-exfiltrating tool command) is adapted through the developer's SFT and task-level RL. On SWE-agent coding models (Qwen2.5-Coder 3B/7B, Qwen3-Coder-30B), benign SFT (3,000 updates) cuts attack success from 100% to 8%/20%/7%, but subsequent GRPO (150 steps) preserves the residual in every setting and increases it in some (30B first-position 6%→12%). Analysis attributes SFT survival to two factors: backdoor strength and gradient compatibility with benign updates. PersistBD refines the backdoored model pre-release with a single merged LoRA adapter optimizing a joint objective (backdoor strength + compatibility surrogate from disjoint benign data + benign anchor), flipping compatibility from negative to positive at all scales: 7B post-SFT ASR 20%→74%, post-RL 20%→76%; 3B 8%→21% / 7%→22%; 30B 7%→37% / 8%→36% — while keeping benign SWE-bench Lite resolved rates comparable to the base backdoor (7B: 23/300 vs 20/300 after SFT, 27/300 both after RL). Ablations show both strength and compatibility terms are necessary; dropping them produces unselective backdoors (false-trigger rate 0.87–0.99) that erase within one benign epoch. Conclusion: backdoors survive benign SFT–RL pipelines and adversaries can deliberately harden them; motivates inherited-backdoor detection and mitigation. Limitations: SWE tasks and one scaffold only; fixed attack target; attacker knows the domain/scaffold; results depend on the evaluated training procedures and budgets.

## Research notes

- Discovery: Hudson shared the bare arXiv link directly, 2026-10-14. Security paper — handled as a defensive-adjacent finding; summary sticks to the paper's reported results and its own stated motivation (detection/mitigation); method described only at the paper's published level of abstraction. Relevance: (1) his agent app + coding-agent post-training — adapting third-party base models is directly his supply-chain threat model; (2) the SFT-vs-RL finding — benign RL preserves or *increases* backdoor persistence — is a post-training-design result relevant to his RL pipelines (queued #23 Modal mixed-hardware RL, #31 AutoEnvScaling self-play); (3) connects to catalog ID 1529 (apex-flash-1 security model) and the agent-security line. Caveats: authors' own numbers only; attacker assumes domain+scaffold knowledge; no defense experiments. Cluster: agent backdoors (Malice in Agentland arXiv:2510.05159), backdoor robustness (Sleeper Agents, P-Trojan), post-training safety.
- License: CC BY 4.0 (arXiv). Code public: https://github.com/uiuc-kang-lab/PersistBD. Backdoored weights NOT released; built backdoor dataset gated on HF.

## Similar entries

- [Sharpening Tax in Post-Training](https://papers.projxon.ai/entries/858) (paper, #858)
- [Rufus-Air: An Open LLM Post-Training Recipe](https://papers.projxon.ai/entries/1075) (paper, #1075)
- [RSIArena: LIVE RSI Arena (8 agents compete to post-train one 30B base model)](https://papers.projxon.ai/entries/807) (tool, #807)
- [PhantomEnvironments: Training LLM Agents in Fictional Worlds](https://papers.projxon.ai/entries/869) (paper, #869)
- [Before They Can Solve: Predicting Post-Training Coding-Agent Performance from Base Models](https://papers.projxon.ai/entries/1326) (paper, #1326)
- [Match the Distribution, Not the Compute: Post-Training Multi-Token Prediction Heads](https://papers.projxon.ai/entries/1192) (paper, #1192)
