mlsanityData to 7 Oct 2026

HARDE: Optimizing Agent Harnesses for Runtime Risk Detection and Execution Control

arXiv 2609.38291 ↗First posted 29 Sep 2026cs.CR cs.CLcited by 0

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

Abstract (arXiv)

Large language model (LLM) agents are vulnerable to safety risks such as injected malicious instructions or misleading information, motivating runtime defenses that prevent unsafe action in execution across diverse risks while preserving benign-task utility. Existing system-level defenses either focus on risk detection rather than timely prevention or rely on predefined rules with limited flexibility across diverse risks. We propose a risk-aware harness that integrates LLM-based monitoring for flexible risk detection and structures monitor-guided execution around three core modules: trigger, monitor, and feedback, enabling targeted safety interventions while limiting disruption to benign task execution. To adapt the harness to different risks and deployment settings, we introduce HARDE, a two-stage harness optimization framework that first performs isolated probing of each module to derive an optimization guide, then uses this guide to iteratively optimize the harness based on safety and utility feedback. Experiments across three attack benchmarks show that HARDE improves runtime safety while preserving utility, outperforming manually designed harnesses and naive optimization baselines. Our analysis shows that effective runtime defense benefits from complementary safety mechanisms, attack-aware harness optimization, and harness designs matched to monitor capabilities. Our code is available at https://github.com/Liuz233/HARDE.

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 33 of its 35 references that are in the map. First posted on arXiv 29 Sep 2026.

Builds on

33 of 35 references.

Closest ancestors · 16

Same direction, newest first

  1. 2026Auditing Agent Harness Safety14 May
  2. 2026SafeAgent: A Runtime Protection Architecture for Agentic Systems19 Apr
  3. 2026SafeHarness: Lifecycle-Integrated Security Architecture for LLM-based Agent Deployment15 Apr
  4. 2026A Framework for Formalizing LLM Agent Security19 Mar
  5. 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedback15 Jan
  6. 2025Reliable Weak-to-Strong Monitoring of LLM Agents26 Aug
  7. 2025Agent Safety Alignment via Reinforcement Learning11 Jul
  8. 2025SHADE-Arena: Evaluating Sabotage and Monitoring in LLM Agents17 Jun
  9. 2025AgentAlign: Navigating Safety Alignment in the Shift from Informative to Agentic Large Language Models29 May
  10. 2025ShieldAgent: Shielding Agents via Verifiable Safety Policy Reasoning26 Mar
  11. 2025Defeating Prompt Injections by Design24 Mar
  12. 2025AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agents24 Mar
4 more
  1. 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
  2. 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
  3. 2024EIA: Environmental Injection Attack on Generalist Web Agents for Privacy Leakage17 Sep
  4. 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systems8 Mar

Other references · 17

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2025Qwen3 Technical Reportcited by 8,195
  3. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  4. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
  5. 2023AgentBench: Evaluating LLMs as Agentscited by 1,211
  6. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
  7. 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 877
  8. 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 460
  9. 2024AFlow: Automating Agentic Workflow Generationcited by 395
  10. 2024Automated Design of Agentic Systemscited by 360
  11. 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 248
  12. 2024ShieldGemma: Generative AI Content Moderation Based on Gemmacited by 224
5 more
  1. 2024AgentSquare: Automatic LLM Agent Search in Modular Design Spacecited by 141
  2. 2025CoT Red-Handed: Stress Testing Chain-of-Thought Monitoringcited by 49
  3. 2025Monitoring Monitorabilitycited by 47
  4. 2026AgentDyn: Are Your Agent Security Defenses Deployable in Real-World Dynamic Environments?cited by 45
  5. 2026Agent Security Needs Redefinition through a Holistic Frameworkcited by 2

Built on by

Not cited yet.

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. 2026EvoSafeHarness: Evolving Model- and Domain-Specific Harnesses for Securing Agents
  4. 2026Beyond Handcrafted Security: Towards Self-Evolving Defense for LLM Agents
  5. 2026SafeCoEvo: Co-Evolving Safety Harnesses and Guards for LLM Agents at Test-Time
  6. 2025ProbGuard: Proactive Runtime Monitoring for LLM Agent Safety via Probabilistic Prediction
  7. 2026ClawSentry: A Progressive Multi-Tier Security Monitor for Safeguarding Autonomous LLM Agents
  8. 2026BraveGuard: From Open-World Threats to Safer Computer-Use Agents