Skip to content
OpenTrain AIFor AI Companies

DefenseComposer: Knowledge-Guided Defense Stacking Against Indirect Prompt Injection

Jiahe Chen, Mengdi Li, Junjie Huang, Lansheng Han, Xinfeng LiPublished Nov 27, 2026
arXiv PDF
Researcher verdict
Context only
Use as context only
Benchmark evidence
Missing
Not verified yet
Time to first repro
A few days
Plan setup time
Risk flags
2
Review before use

No concrete benchmark grounding is available yet. Treat the page as context or an implementation starting point only.

Abstract

Domain fit: AI-core · Core AI workload signals detected from paper context and implementation/artifact evidence.

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.

Results and benchmarks

Production large language model (LLM) agent systems increasingly combine multiple defenses to mitigate indirect prompt injection (IPI).

Implementation

No direct implementation yet

Maintained implementation evidence is not confirmed for this paper yet.

Use the implementation status and reproduction sections for the current action plan.

Implementation evidence summary
Confidence: low

Recommendation evidence is currently too limited for a maintained-repo choice. Use Implementation Status and Reproduction Path for a practical baseline plan.

Reproduction risks
  • Estimate is based on paper-only reproduction flow

Reproduction readiness

Time to first repro: days
Last checked: Nov 30, 2026

No repo

No verified implementation available

  • No maintained repository has been identified for this paper. Check adjacent implementations or HF artifacts below.

Hardware requirements

  • Expect multi-day setup/compute for meaningful reproduction based on current guidance.

Hugging Face artifacts

No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.

Tip: start with models, then check datasets and spaces if you need evaluation data or demos.

Research context

Tasks

Agentic tool use

Methods

Transformer

Domains

Natural Language Processing, Large Language Models, AI Agents

Evaluation and human feedback data

Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.

Open in HFEPX
Explore similar papers

Jump to Paper2Code search queries derived from this paper's research context.