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

对齐来源与授权:面向LLM智能体的双图防御

Aligning Provenance with Authorization: A Dual-Graph Defense for LLM Agents

UCLA(加州大学洛杉矶分校)

Peiran Wang, Ying Li, Yuan Tian

AI总结:

提出AuthGraph双图对齐防御框架,通过构建注入推理图与授权图的结构化比较,检测工具调用和参数来源级别的偏差,在AgentDojo上将攻击成功率从40%降至1%并保持76%任务完成率。

摘要:

基于LLM的智能体越来越多地部署在电子邮件管理、金融交易和代码执行等高风险场景中,它们通过工具调用与外部世界交互。在执行过程中,这些智能体必须读取攻击者可控制的外部数据源(电子邮件、网页、文件);通过间接提示注入,攻击者将恶意指令嵌入这些数据中,操纵智能体执行未经授权的操作,例如将资金转移到攻击者控制的账户。现有防御要么在工具调用级别进行值检查而不跟踪参数值的来源,要么从单一角度分析执行轨迹而没有用于比较的干净授权基线。我们提出AuthGraph,一种双图对齐防御框架,它构建两个互补图:一个注入推理图,从实际执行轨迹(包括可能被操纵的归因)建模信息来源;以及一个授权图,从用户意图在隔离的干净上下文中推导,该上下文在信息论上不可能受到注入的影响;然后,一个图对齐检查器对两个图进行结构化比较,以检测工具级别和参数来源级别的偏差。在AgentDojo上,AuthGraph将攻击成功率从40%降至1%,同时在GPT-4o上保持76%的任务完成率;在AgentDyn上,它将攻击成功率从39%降至2%,同时保持51%的效用,优于包括CaMeL、DRIFT和Progent在内的最先进防御。据我们所知,AuthGraph是第一个在参数来源级别上结构化比较授权规范与执行来源的智能体安全防御,在不牺牲智能体灵活性的情况下实现了细粒度的注入检测。

英文摘要:

LLM-based agents are increasingly deployed in high-stakes scenarios such as email management, financial transactions, and code execution, where they interact with the external world through tool calling. During execution, these agents must read external data sources (emails, webpages, files) that attackers can control; through indirect prompt injection, attackers embed malicious instructions in this data to manipulate agents into performing unauthorized operations such as transferring funds to attacker-controlled accounts. Existing defenses either perform tool-call-level value checking without tracking where parameter values originate, or analyze execution traces from a single perspective without a clean authorization baseline for comparison. We propose AuthGraph, a dual-graph alignment defense framework that constructs two complementary graphs: an injected reasoning graph that models information provenance from the actual execution trajectory (including potentially manipulated attributions), and an authorization graph derived from the user's intent in an isolated clean context that is information-theoretically impossible to be influenced by injection; a graph alignment checker then structurally compares the two graphs to detect both tool-level and parameter-source-level deviations. On AgentDojo, AuthGraph reduces the attack success rate from 40% to 1% while maintaining 76% task completion rate on GPT-4o; on AgentDyn, it reduces the attack success rate from 39% to 2% while preserving 51% utility, outperforming state-of-the-art defenses including CaMeL, DRIFT, and Progent. To our knowledge, AuthGraph is the first agent security defense to structurally compare authorization specifications against execution provenance at the parameter-source level, achieving fine-grained injection detection without sacrificing agent flexibility.

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

↑