Poisoning Self-Evolving Security Policies in LLM Agents
Organizations: Department of Computer Science Miami University Ohio
Abstract
Self-evolving defenses improve LLM-agent security by learning reusable policies from observed attacks. However, we demonstrate that this learning process itself can become an attack surface. Using SED (Self-Evolving Defense) in the AgentDojo benchmark, we construct a single prompt-injection episode that causes the defense to learn an over-broad policy and subsequently refuse legitimate requests. Across 10 Nemotron runs, every poisoned run over-refuses at least one legitimate task, while unrelated-task performance remains unchanged and the original prompt-injection defense remains effective. The attack also transfers to gpt-oss-120b; however, its poisoning mechanism depends on a successful initial prompt injection and therefore fails to activate when the target agent resists the underlying injection. In contrast, integrity-oriented attacks targeting SED's judge, policy synthesis, retrieval, and organization mechanisms fail in our evaluated settings, identifying over-refusal as the primary exploitable failure mode observed in our experiments. We further identify self-poisoning from false-positive harm judgments without an attacker. Finally, contrastive policy synthesis and an automatic broadness-check gate substantially reduce, but do not eliminate over-refusal, without compromising security in our evaluated settings.
Figures & tables
| Condition | Tasks Solved | Success Rate | Reps Below Floor |
|---|---|---|---|
| Clean SED | 50/50 | 100% | 0/10 |
| Poisoned SED | 18/50 | 36% | 10/10 |
| Model | Slack add-user | Banking add-payee | Susceptible? |
|---|---|---|---|
| Nemotron-lightning-3.5 | 7/8 (87.5%) | 8/8 (100%) | Yes |
| gpt-oss-120b | 7/8 (87.5%) | 6/8 (75%) | Yes |
| DeepSeek-V4.1-Flash | – * | – * | No |
| GLM-5.3 | 0/8 | 0/8 | No |
| Kimi-K3 | 0/8 | 0/8 | No |
| Condition | Nemotron | gpt-oss |
|---|---|---|
| Poisoned SED | 52% | 44% |
| + Matched counterexample | 82% | 72% |
| + Broadness-check gate | 88% | 60% |
| Clean floor | 100% | 100% |
LLM Agent Security
Large language model agent security studies attacks and safeguards for systems that plan, use tools, retain memory, and act across applications.
See all 361 papers