arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.18457cs.CRcs.LG
收藏

Kairos:面向大语言模型智能体的系统边界事务安全执行机制

Kairos: Transactional Security Enforcement at the System Boundary for LLM Agents

Universität zu Lübeck(吕贝克大学);University College London(伦敦大学学院);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)

Kristoffer Hempel, Nils Loose, Lorenzo Cavallaro, Thomas Eisenbarth

AI总结:

Kairos是面向LLM智能体的系统边界事务安全执行机制,通过隔离边界参考监控器与声明式策略,在AgentDojo等基准测试中大幅降低攻击成功率,且不影响良性实用性。

摘要:

大语言模型(LLM)智能体正成为软件开发生命周期的重要组成部分,其被赋予的权限允许智能体以用户的身份对其可访问的任何资源进行操作。这种为智能体提供实用性的权限范围,同样也会被攻击者利用来操控智能体。智能体接收的任何内容都可能包含注入的指令,且由于模型无法可靠地区分指令与数据,间接提示注入攻击需要通过对智能体产生的影响进行中介来缓解。这种中介面临结构性难题:当观察单个操作时,合法工作与攻击的第一步往往表现相似,二者的区别存在于后续的执行轨迹中,因此仅能执行允许和拒绝操作的监控器必须在证据积累完成前做出决策。我们提出Kairos,这是一个位于未修改、不透明智能体隔离边界处的参考监控器,智能体生成的工具调用、Shell命令和脚本都会以相同的文件和网络操作形式穿过该边界,因此无论智能体行为如何,都能实现 confinement(隔离)。声明式策略会明确哪些来源是可信的,可确定性地决定大部分影响,其余影响则会在智能体继续 speculative(推测性)执行时被暂存。拥有有限权限的决策预言机(如语言模型或人类)会根据执行轨迹释放或拒绝每个暂存的影响。在三个基准测试和三个智能体模型上,Kairos在攻击成功率与实用性的权衡方面优于现有防御机制。特别是在AgentDojo基准测试中,它将攻击成功率从47.0%降至2.7%,同时其良性实用性保持在未防御智能体的水平。

英文摘要:

Large language model (LLM) agents are becoming an integral part of the software development lifecycle, and the capabilities granted to them allow an agent to act with the user's authority on any resource it can access. The reach that gives an agent its utility is equally available to an attacker who can steer it. Anything an agent ingests can carry an injected instruction, and since the model does not reliably distinguish instructions from data, indirect prompt injection should be mitigated by mediating the effects the agent produces. Such mediation faces a structural difficulty. Legitimate work and the first step of an attack often look alike when an individual action is observed, and what separates them lies later in the trace, so a monitor limited to allow and deny is forced to decide before the evidence accumulates. We present Kairos, a reference monitor at the isolation boundary of an unmodified, opaque agent, where a tool call, a shell command, and a script the agent writes all cross the boundary as the same file and network operations, so that confinement holds regardless of the agent's behavior. A declarative policy that states which sources are trusted decides most effects deterministically and defers the rest, which are held while the agent continues speculatively. A decision oracle with bounded authority, such as a language model or a human, releases or refuses each deferred effect on the trace. Across three benchmarks and three agent models, Kairos outperforms existing defenses in the trade-off between attack success and utility. In particular, on AgentDojo, it reduces attack success from 47.0\% to 2.7\% while its benign utility stays at the level of the undefended agent.

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

↑