arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.19722cs.CRcs.AI
收藏

在自主安全代理中测量安全对齐效应

Measuring Safety Alignment Effects in Autonomous Security Agents

University College London(伦敦大学学院)

Isaac David, Arthur Gervais

AI总结:

本文提出了一种基于轨迹的基准测试,用于评估安全代理在执行漏洞分析任务时的安全对齐效果,发现安全代理的性能差异主要体现在拒绝、不安全行为和工具可靠性等方面,而非单纯的拒绝率。

摘要:

当安全对齐的语言模型及其未经审查或删除的衍生版本作为自主安全代理运行时,它们的行为是否不同?单轮拒绝基准无法回答这个问题:安全代理必须检查仓库、调用工具并在授权的沙箱中生成漏洞证据。我们提出了一个包含30个本地漏洞分析任务的基于轨迹的基准测试,这些任务具有固定的工具、确定的成功谓词、擦除规则和基础检查,并将四种标准模型与未经审查或删除的衍生版本进行比较:Gemma 4 31B、Gemma 4 26B A4B、Qwen2.5-Coder 7B和Llama 3.1 8B。该成果包含1,500个安全代理轨迹和800个非安全控制轨迹。Gemma配对显示在安全任务中具有较大的限制减少收益:31B的成功率从14.0%降至0.7%,26B的成功率从10.7%降至0.0%,同时具有更高的平均基础性(3.91 vs 3.27和4.12 vs 1.64,满分5分)以及0.0%的拒绝、压制行为和不安全行为率。然而,控制和非Gemma配对排除了干净的安全特定或普遍的限制减少效应:Gemma的差距也出现在普通编码任务中,Qwen2.5-Coder在限制减少衍生版本中的成功率较低(2.0% vs 5.3%),而删除的Llama衍生版本未能通过工具协议。在所有家族中,硬证明触发和补丁验证任务仍无法解决。这些结果表明,自主安全代理中的安全对齐效应应在系统层面进行测量,将拒绝、不安全行为、工具可靠性和证据基础性分开,而不是将拒绝率作为安全信号。

英文摘要:

Do stock safety-aligned language models and their uncensored or abliterated derivatives behave differently when run as autonomous security agents? Single-turn refusal benchmarks cannot answer this question: security agents must inspect repositories, call tools, and produce vulnerability evidence inside authorized sandboxes. We present a trace-based benchmark of 30 local vulnerability-analysis tasks with fixed tools, deterministic success predicates, redaction rules, and grounding checks, and compare four stock models against uncensored or abliterated derivatives: Gemma 4 31B, Gemma 4 26B A4B, Qwen2.5-Coder 7B, and Llama 3.1 8B. The artifact contains 1,500 security-agent traces and 800 non-security control traces. The Gemma pairs show large less-restricted gains on security tasks: 14.0% versus 0.7% success for 31B and 10.7% versus 0.0% for 26B, with higher mean grounding (3.91 versus 3.27 and 4.12 versus 1.64 out of five) and 0.0% refusal, suppressed-action, and unsafe-action rates in the 31B traces. However, controls and non-Gemma pairs rule out a clean security-specific or universal less-restricted effect: Gemma gaps also appear on ordinary coding tasks, Qwen2.5-Coder success is lower for the less-restricted derivative (2.0% versus 5.3%), and the abliterated Llama derivative fails the tool protocol. Across all families, hard proof-of-trigger and patch-verification tasks remain unsolved. These results show that safety alignment effects in autonomous security agents should be measured at the system level, separating refusal, unsafe action, tool reliability, and evidence grounding rather than treating refusal rate as the safety signal.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