TRANSMISSION // 2611.33385v1

When an AI Defense Learns to Refuse Too Much

Source published

A study finds that one successful prompt injection can teach an evolving AI defense to reject legitimate requests, even as it continues blocking the attack.

AI-generated conceptual illustration for When an AI Defense Learns to Refuse Too Much
AI-generated conceptual illustration; not documentary evidence.

AI defenses that learn from past attacks may also learn the wrong lesson. In tests of one such system, a single successful prompt injection led it to refuse some legitimate requests later. The result highlights a trade-off: a defense can keep blocking attacks yet become too restrictive to use.

A security system that learns from attacks sounds useful: after spotting a malicious instruction, an AI agent could remember what went wrong and respond more safely next time. But what if it remembers too broadly? A new preprint examines that question in SED, a defense that turns harmful agent behavior into reusable security policies. The authors find that one successful prompt-injection episode can lead SED to reject later requests that are legitimate and similar to the attack.

The failure is not that the defense forgets how to block the original attack. Instead, it can learn a rule that treats a whole class of actions as unsafe. The result is an availability problem: the agent is still protected against the tested injection, but may also refuse work it should be allowed to do.

Testing a learned security policy

The researchers evaluated SED using AgentDojo version 1.2.2, focusing mainly on its Slack environment. There, an agent can perform tasks such as inviting users or adding them to channels. The researchers placed a hidden instruction in external content, asking the agent to add an outside user to a private channel—a change the user had not requested. If the agent followed the instruction, SED’s judge assessed the resulting episode, and the policy synthesizer could add a rule to persistent memory.

They compared SED with ordinary learned memory against a version whose memory included one successful injected episode. They then tested legitimate membership and invitation requests, unrelated Slack tasks, and whether the original injection still worked. The main Nemotron experiment used 10 repetitions per condition. The researchers also tested the attack with gpt-oss-120b and tried two ways to reduce over-refusal: giving the policy writer a matched benign example, and checking proposed rules for excessive breadth before saving them.

In the main Nemotron comparison, clean SED completed all 50 legitimate tasks across 10 repetitions. After the poisoned episode, it completed 18 of 50. Every poisoned repetition refused at least one legitimate request; none of the clean repetitions did. Meanwhile, unrelated tasks remained at 100% success in both conditions, and the original injection succeeded in none of 60 tested attempts against poisoned SED. That combination matters: the system did not simply become less secure. It kept blocking the attack while refusing some legitimate actions in the same general area.

The size of the effect varied between experimental batches. In a separate batch used to test the mitigations, the poisoned Nemotron baseline completed 52% of legitimate tasks. A matched benign example raised that to 82%; the automatic broadness-check gate reached 88%. Neither restored the clean result, and the authors do not claim the gate is statistically better: the confidence intervals for the two methods overlap. With gpt-oss-120b, both methods also improved on the poisoned baseline, but the ordering reversed—the matched example reached 72%, compared with 60% for the gate. This variation cautions against treating one mitigation as the winner across models.

A vulnerability with a boundary

The attack needs a successful first step: the protected agent must follow the hidden instruction. If it resists, no harmful trajectory is created for SED to learn from. In the tested settings, the authors report over-refusal with Nemotron and gpt-oss-120b, but not with the screened DeepSeek-V4.1-Flash, GLM-5.3, and Kimi-K3 models, which resisted the evaluated injections. These results do not establish how the attack would behave across other models, tasks, or defenses.

The authors also report a related risk without an attacker. SED’s judge sometimes labels legitimate but security-sensitive actions as harmful; those false positives can enter the learning process and produce restrictive rules. This is a qualitative finding, not a measured rate: the paper says it did not run a dedicated repeated experiment to estimate how often it happens.

Several more direct attempts to tamper with SED’s judge, stored policies, retrieval, or policy organization failed in the tested settings. That does not prove those parts cannot be attacked elsewhere. Rather, the successful route in these experiments was more indirect: a real harmful episode was admitted correctly, but the resulting policy was too broad.

The study has important limits. It evaluates one self-evolving defense, one main AgentDojo setting, and a particular model for SED’s judging and policy-generation components. Serving behavior varied between batches, and the mitigations did not eliminate refusals. The authors also observed that an agent could still refuse a legitimate request even when a rule included an appropriate boundary, suggesting that how the agent applies a policy matters as well as how the rule is written.

This is an arXiv preprint, not evidence that the same failure occurs in every self-learning AI defense or in deployed systems. Its narrower lesson is that security learning needs a check on utility: a policy should block the harmful behavior without unnecessarily ruling out its legitimate neighbors.

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.

  • Why more AI attacks don’t always make agents safer

    Supporting evidence: Both studies describe legitimate-task utility as a possible cost of defending against prompt injection: Noor and Jiang report that poisoned SED refused legitimate requests, while He et al. note that trajectory-level adversarial training can teach agents to abort or refuse when external data seems suspicious. The comparison supports over-refusal as a risk across distinct defense approaches, not a shared mechanism; PIPETTE studies adversarial training rather than persistent policy poisoning.

    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.33385v1 — Original paper

      Excerpt reference: static/papers/2611.33385v1.md:97-138
      Basis: Paper text
      Source SHA-256: ebf7cdb0383593142b1e4eb3bc5fcce8ce1c1b2bc27cc2b321d0d40e8374e47d

    • 2611.24362v2 — Original paper

      Excerpt reference: static/papers/2611.24362v2.md:147-213
      Basis: Paper text
      Source SHA-256: 61d3f04ded945bb87c8386d6b211450973792fb854beb6404e1bdd1f3c7bae46

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