[Paper Review] SHIELD: An Auto-Healing Agentic Defense Framework for LLM Resource Exhaustion Attacks
SHIELD introduces a self-healing, multi-agent defense that uses a three-stage detector plus knowledge updating and prompt optimization to defend LLMs against sponge attacks, including unseen variants.
Sponge attacks increasingly threaten LLM systems by inducing excessive computation and DoS. Existing defenses either rely on statistical filters that fail on semantically meaningful attacks or use static LLM-based detectors that struggle to adapt as attack strategies evolve. We introduce SHIELD, a multi-agent, auto-healing defense framework centered on a three-stage Defense Agent that integrates semantic similarity retrieval, pattern matching, and LLM-based reasoning. Two auxiliary agents, a Knowledge Updating Agent and a Prompt Optimization Agent, form a closed self-healing loop, when an attack bypasses detection, the system updates an evolving knowledgebase, and refines defense instructions. Extensive experiments show that SHIELD consistently outperforms perplexity-based and standalone LLM defenses, achieving high F1 scores across both non-semantic and semantic sponge attacks, demonstrating the effectiveness of agentic self-healing against evolving resource-exhaustion threats.
Motivation & Objective
- Motivate robust protection of LLM systems from resource-exhaustion sponge attacks in real-world deployments.
- Propose an auto-healing defense framework that evolves with evolving attack strategies.
- Minimize latency by early-stage detection while maintaining high detection accuracy.
- Enable continuous defense refinement through autonomous knowledge updates and prompt optimization.
Proposed method
- Three-stage Defense Agent pipeline: semantic similarity filtering, substring matching with KMP, and LLM-based reasoning for semantic judgment.
- Auxiliary Knowledge Updating Agent (KUA) creates and updates a knowledgebase of sponge patterns when attacks bypass detection.
- Prompt Optimization Agent (POA) performs evolutionary prompt search to refine defense prompts without retraining the defender LLM.
- Closed-loop operation where KUA updates knowledgebase and prompts are refined by POA to improve early-stage detections over time.
- Evaluation compares SHIELD against perplexity-filter and harm-filter baselines across non-semantic and semantic sponge attacks.

Experimental results
Research questions
- RQ1How can an auto-healing, agentic framework improve robustness to evolving sponge-attacks on LLMs?
- RQ2What is the impact of a three-stage defense plus knowledge updating and prompt optimization on detection accuracy and latency?
- RQ3Can the system detect unseen sponge attack variants and reduce reliance on costly LLM reasoning per query?
- RQ4How does continuous knowledge base growth and prompt optimization influence end-to-end performance over time.
Key findings
- SHIELD achieved the highest F1-scores across attack types, outperforming baselines by up to 3–14%.
- Stage 3 LLM-based reasoning is costly, while early stages substantially reduce end-to-end latency by enabling most detections without invoking the LLM.
- Prompt optimization (POA) yields about a 30% absolute improvement in F1 score on evolving attacks.
- Knowledge updating (KUA) shifts detections toward earlier stages as the knowledgebase grows, reducing reliance on Stage 3.
- SHIELD robustly detects both known and unseen sponge attacks across multiple target models.
- The three-stage defense plus auto-healing loop sustains detection without model retraining.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.