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

ClawSafety: 安全的LLM,不安全的代理

ClawSafety: "Safe" LLMs, Unsafe Agents

George Mason University(乔治梅森大学);Tulane University(杜兰大学);Rutgers University(罗格斯大学);Oak Ridge National Laboratory(橡树岭国家实验室)

Bowen Wei, Yunbei Zhang, Jinhao Pan, Kai Mei, Xiao Wang, Jihun Hamm, Ziwei Zhu, Yingqiang Ge

AI总结:

ClawSafety评估了120个对抗性测试场景,揭示了高权限工作环境中LLM的安全性问题,强调部署栈对安全性的关键影响。

摘要:

个人AI代理如OpenClaw在用户本地机器上以提升权限运行,单个成功的提示注入可泄露凭证、重定向财务交易或破坏文件。此威胁超越传统文本级 jailbreaks,现有安全评估不足:大多数测试模型依赖孤立聊天环境和合成环境,未考虑代理框架本身对安全结果的影响。我们引入CLAWSAFETY,包含120个对抗性测试场景,沿三个维度(危害领域、攻击向量、有害行动类型)组织,并基于现实中的高权限专业工作空间(软件工程、金融、医疗、法律、DevOps)。每个测试案例将对抗性内容嵌入代理正常工作时遇到的三个渠道之一:工作区技能文件、来自可信发件人的电子邮件和网页。我们评估了五个前沿LLM作为代理核心模型,运行2520次沙盒测试。攻击成功率(ASR)在模型间从40%到75%不等,且随注入向量变化显著,技能指令(最高信任)比电子邮件或网页内容更危险。行动轨迹分析显示,最强模型维持对凭证转发和破坏性行为的硬边界,而较弱模型允许两者。跨框架实验进一步表明,安全性不仅由核心模型决定,还取决于整个部署栈,呼吁将模型和框架视为联合变量进行安全评估。代码和数据将在https://weibowen555.github.io/ClawSafety/上提供。

英文摘要:

Personal AI agents like OpenClaw run with elevated privileges on users' local machines, where a single successful prompt injection can leak credentials, redirect financial transactions, or destroy files. This threat goes well beyond conventional text-level jailbreaks, yet existing safety evaluations fall short: most test models in isolated chat settings, rely on synthetic environments, and do not account for how the agent framework itself shapes safety outcomes. We introduce CLAWSAFETY, a benchmark of 120 adversarial test scenarios organized along three dimensions (harm domain, attack vector, and harmful action type) and grounded in realistic, high-privilege professional workspaces spanning software engineering, finance, healthcare, law, and DevOps. Each test case embeds adversarial content in one of three channels the agent encounters during normal work: workspace skill files, emails from trusted senders, and web pages. We evaluate five frontier LLMs as agent backbones, running 2,520 sandboxed trials across all configurations. Attack success rates (ASR) range from 40\% to 75\% across models and vary sharply by injection vector, with skill instructions (highest trust) consistently more dangerous than email or web content. Action-trace analysis reveals that the strongest model maintains hard boundaries against credential forwarding and destructive actions, while weaker models permit both. Cross-scaffold experiments on three agent frameworks further demonstrate that safety is not determined by the backbone model alone but depends on the full deployment stack, calling for safety evaluation that treats model and framework as joint variables. Code and data will be available at: https://weibowen555.github.io/ClawSafety/.

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

↑