HarnessRisk:面向智能体安全机制全生命周期的基准测试
HarnessRisk: A Lifecycle-Oriented Benchmark for Agent Harness Safety
August 18, 2026
作者: Yajing Bai, Jinhao Duan, Jie Peng, Xianfeng Wu, Sijia Liu, Song Wang, Tianlong Chen
cs.AI
摘要
大语言模型日益通过智能体框架进行部署,这些框架管理工具、扩展、持久状态、权限和外部操作。现有安全基准主要针对单个攻击机制或有限的操作设置子集,这使得难以比较不同框架职责下安全故障的出现方式。我们提出HarnessRisk,一个面向生命周期的基准,将智能体框架安全划分为六个运行阶段,包括框架配置、能力扩展、运行时操作、状态持久化、动作控制和事件恢复。HarnessRisk包含128个沙箱化案例,每个案例将一个良性用户目标与嵌入在不可信工作流工件中的对抗性指令配对。我们使用效用、攻击成功率、持久性和检测四个指标评估每条轨迹。在三个框架、六个语言模型以及14组模型和框架配置中,攻击成功率介于12.6%至80.9%之间,而效用保持在75.0%至97.6%之间。框架配置是所有三个框架中最脆弱的阶段,表明攻击可以通过在原本授权的工作流中修改安全敏感参数而成功。我们还发现,显式的风险识别并不能可靠地导向安全行动,因为某些配置在超过90%的运行中检测到风险,却仍保持显著的攻击成功率。这些结果强调需要在多个框架职责层面,以及在部署的模型和框架配置层面评估智能体安全性。
English
Large language models are increasingly deployed through agent harnesses that manage tools, extensions, persistent state, permissions, and external actions. Existing safety benchmarks mainly target individual attack mechanisms or a limited subset of operational settings, making it difficult to compare how safety failures emerge across different harness responsibilities. We present HarnessRisk, a lifecycle oriented benchmark that organizes agent harness safety into six operational phases including Harness Configuration, Capability Extension, Runtime Operation, State Persistence, Action Control, and Incident Recovery. HarnessRisk contains 128 sandboxed cases, each pairing a benign user objective with an adversarial instruction embedded in an untrusted workflow artifact. We evaluate each trajectory using Utility, Attack Success Rate, Persistence, and Detection. Across three harnesses, six language models, and 14 model and harness configurations, attack success ranges from 12.6% to 80.9%, while Utility remains between 75.0% and 97.6%. Harness Configuration is the most vulnerable phase across all three harnesses, showing that attacks can succeed by altering security sensitive parameters within otherwise authorized workflows. We also find that explicit risk recognition does not reliably lead to safe action, as some configurations detect risks in more than 90% of runs while retaining substantial attack success. These results highlight the need to evaluate agent safety across multiple harness responsibilities and at the level of the deployed model and harness configuration.