DefenseComposer:知识引导的防御堆叠方法抵御间接提示词注入
DefenseComposer: Knowledge-Guided Defense Stacking Against Indirect Prompt Injection
AI 导读
DefenseComposer 用于度量 LLM 智能体中多个间接提示词注入(IPI)防御叠加后的相互影响,找出破坏任务执行的组合问题。研究实现 13 种代表性防御,在 26,000+ 条智能体轨迹上评估 66 个单防御和多防御堆叠,归纳出跨防御信息丢失、执行顺序不兼容、缓解范围过宽三类失败模式。
正文 · 原文
Abstract:Production large language model (LLM) agent systems increasingly combine multiple defenses to mitigate indirect prompt injection (IPI). These defenses may inspect untrusted text, restrict tool use, or sanitize tool outputs. However, existing defenses are predominantly designed and evaluated in isolation, leaving their behavior under composition poorly understood. In a defense stack, upstream defenses can alter the context or tools available to downstream checks, so a low attack success rate (ASR) can simply be a side effect of broken normal execution. Constructing reliable defense composition therefore requires identifying why compositional failures occur and how to repair them. In this paper, we present DefenseComposer to measure the effects of defense stacking and identify interactions that disrupt agent tasks. We implement 13 representative defenses and evaluate 66 single- and multi-defense stacks on 26,000+ agent trajectories. Auditing failed execution traces reveals three failure modes due to improperly stacked defenses: cross-defense information loss, incompatible execution order, and over-broad mitigation scopes. We design targeted manual repairs to resolve these conflicts and distill our findings into reusable rules for an automated stack-selection and repair workflow. On stacks containing previously unseen defenses, this knowledge-guided workflow improves task completion by 15.3% over baselines even under IPI attack, with 0.0% ASR. Our work provides empirical findings and actionable knowledge to guide effective defense stacking against IPI in LLM agents.
| Comments: | 19 pages, 8 figures, 21 tables |
| Subjects: | Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.37071 [cs.CR] |
| (or arXiv:2611.37071v1 [cs.CR] for this version) | |
| https://doi.org/10.48550/arXiv.2611.37071 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Jiahe Chen [view email]
[v1]
Fri, 27 Nov 2026 08:32:44 UTC (352 KB)
来源:arXiv cs.AI · arxiv.org