mlsanityData to 14 Oct 2026

EvoSafeHarness: Evolving Model- and Domain-Specific Harnesses for Securing Agents

arXiv 2609.05903 ↗First posted 5 Sep 2026cs.CRcited by 2

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

also in 1 more
Abstract (arXiv)

Large Language Model (LLM) agents are turning language into real-world effects, making safety necessary against both indirect prompt injections and direct harmful requests. System-level safety harnesses add an enforcement layer beyond model-level defenses, but existing harnesses are usually designed once by experts and applied across heterogeneous models and domains. Effective protection is deployment-dependent: models differ in how much enforcement they need before utility declines, while domains differ in the effects, state, and action sequences that must be governed. A harness that is strict enough for one model may over-block another, and a policy that transfers across domains may miss application-specific safety relations. We present EvoSafeHarness, a safety-specific optimization framework that synthesizes a deployable harness for a frozen model in a target domain. It jointly searches a natural-language policy and executable code logic, guided by model behavior, domain specifications, and fresh-context adversarial review to reject benchmark-specific rules. Across four agent benchmark families, EvoSafeHarness achieves a stronger safety-utility frontier than fixed expert-designed defenses. On DecodingTrust-Agent, it reduces average attack success rate from 45.6% to 10.0% at a 3.3-point utility cost and achieves the best score in 14 of 15 cells. On AgentDojo, it reaches 82.8% utility at 0.0% ASR, twice CaMeL's utility at the same operating point, and transfers unchanged to unseen AgentDyn suites. It also achieves the best score on Agent-SafetyBench for every victim and keeps mean ASR below 20% under adaptive PAIR attacks with a refinement budget of 16. Analysis shows that domain semantics determine which safety relations and trajectory state are needed, while model and runtime behavior determine how and where those relations should be enforced.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 31 of its 33 references that are in the map. First posted on arXiv 5 Sep 2026.

Builds on

31 of 33 references.

Closest ancestors · 11

Same direction, newest first

  1. 2026SafeHarness: Lifecycle-Integrated Security Architecture for LLM-based Agent Deployment15 Apr
  2. 2026Architecting Secure AI Agents: Perspectives on System-Level Defenses Against Indirect Prompt Injection Attacks31 Mar
  3. 2025IPIGuard: A Novel Tool Dependency Graph-Based Defense Against Indirect Prompt Injection in LLM Agents21 Aug
  4. 2025DRIFT: Dynamic Rule-Based Defense with Injection Isolation for Securing LLM Agents13 Jun
  5. 2025LlamaFirewall: An open source guardrail system for building secure AI agents6 May
  6. 2025Progent: Securing AI Agents with Privilege Control16 Apr
  7. 2025Defeating Prompt Injections by Design24 Mar
  8. 2025Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents27 Feb
  9. 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
  10. 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
  11. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar

Other references · 20

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  2. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
  3. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
  4. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
  5. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
  6. 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 542
  7. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 493
  8. 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 375
  9. 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
  10. 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 309
  11. 2024Defending Against Indirect Prompt Injection Attacks With Spotlightingcited by 267
  12. 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 210
8 more
  1. 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnessescited by 142
  2. 2026Natural-Language Agent Harnessescited by 61
  3. 2026AgentDyn: Are Your Agent Security Defenses Deployable in Real-World Dynamic Environments?cited by 59
  4. 2026Harness Updating Is Not Harness Benefit: Disentangling Evolution Capabilities in Self-Evolving LLM Agentscited by 34
  5. 2026VeRO: A Harness for Agents to Optimize Agentscited by 14
  6. 2026DecodingTrust-Agent Platform (DTap): A Controllable and Interactive Red-Teaming Platform for AI Agentscited by 13
  7. 2026AgentCanary: A Security Evaluation Framework for Autonomous AI Agents in Real Executable Environmentscited by 13
  8. 2026LPG: Balancing Efficiency and Policy Reasoning in Latent Policy Guardrailscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026SHE: Trajectory-driven Safety Harness Evolution for LLM Agents
  2. 2026HarnessRisk: A Lifecycle-Oriented Benchmark for Agent Harness Safety
  3. 2026Model-Agnostic Lifelong LLM Safety via Externalized Attack-Defense Co-Evolution
  4. 2025A Self-Improving Architecture for Dynamic Safety in Large Language Models
  5. 2026CourtGuard: A Model-Agnostic Framework for Zero-Shot Policy Adaptation in LLM Safety
  6. 2026HARDE: Optimizing Agent Harnesses for Runtime Risk Detection and Execution Control
  7. 2026Beyond Handcrafted Security: Towards Self-Evolving Defense for LLM Agents
  8. 2026GuardianAgentBench: Where Agents Fail and How to Guard Them