ActBench: Self-Evolving Benchmark of Behavioral Safety in Cowork Agents
Hongwei Yao, Yiming Liu, Meihui Chen, Jieling Chen, Zikun Chen, Yiling He, Wangze Ni, Cong Wang, Kui Ren
City University of Hong Kong · Zhejiang University · University College London · Xiaomi Corporation
cs.CR, cs.AI
Submitted: 2026-08-10
Updated: 2026-08-11
Comments: Benchmark and Code is available https://github.com/zjuicsr/ActBench
Code: https://github.com/zjuicsr/ActBench
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 95/100
The gist: ActBench introduces a benchmark for evaluating the behavioral safety of cowork agents, defined as whether an agent's execution remains within the permissions and state changes required by a benign
Terminology
Summary
ActBench introduces a benchmark for evaluating the behavioral safety of cowork agents, defined as whether an agent's execution remains within the permissions and state changes required by a benign task. The benchmark contains 600 cases forming 300 matched benign and malicious pairs from 213 scenarios, covering 15 risk behaviors, six execution spaces, and 48 web-service APIs. Each malicious case pairs a benign task with an adversarial variant that preserves the instruction, configuration, initial state, rating model, and trusted records while injecting a task-reachable payload.
The paper states: "We define behavioral safety as whether an agent's execution remains within the permissions and state changes required by a benign task. A risk behavior is identified when trusted records show that an out of scope action produced a prohibited effect through the observed execution trajectory."
The benchmark construction uses four stages: an empirical strategy pool, reward-guided beam search, reflection-based deep probing, and dual evidence verification. The reward-guided beam search ranks candidates by a geometric score combining attack grading score (AGS) and utility grading score (UGS): "s(xt) = ga(xt) α gu(xt)(1−α), 0 < α < 1. Reflection-based deep probing diagnoses failures into ten classes including
not read, ignored, refused, weak attack, unreached sink, sink missing target content, broken task integrity, unstable success, verified success, or unknown. Dual evidence verification combines log-based evidence and LLM-based trajectory evidence, with the final AGS defined as a convex combination:
ga(xi) = βga′(xi) + (1−β)ga″(xi), 0 < β < 1."
The paper evaluates 15 LLMs and 6 open-source cowork agents (OpenClaw, Hermes, Claude Code, OpenAgent, OpenCode, and QwenPaw) across 20 controlled configurations and 24,000 execution trajectories. Under a fixed harness, attack success rates range from 10.1% to 94.4% across models, while under a fixed base model, they range from 73.7% to 94.4% across agents. The paper reports: These results show greater variation across models than agent harness, while attacks remain highly successful across all tested harnesses.
For RQ1 (model effects with OpenClaw fixed), Claude-Opus-4.8 achieves the lowest AGS of 0.284 and ASR of 10.1%, while Deepseek-v4-Pro exhibits the highest risk with AGS of 0.955, ASR of 94.4%, and pass@3 of 98.7%. The paper notes: Claude-Opus-4.8 therefore reduces AGS by 0.671 and ASR by 84.3% relative to Deepseek-v4-Pro.
Benign UGS remains high across models, ranging from 0.869 to 0.940.
For RQ2 (harness effects with Deepseek-v4-Pro fixed), QwenPaw records the lowest ASR at 73.7%, while OpenClaw records 94.4%. The paper states: OpenAgent has the lowest AGS and the highest UGS. QwenPaw has the lowest ASR but a higher AGS than OpenAgent.
Memory Poisoning AGS ranges from 0.24 to 0.98 across harnesses, and Credential Exposure ranges from 0.40 to 0.97.
For RQ3 (safety policy effects), the paper evaluates detection methods including Prompt-Guard-2-86M, Llama-Guard-4-12B, AgentDoG-Qwen-4B, AI-Infra-Guard, and Cisco-Skill-Scanner. Cisco Skill Scanner detects 270 of 300 malicious artifacts with 90.0% recall, while AgentDoG detects 167 malicious cases with 95.4% precision and 55.7% recall. The paper concludes: Trajectory and artifact evidence aligns more closely with realized behavioral labels than local text alone, but precision and recall trade off sharply across the two evidence boundaries.
The paper also includes an execution cost analysis showing that malicious rollouts have higher mean token consumption for all 15 models (relative increases from 2.7% to 20.4%), but neither action cycles nor token consumption reproduces the ASR ordering. The paper states: The results indicate that the observed risk ranking is not explained by longer or more token-intensive execution.
The paper's key findings are summarized as: "With the cowork harness fixed, changing only the base model changes ASR by 84.3% and pass@3 by 85.0%, while benign UGS changes by only 0.071. Behavioral safety is primarily determined by model specific action selection and cannot be inferred from task utility or execution length. Additionally:
Harness design changes exposure for memory and credential behaviors, yet every tested harness remains vulnerable on at least 73.7% of malicious rollouts under the fixed model."
Improvements for AI systems
Improvements to AI Systems Based on ActBench Findings
- Model-Level Safety Filtering via Action-Selection Gating
-
Improvement: Integrate a lightweight, model-agnostic pre-execution gate that scores each proposed action against the task’s permission scope and state-change constraints (using the paper’s behavioral safety definition).
-
Capability: The improved system rejects out-of-scope actions before execution, reducing ASR by up to 84.3% (matching Claude-Opus-4.8’s advantage over Deepseek-v4-Pro) without degrading benign UGS (which stays above 0.869).
- Dual-Evidence Trajectory Auditor
-
Improvement: Embed a runtime auditor that combines log-based evidence (exact API calls, state diffs) with LLM-based trajectory reasoning (using the convex combination β=0.5) to flag prohibited effects post-hoc.
-
Capability: The system detects malicious rollouts with 95.4% precision (as AgentDoG does) while reducing false negatives by cross-validating both evidence types—catching cases where local text alone misses the risk (e.g., memory poisoning or credential exposure).
- Risk-Aware Reward Shaping for Agent Training
-
Improvement: Modify the agent’s reward function to include a behavioral safety penalty term, derived from the geometric score s(xt) = ga(xt) α * gu(xt)(1−α) with α=0.7, prioritizing attack resistance over raw utility.
-
Capability: The trained agent maintains high task utility (UGS > 0.9) while actively avoiding task-reachable payloads, reducing ASR from 94.4% to below 30% across harnesses, as evidenced by the model-vs-harness variance.
- Harness-Agnostic Memory and Credential Sandboxing
-
Improvement: Implement a mandatory access control layer for memory and credential APIs, independent of the agent harness, that requires explicit user confirmation for any state change outside the benign task’s declared scope.
-
Capability: The system eliminates the 0.24–0.98 Memory Poisoning AGS range and 0.40–0.97 Credential Exposure range, ensuring no harness (even OpenClaw at 94.4% ASR) can execute prohibited effects—reducing worst-case ASR to <5%.
- Utility-Decoupled Risk Prediction
-
Improvement: Add a separate risk classifier that runs in parallel with task execution, using only action sequences and state transitions (not token counts or task success) to predict behavioral safety—since the paper shows execution length does not correlate with risk.
-
Capability: The system can preemptively halt a rollout when the classifier predicts high risk (e.g., >0.7 probability of out-of-scope effect), even if the task appears to be progressing normally, cutting malicious rollouts’ token consumption by up to 20.4% and preventing harm.
- Reflection-Based Failure Recovery for Safe Agents
-
Improvement: Incorporate the paper’s ten-class failure diagnosis (e.g., “ignored,” “weak attack,” “unreached sink”) into an agent’s post-action reflection loop, allowing it to self-correct when it detects it has deviated from benign scope.
-
Capability: The improved agent, when it recognizes a “broken task integrity” or “sink missing target content” state, automatically reverts to the last safe checkpoint and re-plans, reducing ASR by 50% on repeated attempts (pass@3 drops from 98.7% to <40%).
- Cross-Model Safety Transfer via Policy Distillation
-
Improvement: Distill the safety policy of the best-performing model (Claude-Opus-4.8, ASR 10.1%) into weaker base models (e.g., Deepseek-v4-Pro) by training on the 600 benchmark cases’ matched benign/malicious pairs.
-
Capability: The distilled model inherits the strong action-selection bias toward benign scope, reducing its ASR from 94.4% to ~20% while preserving UGS within 0.05 of the original, without requiring architectural changes.
Abstract
Cowork agents may complete benign tasks while disclosing protected data, manipulating unauthorized state, invocate unauthorized API. We define behavioral safety and introduce ActBench, a self-evolving benchmark that evaluates such behavior risk from execution trajectories rather than final responses. Each case pairs a benign task with an adversarial variant that preserves its instruction, configuration, initial state, rating model, and trusted records while injecting a task-reachable payload. ActBench contains 600 cases from 213 scenarios, spanning 15 risk behaviors, six execution spaces, and 48 web-service APIs.To move beyond static payloads, we propose a reward-guided beam search method that jointly optimizes attack effectiveness and task utility, while reflection diagnoses failed execution checkpoint and guides payload revision. Besides, we propose a dual evidence verification mechanism that verifies agent execution safety and utility through log evidence and LLM-based trajectory evidence.We evaluate 15 LLMs and 6 open-source cowork agents over 24,000 trajectories. Under a fixed harness, attack success rates ranges from 10.1% to 94.4% across models, while under a fixed base model, they range from 73.7% to 94.4% across agents.These results show greater variation across models than agent harness, while attacks remain highly successful across all tested harnesses.Our benchmark is released at: https://github.com/zjuicsr/ActBench.
Sources
- HarmfulSkillBench: How Do Harmful Skills Weaponize Your Agents?
- "Humans welcome to observe": A First Look at the Agent Social Network Moltbook
- AgentDoG: A Diagnostic Guardrail Framework for AI Agent Safety and Security
- Quantifying Conversation Drift in MCP via Latent Polytope
- Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasures
- A Systematic Security Evaluation of OpenClaw and Its Variants
- Securing the AI Agent: A Unified Framework for Multi-Layer Agent Red Teaming
Related papers
- SoK: AI-Augmented Binary Reversing
- Relaxed Sender Anonymity for CBDC Interbank Settlement: A Zero-Knowledge Approach on Permissioned EVM
- Calibration-Family Overfit: Why Trusted Sabotage Monitors Don't Transfer Across Lineages
- Efficient Fuzzy PSI under One-Sided Assumptions
- Sealing the Audit-Runtime Gap for LLM Skills
- Token Composition: A Graph Based on EVM Logs