DefenseComposer: Knowledge-Guided Defense Stacking Against Indirect Prompt Injection
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.
No verified maintained repo yet
There is no verified maintained implementation yet. Use this baseline plan to decide whether to prototype now or defer.
- No direct maintained implementation was found. Use the paper PDF and citation graph to design a baseline reproduction.
- Track assumptions and missing details in an experiment log before coding.
Time to first repro: a few days
Recommendation evidence is currently too limited for a maintained-repo choice. Use Implementation Status and Reproduction Path for a practical baseline plan.
- Estimate is based on paper-only reproduction flow
Reproduction readiness
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.
Validation caveat
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.
Datasets
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
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.