arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.06436cs.CRcs.AI
收藏

防御三重困境:为何提示注入防御包装失效?

The Defense Trilemma: Why Prompt Injection Defense Wrappers Fail?

OWASP;Amazon Leo;UNO;Amazon Web Services(亚马逊云服务);Cisco(思科);Shrewd Security

Manish Bhatt, Sarthak Munshi, Vineeth Sai Narajala, Idan Habler, Ammar Al-Kahfah, Ken Huang, Joel Webb, Blake Gatto, Md Tamjidul Hoque

AI总结:

研究证明连续且保持效用的防御包装无法使语言模型的所有输出严格安全,并揭示了防御必须失败的精确位置。通过三个逐步加强的假设,证明了连续性、效用保持性和完整性无法共存。

摘要:

我们证明,对于具有连接提示空间的语言模型,不存在连续且保持效用的防御包装(函数D:X→X),该函数在模型接收输入前预处理输入,使其所有输出严格安全。我们通过三个逐步加强的假设建立了三个结果:边界固定——防御必须留下某些阈值水平输入不变;ε-鲁棒约束——在利普希茨正则性下,固定边界点周围存在正测度的区域保持近阈值;以及在横截性条件下,正测度的输入子集保持严格不安全。这些构成了防御三重困境:连续性、效用保持性和完整性无法共存。我们还证明了需要无拓扑条件的离散结果,并扩展到多轮交互、随机防御和容量-平衡设置。这些结果不排除训练时对齐、架构变化或牺牲效用的防御。完整理论在Lean 4中机械验证,并在三个LLM上经验验证。

英文摘要:

We prove that no continuous, utility-preserving wrapper defense-a function $D: 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