注入位置至关重要:LLM智能体中的信任区域效应 Where You Inject Matters: The Trust Region Effect in LLM Agents 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-28
👁️ 预览文献
💡 AI 中文简介
研究大语言模型智能体在长周期任务中易受间接提示注入攻击的问题。以往关注注入内容,本文首次系统研究注入位置的影响。作者构建了覆盖工具使用、编程和日常流程的三个测试平台,固定注入内容后发现智能体对不同环境区域的信任程度不同,称为“信任区域效应”。例如GPT-5.4智能体对仓库文档文件中的不安全指令执行率是代码或数据文件中的2.6倍。基于此,作者开发了学习型攻击者,可同时优化注入内容和位置,表明位置和内容都影响攻击效果。该工作为攻击与防御设计提供了新见解。
领域人工智能安全 / 大语言模型智能体安全
适合谁读需要一定专业背景(了解LLM智能体与提示注入概念)
核心贡献首次系统刻画了注入位置对间接提示注入攻击效果的影响,揭示了智能体隐式信任区域效应;开发了学习型攻击者,可同时优化注入内容和位置,证明位置与内容共同决定攻击强度。
关键数据GPT-5.4智能体对仓库文档文件(README/TODO)中的不安全注入指令执行率平均是代码或数据文件中的2.6倍;构建了三个覆盖工具使用、编程和日常流程的智能体测试平台。
推荐理由如果你关心LLM智能体安全,这篇工作告诉你:攻击者把恶意指令放在哪里,可能比写什么更关键——信任区域效应不容忽视。
关键词["大语言模型智能体", "间接提示注入", "信任区域效应", "注入位置", "安全评估", "对抗攻击"]

原文摘要

查看英文原文摘要

LLM agents are increasingly adopted in long-horizon tasks and interact with diverse external environments. Despite their growing capabilities, these agents remain vulnerable to real-world attacks such as indirect prompt injections, which manipulate agents through malicious instructions embedded in external environments. While existing risk assessment work has primarily focused on the injection content, the effect of where an injection appears has not been systematically characterized. Studying injection placement requires agents to operate over longer-horizon tasks and interact with diverse environmental surfaces. Thus, we build three agentic testbeds spanning tool use, coding, and daily workflow domains with diverse injection surfaces. Holding the injection content fixed, we find that agent susceptibility varies across injection placements. We refer to this phenomenon as the trust region effect: agents implicitly assign different levels of trust to different regions of their environments. For example, an agent powered by GPT-5.4 follows an unsafe injection instruction placed in a repository documentation file (i.e., a README or TODO file) 2.6 times more often on average than the same instruction placed in a code or data file. Building upon this observation, we develop learning-based attackers that generate injection content and select better injection placements. Our approach demonstrates that both where an injection is placed and what content it contains can affect the strength of indirect prompt injection attacks. To the best of our knowledge, this work provides the first systematic characterization for the effectiveness of different injection placements, spanning both coarse-grained environmental surfaces and fine-grained positions. The uneven trust that agents implicitly place across their environments provides important insights for future attack and defense design.