AgentVisor: 通过语义虚拟化防御LLM代理的提示注入
AgentVisor: Defending LLM Agents Against Prompt Injection via Semantic Virtualization
AI总结:
本文提出AgentVisor框架,通过语义权限分离防御LLM代理的提示注入攻击,结合经典操作系统安全原语设计审计协议,并引入自修正机制,实验表明其在安全性和实用性上均优于现有方法。
摘要:
大型语言模型(LLM)代理日益用于自动化复杂工作流,但整合不可信外部数据与特权执行会暴露于严重安全风险,特别是直接和间接提示注入。现有防御在安全与实用性之间面临挑战,往往在严格保护与检测间接注入之间权衡。受操作系统虚拟化启发,我们提出AgentVisor,一种新的防御框架,强制语义权限分离。AgentVisor将目标代理视为不可信的Guest,并通过可信的语义Visor拦截工具调用。我们的方法核心是基于经典操作系统安全原语的严格审计协议,旨在系统性地缓解直接和间接注入攻击。此外,我们引入了一种一次性自修正机制,将安全违规转化为建设性反馈,使代理能够从攻击中恢复。广泛实验表明,AgentVisor将攻击成功率降至0.65%,在仅造成1.45%的实用性下降相对无防御场景的情况下,实现了强大的防御,优于现有防御方法。
英文摘要:
Large Language Model (LLM) agents are increasingly used to automate complex workflows, but integrating untrusted external data with privileged execution exposes them to severe security risks, particularly direct and indirect prompt injection. Existing defenses face significant challenges in balancing security with utility, often encountering a trade-off where rigorous protection leads to over-defense, or where subtle indirect injections bypass detection. Drawing inspiration from operating system virtualization, we propose AgentVisor, a novel defense framework that enforces semantic privilege separation. AgentVisor treats the target agent as an untrusted guest and intercepts tool calls via a trusted semantic visor. Central to our approach is a rigorous audit protocol grounded in classic OS security primitives, designed to systematically mitigate both direct and indirect injection attacks. Furthermore, we introduce a one-shot self-correction mechanism that transforms security violations into constructive feedback, enabling agents to recover from attacks. Extensive experiments show that AgentVisor reduces the attack success rate to 0.65%, achieving this strong defense while incurring only a 1.45% average decrease in utility relative to the No Defense scenario, demonstrating superior performance compared to existing defense methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。