Skip to content

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

Sep 2026 · arXiv.org · Vol abs/2609.38291 · 0 citations · 35 references
Computer Science

TL;DR

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, improves runtime safety while preserving utility.

Abstract

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.

View source

Similar papers

#artificial intelligence Preprint Oct 2026

MetaVul: Agentic Harness Discovery for Vulnerability Detection

LLM agents are increasingly used to automate vulnerability detection, but reliable detection is challenging because agents must distinguish subtle, security-relevant fixes from benign code variation. While underlying LLM capability has improved significantly, the accuracy of the agent still depends heavily on the harne...

Ira Ceka, Arnav Garg, Ryan Lutz et al. · 0 citations
#artificial intelligence Preprint Nov 2026

MetaPI: Constructing Prompt Injection Benchmarks from LLM Agent Benchmark

This paper presents MetaPI, an extensible toolkit that automatically identifies plausible injection points, generates realistic attack objectives, optimizes adaptive payloads, and validates attacks in the real environment, and enables scalable and consistent security evaluation across diverse and evolving agent ecosyst...

Pei-Ran Wang, Chong Xiang, Wen-Jie Qu et al. · 0 citations
#artificial intelligence Preprint Oct 2026

EvoRiskBench: An Evolving Benchmark for Runtime Security Risks in Workspace Agents

Workspace agents combine large language models with execution harnesses to perform stateful, multi-step tasks that access or modify external resources. Existing benchmarks leave gaps in executable coverage of their runtime security risks, while evolving model capabilities, harnesses, tools, and threats motivate benchma...

Shi-Yi Kuang, Xue-Mei Luo, Kun Liu et al. · 0 citations
Preprint Oct 2026

On Task, Off Track: Benchmarking LLM and Agent Robustness to Near-Target Prompt Injection

Prompt injection benchmarks assess whether large language models (LLMs) and agents resist malicious instructions embedded in external content. However, a system could perform well by rejecting attacks that obviously abandon the user's request, while still accepting changes that retain most of a legitimate answer but ma...

Yu-Yang Gong, Zi-Hao Wang, Jia-Wei Liu et al. · 0 citations
Preprint Sep 2026

DIBench: Benchmarking Decision Integrity of GUI-based Mobile Agents Under Deceptive Injections

DIBench provides a unified, reproducible benchmark to quantify the risk of in-task goal deviation in mobile agents and enable comparable evaluations of safety defenses, as well as providing a decision integrity benchmark for measuring this risk in mobile agents.

Li Hu, Kang-Hua Mo, Ying-Zi Jin et al. · 0 citations
#artificial intelligence Review Oct 2026

ProtoArena: Can AI Agents Discover and Exploit Real-World Cross-Component Protocol Vulnerabilities?

ProtoArena is introduced, a black-box, multi-component, dynamic benchmark with 80 cross-component vulnerability-exploitation environments spanning 11 protocol and application domains and 7 attack categories and success with limited black-box information remains low and varies across domains and attack categories.

Fa-Sheng Miao, Zhao-Yu Hu, Xiang Li et al. · 0 citations

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.