arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.02522cs.CLcs.CR
收藏

已排序但未停止:从类型化决策模型的输出概率中检测提示注入劫持

Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities

Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang

AI总结:

该研究针对语言模型分类器的提示注入劫持,提出利用模型输出概率的低置信度进行检测,经AG News测试,该方法在不同系统上有一定效果,但对带确定性请求的注入劫持漏检率较高。

摘要:

将语言模型用作分类器的程序会依据其最可能的标签执行操作。向输入中注入文本可将该标签移动至攻击者选择的标签,此即为劫持。一个不知道攻击者标签的监控器可读取模型自身的置信度,并在最高概率较低时发出警报。我们在AG News主题分类上对该监控器进行了测试,涉及五个系统,其中三个通过提供商的API提供服务。在五类注入文本的汇总结果中,低置信度在五个系统中的四个上,将被劫持的答案排在干净答案之上(AUROC为0.86-0.90)。对它们进行排序并未阻止许多劫持。设置一个阈值,使得对单独校准文章的干净答案中最多5%会触发警报,该阈值处于最不自信的干净答案之中,而每一个更自信的劫持都会通过。在我们针对三个API服务系统的主要测试中,监控器遗漏了由普通注入注释导致的51-70%的劫持(按系统点估计)。当该注释添加一个手写句子,声称目标确定并要求全概率时,监控器遗漏了99-100%的劫持,尽管低置信度仍以0.70-0.79的AUROC对它们进行排序。置信度监控器应在其运行警报率下,针对声称确定性的攻击者进行测试。

英文摘要:

Programs that use a language model as a classifier act on its most probable label. Text injected into the input can move that label to one the attacker chooses, a hijack. A monitor that does not know the attacker's label can read the model's own confidence and raise an alarm when the top probability is low. We test this monitor on AG News topic classification with five systems, three of them served through a provider's API. Pooled over five families of injected text, low confidence ranks hijacked answers above clean ones on four of the five systems (AUROC 0.86-0.90). Ranking them does not stop many of them. A threshold set so that at most 5% of clean answers to separate calibration articles alarm falls among the least confident clean answers, and every more confident hijack passes. In our main gate run on the three API-served systems, the monitor misses 51-70% of the hijacks caused by a plain injected note (per-system point estimates). When the note adds one handwritten sentence that calls the target certain and asks for full probability, the monitor misses 99-100% of the hijacks, although low confidence still ranks them at AUROC 0.70-0.79. Confidence monitors should be tested at their operating alarm rate, against attackers who claim certainty.

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

↑