Paper Reading AI Learner

DefenseComposer: Knowledge-Guided Defense Stacking Against Indirect Prompt Injection

2026-11-27 08:32:44
Jiahe Chen, Mengdi Li, Junjie Huang, Lansheng Han, Xinfeng Li

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.

Abstract (translated)

URL

https://arxiv.org/abs/2611.37071

PDF

https://arxiv.org/pdf/2611.37071.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot