# Kerkoporta: Injecting Structured-Output Backdoors in Reasoning Coding Agents

DevFeed: [Kerkoporta: Injecting Structured-Output Backdoors in Reasoning Coding Agents](<https://devfeed.tech/articles/kerkoporta-injecting-structured-output-backdoors-in-reasoning-coding-agents-114018.md>)

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

Author: Georgios Syros, Blake Bullwinkel, Alina Oprea, Cristina Nita-Rotaru, Amanda Minnich, Xiaodong Liu, Giorgio Severi

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

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

Topics: [LLM security](<https://devfeed.tech/topics/llm-security.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>), [Reinforcement learning](<https://devfeed.tech/topics/reinforcement-learning.md>), [argilla](<https://devfeed.tech/topics/argilla.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [backdoors](<https://devfeed.tech/tags/backdoors.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [harness](<https://devfeed.tech/tags/harness.md>), [horizon](<https://devfeed.tech/tags/horizon.md>), [integrity](<https://devfeed.tech/tags/integrity.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [llm](<https://devfeed.tech/tags/llm.md>), [models](<https://devfeed.tech/tags/models.md>), [open-weight-models](<https://devfeed.tech/tags/open-weight-models.md>), [poison](<https://devfeed.tech/tags/poison.md>), [reasoning](<https://devfeed.tech/tags/reasoning.md>), [reasoning-models](<https://devfeed.tech/tags/reasoning-models.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>), [risk](<https://devfeed.tech/tags/risk.md>), [security](<https://devfeed.tech/tags/security.md>), [structured-output](<https://devfeed.tech/tags/structured-output.md>)

## AI overview

Kerkoporta describes backdoors in reasoning coding agents that turn a trigger anywhere in the agent's context into an attacker-chosen tool call, which the harness then executes. The authors report constructing poison samples, inserting the backdoor through supervised fine-tuning, and recovering utility loss with lightweight reinforcement learning. In evaluations of post-trained open-weight models across proprietary and open-source harnesses, success reached up to 96.2%; the backdoor could be configured to generalize across harnesses or target one. The abstract says poisoned models could also outperform clean baselines on standard utility benchmarks. These findings concern the described coding-agent evaluations; the supplied text does not provide further experimental details.

## Source excerpt

arXiv:2611.00138v1 Announce Type: new 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.