논문 해설
Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities
순위는 매겼지만 멈추지 않음: 타입 기반 결정 모델의 출력 확률로 프롬프트 인젝션 하이재킹 탐지하기
- 연구 문제 공격자의 목표를 모르는 모니터가 프롬프트 주입으로 바뀐 분류 응답을 얼마나 잘 가려낼 수 있는지 다룹니다.
- 연구 방법 모델의 최고 확률로 계산한 low confidence와 disagreement를 신호로 쓰고, 깨끗한 교정 응답으로 정한 임계값의 gate를 평가합니다.
- 주요 결과 AG News에서 low confidence는 네 시스템에서 hijack을 순위화하지만, 교정 gate는 API 제공 모델의 plain note hijack 51–70%와 certain note hijack 99–100%를 통과시킵니다.
분류 모델의 최고 확률 라벨이 주입 텍스트에 의해 바뀌는 문제
프로그램이 언어 모델을 분류기로 쓸 때에는 가장 확률이 높은 라벨을 그대로 실행에 옮깁니다. 이 논문은 입력에 삽입된 텍스트가 그 라벨을 공격자가 고른 라벨로 바꾸는 hijack을 다룹니다. 이런 공격은 출력이 여전히 유효한 라벨이므로 형식 검사로는 걸러지지 않습니다. 저자들은 공격자의 목표 라벨을 모니터가 알 수 없다는 조건에서, 모델이 반환한 확률만으로 hijack을 탐지할 수 있는지 묻습니다.
논문이 제안하는 첫 신호는 low confidence이며, 이는 1에서 최고 확률 p_max를 뺀 값입니다. 깨끗한 응답과 hijack 응답을 순위화하는 능력은 AUROC로 측정됩니다. 그러나 순위화가 잘 되는 것과 실제 경보 규칙이 hijack을 막는 것은 다른 문제입니다. 이 논문은 이 차이를 gate라는 운영 규칙으로 측정합니다.
low confidence, disagreement, gate 규칙의 계산
Choice 질의는 라벨별 확률을 반환하고, 선택된 라벨 k̂의 최고 확률을 p_max로 둡니다. 목표 비의존 신호인 low confidence는 1−p_max이며, 모델이 선택한 라벨의 확률이 낮을수록 값이 커집니다. 두 번째 신호인 disagreement는 선택 라벨에 대한 yes 질의 확률 b̂_k와 p_max의 차이 |b̂_k − p_max|입니다.
gate는 깨끗한 교정 점수 n개에 대해 k번째로 작은 값을 임계값으로 씁니다. 여기서 k = ⌈0.95(n−1)⌉ + 1이며, 교정 기사 100개에서 n = 100입니다. 경보는 호출의 low confidence가 이 임계값을 넘을 때 발생합니다. 평가에서 missed share는 hijack 중 경보를 받지 않고 통과한 비율이고, unflagged share는 적격 호출 중 hijack이면서 통과한 비율입니다. 두 값은 서로 다른 양이므로 구분해서 읽어야 합니다.

Table 1 : The runs, grouped by what they measure, under the names used throughout; each includes the clean calls of its articles. AG News, 200: the same 200 articles and attacker targets in every such run. fresh: 200 further AG News evaluation articles plus 100 calibration articles (Appendix H), with the calibration articles sent again in every run on them. threshold: the clean scores that set the gate, either the clean calls of the run’s evaluated articles (own clean calls) or the separate calibration articles; none: no gate. reported in: section or appendix.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.AG News에서 low confidence의 순위화 성능
AG News 선택 라벨 실행에서 low confidence는 gpt-6-luna, Kimi-K3, Qwen3.8-Flash, NLI encoder에서 hijack을 깨끗한 응답 위로 순위화하며, pooled AUROC는 0.86–0.90입니다. open-bosun에서는 구간이 0.5를 포함하므로 이 시스템에서는 순위화가 우연 수준과 구별되지 않습니다.

