静默逃逸:当隐式提示注入使LLM代理无痕泄露
Silent Egress: When Implicit Prompt Injection Makes LLM Agents Leak Without a Trace
AI总结:
研究揭示了代理式LLM系统中隐式提示注入导致的静默逃逸风险,通过实验展示恶意网页诱导代理泄露敏感信息的机制,并提出分片逃逸策略及网络层防御改进方向。
摘要:
代理式大语言模型系统越来越多地通过检索URL并调用外部工具来自动化任务。我们展示了这种工作流程导致隐式提示注入:对抗性指令嵌入在自动生成的URL预览中,包括标题、元数据和片段,可以引入我们称为静默逃逸的系统级风险。使用一个完全本地且可重复的测试平台,我们证明恶意网页可以诱导代理发出向外请求,从而泄露敏感的运行时上下文,即使最终显示给用户的结果看起来无害。在480次实验运行中,使用基于qwen2.5:7b的代理,攻击成功概率很高(P(逃逸)=0.89),95%的成功攻击未被基于输出的安全检查检测到。我们还引入了分片逃逸,其中敏感信息被分割到多个请求中以避免被检测。这种策略使单个请求的泄露指标减少73%(Leak@1),并绕过了简单的数据丢失预防机制。我们的消融结果表明,应用于提示层的防御措施提供有限的保护,而系统和网络层的控制,如域名白名单和重定向链分析,效果更为显著。这些发现表明,网络出站应被视为代理式LLM系统中的首要安全结果。我们概述了架构方向,包括溯源追踪和能力隔离,这些方向超出了提示层加固的范围。
英文摘要:
Agentic large language model systems increasingly automate tasks by retrieving URLs and calling external tools. We show that this workflow gives rise to implicit prompt injection: adversarial instructions embedded in automatically generated URL previews, including titles, metadata, and snippets, can introduce a system-level risk that we refer to as silent egress. Using a fully local and reproducible testbed, we demonstrate that a malicious web page can induce an agent to issue outbound requests that exfiltrate sensitive runtime context, even when the final response shown to the user appears harmless. In 480 experimental runs with a qwen2.5:7b-based agent, the attack succeeds with high probability (P (egress) =0.89), and 95% of successful attacks are not detected by output-based safety checks. We also introduce sharded exfiltration, where sensitive information is split across multiple requests to avoid detection. This strategy reduces single-request leakage metrics by 73% (Leak@1) and bypasses simple data loss prevention mechanisms. Our ablation results indicate that defenses applied at the prompt layer offer limited protection, while controls at the system and network layers, such as domain allowlisting and redirect-chain analysis, are considerably more effective. These findings suggest that network egress should be treated as a first-class security outcome in agentic LLM systems. We outline architectural directions, including provenance tracking and capability isolation, that go beyond prompt-level hardening.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。