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

为LLM代理的安全性需要意图到执行的完整性

Securing LLM Agents Need Intent-to-Execution Integrity

National University of Singapore(新加坡国立大学);University of California, Los Angeles(加州大学洛杉矶分校);University of California, Berkeley(加州大学伯克利分校)

Wenjie Qu, Ming Xu, Peiran Wang, Shengfang Zhai, Jiaheng Zhang, Dawn Song

AI总结:

本文提出了一种新的正确性属性,用于定义LLM代理在执行时如何忠实反映用户的意图,同时提出了四个必须同时满足的完整性属性,以确保代理的安全性。

摘要:

本文主张,为确保LLM代理的安全性,首先需要定义一个端到端的正确性属性,该属性指明何时代理的执行能够忠实反映用户的意图。现代LLM代理操作在一个意图到执行的管道中,将自然语言指令转换为具体的系统操作,如工具调用、API请求和代码执行。尽管最近的防御措施在约束代理如何构建工具调用方面取得了进展,但大多数现有方法隐式假设工具是可信的。随着如OpenClaw等系统出现,其开放的第三方技能生态系统和对用户环境的直接访问打破了这一假设,暴露了新的失败模式,包括执行管道中恶意或特权过高的组件。尽管防御机制取得了快速进展,但尚无充分的正确性属性来定义LLM代理的“安全”含义,也缺乏评估现有防御覆盖范围的系统方法。我们观察到,LLM代理在结构上类似于编译器,其中安全违规对应于不保留用户意图的误执行。基于这一类比,我们识别出两个根本性问题来源——不可信的数据摄入和不可信的工具执行——并推导出四个必须同时满足的完整性属性:工具完整性、指令完整性、判断完整性和数据流完整性。我们称它们的结合为意图到执行完整性。分析现有代理防御措施对这些属性的覆盖情况,发现当前系统只提供部分且非组合的覆盖,导致现代LLM代理的安全性存在根本性缺口。

英文摘要:

This position paper argues that securing LLM agents requires first defining an end-to-end correctness property that specifies when an agent's execution faithfully reflects the user's intent. Modern LLM agents operate over an \emph{intent-to-execution pipeline}, where natural-language instructions are translated into concrete system operations such as tool calls, API requests, and code execution. While recent defenses have made progress in constraining how agents construct tool calls, most existing formulations implicitly assume that tools are trusted. The emergence of systems such as OpenClaw, with open ecosystems of third-party skills and direct access to user environments, breaks this assumption and exposes new failure modes, including malicious or over-privileged components in the execution pipeline. Despite rapid progress in defense mechanisms, there is no adequate correctness property that defines what ``secure'' means for LLM agents, nor a principled way to evaluate the coverage of existing defenses. We observe that LLM agents are structurally analogous to compilers, where security violations correspond to mis-executions that do not preserve user intent. Drawing on this analogy, we identify two fundamental problem sources -- untrusted data ingestion and untrusted tool execution -- and derive four integrity properties that must hold simultaneously: \emph{Tool Integrity}, \emph{Instruction Integrity}, \emph{Judgment Integrity}, and \emph{Data Flow Integrity}. We call their conjunction \emph{intent-to-execution integrity}. Analyzing existing agentic defenses against these properties reveals that current systems provide only partial and non-compositional coverage, leaving fundamental gaps in securing modern LLM agents.

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

↑