DefenseComposer: Knowledge-Guided Defense Stacking Against Indirect Prompt Injection
Jiahe ChenMengdi LiJunjie HuangLansheng HanXinfeng Li
Nov 2026
Artificial IntelligenceCybersecurity
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.
It is found that Llama 3 delivers comparable quality to leading language models such as GPT-4 on a plethora of tasks, and performs competitively with the state-of-the-art on image, video, and speech recognition tasks.
This paper investigates developing real-world perception for active agents, proposes Gibson Environment for this purpose, and showcases a set of perceptual tasks learned therein.
F. Xia, Amir Zamir, Zhi-Yang He et al.· 2018 IEEE/CVF Conference on...· 1,069 citations· ⚡112
GAOKAO-Bench is introduced, an intuitive benchmark that employs questions from the Chinese GAOKAO examination as test samples, including both subjective and objective questions that contribute a robust evaluation benchmark for future large language models and offers valuable insights into the advantages and limitations...
Xiaotian Zhang, Chun-yan Li, Yi Zong et al.· arXiv.org· 216 citations· ⚡17
An algorithm is proposed which leverages disentangled semantic factors to generate adversarial perturbation by altering controlled semantic attributes to fool the learner towards various "adversarial" targets.
Haonan Qiu, Chaowei Xiao, Lei Yang et al.· arXiv.org· 208 citations· ⚡17
This work proposes a HALO that directly maximizes the utility of generations instead of maximizing the log-likelihood of preferences, and suggests that the best loss depends on the inductive biases most appropriate for a given setting, an oft-overlooked consideration.
This work investigates the possibilities of using LLMs in a resume screening setting via a document retrieval framework that simulates job candidate selection and finds that the MTEs are biased, significantly favoring White-associated names in 85% of cases and female-associated names in only 11.1% of cases.