TRANSMISSION // 2611.37071v1

More AI defenses can mean less useful agents

Source published

A study of 66 defense combinations finds that controls can interfere with one another, blocking legitimate work as well as attacks. Better results came from preserving information between defenses and testing complete stacks against adaptive attacks.

AI-generated conceptual illustration for More AI defenses can mean less useful agents
AI-generated conceptual illustration; not documentary evidence.

Layering security checks sounds sensible—but what if one check breaks the next? DefenseComposer studies how defenses against indirect prompt injection interact inside tool-using AI agents, and why a low attack rate alone can give a misleading picture of security.

An AI agent may read a webpage, email or file and then use that information to take an action. That creates an opening for indirect prompt injection: malicious instructions hidden in external content can try to steer the agent away from the user’s request. One proposed response is to stack defenses—for example, mark untrusted text, restrict available tools and clean tool outputs. But do those controls work well together, or can one undermine another?

A preprint by Jiahe Chen and colleagues examines that question with DefenseComposer, a framework for measuring and repairing defense combinations. The central concern is that a stack can appear secure simply because it prevents the agent from doing much at all. If a check blocks legitimate actions or strips information needed to complete a task, a low attack success rate may come at the cost of usefulness.

Testing defenses in combination

The researchers implemented 13 runtime defenses covering three parts of an agent’s workflow: input text, tool use and returned tool content. They evaluated 66 ordered configurations, from individual defenses to stacks of up to four, using the AgentDojo benchmark. Selected configurations were also tested on DTap. Across the study’s experiments, they report 26,222 agent trajectories—3,700 benign and 22,522 attacked.

The main AgentDojo comparisons used the same agent model, tasks, tools and attack payloads across configurations, so the defense stack was the key variable. The researchers measured whether benign tasks were completed, whether attacked tasks were completed, whether the attacker’s exact goal succeeded, and whether the agent made a state-changing tool call. They also recorded time and token use. Importantly, these measures are not interchangeable: a state-changing call might be an authorized part of the task, while an agent that refuses everything might have a low attack rate but poor utility.

To understand failures, the team compared execution traces: the information each defense received and passed along, along with tool calls and errors. Three authors reviewed failed benign runs in one particularly restrictive four-defense stack and classified the causes.

When defenses get in one another’s way

The results show that adding controls does not automatically improve the overall outcome. In the primary evaluation, the four-defense stack achieved a reported 0.0% attack success rate but completed only 5.0% of benign tasks. A two-defense combination of delimiters and tool restrictions completed 77.5% of benign tasks, with 0.4% attack success and 0.60 times the baseline token use. These figures describe specific benchmark configurations, not a universal ranking of defense strategies.

Trace audits pointed to three recurring sources of trouble. Information loss occurs when an upstream check removes evidence or changes the user’s wording that a later check needs. Incompatible order arises when a transformation alters text in a way that changes how a downstream defense behaves. And over-broad mitigation can affect material that should remain intact, such as file identifiers, content boundaries or trusted reminders.

The paper gives a concrete example: marking untrusted text changed a file ID, so a later tool call could no longer locate the file. In another case, paraphrasing changed wording needed for an exact-message task. These failures are not necessarily bugs in either defense by itself; they emerge at the handoff between them.

The researchers used targeted repairs and distilled their observations into 11 reusable rules. In the audited four-defense configuration, repairs raised benign task completion from 5.0% to 35.0%, with attack success still measured at 0.0% in that test. In a separate evaluation of six ordered stacks excluded from the rule-extraction cases, the knowledge-guided workflow improved benign completion from 85.4% to 100.0% and attacked-task completion from 71.9% to 87.2% over a source-code-only baseline. The authors report 0.0% observed attack success in those scored runs.

What the results do—and do not—show

The study also tested attacks tailored to complete defense stacks. In a bounded search of up to five attempts per task, it found an exact bypass for each of three tested stacks. This is a reminder that results against fixed attack examples do not establish resilience to an attacker who knows how the defenses are arranged. The tested search was limited, however, and does not measure every possible attack.

The evidence comes from benchmark environments with simulated accounts, tools and state changes; the authors say they did not test deployed services or use real user data. The evaluated configurations and models are also a finite sample, and the six-stack repair evaluation is relatively small. Reported zero attack success means no successes were observed in the relevant runs—not that success is impossible. The article is a preprint, so its findings should be treated as provisional pending further scrutiny and independent testing.

The practical lesson is not simply to use fewer defenses. It is to test the whole chain: whether the agent can still complete legitimate tasks, what happens when an informed attacker adapts, and whether each stage preserves the information the next one needs.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • How to catch an AI agent’s brief security breach

    Supporting evidence: Both papers motivate examining execution beyond end-of-task outcomes: DefenseComposer traces defense handoffs to diagnose task failures, while RAS-Eval reports detecting temporary security violations that final-state checks can miss. This supports the bounded point that endpoint metrics may overlook important events; their evaluation methods and target outcomes differ.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.37071v1 — Original paper

      Excerpt reference: static/papers/2611.37071v1.md:61-135
      Basis: Paper text
      Source file SHA-256: c9a62613523f5a82c63266a5bdafeaed2ed309aab8589cef0cca093d7f66d290

    • 2506.15253v2 — Original paper

      Excerpt reference: static/papers/2506.15253v2.md:58-165
      Basis: Paper text
      Source file SHA-256: cccdd86bad93b1843a87b72ff9307cf55dd13f123c03cb914dff6c0d8d98639c

  • A finer-grained fence for AI agents’ tool calls

    Supporting evidence: Both studies highlight a security–utility balance in agent defenses. DefenseComposer reports that repairing stack conflicts improved task completion while retaining 0.0% observed ASR on its tested unseen stacks; ToolFence describes preserving legitimate actions and reports a 2.0-percentage-point clean-task utility reduction in one AgentDojo/Qwen3-max result. These are compatible examples, not directly comparable evaluations or evidence of equivalent performance.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.37071v1 — Original paper

      Excerpt reference: static/papers/2611.37071v1.md:13-60
      Basis: Paper text
      Source file SHA-256: c9a62613523f5a82c63266a5bdafeaed2ed309aab8589cef0cca093d7f66d290

    • 2609.37196v2 — Original paper

      Excerpt reference: static/papers/2609.37196v2.md:16-56
      Basis: Paper text
      Source file SHA-256: e15db5d62820abc6f8b72ad32e4411e5b3b3b38cb65611edd8ce6e2edf64c11a

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