arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.17115cs.AIcs.CLcs.CR
收藏

CapLite:无需模型编写安全构件的小型语言模型智能体提示注入防御

CapLite: Prompt-Injection Defense for Small Language Model Agents without Model-Written Security Artifacts

The University of Tokyo(东京大学);Institute of Automation, CAS(中国科学院自动化研究所)

Zimo Xu, Wenzhuo Liu, Hideki Nakayama

AI总结:

本文针对现有提示注入防御依赖模型编写安全构件不可信的问题,提出CapLite防御方法,在AgentDojo实验中实现无攻击成功,且效用与CaMeL相当、每令牌效用最高。

摘要:

针对提示注入的执行防御措施(如CaMeL、Progent、IPIGuard和DRIFT)要求智能体自身模型编写安全构件(程序、权限策略、依赖图或约束列表),再由代码执行这些构件。本文探究小型语言模型(SLM)智能体是否可信任其编写此类构件:在15个开放权重模型中,13个参数规模在17亿至120亿之间的模型均不可信——智能体模型编写的策略、图和约束对Progent的14个模型、IPIGuard的13个模型、DRIFT的11个模型存在攻击可能,而CaMeL的程序在多达68%的回合中无法运行。本文提出CapLite,其策略源自工具模式,在读取任何工具结果前提交写入调用,仅当所有决定写入影响对象的参数均在用户请求中明确说明时才允许写入,以此保证写入完整性:注入文本无法添加写入操作,且写入不会到达用户未指定的接收者、金额、对象或目的地;在13935次受攻击的AgentDojo回合中,无攻击成功。CapLite在受攻击时的效用与CaMeL相当(29.0% vs. 27.2%),且令牌数少于所有其他执行防御措施及未受防御的智能体(每回合17.1k,为CaMeL的18%),是所有执行防御措施中每令牌效用最高的。

英文摘要:

Enforcement defenses against prompt injection, such as CaMeL, Progent, IPIGuard and DRIFT, ask the agent's own model to write a security artifact (a program, a privilege policy, a dependency graph or a constraint list) that code then enforces. We ask whether small language model (SLM) agents can be trusted to write these artifacts. Across 15 open-weight models, 13 of them between 1.7B and 12B parameters, they cannot: the policies, graphs and constraints that the agent's model writes admit attacks on 14 (Progent), 13 (IPIGuard) and 11 (DRIFT) of the models, and CaMeL's programs fail to run in up to 68% of episodes. We present CapLite, which derives its policy from the tool schemas, commits the write calls before any tool result is read, and admits a write only if every argument that decides whom or what it affects is stated in the user's request. This guarantees write integrity: injected text cannot add a write, and no write reaches a recipient, amount, object or destination that the user did not state. No attack succeeds in 13,935 attacked AgentDojo episodes. CapLite reaches utility under attack comparable to CaMeL's (29.0% vs. 27.2%) with fewer tokens than every other enforcement defense and than the undefended agent: 17.1k per episode, 18% of CaMeL's, and the highest utility per token of all enforcement defenses.

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

↑