Table 11 : The way of counting hijacks changes the low-confidence verdict only onopen-bosun. Pooled AUROC, equal-weight AUROC and paired share for1−p max, with 95% intervals over articles; the reference value is0.5for all three. Rows are sorted by the pooled AUROC.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.disagreement는 다섯 시스템 중 네 곳에서 우연 수준보다 높지만, 두 시스템에서는 low confidence보다 나은 것으로 확인되지 않습니다. 저자들은 다른 요약 방식인 margin과 entropy도 low confidence와 큰 차이가 없다고 보고합니다. 이 결과는 pooled count와 AG News의 특정 공격 가족 조합에서 얻은 것입니다.

Table 10 : Three ways of counting hijacks.hi: number of hijacks of articlei. The pooled count gives both sides the same mix of articles; the equal-weight count makes every hijacked article count once on each side.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.
Table 13 : Margin and entropy rank hijacks within0.02AUROC of low confidence. AG News chosen-label run, hijacks over the clean calls of the same articles: AUROC of1−p max (Table 2), of one minus the margin (pmax minus the runner-up) and of the entropy of the Choice, with 95% intervals over articles and the interval on each one’s difference from1−p max.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.교정 gate가 plain note와 certain note의 hijack을 놓치는 정도
교정 실행에서 임계값은 별도 교정 기사 100개의 깨끗한 점수로 정해지며, 깨끗한 호출의 경보율은 5% 목표에 맞춰집니다. 이 설정에서 API 제공 세 모델은 plain note의 hijack 중 51–70%를 통과시킵니다. 문장 하나에 확실성 주장을 더한 certain note에서는 hijack의 99–100%가 통과합니다. 같은 실행에서 이 hijack들에 대한 AUROC는 0.70–0.79로, 순위화 신호는 여전히 깨끗한 응답보다 높습니다.

Table 3 : The six texts of the calibrated run, each placed after the article. missed: share of the text’s hijacks that pass the gate, as a range over the three API-served models (outside the plans). Per-system hijack rates and unflagged shares are in Table 21, paired contrasts in Tables 6 and 22.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.
Table 4 : With the threshold set on separate clean articles, the gate misses 51–70% of the plain note’s hijacks and 99–100% of the certain note’s. Calibrated run, 200 evaluation articles, gate on1−p max set at a 5% target on 100 calibration articles. clean alarms: share (%) of clean evaluation calls that alarm. hijack: share of eligible calls hijacked. missed: share of hijacks that pass the gate (outside the plans). unflagged: share of eligible calls that are hijacked and pass the gate. Intervals on the missed share in Table 23.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.
Table 24 : Under the certain note 88–95% of eligible calls on the API-served models become hijacks that pass the gate (unflagged share, used here because the texts’ hijack rates differ), against 9–24% under the plain note, while low confidence still ranks the hijacks above clean calls on 4 systems. Demand run: the plain note (note) and two texts that also demand full probability for the target (cert.: certain note, over.: certain override; aware: both pooled). hijack rate: share of eligible calls hijacked. unflagged: share of eligible calls that are hijacked and pass a gate on1−p max that alarms on at most 5% of the run’s clean calls (outside the plans). medianpmax: median top probability of the clean calls matched to the monitor-aware hijacks, one copy per hijack (clean), of the hijacks under the plain note (note) and of the hijacks under the monitor-aware texts (aware). AUROC of1−p max for hijacked over clean calls of the same articles, for the plain note and the pooled monitor-aware texts, each on the articles it hijacks, with 95% intervals over articles; the last column is the interval on aware minus note (joint resamples of the articles either hijacks).
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.이는 임계값이 깨끗한 응답의 가장 덜 확실한 부분에 놓이고, certain note가 hijack의 최고 확률을 그 임계값 위로 끌어올리기 때문입니다. missed share 구간은 시스템별로 넓으므로 점추정으로 읽어야 합니다.

