谁测试测试者?LLM代理工具调用安全的系统枚举与覆盖审计
Who Tests the Testers? Systematic Enumeration and Coverage Audit of LLM Agent Tool Call Safety
AI总结:
本文提出SafeAudit框架,通过系统生成测试用例和规则阻力指标,发现现有测试未覆盖的20%不安全行为,揭示当前安全评估的不足。
摘要:
大型语言模型(LLM)代理越来越多地通过外部工具行动,其安全性取决于工具调用流程而非单纯文本生成。尽管最近的基准测试评估了代理在多样环境和风险类别中的表现,但一个基本问题仍未解决:现有测试套件的完整性如何,以及代理通过基准测试后仍存在的不安全交互模式?我们提出SafeAudit,一个元审计框架,通过两个贡献解决这一缺口。首先,一个基于LLM的枚举器,通过系统地生成测试用例,枚举有效工具调用流程和多样的用户场景。其次,我们引入规则阻力,一种非语义、定量指标,从现有基准中提炼紧凑的安全规则,并识别在这些规则下仍未被发现的不安全交互模式。在3个基准和12个环境中,SafeAudit发现了超过20%的残留不安全行为,这些行为在现有基准中未能暴露,随着测试预算的增加,覆盖范围呈单调增长。我们的结果突显了当前安全评估中的显著完整性缺口,并促使元审计成为补充基准基代理安全测试的必要手段。
英文摘要:
Large Language Model (LLM) agents increasingly act through external tools, making their safety contingent on tool-call workflows rather than text generation alone. While recent benchmarks evaluate agents across diverse environments and risk categories, a fundamental question remains unanswered: how complete are existing test suites, and what unsafe interaction patterns persist even after an agent passes the benchmark? We propose SafeAudit, a meta-audit framework that addresses this gap through two contributions. First, an LLM-based enumerator that systematically generates test cases by enumerating valid tool-call workflows and diverse user scenarios. Second, we introduce rule-resistance, a non-semantic, quantitative metric that distills compact safety rules from existing benchmarks and identifies unsafe interaction patterns that remain uncovered under those rules. Across 3 benchmarks and 12 environments, SafeAudit uncovers more than 20% residual unsafe behaviors that existing benchmarks fail to expose, with coverage growing monotonically as the testing budget increases. Our results highlight significant completeness gaps in current safety evaluation and motivate meta-auditing as a necessary complement to benchmark-based agent safety testing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。