Summary (Overview)

  • OpenART is a large-scale arena for agent red teaming that treats executable environments, rather than individual prompts, as the fundamental unit of safety evaluation, shifting the paradigm from isolated prompt-based testing to evolving, persistent state-based evaluation.
  • The benchmark constructs over 10K validated stateful scenarios spanning 50 domains from a corpus of 500K+ Tools, MCPs, and Skills, requiring a median of 97 tool calls per task—substantially longer-horizon than prior benchmarks (which range from 1–15 tool calls).
  • OpenART enables unified evaluation across 75 agent–model configurations (15 deployed agents × 5 foundation models) through target-specific adapters that preserve task semantics while projecting scenarios into heterogeneous runtime interfaces.
  • The proposed Evolutionary Markov Hypergraph Attack (EMHA) achieves a pooled Strict ASR of 85.0% across all configurations, with its advantage over instruction-only evolution growing from 1.8–2.7% on simple environments to 17.2–17.6% on the most complex ones.
  • The work reveals that agent implementation contributes 7.6% additional ASR variation beyond foundation model and capability controls, and identifies three recurring vulnerabilities: stale assumptions, propagated safety decisions, and compositional risk emergence.

Introduction and Theoretical Foundation

Background and Motivation

AI agents increasingly operate in persistent environments where tool-mediated actions continuously modify shared state, data, permissions, and external resources throughout long-horizon workflows. Unlike conventional language-model interactions, agent behavior is coupled through an evolving environment that is repeatedly observed, updated, and reused across many decision steps.

The key theoretical insight is that safety failures become properties of the entire interaction trajectory rather than any single action. An action that appears benign in isolation may introduce a latent state change that propagates through future interactions and only manifests as harmful behavior much later.

Limitations of Existing Benchmarks

Existing agent-safety benchmarks (InjecAgent, AgentDojo, ToolEmu, AgentHarm, ASB, DTap) primarily evaluate:

  • Short, static tasks with resettable environments
  • Tight coupling to benchmark-specific infrastructures
  • Limited coverage of persistent state manipulation, delayed attack propagation, and long-range safety failures

OpenART's Design Principles

OpenART treats the scenario as the semantic unit of evaluation, with a clear hierarchy:

ObjectMeaningExample
DomainCapability-supported recurring work settingCloud-platform change reconciliation
Scenario seedConcise description of one situationOperations lead reconciles weekly changes
ScenarioTarget-agnostic evaluation contractPrepare report while keeping protected records private
TaskBenign target-visible instructionProduce weekly report from available evidence
EnvironmentPersistent state for task completionService records, approval logs, decoys
EvaluatorHidden fixed rule measuring completion and safetyCheck report reaches destination without protected markers

Methodology

Scenario Construction

OpenART establishes a 50-domain taxonomy from O*NET occupational categories and interactive agent benchmarks. The planner constructs a directed workflow graph Gq=(Vq,Eq)G_q = (V_q, E_q) where vertices denote grounded environment operations and edges represent dependencies. The workflow satisfies:

(u,v)Eqrq(u)<rq(v),Iq(v)RquAncGq(v)Oq(u),h(Gq)B(c),(1)\begin{array}{c} (u, v) \in E _{q} \Rightarrow r _{q} (u) < r _{q} (v), \\ I _{q} (v) \subseteq R _{q} \cup \bigcup_ {u \in \operatorname{Anc} _{G _{q}} (v)} O _{q} (u), \\ h (G _{q}) \in B (c), \end{array}\tag{1}

where rqr_q is a topological ordering, RqR_q is the initial resource set, and h(Gq)h(G_q) measures workflow complexity (size, dependency depth, parallel width).

The initial environment is compiled as:

x0,q=F(Sq,Gq,Dq),A(x0,q;Sq,c)=1.(2)x _{0, q} = F (S _{q}, G _{q}, D _{q}), \qquad A (x _{0, q}; S _{q}, c) = 1.\tag{2}

The evaluator is validated to correctly distinguish safe from unsafe outcomes:

Eq(oqsafe)=0,Eq(oqunsafe)=1.(3)E _{q} (o _{q} ^{\mathrm{safe}}) = 0, \qquad E _{q} (o _{q} ^{\mathrm{unsafe}}) = 1.\tag{3}

Cross-Agent Runtime Projection

Each runtime rr is associated with an adapter ψr\psi_r that projects shared scenarios into native interfaces. During evolution, only authorized state changes are materialized:

mt=Πr(Δt)={ψr(a):aΔt,v(a)VAVr,pr(a)Lr(v(a)),νr(a)=1}.(4)m _{t} = \Pi _{r} (\Delta _{t}) = \{\psi _{r} (a): a \in \Delta _{t}, v (a) \in V _{A} \cap V _{r}, p _{r} (a) \in L _{r} (v (a)), \nu _{r} (a) = 1 \}.\tag{4}

