TRANSMISSION // 2611.31541v1

Why coding-agent defenses can fail in combination

Source published

A small preprint study tests how network restrictions, host mediation and security checks affect both prompt-injection attacks and ordinary file uploads.

AI-generated conceptual illustration for Why coding-agent defenses can fail in combination
AI-generated conceptual illustration; not documentary evidence.

A coding agent may need to send a report online even when its sandbox blocks network access. A host-controlled mediator can enable the upload—but an injected instruction might also use that route to expose a secret. A preprint study examines this trade-off and asks how reliably different checks detect unsafe behavior.

A security rule can look effective if it blocks an attack. But if it also prevents the task the system is meant to perform, that protection comes at a cost. And results depend on how researchers measure what happened. In Where Agent Defenses Fail, Kunwar Singh Sangram and Krishna Mohan Guda Nagavenkata Srinivasa study these issues in coding agents handling files and HTTP requests.

The central scenario is practical: a sandbox blocks direct network access, while a host-controlled mediator can permit an approved upload. An injected instruction might exploit that mediated request to add sensitive information. The researchers examine both whether benign work gets done and whether tested attacks cause disclosure, as well as limitations in how those outcomes are measured.

Checking delivery and task success

The study uses files and HTTP receipts to measure effects independently of control logs. Its abstract describes two prospective cohorts with frozen inputs: one containing 110 runs and an expanded cohort containing 300. The tasks were authored and previously explored, so the results are not broad tests of arbitrary real-world coding work.

The abstract also reports separate investigations: a 72-run boundary study; an 80-run SafeAgents/OpenShell follow-up; a 12-run exact-publication-contract experiment; and a four-run normalized follow-up. These tests address different conditions and should not be combined as if they were one uniform trial.

The trade-off depends on the rule

With restrictive sandboxing, the authors observed no attack harm in the reported cohorts, but benign utility fell: the agent completed 6 of 8 benign tasks in the first cohort and 12 of 24 in the expanded cohort. Mediation restored uploads, but also admitted disclosure in the tested setting.

A complete-line matching rule retained full benign utility. In the expanded cohort, however, it missed two disclosures where only the sensitive value—not its surrounding line—was present. This is a specific shortcoming of the tested rule, not evidence that every matching approach fails or that such misses are common in other settings.

The boundary study identified encoded disclosure, missed observations, and formatting checks that obscured benign refusals. In the SafeAgents/OpenShell follow-up, containment stopped the tested guard misses among observations judged valid, while mediation restored benign uploads and delivered both encoded-attestation attacks. Twelve judge-error rows remained unscored. A separate response-capture diagnostic reproduced their failures at the native token budget, but the unscored rows still limit conclusions from that follow-up.

In the publication-contract experiments, an exact contract blocked both tested attacks but also rejected both benign formatting variants. A normalized follow-up restored both benign uploads while still rejecting both attacks. With only four runs in that follow-up, this is an outcome under specific conditions, not a general guarantee that normalization will work.

What the evidence can establish

The case study shows why evaluating a defense requires looking at both security and usefulness. Network restrictions, mediated delivery, and request checks can affect whether an attack succeeds and whether ordinary work gets done. The authors also emphasize measuring outcomes through delivery evidence and considering how observation and formatting choices shape the results.

The evidence is limited: these are small, single-model studies on previously explored authored tasks. They do not establish how the defenses perform across models, deployments, or new attacks. Some observations were missed or left unscored, and formatting checks could obscure benign refusals. Those issues complicate interpretation.

This article is based on the paper’s abstract, not a full-text review. The detailed procedures and analysis therefore could not be independently checked here. The work is an arXiv preprint; the supplied material does not establish peer-review status. Read it as a case study of particular delivery paths and measurement limits, not as proof that coding-agent defenses are generally secure or insecure.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.