Back to articles
AI Safety

HarnessRisk Tests Agent Harness Safety Across the Full Lifecycle

3 min read

As language models move from conversational interfaces into workspaces and automated workflows, the model is only one part of the security boundary. An agent harness connects tools and extensions, stores state, applies permissions, and can trigger actions outside the model. A failure in any of these layers may turn a seemingly legitimate workflow into an unsafe execution path.

HarnessRisk presents a lifecycle-oriented way to study that problem. Instead of focusing on one attack technique or one operational setting, the benchmark divides harness safety into six phases: Harness Configuration, Capability Extension, Runtime Operation, State Persistence, Action Control, and Incident Recovery. The structure is designed to examine how untrusted instructions can affect different responsibilities of a deployed agent system.

Key findings

  • The benchmark contains 128 sandboxed cases. Each combines a benign user objective with an adversarial instruction hidden inside an untrusted workflow artifact, rather than presenting the attack as a direct user request.
  • Trajectories are measured with four dimensions: Utility, Attack Success Rate, Persistence, and Detection. This captures not only whether the user’s task is completed, but also whether an attack succeeds, continues to have an effect, and is recognized by the system.
  • Across three harnesses, six language models, and 14 model–harness configurations, attack success ranged from 12.6% to 80.9%. Utility nevertheless remained between 75.0% and 97.6%, showing that useful task completion can coexist with significant security failure.
  • Harness Configuration was the most vulnerable phase across all three harnesses. An attack could succeed by modifying security-sensitive parameters inside a workflow that was otherwise authorized.
  • Recognition alone was not a reliable safety mechanism. Some configurations detected risks in more than 90% of runs while still retaining substantial attack success, revealing a gap between identifying a problem and blocking the resulting action.

The benchmark’s main contribution is a shift in the unit of analysis. Safety is not evaluated only as a property of a model response; it is examined at the level of the deployed model and harness configuration. This perspective matters because permissions, state handling, extension loading, and recovery logic can all change the consequences of the same model behavior.

For developers, the findings support broader testing of configuration updates, tool use, state writes, permission boundaries, and incident recovery. A refusal benchmark alone cannot reveal whether an agent can be redirected through an authorized workflow artifact or whether a detected risk is actually prevented from reaching an external action. For researchers, the Persistence and Detection dimensions offer a way to distinguish transient failures from effects that survive across the workflow.

The available material does not provide detailed rankings for every model, harness, or defense. Its central lesson is nevertheless clear: agent safety should be treated as a property of a continuously operating system. Configuration, execution, memory, action, and recovery all need explicit evaluation.

Source: Hugging Face Daily Papers

Comments

Checking sign-in status...

Loading comments...

Related articles