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

通过指令遵循意图分析缓解间接提示注入

Mitigating Indirect Prompt Injection via Instruction-Following Intent Analysis

NVIDIA;University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Johns Hopkins University(约翰霍普金斯大学)

Mintong Kang, Chong Xiang, Sanjay Kariyappa, Chaowei Xiao, Bo Li, Edward Suh

AI总结:

IntentGuard通过分析指令遵循意图,有效缓解间接提示注入攻击,保持模型性能并降低攻击成功率

摘要:

间接提示注入攻击(IPIAs)中,大型语言模型(LLMs)会遵循隐藏在输入数据中的恶意指令,对LLM驱动的代理构成重大威胁。在本文中,我们提出了一种基于指令遵循意图分析的通用防御框架IntentGuard。IntentGuard的核心思想是,在IPIAs中决定性因素不是恶意文本的存在,而是LLM是否意图遵循非可信数据中的指令。基于这一见解,IntentGuard利用一个指令遵循意图分析器(IIA)来识别输入提示中模型认为可操作的指令部分,然后标记或中和任何与非可信数据段的重叠部分。为了实例化该框架,我们开发了一个IIA,利用三种“思考干预”策略来从具有推理能力的LLMs中提取结构化的意图指令列表。这些技术包括思考开始的预填充、思考结束的细化,以及对抗性上下文演示。我们评估IntentGuard在两个代理基准(AgentDojo和Mind2Web)上使用两个具有推理能力的LLMs(Qwen-3-32B和gpt-oss-20B)。结果表明,IntentGuard实现了(1)除了一个设置外所有设置的无实用性下降,并且(2)对适应性提示注入攻击具有强大的鲁棒性(例如,在Mind2Web场景中将攻击成功率从100%降低到8.5%)

英文摘要:

Indirect prompt injection attacks (IPIAs), where large language models (LLMs) follow malicious instructions hidden in input data, pose a critical threat to LLM-powered agents. In this paper, we present IntentGuard, a general defense framework based on instruction-following intent analysis. The key insight of IntentGuard is that the decisive factor in IPIAs is not the presence of malicious text, but whether the LLM intends to follow instructions from untrusted data. Building on this insight, IntentGuard leverages an instruction-following intent analyzer (IIA) to identify which parts of the input prompt the model recognizes as actionable instructions, and then flag or neutralize any overlaps with untrusted data segments. To instantiate the framework, we develop an IIA that uses three "thinking intervention" strategies to elicit a structured list of intended instructions from reasoning-enabled LLMs. These techniques include start-of-thinking prefilling, end-of-thinking refinement, and adversarial in-context demonstration. We evaluate IntentGuard on two agentic benchmarks (AgentDojo and Mind2Web) using two reasoning-enabled LLMs (Qwen-3-32B and gpt-oss-20B). Results demonstrate that IntentGuard achieves (1) no utility degradation in all but one setting and (2) strong robustness against adaptive prompt injection attacks (e.g., reducing attack success rates from 100% to 8.5% in a Mind2Web scenario).

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

↑