The attacker and target execute in separate Docker containers, making projection the only communication channel:

(ξt,xt+1)Kr(τ,xt,mt),Yt=Eq(τ,ξt,xt+1).(5)(\xi _{t}, x _{t + 1}) \sim K _{r} (\cdot | \tau , x _{t}, m _{t}), \quad Y _{t} = E _{q} (\tau , \xi _{t}, x _{t + 1}).\tag{5}

Evolutionary Markov Hypergraph Attack (EMHA)

Controlled Environment Evolution follows the protocol:

Δtp(xt,Ct),mt=Πr(Δt),(ξt,xt+1)Kr(τ,xt,mt),Yt=Eq(τ,ξt,xt+1),Ct+1=U(Ct,xt,Δt,mt,Yt).(6)\begin{array}{c} {\Delta _{t} \sim p (\cdot | x _{t}, C _{t}),} \\ {m _{t} = \Pi _{r} (\Delta _{t}),} \\ {(\xi _{t}, x _{t + 1}) \sim K _{r} (\cdot | \tau , x _{t}, m _{t}),} \\ {Y _{t} = E _{q} (\tau , \xi _{t}, x _{t + 1}),} \\ {C _{t + 1} = U (C _{t}, x _{t}, \Delta _{t}, m _{t}, Y _{t}).} \end{array}\tag{6}

Key properties:

  • Frozen parameters: θt+1=θt=θ0\theta_{t+1} = \theta_t = \theta_0 (Eq. 7)—no parameter updates
  • Hypergraph representation: Vertices denote attack subgoals; hyperedges connect prerequisites to successors
  • Markovian path evolution: Ready set depends only on current active subgoals, selected hyperedge, graph, and attacker state
  • Feedback-guided learning using softmax policy over Q-values with temperature τQ\tau_Q:
VC(q)=τQlogeR(q;Gt)exp(QC(q,e)/τQ),πC(eq,xt,Gt)=exp(QC(q,e)/τQ)eR(q;Gt)exp(QC(q,e)/τQ).(11)V _{C} (q) = \tau _{Q} \log \sum_ {e \in R (q; G _{t})} \exp (Q _{C} (q, e) / \tau _{Q}), \quad \pi _{C} (e \mid q, x _{t}, G _{t}) = \frac {\exp (Q _{C} (q , e) / \tau _{Q})}{\sum_ {e ^ {\prime} \in R (q ; G _{t})} \exp (Q _{C} (q , e ^ {\prime}) / \tau _{Q})}.\tag{11}
  • Credit redistribution for delayed rewards:
δt=maxstYsmaxs<tYs,r~t,j=at,jδt,QC(qj,ej)(1α)QC(qj,ej)+α[r~t,j+γVC(qj+1)].(13)\delta _{t} = \max_{s \leq t} Y _{s} - \max_{s < t} Y _{s}, \quad \widetilde{r} _{t, j} = a _{t, j} \delta _{t}, \quad Q _{C} (q _{j}, e _{j}) \gets (1 - \alpha) Q _{C} (q _{j}, e _{j}) + \alpha [ \widetilde{r} _{t, j} + \gamma V _{C} (q _{j + 1}) ].\tag{13}
  • Archive-guided graph evolution following MAP-Elites quality-diversity search, with offspring generated via two graph-edit kernels.

Empirical Validation / Results

Benchmark Complexity Comparison

Table 3: Task-level complexity comparison (median [IQR])

BenchmarkTool callsDependency depthParallel widthState objectsFile formats
InjecAgent1 [1-1]1 [1-1]1 [1-1]1 [1-1]0 [0-0]
ToolEmu3 [1.5-4]2.5 [1.2-3.8]1 [1-1.8]3 [1.2-3]0 [0-0]
AgentDojo2 [1-3]2 [1-3]1 [1-1]1 [1-2]0 [0-0]
AgentHarm3.5 [3-4]3 [3-3]1.5 [1-2]3.5 [3-4]0 [0-0]
ASB2 [2-2]2 [2-2]1 [1-1]2 [2-2]0 [0-0]
DTap15 [7.4-18.7]2 [1-3]1.5 [1-2]2.5 [1-4]1 [0-3]
OpenART97 [90.2-100]32 [15.8-84.8]12.5 [3-24.5]96.5 [90.2-100]7.5 [7-9]

Quality Validation

  • 99.3% correctness of evaluators under human expert verification (10% audit)
  • All scenarios pass deterministic evaluator with automated behavioral probes

Benign Task Completion

