Confidently Wrong: Severity-Aware Calibration of Prompt-Injection Detectors under Attack Shift
Not on the map. Why?
Abstract (arXiv)
Prompt-injection detectors are deployed as guards: a model scores an input and a downstream system trusts or blocks it on that score. I study the confidence of these scores, not only their accuracy, when the attack distribution shifts away from the clean benchmark on which the operating point was chosen. I evaluate three released detectors, ProtectAI-v2 and two Prompt-Guard-2 checkpoints, at a single source-calibrated threshold that I freeze and transport across five shifts. I report a severity metric S, how confident a detector is on the attacks it misses, alongside the false-negative rate and discrimination. Across every shift and every detector, severity on the missed attacks stays between 0.99 and 1.00 while the false-negative rate ranges from 0.01 to 0.97: when these detectors miss, they miss with near-certainty. All three confidently pass indirect behavior-hijack injection, a blind spot unanimous across two vendors and a fourfold size range. Standard pooled calibration error does not register this; one detector it rates well-calibrated, at 0.06, is miscalibrated at 0.91 on the attacks alone. Run against live models, the missed injections leak the majority of working exploits, passing them at the rate they catch others. A controlled experiment traces the cause to content-keying rather than injection structure, an instruction-tuned model used as a judge shows the same hijack blind spot, and a black-box rewriter exploits the content-keying to manufacture working confident misses, most effectively on the most dangerous attack category. Code and data are public.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 10 of its 15 references that are in the map. First posted on arXiv 21 Jun 2026.
Builds on
10 of 15 references.
References · 10
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2017Selective Classification for Deep Neural Networkscited by 852
- 2019Measuring Calibration in Deep Learningcited by 446
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 264
- 2024InjecGuard: Benchmarking and Mitigating Over-defense in Prompt Injection Guardrail Modelscited by 42
- 2024On Calibration of LLM-based Guard Models for Reliable Content Moderationcited by 23
- 2026When Benchmarks Lie: Evaluating Malicious Prompt Classifiers Under True Distribution Shiftcited by 11
- 2025JailbreaksOverTime: Detecting Jailbreak Attacks Under Distribution Shiftcited by 5
- 2026Beyond ECE: Calibrated Size Ratio, Risk Assessment, and Confidence-Weighted Metricscited by 1
- 2026Gate AI: LLM Security Benchmark Evaluation Methodology and Resultscited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.