测试计算机代理在看似合理步骤中累积危害行为的基准
AgentHazard: A Benchmark for Evaluating Harmful Behavior in Computer-Use Agents
- 构建2653个实例,模拟局部合法但整体有害的操作序列
- 主流代理如Claude Code在Qwen3-Coder驱动下攻击成功率高达73.63%
- 适合研究智能体安全、模型对齐与自动化系统风险评估者
计算机使用代理将语言模型从文本生成拓展到对工具、文件和执行环境的持续操作。与聊天系统不同,它们在交互中保持状态,并将中间输出转化为具体动作。这带来了独特的安全挑战:有害行为可能通过一系列看似合理的步骤逐步形成,其中中间操作虽局部合法,但累积后导致未经授权的行为。本文提出 extbf{AgentHazard},一个用于评估计算机使用代理中危害行为的基准。该基准包含 extbf{2,653} 个实例,覆盖多样风险类别和攻击策略。每个实例将一个有害目标与一系列局部合法但联合导致不安全行为的操作步骤配对。基准评估代理是否能识别由累积上下文、重复工具调用、中间动作及步骤间依赖引发的危害。我们在 Claude Code、OpenClaw 和 IFlow 上使用 Qwen3、Kimi、GLM、DeepSeek 等家族的多数开源或可公开部署模型进行测试。实验结果表明,当前系统仍高度脆弱。尤其当由 Qwen3-Coder 驱动时,Claude Code 的攻击成功率达到 extbf{73.63 extbackslash extbackslash%},表明仅靠模型对齐无法可靠保障自主代理的安全。
原文摘要 · Abstract (English)
Computer-use agents extend language models from text generation to persistent action over tools, files, and execution environments. Unlike chat systems, they maintain state across interactions and translate intermediate outputs into concrete actions. This creates a distinct safety challenge in that harmful behavior may emerge through sequences of individually plausible steps, including intermediate actions that appear locally acceptable but collectively lead to unauthorized actions. We present \textbf{AgentHazard}, a benchmark for evaluating harmful behavior in computer-use agents. AgentHazard contains \textbf{2,653} instances spanning diverse risk categories and attack strategies. Each instance pairs a harmful objective with a sequence of operational steps that are locally legitimate but jointly induce unsafe behavior. The benchmark evaluates whether agents can recognize and interrupt harm arising from accumulated context, repeated tool use, intermediate actions, and dependencies across steps. We evaluate AgentHazard on Claude Code, OpenClaw, and IFlow using mostly open or openly deployable models from the Qwen3, Kimi, GLM, and DeepSeek families. Our experimental results indicate that current systems remain highly vulnerable. In particular, when powered by Qwen3-Coder, Claude Code exhibits an attack success rate of \textbf{73.63\%}, suggesting that model alignment alone does not reliably guarantee the safety of autonomous agents.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。