cs.CRApr 7, 2026

The Defense Trilemma: Why Prompt Injection Defense Wrappers Fail?

Authors: Manish Bhatt, Sarthak Munshi, Vineeth Sai Narajala, Idan Habler, Ammar Al-Kahfah, Ken Huang, Joel Webb, Blake Gatto, +1 more

Organizations: OWASP · Amazon Leo · UNO

Abstract

We prove that no continuous, utility-preserving wrapper defense-a function D:X→XD: X\to X that preprocesses inputs before the model sees them-can make all outputs strictly safe for a language model with connected prompt space, and we characterize exactly where every such defense must fail. We establish three results under successively stronger hypotheses: boundary fixation-the defense must leave some threshold-level inputs unchanged; an εε-robust constraint-under Lipschitz regularity, a positive-measure band around fixed boundary points remains near-threshold; and a persistent unsafe region under a transversality condition, a positive-measure subset of inputs remains strictly unsafe. These constitute a defense trilemma: continuity, utility preservation, and completeness cannot coexist. We prove parallel discrete results requiring no topology, and extend to multi-turn interactions, stochastic defenses, and capacity-parity settings. The results do not preclude training-time alignment, architectural changes, or defenses that sacrifice utility. The full theory is mechanically verified in Lean 4 and validated empirically on three LLMs.

Figures & tables

Explore similar work

CardsList
  1. When LLM Defenses Backfire: Characterizing Safety, Performance, and Cost Trade-offs

    Jul 27, 2026Tong Zhang, Zexin Li, Simin Chen +1LLM Inference EfficiencyLanguage Model Safety Evaluation

  2. LTBD: Learnable Trust-Boundary Delimiters for Prompt Injection Defense

    Oct 8, 2026Luman Zhao, Minghui Xu, Yue Zhang +1LLM SecurityPrompt Injection Defense

  3. Tripwire: Triggering Aligned Refusal via Statistically Certified Safety Neurons

    Aug 14, 2026Wei Zhao, Zhe Li, Peixin Zhang +1LLM SafetyJailbreak Defense