← Lab /AI/ML

Self-evolving runtime defense improves security performance over handcrafted defenses

HARD automatically identifies interventions and iteratively improves defense effectiveness beyond existing manual defenses while preserving task utility

AI/ML arXiv 13 Aug 2026 Method Simulation evidence Threat model

Published as “Beyond Handcrafted Security: Towards Self-Evolving Defense for LLM Agents”

Why it matters

Autonomous, failure-driven evolution can keep deployed LLM agents protected against emerging runtime attacks without manual redesign of defenses.

Summary

HARD-Both reduces attack success rates to 15.4%, 1.0%, 6.7% and 10.2% across four static attack types while keeping benign utility between 91.9% and 95.0%. The paper shows similar gains against adaptive attacks (26.5% ASR on dynamic attack evolution, 12.1% on long-horizon progressive attack) and reports that the autonomous evolution outperforms three handcrafted defenses. Evidence comes from experiments on the public AgentCanary benchmark; however, some variants (e.g., HARD-Both on memory poisoning) perform worse than other HARD variants, indicating the improvement is not uniform.

What they found 4

  1. HARD-Both achieves the lowest ASR on all four static attack categories

    “In particular, HARD-Both achieves the lowest ASR on all four attack categories, reducing ASR to 15.4%, 1.0%, 6.7%, and 10.2% on direct prompt injection, indirect prompt injection, memory poisoning, and skill poisoning, respectively”

  2. HARD-Both attains the lowest ASR under dynamic attack evolution

    “Under DAE, HARD-Both achieves the lowest ASR of 26.5%, improving over the strongest handcrafted defense at 30.1%”

  3. Policy-only evolution (HARD-Policy) outperforms HARD-Both on long-horizon progressive attacks

    “Under LPA, HARD-Policy and HARD-Both reduce ASR to 4.8% and 12.1%, respectively, compared with 24.1% for the strongest handcrafted defense”

  4. Overall, HARD reduces ASR across diverse attacks while preserving utility

    “HARD consistently achieves stronger defense performance than handcrafted baselines, reducing ASR across diverse attack surfaces while preserving competitive utility”

Caveats 2

  • HARD-Policy achieves 6.7% ASR on memory poisoning whereas HARD-Both records 17.8%, showing HARD-Both is not uniformly better
  • HARD-Gate is less effective in both adaptive settings, indicating that action-side rules alone may not capture attacks that change their surface form or distribute risk across time

What’s new here 4

  • Formulates runtime defense as a harness-centric optimization problem.
  • Introduces HARD, an autonomous framework that iteratively evolves defense components from failure traces.
  • Implements trace-driven routing to target specific harness artifacts for refinement.
  • Demonstrates cross-model applicability of the evolution process.

Threat model stated by the source

AdversaryAttacker who can control user inputs, external content, or pre-existing agent artifacts (memory or skills) but cannot modify model parameters or the deployed harness
CapabilityInject malicious prompts, poison memory, or supply compromised skills
AssumesModel parameters θ are fixed; Harness H is immutable to the attacker