Poisoning Self-Evolving Security Policies in LLM Agents
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.
Nadia: I'm Nadia.
Elias: And I'm Elias, here with Priya.
Nadia: We're looking at the paper: "Poisoning Self-Evolving Security Policies in LLM Agents".
Title and authors: Nadia: So we're looking at this paper now titled Poisoning Self-Evolving Security Policies in LLM Agents, and it’s about how defenses that learn from past attacks can actually become a problem themselves.
Elias: Right, so the authors are showing that when a defense learns reusable security policies from observed attacks, that very learning process can turn into an attack surface for the agent.
Priya: That sounds like an interesting feedback loop where the defense gets too cautious because it learned something wrong about what's harmful.
Nadia: Exactly, and they test this using a system called SED in the AgentDojo benchmark, showing that just one prompt-injection episode can cause the defense to learn a policy that is way too broad.
Elias: What’s crucial here is that this over-broad policy doesn't just fail against the initial attack; it starts refusing legitimate requests later on, which they call an availability attack instead of a traditional bypass.
Priya: So, if the defense gets too restrictive, it stops doing its job for regular users, which is a serious practical issue for any agent deployment.
Nadia: It shows that the defense doesn't directly change its memory or policies in response to the attack; it’s through the learning process itself that SED becomes too restrictive, which is what they mean by entering through the same learning process that SED normally uses.
Elias: They tested this across ten runs on Nemotron, and every single poisoned run over-refused at least one legitimate task while unrelated task performance stayed exactly the same and the original prompt-injection defense still worked fine against the initial attack.
Priya: So, it’s not that the defense completely breaks, but it starts misinterpreting what's safe when it sees that kind of input.
Nadia: That’s right; a single poisoned episode is enough to cause this issue across ten runs, and they show that legitimate task success drops substantially while unrelated tasks remain unaffected.
Elias: They also noted that the attack transfers to models like gpt-oss-120b, but it only works if there was a successful initial prompt injection because the poisoning mechanism depends on that first step being successful <ref:2611.33385#pg1,a successful initial prompt injection>.
Title and authors: Priya: That suggests this isn't a universal failure for all agents, but rather something tied to how susceptible the underlying agent is to that specific type of initial attack.
Nadia: And they point out that integrity-oriented attacks targeting the judge, policy synthesis, retrieval, and organization mechanisms fail in their tested settings.
Elias: That’s interesting because it suggests that attacks trying to trick the defense's internal logic or how it organizes its rules don't work as well as this availability attack on the learning process.
Priya: It sounds like the defense is vulnerable at the point where it tries to generalize from a single, specific harmful experience into a universal rule.
Nadia: That’s exactly what they are demonstrating when they show that integrity-oriented attacks targeting those internal mechanisms fail in their evaluated settings.
Elias: What’s next is how they try to fix this, because the paper suggests some ways to mitigate this over-refusal without completely sacrificing security.
Priya: I’m curious what kind of fixes they propose, since we just saw how easily a single bad experience can cause problems.
Nadia: The paper suggests two main things: contrastive policy synthesis and an automatic broadness-check gate to reduce the over-refusal without compromising security in their setup.
Elias: Contrastive policy synthesis means they give the synthesizer a matched benign example along with the harmful experience so it can better distinguish unsafe behavior from legitimate requests.
Priya: So, instead of just learning from what’s bad, they are also learning from what’s good to build a more nuanced set of rules.
Nadia: And the broadness-check gate intervenes right when the policy is being written to test that new security policy against legitimate examples before it gets saved into memory.
Elias: That sounds like a safety net added during the generation phase, checking for over-generalization before it becomes permanent in the defense's knowledge base.
Priya: So, you’re saying they are trying to keep the defense sharp and context-aware instead of letting it become overly restrictive based on one bad data point.
Nadia: That’s right; contrastive synthesis and that broadness-check gate substantially reduce the over-refusal, but they don't eliminate it completely in their settings.
Elias: So, while they make a big improvement, the issue of over-refusal still exists even with these new techniques in their specific evaluations.
Title and authors: Priya: It seems like the goal isn't to get perfect security overnight, but to substantially reduce that availability attack while keeping security intact for the tasks that matter.
Nadia: And they also look at self-poisoning, which happens without an external attacker when the defense’s own judge sometimes labels legitimate but security-sensitive behavior as harmful.
Elias: That’s a subtle point; it means the system can start restricting itself based on its own flawed judgment of what's harmful, even without someone actively trying to poison it.
Priya: The examples they give, like an authorized user summarizing information from a restricted channel, show that this can happen with seemingly harmless internal agent actions.
Nadia: And they found that contrastive policy synthesis and the automatic broadness-check gate substantially reduce over-refusal but neither completely removes it in their specific tests.
Elias: So, it seems the learning process is inherently tricky because it’s trying to learn from a single data point and can end up making too many restrictive generalizations.
Priya: It really boils down to ensuring that self-evolving defenses don't just learn from observed attacks but also make sure those resulting policies don't unnecessarily restrict legitimate behavior for the agent.
Nadia: That’s the main implication they want us to see: self-evolving defenses have a dual responsibility—they need to learn from attacks, but they also need guardrails against becoming too restrictive.
Elias: So, we’re not just building defenses that stop known bad inputs; we're building defenses that don't accidentally block the good stuff later on.
Priya: It’s a reminder that with these self-evolving systems, we have to pay close attention to how they are trained and what data they are exposed to over time.
Nadia: Exactly, and as we move forward with these agentic systems, we need to be careful about how we set up the learning signals so the defense doesn't develop this tendency toward excessive restriction.
Elias: So the paper "Poisoning Self-Evolving Security Policies in LLM Agents" shows that self-evolving defenses are powerful for learning, but they introduce a new vulnerability where they can accidentally restrict legitimate use through policy generalization.
Priya: It’s a warning that the defense mechanism itself needs scrutiny just as much as the agent it's trying to protect.
The paper's summary: Nadia: So, this paper is about how defenses that learn from past attacks can actually become a problem because they start learning bad habits themselves in their security policies and end up blocking good requests later on.
Elias: Exactly, it’s not just about stopping the initial attack; it’s an availability issue where the defense gets too cautious and starts refusing legitimate tasks.
Priya: What I find concerning is how this happens without a clear external attacker actively trying to break the system; sometimes it seems like the AI is just misjudging what's safe.
Nadia: Right, they show that self-poisoning can happen when the defense’s own judge sometimes labels legitimate but security-sensitive behavior as harmful, even though no one tried to poison it.
Elias: And they test this on Nemotron and other models, showing that every single run with a successful poisoning episode caused the defense to over-refuse at least one normal task across ten runs.
Priya: So, the numbers show that this isn't some rare fluke; it’s a consistent problem when the learning process gets skewed by one bad experience.
Nadia: And they look at how you can fix this, suggesting contrastive policy synthesis and an automatic broadness-check gate to reduce that over-refusal while keeping security mostly intact in their test settings.
Elias: That contrastive synthesis means the AI gets a matched benign example alongside the harmful one so it learns what’s actually safe versus what’s dangerous.
Priya: And that broadness-check gate acts like a checkpoint right when the policy is being written to make sure it doesn't get too loose before it gets stored in memory.
Nadia: So, the main point is that self-evolving defenses have this dual job: they have to learn from attacks, but they also need mechanisms that stop them from becoming overly restrictive based on what they learned.
Elias: It seems like the authors are really saying that just learning from bad data isn't enough; you gotta build in checks so the resulting policies don't unnecessarily restrict legitimate agent behavior.
Priya: And while those fixes substantially reduce the over-refusal, they also flag some limitations—like the study only tested one defense architecture and relied on a fixed judge and policy-generation model.
Nadia: Plus, they noted that this whole self-poisoning finding is qualitative; neither of the proposed mitigations completely removes that over-refusal issue in their specific tests.
Elias: So, the implication is that for future work, we need to look at more robust ways to validate these learned policies against legitimate use cases rather than just testing them against known attack vectors.
Priya: And it makes me wonder how this affects deploying self-evolving defenses in real agent systems where you can't always control every single learning signal.
The paper's improvements: Tom: So, we're looking at how they suggest fixing the problems we talked about earlier in this paper about self-evolving security policies getting too restrictive because of bad learning experiences.
Nadia: The main suggestion is adding an automatic broadness-check gate that tests any newly generated policy against legitimate examples before it gets saved into memory.
Elias: That means you check the new rule right at the moment of writing to make sure it’s not too general before it becomes permanent in the defense's knowledge base.
Priya: That sounds like a safety net during policy generation, checking for over-generalization before it locks in.
Nadia: Yeah, exactly; it’s an intervention at the policy write time to test that new security rule against safe things first.
Elias: They also brought up contrastive policy synthesis, which is like giving the synthesizer a matched benign example along with the harmful experience so it can better distinguish unsafe behavior from legitimate requests.
Priya: So instead of just learning from what’s bad, they are incorporating what’s good to help the AI build a more nuanced set of rules.
Nadia: Right, and that combination is supposed to substantially reduce that over-refusal without necessarily compromising the security in their specific evaluation settings.
Elias: They also looked at self-poisoning without an attacker, where the defense itself starts making bad judgments about what’s harmful, like mislabeling a harmless internal action as a threat.
Priya: That’s worrying; it means the system can start restricting itself based on its own flawed judgment of what's harmful, even when no one is trying to poison it.
Nadia: And the paper suggests that checks at the write gate are important specifically to identify and stop those false positive harm judgments from seeding unnecessarily restrictive rules into the defense’s memory.
Elias: So, they're trying to prevent the defense from making bad internal decisions before those decisions even get written down.
Priya: The main implication here is that we need better ways to validate these learned policies against legitimate use cases, because just learning from attacks isn't enough for a reliable agent defense.
Nadia: And they flag that the self-poisoning finding they found is qualitative; neither of the proposed fixes completely removes that over-refusal issue in their specific tests.
Elias: It seems like the authors are saying that we need to focus on building in checks so the resulting policies don't just learn from bad data but also have guardrails against becoming too restrictive.
Priya: It makes me wonder how this affects deploying self-evolving defenses in real agent systems where you can't always control every single learning signal.
Conclusion: Nadia: So, to wrap up, this paper on "Poisoning Self-Evolving Security Policies in LLM Agents" shows that self-evolving defenses aren't just about learning from attacks; they need built-in mechanisms to stop them from becoming too restrictive and blocking good requests.
Elias: Exactly, the core idea is that we need safeguards like broadness checks and contrastive synthesis so the AI doesn't learn bad habits that block legitimate agent behavior later on.
Priya: I think what’s important is that they found self-poisoning can happen without an attacker too, just through the AI misjudging what’s safe internally.
Nadia: Right, and their results show these new methods substantially reduce the over-refusal problem, but they also flag that the study only tested one defense architecture and relied on a fixed judge model.
Elias: That's a fair caveat; it means we need to keep testing these defenses across different architectures because they aren't universally robust yet.
Priya: And since the self-poisoning finding was qualitative, neither of the new fixes completely removes that over-refusal issue in their specific tests, which is something we need to keep watching.
Nadia: So, it’s a cautionary tale about how learning systems can develop unintended negative behaviors when they’re trying to be adaptive defenses.
Elias: It highlights that the next big hurdle for self-evolving AI security isn't just stopping the initial exploit, but managing the long-term policy evolution responsibly.
Priya: I think we need to keep looking at these kinds of checks as agent systems get more complex and start learning from a wider variety of experiences.
Miami University
cs.CR, cs.AI
Submitted: 2026-11-24
Updated: 2026-11-24
Code: https://github.com/MN-NR/PSED
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 90/100
The gist: Self-evolving defenses improve LLM-agent security by learning reusable policies from observed attacks…
Key concepts
- Self-Evolving Defense (SED)
- This is a defense mechanism for LLM agents that learns reusable security policies by observing past attacks. It updates its rules based on what it has seen, aiming to make future interactions safer without constant manual updates from developers.
- Over-Refusal
- This occurs when the self-evolving defense learns a policy that is too restrictive. Instead of blocking only the malicious input, it blocks many legitimate requests because the learned rule is too broad, causing an availability attack where users cannot complete normal tasks.
- Contrastive Policy Synthesis
- This technique involves training a policy synthesizer using both harmful examples and matched benign examples. This helps the defense learn to distinguish between truly unsafe behaviors and safe, legitimate requests during its policy generation process.
Terminology
Summary
Self-evolving defenses improve LLM-agent security by learning reusable policies from observed attacks, but this learning process can become an attack surface. p. 0<ref:2611.33385#pg1,self-evolving defenses improve LLM-agent security by learning reusable policies from observed attacks>. p. 0 Using SED in the AgentDojo benchmark, a single prompt-injection episode can cause the defense to learn an over-broad policy and subsequently refuse legitimate requests. p. 0<ref:2611.33385#pg2,Using SED in the AgentDojo benchmark, a single prompt-injection episode can cause the defense to learn an over-broad policy and subsequently refuse legitimate requests>. p. 0 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. p. 0<ref:2611.33385#pg2,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>. p. 0 Integrity-oriented attacks targeting SED’s judge, policy synthesis, retrieval, and organization mechanisms fail in our evaluated settings. p. 0<ref:2611.33385#pg2,Integrity-oriented attacks targeting SED’s judge, policy synthesis, retrieval, and organization mechanisms fail in our evaluated settings>. p. 0 We further identify self-poisoning from false-positive harm judgments without an attacker. p. 0<ref:2611.33385#pg2>. Contrastive policy synthesis and an automatic broadness-check gate substantially reduce, but do not eliminate over-refusal, without compromising security in our evaluated settings. p. 0<ref:2611.33385#pg2,Contrastive policy synthesis and an automatic broadness-check gate substantially reduce, but do not eliminate over-refusal, without compromising security in our evaluated settings>. p. 0
Pruning redundant reasoning tokens
The paper demonstrates that a single successful prompt-injection episode can cause SED to learn an over-broad policy that blocks legitimate actions while keeping the original defense effective.<ref:2611.33385#pg2,We demonstrate that a single successful prompt-injection episode can cause SED to learn an over-broad policy that blocks legitimate actions while keeping the original defense effective>. p. 1 This effect is characterized as an availability attack rather than a traditional defense bypass because the attacker causes SED to become too restrictive. p. 1<ref:2611.33385#pg2,This creates an availability attack rather than a traditional defense bypass>. p. 1 The attack does not directly modify SED’s memory or security policies but enters through the same learning process that SED normally uses. p. 1<ref:2611.33385#pg2,The attack does not directly modify SED’s memory or security policies but enters through the same learning process that SED normally uses>. p. 1
How the training signal is built
The training signal is built when a protected agent follows an injected instruction, which SED correctly identifies as harmful and learns from it.<ref:2611.33385#pg2,If the agent follows the injected instruction, SED correctly identifies the resulting trajectory as harmful and learns from it>. p. 1 The problem arises during policy generation when SED produces a rule broader than the original attack, which is then reused in later interactions causing legitimate requests to be refused. p. 1<ref:2611.33385#pg2,SED can produce a rule that is broader than the original attack. p. 1 This rule is then reused in later interactions and causes the agent to refuse legitimate membership and invitation requests>. p. 1
Where the gains come from
Mitigation strategies are evaluated based on their ability to reduce over-refusal while preserving security.<ref:2611.33385#pg4>. The contrastive policy synthesis approach provides a matched benign example to the synthesizer alongside the harmful example. p. 1<ref:2611.33385#pg7>. The automatic broadness-check gate intervenes at policy-write time to test newly synthesized security policies against legitimate examples. p. 4<ref:2611.33385#pg7>.
Mitigation effectiveness across models
The attack transfers to gpt-oss-120b and other agents like Nemotron, but it is limited to agents that are susceptible to the underlying prompt injection.<ref:2611.33385#pg4>. Specifically, DeepSeek-V4. p. 31-Flash, GLM-5. p. 13, and Kimi-K3 models resist the evaluated injections in Slack and banking settings. p. 1<ref:2611.33385#pg6>.
Self-poisoning mechanism
Self-poisoning can occur without an attacker when SED’s judge sometimes labels legitimate but security-sensitive behavior as harmful.<ref:2611.33385#pg4>. Examples of such benign episodes include adding an internal colleague or summarizing information from a restricted channel for an authorized user. p. 7<ref:2611.33385#pg4>.
Direct integrity attack failure
Five direct integrity attacks against the learning pipeline fail because the synthesizer abstracts the trajectory into a defensive rule instead of copying the injected payload.<ref:2611.33385#pg8,Stored injection. p. 7 We attempt to preserve attacker-controlled instructions in the learned policy itself. p. 7 The attack fails because the synthesizer abstracts the trajectory into a defensive rule instead of copying the injected payload>. p. 7
Conclusion
Our results show that a single successful prompt-injection episode can cause SED to learn an over-broad policy that blocks legitimate requests while continuing to block the original attack.<ref:2611.33385#pg2,We show that a single successful prompt-injection episode can cause SED to learn an over-broad policy that blocks legitimate requests while continuing to block the original attack>. p. 8 The failure is primarily an availability problem rather than a loss of security. p. 7<ref:2611.33385#pg5>. Self-evolving defenses must not only learn from observed attacks but also ensure that the resulting policies do not unnecessarily restrict legitimate behavior. p. 8<ref:2611.33385#pg9,Self-evolving defenses must not only learn from observed attacks but also ensure that the resulting policies do not unnecessarily restrict legitimate behavior>. p. 8
Limitations
The study has several limitations, including evaluating only one defense architecture and relying on a fixed judge and policy-generation model.<ref:2611.33385#pg9,Our study has several limitations, including evaluating only one defense architecture and relying on a fixed judge and policy-generation model>. p. 8 Furthermore, the attack requires an injection-susceptible protected agent to start the poisoning path. p. 5<ref:2611.33385#pg9,The attack also requires an injection-susceptible protected agent to start the poisoning path>. p. 5 The self-poisoning finding is qualitative and neither mitigation completely removes over-refusal. p. 8<ref:2611.33385#pg9,The self-poisoning finding is qualitative and neither mitigation completely removes over-refusal>. p. 8
References
[1] Edoardo Debenedetti, Jie Zhang, Mislav Balunovic, Luca Beurer-Kellner, Marc Fischer, and Florian Tramèr. Agentdojo: A dynamic environment to evaluate prompt injection attacks and defenses for llm agents, 2024. p. 8 URL https://arxiv. p. 8org/abs/2406. p. 813352.
[2] Minh Nhat Le, Nisarga Gondi, Yibo Peng, Ronghao Ni, Limin Jia, Beidi Chen, and Haizhong Zheng. p. 8 Self-evolving defense: Continual security policy learning for llm agents. p. 8 arXiv preprint arXiv:2609. p. 836603.<ref:2611.33385#pg2>.
[3] Minseok Choi, Seungbin Yang, Dongjin Kim, Subin Kim, Jungmin Son, Yunseung Lee, Jaegul Choo, and Youngjun Kwak. p. 8 Membrane: A self-evolving contrastive safety memory for llm agent defense. p. 8 arXiv preprint arXiv:2606. p. 8 p. 8 p. 805743.<ref:2611.33385#pg7>.
[4] Kaixiang Wang, Jiong Lou, Zhaojiacheng Zhou, and Jie Li. p. 8 Oep: Poisoning self-evolving llm agents via locally correct but non-transferable experiences. p. 8 arXiv preprint arXiv:2605. p. 818930.<ref:2611.33385#pg4>.
[5] Yuyang Luo, Haoran Wang, and Kai Shu. p. 8 Query-only backdoor attacks on self-evolving skills via trajectory poisoning. p. 8 arXiv preprint arXiv:2608. p. 808303.<ref:2611.33385#pg5>.
[6] Lizhi Zhang, Xin He, Dianxuan Fu, Yuyuan Feng, Jiatong Li, Qi Wang, Xin Wang, and Qinggang Zhang. p. 8 Skillpoison: Progressive skill poisoning via successful experiences. p. 8 arXiv preprint arXiv:2610. p. 807645.<ref:2611.33385#pg6>.
[7] Zhaorun Chen, Zhen Xiang, Chaowei Xiao, Dawn Song, and Bo Li. p. 8 Agentpoison: Red-teaming llm agents via poisoning memory or knowledge bases. p. 8 Advances in Neural Information Processing Systems, 37:130185–130213. p. 8<ref:2611.33385#pg7>.
[8] Pritam Dash, Tongyu Ge, Aditi Jain, Tanmay Shah, and Zhiwei Shang. p. 8 From untrusted input to trusted memory: A systematic study of memory poisoning attacks in llm agents. p. 8 p. 8 arXiv preprint arXiv:2606.04329.<ref:2611.33385#pg8>.
[9] Pritam Dash, Tongyu Ge, Aditi Jain, Tanmay Shah, and Zhiwei Shang. p. 8 From untrusted input to trusted memory: A systematic study of memory poisoning attacks in llm agents. arXiv preprint arXiv:2606.04329.<ref:2611.33385#pg9,From untrusted input to trusted memory: A systematic study of memory poisoning attacks in llm agents>. p. 8
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Enhance Self-Evolving Defense (SED) policy generation by implementing an automatic broadness-check gate that tests new policies on legitimate examples before saving them to memory, reducing over-refusal while preserving security.
-
Implement a contrastive policy synthesis mechanism where the policy synthesizer is provided with a matched benign example alongside the harmful trajectory to help the defense distinguish unsafe behavior from legitimate requests.
-
Develop a policy application validation step after rule narrowing that checks if a correctly scoped rule can still be applied too conservatively by the protected agent, addressing second failure points at policy-application time.
-
Improve resilience against self-poisoning by implementing checks at the write gate to identify and prevent false-positive harm judgments from seeding unnecessarily restrictive rules into the defense's memory.
-
Introduce a system that dynamically monitors learned policies during later benign interactions to weaken their effect as benign episodes accumulate, allowing legitimate success rates to recover without deleting the policy entirely.
Sources
- AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents
- Self-Evolving Defense: Continual Security Policy Learning for LLM Agents
- Membrane: A Self-Evolving Contrastive Safety Memory for LLM Agent Defense
- OEP: Poisoning Self-Evolving LLM Agents via Locally Correct but Non-Transferable Experiences
- Query-Only Backdoor Attacks on Self-Evolving Skills via Trajectory Poisoning
- SkillPoison: Progressive Skill Poisoning via Successful Experiences
- From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents
Related papers
- RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities
- Introducing the Generative Application Firewall (GAF)
- Opal: Private Memory for Personal AI
- Fuel as Identity: Authenticating Inter-Satellite Laser Links after Total Key Compromise
- Merkle Trees Minimize Verifier Complexity in the ROM
- VulCPE: Context-Aware Cybersecurity Vulnerability Retrieval and Management