AgentShield:基于欺骗的工具使用LLM代理 compromise 检测
AgentShield: Deception-based Compromise Detection for Tool-using LLM Agents
AI总结:
AgentShield 通过在代理工具接口中设置三层陷阱(假工具、假凭证、允许参数)来检测间接提示注入攻击,利用高精度标签训练自监督分类器,实现高准确率的实时检测与无误报的下游检测训练。
摘要:
针对间接提示注入(IPI)防护中存在两个结构性弱点,本文提出AgentShield,一种基于欺骗的检测框架,通过在代理工具接口中设置三层陷阱(假工具、假凭证、允许参数)来检测 compromise。相同的陷阱触发器用于自监督分类器的高精度标签。遵循攻击者隐含指令的LLM代理几乎总会触碰这些陷阱,从而提供实时 compromise 信号和无人工标注的零误报标签。在176个跨语言攻击提示和四个LLM模型上测试,AgentShield能检测90.7%-100%的成功攻击,无误报。在商业模型上,其能抵御系统适应性攻击,且自监督分类器可在不同模型和语言间迁移无需重新训练。
英文摘要:
Defenses against indirect prompt injection (IPI) in tool-using LLM agents share two structural weaknesses. First, they all attempt to prevent attacks rather than detect the compromises that slip through. Second, they have only been evaluated in English, leaving users of low-resource languages such as Kurdish and Arabic without tested protection. This paper addresses both gaps with AgentShield, a deception-based detection framework that places three layers of traps inside the agent's tool interface: fake tools, fake credentials, and allowlisted parameters. The same trap triggers serve as high-precision labels for a self-supervised classifier. An LLM agent that follows an attacker's hidden instruction almost always touches one of these traps, which gives both a real-time compromise signal and a zero-FP label for training a downstream detector without manual annotation. Across 176 cross-lingual attack prompts and four LLMs from three providers, and because modern LLMs already refuse most IPI attempts on their own (attack success rate <= 10%), AgentShield's job is to catch the attacks that do slip through. On commercial models, it catches 90.7%-100% of such successful attacks, with zero false alarms on 485 normal-use tests. It survives a systematic adaptive-attack evaluation with zero evasion on commercial models, and the self-supervised classifier transfers across models and languages without retraining.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。