针对提示注入的执行防御措施(如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.
East China Normal University(东华大学);Shanghai Innovation Institute(上海创新研究院);University of Southampton(南安普顿大学);Shanghai Jiao Tong University(上海交通大学);Software Engineering Institute, East China Normal University(东华大学软件工程研究院)
SkillDRE: Dual-Stage Red-Team Evolution of Agent Skills via Pre-Execution and Runtime Feedback
Beijing University of Posts and Telecommunications(北京邮电大学);North China Electric Power University(华北电力大学);Chongqing University of Posts and Telecommunications(重庆邮电大学)
A Blind Trust, the Bloody Thrust: When Attacker-Controlled Hook Updates Steer AI Agent Harnesses towards Malicious Behaviors
Beijing University of Posts and Telecommunications(北京邮电大学);Data Technology Support Center of the Cyberspace Administration of China(中央网络安全和信息化委员会办公室数据技术支持中心);Beihang University(北京航空航天大学);Zhejiang University(浙江大学)
AgentSentry: Mitigating Indirect Prompt Injection in LLM Agents via Temporal Causal Diagnostics and Context Purification
Key Laboratory of Aerospace Information Security and Trusted Computing, Ministry of Education, School of Cyber Science and Engineering, Wuhan University(航空信息安全与可信计算重点实验室、教育部、网络安全科学与工程学院、武汉大学);Department of Computer Science and Engineering, University at Buffalo, SUNY(计算机科学与工程系、布法罗大学、纽约州立大学);Department of Computer Science, College of Information Science and Technology, Jinan University(计算机科学系、信息科学与技术学院、济南大学);College of Cyber Security, Jinan University(网络安全学院、济南大学)