arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.22659cs.CRcs.AIcs.LG
收藏

自信地错误:攻击偏移下提示注入检测器的严重性感知校准

Confidently Wrong: Severity-Aware Calibration of Prompt-Injection Detectors under Attack Shift

School of Computing, University of Portsmouth(普森大学计算机学院)

Md Anas Biswas

AI总结:

研究提示注入检测器在攻击分布偏移时,错误检测的置信度问题,提出严重性度量S,发现所有检测器在漏检攻击时置信度接近1,且普遍漏检间接行为劫持注入。

摘要:

提示注入检测器被部署为守卫:模型对输入进行评分,下游系统根据该分数信任或阻止输入。我研究了这些分数的置信度,而不仅仅是准确性,当攻击分布偏离选择工作点的干净基准时。我在单个源校准阈值上评估了三个已发布的检测器——ProtectAI-v2和两个Prompt-Guard-2检查点,该阈值被我冻结并跨五个偏移传输。我报告了一个严重性度量S,即检测器在其漏检的攻击上的置信度,以及假阴性率和区分度。在每个偏移和每个检测器上,漏检攻击的严重性保持在0.99到1.00之间,而假阴性率范围从0.01到0.97:当这些检测器漏检时,它们几乎确定地漏检。所有三个检测器都自信地通过了间接行为劫持注入,这是两个供应商和四倍大小范围共有的盲点。标准合并校准误差没有记录到这一点;一个检测器在合并校准误差上被评为良好校准(0.06),但在单独攻击上校准误差为0.91。针对实时模型运行时,漏检的注入泄露了大多数有效的利用,以它们捕获其他攻击的速率通过它们。一个受控实验将原因追溯到内容键控而非注入结构,一个用作裁判的指令调优模型显示出相同的劫持盲点,而一个黑盒重写器利用内容键控制造了有效的自信漏检,在最危险的攻击类别上最为有效。代码和数据是公开的。

英文摘要:

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.

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

↑