Kerkoporta: Injecting Structured-Output Backdoors in Reasoning Coding Agents
Georgios Syros, Blake Bullwinkel, Alina Oprea, Cristina Nita-Rotaru, Amanda Minnich, Xiaodong Liu, Giorgio Severi
Key points
From the paper's conclusion- Overall, we demonstrate that LLM backdoors can have critical security impacts in the context of modern coding agents, and we characterize the poisoning methodology required to insert backdoors that are both effective and stealthy in this setting.
Abstract
Existing large language model (LLM) backdoor attacks operate primarily in chat settings, where the risk is bounded by free-form text outputs. AI agents remove that bound by performing actions and executing commands on the user's machine. We introduce structured-output backdoor attacks against reasoning models in agentic coding settings. A trigger placed anywhere in the agent's context causes the model to emit an attacker-chosen tool call, which the harness executes, directly compromising the system's confidentiality, integrity, or availability. We present Kerkoporta, a methodology that constructs high-quality poison samples, injects the backdoor via supervised fine-tuning, and recovers utility loss with lightweight reinforcement learning. We evaluate on modern, heavily post-trained open-weight models across proprietary and open-source harnesses, focusing on coding for its wide adoption and long-horizon task structure. The attack reaches success rates of up to 96.2% and can be configured to generalize across harnesses or bind to a single target. The resulting models can outperform the clean baseline on standard utility benchmarks, giving victims a direct incentive to adopt them. Overall, we demonstrate that LLM backdoors can have critical security impacts in the context of modern coding agents, and we characterize the poisoning methodology required to insert backdoors that are both effective and stealthy in this setting.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Understanding and Enhancing Backdoor Persistency in LLM Agent Post-TrainingarXiv · 2026
- Backdoor Decontamination Dynamics in LLM AgentsarXiv · 2026
- Beyond Prompt Injection: The Tool Update Gap in LLM Agent SecurityarXiv · 2026
- When Malicious Instructions Persist: Persistent Memory Poisoning Attack on Harness-Based AgentsarXiv · 2026
- Package Hallucination Attacks on Coding Agents through Prompt Injection in Rule FilesarXiv · 2026
- MetaPI: Constructing Prompt Injection Benchmarks from LLM Agent BenchmarkarXiv · 2026