arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.18356cs.CRcs.AI
收藏

SafeClawBench: 区分工具使用LLM代理中的语义、审计证据和沙箱危害

SafeClawBench: Separating Semantic, Audit-Evidence, and Sandbox Harm in Tool-Using LLM Agents

Peking University(北京大学);Beijing Jiaotong University(北京交通大学);SUIBE(上海外国语大学);Huawei(华为);Tsinghua University(清华大学)

Yuchuan Tian, Mengyu Zheng, Haocheng Mei, Ye Yuan, Chao Xu, Xinghao Chen, Hanting Chen, Yu Wang

AI总结:

提出SafeClawBench基准,通过三个独立端点(语义攻击接受、审计可见危害证据、沙箱观察危害)评估工具使用LLM代理的安全性,揭示不同失败模式并支持可复现比较。

摘要:

使用工具的语言模型代理引入了超出不安全文本的安全失败:它们可以泄露受保护对象、写入持久内存、发送消息、修改数据库或触发有害代码和工具效果。现有的评估通常将这些阶段合并为单一的攻击成功率,使得难以判断模型仅仅是同意了攻击者还是实际产生了可观察的危害。我们引入了SafeClawBench,一个用于工具使用代理安全性的分阶段基准,包含600个受控对抗任务,涵盖六种攻击家族:直接和间接提示注入、工具返回注入、内存投毒、内存提取以及歧义驱动的不安全推理。SafeClawBench报告三个独立的端点:语义攻击接受、审计可见危害证据和沙箱观察的工具/状态危害。在四种提示级策略下评估五个代理端点,我们发现这些端点捕捉了不同的失败模式。在没有额外提示保护的情况下,语义失败率在不同模型间差异很大,从9.0%到44.2%。审计危害证据比语义失败更窄,并且在单独的可执行协议下,一些匹配的任务身份在通过语义核心调用后仍产生沙箱危害:在12000行的匹配分析中,347个观察到的沙箱危害中有291个发生在通过语义检查的行中。提示策略会改变端点结果,但其效果取决于模型和协议。SafeClawBench提供了一个可复现的框架,用于比较代理模型和提示策略条件,而不会混淆文本合规性、证据支持的危害和可执行状态变化。开源数据集可在该https URL获取。

英文摘要:

Tool-using language-model agents introduce security failures that go beyond unsafe text: they can disclose protected objects, write persistent memory, send messages, modify databases, or trigger harmful code and tool effects. Existing evaluations often collapse these stages into a single attack success rate, making it difficult to tell whether a model merely agreed with an attacker or actually produced observable harm. We introduce SafeClawBench, a staged benchmark for tool-using agent security with 600 controlled adversarial tasks across six attack families: direct and indirect prompt injection, tool-return injection, memory poisoning, memory extraction, and ambiguity-driven unsafe inference. SafeClawBench reports three separate endpoints: semantic attack acceptance, audit-visible harm evidence, and sandbox-observed tool/state harm. Evaluating five agent endpoints under four prompt-level policies, we find that these endpoints capture different failure modes. Without additional prompt protection, semantic failure rates vary widely across models, from 9.0% to 44.2%. Audited harm evidence is narrower than semantic failure, and under a separate executable protocol some matched task identities produce sandbox harm despite passing the Semantic Core call: in a 12,000-row matched analysis, 291 of 347 observed sandbox harms occur in rows that pass the semantic check. Prompt policies change endpoint outcomes, but their effects depend on both model and protocol. SafeClawBench provides a reproducible framework for comparing agent models and prompt-policy conditions without conflating textual compliance, evidence-supported harm, and executable state changes. The open-source dataset is available at https://huggingface.co/datasets/sairights/safeclawbench.

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

↑