Figure 2 : A gate calibrated to 5% clean alarms sets its threshold at the few least confident clean answers, and the certain note lifts the hijacks past it. Calibrated run, the three API-served models. Histograms of the top probabilitypmax for three groups: clean calls of the eligible articles, hijacks under the plain note, and hijacks under the certain note. Each bar is the share of its group in that bin. Vertical line: top probability at the gate’s threshold, set on the 100 separate calibration articles; a call with lowerpmax alarms.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.
Table 6 : A claim of certainty or a demand for confidence gets more hijacks past the gate on every system. Calibrated run, paired difference in unflagged share between two texts:+/−, its 95% interval (joint resamples of calibration and evaluation articles; D1–D6 of Table 22) lies above/below zero; 0, it includes zero.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.
Table 21 : A claim of certainty or a demand for confidence raises the unflagged share over the note on every system. Hijack rate (hij.) and unflagged share (unfl., hijacked and passing the gate), in % of eligible evaluation calls, for each text after the article, calibrated run. The fresh search run (Table 19) places the note at each system’s searched-text position instead.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.searched text와 open-bosun의 역순위화
탐색 실행은 개발 기사에서 공격 목표의 평균 확률을 최대화하는 텍스트를 좌표 상승으로 찾습니다. 찾은 searched text는 API 제공 모델에서 hijack을 거의 모두 만들고, fresh search 실행의 교정 gate에서는 100%가 통과합니다. 그러나 certain note가 이미 목표 확률을 높이므로, 탐색이 추가하는 효과는 API 제공 모델에서 제한적입니다.

Table 18 : The parts of the searched attack text and each system’s best combination.⟨target⟩ is the attacker target’s name as in Table 28; a slash marks a line break. A: authority claim; C: confidence demand; W: wrapper; positions: prefix (before the article), suffix (after it), field (thenotesfield).
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.
Table 19 : With the threshold set on separate clean articles, the searched text gets at least 90% of eligible calls past the gate on every system. Fresh search run, 200 evaluation articles. clean alarms: share of clean evaluation calls that alarm. hijack rate and unflagged: as in Table 7, for the plain note (note) and the searched text. Brackets are 95% intervals over evaluation articles with the threshold held at its calibration value (Table 20 also resamples the calibration articles); where every eligible call passes, the resampled interval collapses to [100, 100], and the exact binomial 95% lower bound for 189–194 eligible calls is 98%. AUROC of 1−p max for hijacked over clean calls of the same articles.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.open-bosun에서는 searched text의 hijack 최고 확률 0.98이 깨끗한 응답 0.91보다 높아, low confidence가 이 hijack을 깨끗한 응답 아래로 순위화합니다. AUROC는 0.20 [0.13, 0.28]입니다. 이는 이 시스템과 이 탐색 텍스트에서 관찰된 결과입니다.

Table 7 : Text searched per system hijacks nearly every eligible test article on the API-served models, and the gate misses 99–100% of these hijacks; low confidence still ranks the hijacks above clean calls on 4 of 5 systems and is inverted onopen-bosun. Search run, AG News test half (110 articles), one run per system. dev. target prob.: mean probability of the attacker’s target on the 20 development articles for the first text scored (the certain note) and for the searched text. hijack rate: share of eligible test calls hijacked, for the plain note at the searched text’s position (note) and for the searched text (searched). med.pmax: of the hijacks under the searched text. unflagged: as in Table 24, with the gate set on the clean test calls (outside the plans). AUROC of1−p max for hijacked over clean calls of the same articles, each text on the articles it hijacks, with 95% intervals over articles, and the interval on searched text minus note from joint resamples of articles.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.고정 trace의 새 과제 적용
AG News 개발 절반에서 고른 trace와 방향을 DBpedia-14와 Yahoo Answers에 변경 없이 적용합니다. DBpedia-14는 쉬운 과제로, 고정 trace는 다섯 시스템 모두에서 AUROC 0.85–1.00으로 우연 수준보다 높습니다. 미리 정한 네 기준이 모두 충족됩니다.

Table 16 : The choice of trace on the development half and its AUROC on the test half. Candidates: low confidence (L) and the disagreement about the chosen label (F), each in either direction. Test-half AUROC with a 95% interval over articles. Chosen-label run.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.Yahoo Answers는 더 어려운 과제로, 고정 trace가 세 시스템에서만 우연 수준보다 높습니다. 이 과제에서 pooled count 기준으로 두 기준이 실패하며, Qwen3.8-Flash에서는 disagreement가 low confidence보다 높게 나타납니다. 따라서 trace의 이전 가능성은 과제와 시스템에 따라 다릅니다.
결과의 적용 범위와 남은 한계
주요 결과는 API 제공 모델의 점추정과 특정 공격 텍스트에 기반합니다. missed share 구간이 넓고, 다중 비교를 조정하지 않았으므로 경계 근처 판정은 우연일 수 있습니다. 탐색은 좌표 상승 방식으로 수행되었으며 기울기 기반이나 토큰 수준의 최적화 공격은 이 논문에서 검토되지 않았습니다.