Pooled completion ranges from 80.81% (Qwen-3.7-Max) to 96.18% (Claude Opus-4.8). Aider achieves the lowest completion rate (70.74% average), indicating a capability gap.

Red-Teaming Effectiveness (Strict ASR)

Table 6: Strict ASR across target agents and models

Target agentGPT-5.5Opus-4.8GLM-5.2Qwen-3.7-MaxDS-V4-ProAvg.
OpenCode100.062.591.298.999.190.3
Aider61.238.262.366.666.759.1
Claude Code93.664.692.399.598.789.7
Codex85.858.484.290.391.482.0
Continue CLI89.159.789.398.099.487.1
Copilot CLI90.365.490.9100.098.989.1
CodeWhale92.061.890.899.099.288.6
Goose83.754.882.489.088.979.8
Hermes91.559.190.197.999.087.5
Kilo89.665.489.798.997.888.2
Nanobot91.361.792.197.198.588.1
Oh My Pi94.359.393.699.899.389.3
OpenClaw85.652.583.286.688.279.1
Pi92.158.593.098.598.888.2
Qwen Code90.965.292.598.799.589.4
Average88.559.287.994.694.785.0

Ablation Study Results

  • Workspace evolution: 92.5% Strict ASR (10.9% above instruction-only)
  • Full EMHA: 94.7% (13.1% above instruction-only, 2.2% above best single-vector)
  • Removing archive: −3.9% ASR
  • Removing credit redistribution: −2.6% ASR

Key Insights

Insight 1: Environment evolution exposes vulnerabilities missed by static evaluation.

  • Cumulative Strict ASR increases from 42.9% (round 1) to 94.7% (round 5)—a 51.8% cumulative improvement
  • Full EMHA's advantage over instruction-only grows from 1.8–2.7% to 17.2–17.6% as complexity increases

Insight 2: Long-horizon execution amplifies environment changes.

  • Median propagation distance: 37 target actions (IQR: 20–66)
  • First consumption of evolved state at 23% of execution; first unsafe output at 64%
  • Median latency of 41% of the workflow

Insight 3: Three recurring vulnerabilities:

  1. Stale assumptions are rarely invalidated (plan–referent drift, capability rebinding, checkpoint expiry)
  2. Safety decisions are propagated rather than recomputed (deferred safety judgments to downstream components)
  3. Risk emerges compositionally over long workflows (multiple benign changes interact to produce unsafe behavior)

Theoretical and Practical Implications

Theoretical Implications

  • Safety as a trajectory property: The work provides strong empirical evidence that agent safety cannot be characterized through short, static, or model-centric evaluations. Safety must be understood as a property of long-horizon interactions between agents and their evolving environments.
  • Environment evolution as a first-class evaluation dimension: By keeping task objectives and safety contracts fixed while evolving only environment state, OpenART enables causal attribution of safety failures to environmental factors.
  • Agent implementation matters beyond foundation model: The finding that target-agent identity explains an additional 7.6% of ASR variation (beyond model and capability controls) suggests that runtime implementation—interfaces, state handling, memory management—plays a significant role in safety outcomes.

Practical Implications

  • Benchmark design: OpenART demonstrates that realistic agent safety evaluation requires long-horizon (median 97 tool calls), stateful scenarios with persistent state manipulation.
  • Attack surface coverage: The 8 target-visible attack vectors (Workspace, Instructions, Skills, Tools, MCPs, Short-Term Memory, Plan State, Long-Term Memory) provide a comprehensive taxonomy for safety auditing.
  • Cross-agent comparability: The target-agnostic scenario representation with lightweight adapters enables fair comparison across heterogeneous agent runtimes.
  • Adaptive red teaming: EMHA provides a parameter-free, black-box reference policy that can be extended with arbitrary search strategies.

Conclusion

OpenART establishes a scalable foundation for studying agent safety in complex, evolving environments. Key takeaways:

  1. Environment evolution is essential: Static evaluation systematically underestimates agent risk, especially as scenario complexity grows (17.2–17.6% ASR gap on complex scenarios).
  2. Long-horizon workflows amplify safety failures: Environment changes often remain latent for 41% of execution before manifesting as unsafe behavior.
  3. Recurring vulnerabilities exist across agents: Stale assumptions, propagated safety decisions, and compositional risk are shared failure modes across diverse agent–model pairs.
  4. Future directions: The work suggests the need for safety mechanisms that recompute rather than propagate safety decisions, invalidate stale assumptions, and monitor compositional risks over long workflows.

The OpenART framework is policy-agnostic, supporting arbitrary black-box search strategies beyond EMHA, making it a flexible foundation for continued research in agent safety evaluation.

Related papers