mlsanityData to 7 Oct 2026

Beyond Handcrafted Security: Towards Self-Evolving Defense for LLM Agents

arXiv 2608.12977 ↗First posted 13 Aug 2026cs.CR cs.AIcited by 0

On the map: LLM agents and tool use → Agent threats, guardrails and governance

also in 1 more
Abstract (arXiv)

The expanding operational capabilities of large language model (LLM) agents introduce sophisticated security threats. Runtime defenses have emerged as an effective approach to mitigating these risks by integrating security mechanisms into the agent execution loop. However, existing runtime defenses rely heavily on manually designed interventions and lack a principled framework for their construction and maintenance. In this work, we first develop a harness-level formulation of runtime defense that systematically characterizes how harness mechanisms enable defense construction and provides a unified view of existing runtime defense interventions from a harness perspective. Building on this formulation, we propose HARD (Harness-based Autonomous Runtime Defense Evolution), a self-evolving runtime defense framework that automatically identifies appropriate intervention strategies and iteratively improves defense artifacts based on observed failure traces. HARD transforms runtime defense development from manual engineering into an autonomous evolution process, and extensive experiments demonstrate that it improves security performance over existing handcrafted defenses while preserving benign task utility. Our findings highlight autonomous defense evolution as a promising new paradigm for securing deployed LLM agents, enabling agents to identify defense weaknesses and continuously improve their protection mechanisms.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 60 of its 76 references that are in the map. First posted on arXiv 13 Aug 2026.

Builds on

60 of 76 references.

Closest ancestors · 27

Same direction, newest first

  1. 2026On-Policy Self-Evolution via Failure Trajectories for Agentic Safety Alignment12 May
  2. 2026ClawGuard: A Runtime Security Framework for Tool-Augmented LLM Agents Against Indirect Prompt Injection13 Apr
  3. 2026Supply-Chain Poisoning Attacks Against LLM Coding Agent Skill Ecosystems3 Apr
  4. 2026AgentHazard: A Benchmark for Evaluating Harmful Behavior in Computer-Use Agents3 Apr
  5. 2026OpenClaw PRISM: A Zero-Fork, Defense-in-Depth Runtime Security Layer for Tool-Augmented LLM Agents12 Mar
  6. 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Survey11 Mar
  7. 2026Breaking the Protocol: Security Analysis of the Model Context Protocol Specification and Prompt Injection Vulnerabilities in Tool-Integrated LLM Agents24 Jan
  8. 2025Adversarial Reinforcement Learning for Large Language Model Agent Safety6 Oct
  9. 2025MCPTox: A Benchmark for Tool Poisoning Attack on Real-World MCP Servers19 Aug
  10. 2025Agent Safety Alignment via Reinforcement Learning11 Jul
  11. 2025DRIFT: Dynamic Rule-Based Defense with Injection Isolation for Securing LLM Agents13 Jun
  12. 2025LlamaFirewall: An open source guardrail system for building secure AI agents6 May
15 more
  1. 2025Defeating Prompt Injections by Design24 Mar
  2. 2025AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agents24 Mar
  3. 2025Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents27 Feb
  4. 2025MELON: Provable Defense Against Indirect Prompt Injection Attacks in AI Agents7 Feb
  5. 2025Firewalls to Secure Dynamic LLM Agentic Networks3 Feb
  6. 2024The Task Shield: Enforcing Task Alignment to Defend Against Indirect Prompt Injection in LLM Agents21 Dec
  7. 2024AdvAgent: Controllable Blackbox Red-teaming on Web Agents22 Oct
  8. 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
  9. 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
  10. 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
  11. 2024GuardAgent: Safeguard LLM Agents by a Guard Agent via Knowledge-Enabled Reasoning13 Jun
  12. 2024AirGapAgent: Protecting Privacy-Conscious Conversational Agents8 May
  13. 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systems8 Mar
  14. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
  15. 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep

Other references · 33

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  4. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
  5. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
  6. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
  7. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
  8. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
  9. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
  10. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 738
  11. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 619
  12. 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 450
21 more
  1. 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 449
  2. 2024Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attackcited by 364
  3. 2024Automated Design of Agentic Systemscited by 360
  4. 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 328
  5. 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 325
  6. 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agentscited by 294
  7. 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 251
  8. 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 248
  9. 2024Defending Against Indirect Prompt Injection Attacks With Spotlightingcited by 233
  10. 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Promptscited by 189
  11. 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 179
  12. 2026SkillOpt: Executive Strategy for Self-Evolving Agent Skillscited by 122
  13. 2024System-Level Defense against Indirect Prompt Injection Attacks: An Information Flow Control Perspectivecited by 91
  14. 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 82
  15. 2024Neural Exec: Learning (and Learning from) Execution Triggers for Prompt Injection Attackscited by 78
  16. 2025Foot-In-The-Door: A Multi-turn Jailbreak for LLMscited by 50
  17. 2025AutoRedTeamer: Autonomous Red Teaming with Lifelong Attack Integrationcited by 38
  18. 2025Defending against Indirect Prompt Injection by Instruction Detectioncited by 25
  19. 2026BadSkill: Backdoor Attacks on Agent Skills via Model-in-Skill Poisoningcited by 25
  20. 2026ClawKeeper: Comprehensive Safety Protection for OpenClaw Agents Through Skills, Plugins, and Watcherscited by 18
  21. 2026AgentCanary: A Security Evaluation Framework for Autonomous AI Agents in Real Executable Environmentscited by 10

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Taming OpenClaw: Security Analysis and Mitigation of Autonomous LLM Agent Threats
  2. 2026HARDE: Optimizing Agent Harnesses for Runtime Risk Detection and Execution Control
  3. 2026Autonomous LLM Agents & CTFs: A Second Look
  4. 2026EvoSafeHarness: Evolving Model- and Domain-Specific Harnesses for Securing Agents
  5. 2026SafeCoEvo: Co-Evolving Safety Harnesses and Guards for LLM Agents at Test-Time
  6. 2026Safety in Self-Evolving LLM Agent Systems: Threats, Amplification, and Case Studies
  7. 2026Reachability-Based Capability Confinement for LLM Agents under Indirect Prompt Injection
  8. 2026ClawSentry: A Progressive Multi-Tier Security Monitor for Safeguarding Autonomous LLM Agents