你的代理比你想象的更脆弱:揭示代理LLM中的间接注入漏洞
Your Agent is More Brittle Than You Think: Uncovering Indirect Injection Vulnerabilities in Agentic LLMs
AI总结:
研究揭示了代理LLM在动态环境中存在严重的间接注入漏洞,通过评估六种防御策略发现现有防护不足,提出基于表示工程的检测方法以提升安全性。
摘要:
开放源代码框架的快速部署显著推动了现代多代理系统的发展。然而,扩展的操作空间,包括不受控制的特权暴露和隐藏的系统间交互,带来了严重的安全挑战。特别是,间接提示注入(IPI)通过在第三方内容中隐藏恶意指令,可能在正常操作中触发未经授权的数据外泄。尽管当前的安全评估主要依赖于孤立的单轮基准测试,但这些代理在复杂动态环境中的系统性漏洞仍被严重忽视。为填补这一空白,我们系统地评估了六种防御策略,针对四个复杂的IPI攻击向量在九种LLM基础架构上进行评估。关键的是,我们完全在动态多步骤工具调用环境中进行评估,以捕捉现代自主代理的真实攻击面。超越二元成功率,我们的多维分析揭示了显著的脆弱性。高级注入几乎绕过了所有基线防御,某些表面级缓解措施甚至产生反效果。此外,虽然代理几乎立即执行恶意指令,但其内部状态表现出异常高的决策熵。受这种潜在犹豫的启发,我们研究了表示工程(RepE)作为一种稳健的检测策略。通过提取工具输入位置的隐藏状态,我们发现基于RepE的电路断路器能够识别并拦截未经授权的操作,从而在不同LLM基础架构上实现高检测准确率。本研究揭示了当前IPI防御的局限性,并提供了一种高度实用的构建健壮多代理架构的范式。
英文摘要:
The rapid deployment of open-source frameworks has significantly advanced the development of modern multi-agent systems. However, expanded action spaces, including uncontrolled privilege exposure and hidden inter-system interactions, pose severe security challenges. Specifically, Indirect Prompt Injections (IPI), which conceal malicious instructions within third-party content, can trigger unauthorized actions such as data exfiltration during normal operations. While current security evaluations predominantly rely on isolated single-turn benchmarks, the systemic vulnerabilities of these agents within complex dynamic environments remain critically underexplored. To bridge this gap, we systematically evaluate six defense strategies against four sophisticated IPI attack vectors across nine LLM backbones. Crucially, we conduct our evaluation entirely within dynamic multi-step tool-calling environments to capture the true attack surface of modern autonomous agents. Moving beyond binary success rates, our multidimensional analysis reveals a pronounced fragility. Advanced injections successfully bypass nearly all baseline defenses, and some surface-level mitigations even produce counterproductive side effects. Furthermore, while agents execute malicious instructions almost instantaneously, their internal states exhibit abnormally high decision entropy. Motivated by this latent hesitation, we investigate Representation Engineering (RepE) as a robust detection strategy. By extracting hidden states at the tool-input position, we revealed that the RepE-based circuit breaker successfully identifies and intercepts unauthorized actions before the agent commits to them, achieving high detection accuracy across diverse LLM backbones. This study exposes the limitations of current IPI defenses and provides a highly practical paradigm for building resilient multi-agent architectures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。