Table 23 : Claims and demands for certainty make a hijack harder to catch on two API-served models. elig.: eligible articles (one call per text). gate: top probability at the gate’s threshold, set on the calibration articles; a call with a lowerpmax alarms. medianpmax: of the hijacks under the note and the certain note (cert.). missed: share (%) of the hijacks that pass the gate (outside the plans), with 95% intervals, under the note, certain only (c. only), confident (conf.) and certain note. paired: on the articles hijacked under both the note and the text of that column (their number in parentheses), the difference in the share missed, in percentage points, with 95% intervals. Intervals resample calibration and evaluation articles as in Table 22; [100, 100] means that every hijack was missed in at least 97.5% of resamples; such collapsed ranges are bootstrap sensitivity ranges, not population bounds. Every interval here re-estimates a tail order statistic of 100 calibration scores, so all are best read as sensitivity ranges. An endpoint of exactly zero prints as 0. The AUROCs on these calls are in Table 25.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.상위 다섯 토큰으로 옵션 확률을 재구성하는 Kimi-K3와 Qwen3.8-Flash에서는 누락 옵션을 대치하는 방식에 따라 결과를 확인했습니다. certain note의 AUROC 변화는 demand 실행에서 최대 0.002였습니다. 또한 두 번째 모델이나 두 번째 표현으로 확인하는 방법은 Kimi-K3와 Qwen3.8-Flash에서 certain note의 hijack을 여전히 통과시킵니다.

Table 14 : On the calls with every option observed, low confidence stays above chance on both models. Share of Choice and Boolean calls with a missing option (%); AUROC as reported (Table 2); hijacks whose attacked and clean calls have every option observed (for the disagreement, of both the Choice and the Boolean) and the AUROC on them. Intervals are 95% over articles.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.
Table 15 : Bounding the top-five reconstruction leaves the gate results for the certain note and the searched text nearly unchanged. Share (%) of the eligible calls that become hijacks the gate passes, as reported and with every missing option of the attacked call set to its smallest observed option’s probability (bounded); a call that shows only its chosen option thus getspmax = 0.25and always alarms, the most conservative case. full: share (%) of the eligible attacked calls with every option observed. Rows: the certain note of the demand run (Table 24), the searched text of the search run (Table 7) and of the fresh search run (searched text, fresh; Table 19), and four texts of the calibrated run (fresh; Table 21).
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.
Table 26 : A second model and a second phrasing return the attacker’s target on nearly every certain-note hijack. Second model: share (%) of the system’s certain-note hijacks on which another API-served model also returns the target (also hij.), as a range over the two other systems. Second phrasing: eligible calls (elig.), hijack rate (hij., %), share of hijacks on which the second phrasing also returns the target, share of clean calibration articles on which the two phrasings differ, and share (%) of eligible calls that become hijacks passing the gate on low confidence alone and on both calls, with the combined gate’s clean alarm rate on the evaluation articles. “–”: no threshold keeps the combined gate’s calibration alarms at 5%.
원문 · CC BY 4.0 · Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.논문 정보
- 저자
- Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2026년 11월 2일
- 등록일
- 2026년 11월 4일
- 수정일
- 2026년 11월 2일
- 버전
- v1
- arXiv
- 2611.02522
- 분류
- cs.CL · cs.CR
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
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.
원문 인용
Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang (2026). Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities. arXiv:2611.02522v1. https://arxiv.org/abs/2611.02522v1
BibTeX
@misc{yao2026ranked,
title = {{Ranked but Not Stopped: Detecting Prompt-Injection Hijacks from Typed Decision Models' Output Probabilities}},
author = {Junwei Yao and Jianan Liu and Yongxi Zhou and Zike Yang},
year = {2026},
eprint = {2611.02522},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.02522v1}
}