arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.10453cs.CRcs.CL
收藏

大语言模型代理中提示注入威胁的图景:从分类到分析

The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis

UCLA(加州大学洛杉矶分校);NTU(南洋理工大学);NVIDIA(英伟达)

Peiran Wang, Xinfeng Li, Chong Xiang, Jinghuai Zhang, Ying Li, Lixia Zhang, Xiaofeng Wang, Yuan Tian

AI总结:

本文综述了大语言模型代理中提示注入威胁的分类与分析,提出AgentPI基准以评估依赖上下文交互的代理行为,揭示现有防御的局限性并提出未来研究方向。

摘要:

大语言模型(LLM)的发展导致了向自主代理的范式转变,这要求对提示注入(PI)漏洞具有强大的安全性,其中不可信的输入会劫持代理行为。这项综述论文全面概述了PI图景,涵盖攻击、防御和其评估实践。通过系统文献综述和定量分析,我们建立了分类,将PI攻击按负载生成策略(启发式 vs. 优化)和防御按干预阶段(文本、模型和执行级别)进行分类。我们的分析揭示了现有许多防御和基准共享的一个关键限制:它们大多忽视了依赖于运行时环境观察的任务,在这些任务中,代理被授权根据运行时环境观察来决定行动。为了解决这一差距,我们引入了AgentPI,一个新基准,旨在系统地评估在依赖上下文交互设置下的代理行为。使用AgentPI,我们实证评估了代表性防御,并表明没有单一方法能够同时实现高可信度、高实用性和低延迟。此外,我们表明许多防御在现有基准下通过抑制上下文输入而显得有效,但在需要依赖上下文推理的真实代理设置中却无法推广。这项综述论文总结了关键见解和开放研究问题,为未来研究和安全LLM代理的实践部署提供了结构化指导。

英文摘要:

The evolution of Large Language Models (LLMs) has resulted in a paradigm shift towards autonomous agents, necessitating robust security against Prompt Injection (PI) vulnerabilities where untrusted inputs hijack agent behaviors. This SoK presents a comprehensive overview of the PI landscape, covering attacks, defenses, and their evaluation practices. Through a systematic literature review and quantitative analysis, we establish taxonomies that categorize PI attacks by payload generation strategies (heuristic vs. optimization) and defenses by intervention stages (text, model, and execution levels). Our analysis reveals a key limitation shared by many existing defenses and benchmarks: they largely overlook context-dependent tasks, in which agents are authorized to rely on runtime environmental observations to determine actions. To address this gap, we introduce AgentPI, a new benchmark designed to systematically evaluate agent behavior under context-dependent interaction settings. Using AgentPI, we empirically evaluate representative defenses and show that no single approach can simultaneously achieve high trustworthiness, high utility, and low latency. Moreover, we show that many defenses appear effective under existing benchmarks by suppressing contextual inputs, yet fail to generalize to realistic agent settings where context-dependent reasoning is essential. This SoK distills key takeaways and open research problems, offering structured guidance for future research and practical deployment of secure LLM agents.

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

↑