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

Low model confidence flags prompt-injection hijacks but misses most of them at alarm rates

Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang · arXiv · 2026-11-2

- **Problem** Confidence monitors are judged on how well they rank hijacked answers, but deployed systems alarm at a fixed rate. A threshold set that way lets many hijacks pass, even when low confidence ranks them above clean answers.
- **Method** The authors calibrate a gate on separate clean articles and alarm when one minus the top probability is high. The threshold comes only from clean calls, so no attack text shapes it.
- **Results** Low confidence ranks hijacks above clean answers at AUROC 0.86 to 0.90 on four systems. A handwritten certain note makes the gate miss 99 to 100 percent of hijacks on API-served models.

## Why a confidence monitor has two jobs

A program that uses a typed decision model receives a label and probabilities, but no explanation of why. Injected text in the input can move that answer to a label the attacker picks, and the authors call such a change a hijack. The program doesn't know the attacker's label, so a monitor can only use scores that need no target, which the authors call traces.

The obvious trace is low confidence, one minus the top probability, which is a standard baseline for misclassified inputs.

A low-confidence monitor has to do two jobs, and they can pull apart. It must rank hijacks above clean answers, and it must also stop enough hijacks behind a threshold. The two jobs split when most clean answers are almost certain, as they are on four of the five systems. A hijack that is more confident than that threshold passes, even when low confidence ranks it above the clean answers.

## Low confidence as a gate on clean calls

Low confidence serves as the alarm score, and the threshold is fitted only on clean articles, so no attack text shapes it. A gate alarms on a call when its low confidence, one minus the top probability, exceeds the k-th smallest of n clean scores. The index is k = ceil(0.95(n−1)) + 1, which keeps at most 5% of the clean scores above the threshold.

The calibration set supplies n = 100 clean scores, although the gate can also use the run's own clean calls.

A hijack is an attacked call whose chosen label is the attacker's target, while the clean call's label was not. Articles whose clean answer already is the target are dropped, and the attacked calls of the remaining articles become eligible. In the pooled count, each hijack is a positive, and the clean call of its article is a negative counted once per hijack.

Because both sides keep the same mix of articles, an article hijacked by several versions weighs in proportion to its hijacks. AUROC gives the chance that a hijack scores above such a clean call, with ties counting half and 0.5 meaning chance.

The missed share divides the hijacks that pass the gate by all hijacks, and it is the headline measure of the gate. The unflagged share divides the passed hijacks by all eligible calls, so it equals the hijack rate times the missed share. The authors use the unflagged share only to compare texts whose hijack rates differ, because it rewards both more hijacks and more passing hijacks.

On the calibrated run, the threshold sits at top probability 0.62 to 0.70, and the gate misses 51 to 70% of plain-note hijacks. Runs that set the threshold on their own clean calls form a different comparison, which Section 3.5 sets against the calibration-based gate.

## Ranking hijacks on AG News with low confidence

The four are gpt-6-luna, Kimi-K3, Qwen3.8-Flash and the NLI encoder, with AUROCs of 0.86 to 0.90 under the pooled count. The pooled count gives each hijack one positive and copies the clean call of its article for each hijack, so both sides share the same article mix.

On open-bosun, low confidence gives an AUROC of 0.55 with an interval of 0.49 to 0.62. That interval includes 0.5, so the ranking isn't above chance on this system. The verdict on open-bosun also depends on how hijacks are counted. The hijack rates behind these calls come from the target run, where 15 to 54% of eligible calls are hijacked on open-bosun.

The disagreement is above chance on four of the five systems, but low confidence beats it on gpt-6-luna and Kimi-K3. Over all AG News chosen-label calls, the disagreement doesn't detectably beat low confidence on any system. The two traces overlap by construction: when the Boolean's yes probability is near one, the disagreement is about one minus the top probability.

The disagreement also costs an extra Boolean call per answer.

Other summaries of the answers do only slightly better, if at all, than low confidence. The next section asks why the gate misses plain-note hijacks even though these ranking results hold.

## Why the gate misses plain-note hijacks

The gate misses many plain-note hijacks because its threshold lands among the least confident clean answers. In the calibrated run, the threshold was set on 100 separate calibration articles at a 5% clean alarm target. On the three API-served models, the gate misses 51 to 70% of the plain note's hijacks, as point estimates. On the NLI encoder and open-bosun the missed share is higher, at 87 to 97%.

The threshold sits at top probability 0.62 to 0.70, and many plain-note hijacks are more confident than that.

Figure 2 shows the mechanism: the clean answers set the threshold, and the hijacks lie above it. The AUROC's negatives are the clean calls of hijacked articles, a selected set. Scored instead against a 5% threshold on those negatives, the plain note would miss 36 to 98% of its hijacks. The selection of negatives therefore matters for how the gate's miss rate is read.

![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. Cal…](https://refivu.com/papers/bc0899b3-aa3e-4335-8078-f8b1b1183609/figures/figure-e6b88355b58a743aabcc278e5a64f79c.png?thumb=512)

**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.

[Original paper](https://arxiv.org/abs/2611.02522v1) · [CC BY 4.0](https://creativecommons.org/licenses/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 · Original paper figure · Extracted the figure area from page 7 of the original PDF.

Across the four runs with a plain-note baseline, the gate misses 42 to 76% of the plain note's hijacks. These runs differ in articles, text positions or threshold source, so the shares are point estimates. Per-system intervals are wide, spanning 21 to 100% on the API-served models. The missed share itself lies outside the analysis plans, which use the unflagged share as the gate measure.

## A handwritten certain note

The certain note is the plain note with one extra handwritten sentence that calls the label certain and asks for full probability. The authors wrote this sentence without querying any model, so the attacker needs no access to the system to craft it. The authors call the certain note and the certain override monitor-aware, because each aims to make the model confident in the target.

Its hijacks are also more confident, so the monitor-aware hijacks sit higher on the confidence scale than plain-note hijacks. Low confidence still ranks the monitor-aware hijacks above clean calls on four systems, but not on open-bosun.

In the calibrated run, the gate built on separate calibration articles misses 99–100% of the certain note's hijacks on the API-served models. Low confidence still ranks these hijacks above the clean calls, at AUROC 0.70–0.79. The threshold sits below the certain note's hijacks, so a higher-confidence hijack slips past the alarm even though it ranks above clean answers.

The calibrated run also uses six texts that each add at most one sentence to the plain note. The certain note's sentence is split into parts, so the run shows which part of it lets hijacks pass the gate.

## Searched text and the inverted trace

The attacker queries the system's probabilities and searches over handwritten parts for wording that makes the model confident in the attacker's label. The search space has four parts and 840 combinations, covering eight authority claims, seven demands for confidence, several wrappers and three positions.

On the 110 test articles, the searched text hijacks 89 to 100% of eligible calls, against 23 to 95% for the plain note. The hijacks of the searched text have a median top probability of 0.98 to 0.99. With the threshold set on clean test calls, which alarm on 5 of 110 calls (4.5%), the gate misses 99 to 100% of these hijacks on the API-served models.

The miss rate is 68% on the NLI encoder and 100% on open-bosun, against 42 to 58% for the plain note on the API-served models.

On the NLI encoder the searched text raises that share from 30% to 60%. In the fresh search run, the gate misses 100% of the searched text's hijacks on the API-served models, with the threshold set on 100 calibration articles. Low confidence still ranks the searched hijacks above clean calls on gpt-6-luna, Kimi-K3, Qwen3.8-Flash and the NLI encoder, at AUROC 0.63 to 0.78.

On open-bosun the searched text inverts low confidence, so its hijacks rank below the clean calls. The AUROC is 0.20 \[0.13, 0.28\], and 0.16 \[0.11, 0.21\] in the fresh search run.

## Choosing a trace for a new task

The procedure starts on the AG News development half, where each system picks its highest-AUROC trace from four candidates. Ties go to low confidence, and the choice is then scored on the test half. To test new attack text, the deployer repeats the choice on four attack families and scores it on the fifth. The point is that a deployer can fix a trace before any labeled hijack from the new task exists.

On the test half the chosen trace stays above chance for four of the five systems. Redrawing the halves 200 times with a seeded generator matches the fixed-split choice on 14% of splits for the NLI encoder. In none of those pairs does the re-chosen trace beat low confidence on the held-out family.

The new-task traces were fixed before any new-task request, which matters for Kimi-K3 and Qwen3.8-Flash. These two models aren't deterministic across sessions, so a repeated Choice can give a different hijack set. On the easy task, DBpedia-14, the systems answer 96.5–100.0% of the 200 clean entries correctly. The harder task, Yahoo Answers, has clean accuracy of 71.0–77.5% and three attack families of its own in three positions.

Low confidence alone beats the disagreement on three systems there: gpt-6-luna, Qwen3.8-Flash and open-bosun. On Yahoo Answers the fixed trace is above chance on Kimi-K3, Qwen3.8-Flash and gpt-6-luna. On Qwen3.8-Flash the disagreement beats low confidence, with a difference of \[+0.04, +0.23\]. Under the pooled count, criteria (ii) and (iv) hold, while (i) and (iii) don't, with 3 systems against 4 and 2 against 4.

## Limitations of the gate and attack results

The limitations start with the analysis plans, which fixed the attack texts, primary measures and decision rules in advance. Because of that, the plans' gate measure is the unflagged share, not the missed share. A verdict near the boundary can therefore be due to chance. The central gate results on the API-served models are far from that boundary.

They cover 99–100% of hijacks missed under the certain note and 100% under searched text.

The monitor reads only the output probabilities, so input-side detectors and free-text reasoning fall outside its scope. Prompts that tell the model to disregard instructions in the input are outside the tested systems.

The main experiments use one prompt per system, and Appendix J adds a second phrasing on three systems. A single prompt can understate sensitivity to wording, so the results may be optimistic on that axis. Kimi-K3 and Qwen3.8-Flash are read through their top five tokens, which bounds what the readout can show.

## Paper info

- **Authors**: Junwei Yao, Jianan Liu, Yongxi Zhou, Zike Yang
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-2
- **Added**: 2026-11-4
- **Updated**: 2026-11-2
- **Version**: v1
- **arXiv**: 2611.02522
- **Category**: cs.CL · cs.CR
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.02522v1) · [PDF ↗](https://arxiv.org/pdf/2611.02522v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

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.

## Quote from the paper

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}
}
```

## Other paper commentary

- [Better Answers, Weaker Evidence Control: Evidence Bypass in On-Policy Distillation](https://refivu.com/en/papers/4f3b67b5-c171-433a-9e16-cafa103c6614-better-answers-weaker-evidence-control-evidence-bypass-in.md)
- [Testimony from Timelines: Evidence-Grounded Significance Testing of Temporal Clinical Hypotheses](https://refivu.com/en/papers/a4d2efe3-a20d-4061-8195-c02bbb80e510-testimony-from-timelines-evidence-grounded-significance.md)
- [Does the Citation Matter? Quality, Grounding, and Physician-Rubric Accuracy of Google's AI Overviews for Medical Information](https://refivu.com/en/papers/8a6fb29a-3437-4d12-a2ce-f4bb525f90a4-does-the-citation-matter-quality-grounding-and-physician.md)
- [Rethinking Pre-pretraining](https://refivu.com/en/papers/d273fb00-9d62-45e7-8403-35734ecb1c42-rethinking-pre-pretraining.md)
- [What a Weight Update Buys: Leverage Across Training Stages](https://refivu.com/en/papers/e56ef3d5-e9f9-400c-9562-56552225cc44-what-a-weight-update-buys-leverage-across-training.md)
- [Preference learning made easy: Everything should be understood through win rate](https://refivu.com/en/papers/264a94d1-35b3-4713-ad28-4fb53ff57907-preference-learning-made-easy-everything-should-be.md)
- [Chain-of-Thought Oversight Requires Separate Evidence for Faithfulness and Monitorability](https://refivu.com/en/papers/637e8c32-6fd4-4664-b753-e762abe41dfe-chain-of-thought-oversight-requires-separate-evidence-for.md)
- [Beyond Validation Loss: Coverage and Reliability Dynamics in Robot Policy Pretraining](https://refivu.com/en/papers/477dd3a5-e6d5-42f9-a862-0cc60ed2edfa-beyond-validation-loss-coverage-and-reliability-dynamics-in.md)
- [Hinted Scaling Laws](https://refivu.com/en/papers/b98fdaf7-9c61-4bcc-a76e-766a349931d3-hinted-scaling-laws.md)
- [Multiclass Classification with Rare Useful Features: Fundamental Limits and the Optimality of Diversity Pursuit Higher Criticism Thresholding](https://refivu.com/en/papers/689d5030-69ba-4ce3-9978-314e85fa4fba-multiclass-classification-with-rare-useful-features.md)
- [Revisiting LLM Homogeneity Through a Multidimensional Lens](https://refivu.com/en/papers/737f6d2c-f5de-442f-9089-d5b9542c97da-revisiting-llm-homogeneity-through-a-multidimensional-lens.md)
- [Stand-In Effects and Pooling Amplification: Design-Based Tests of Whether Biological World Models Use Actions](https://refivu.com/en/papers/50413a5c-0761-4ec0-a777-4ef2f9ce2a17-stand-in-effects-and-pooling-amplification-design-based.md)

## Terms in this paper

- [gate](https://refivu.com/en/terms/d90d1e12cf79-gate)
- [Indirect Prompt Injection](https://refivu.com/en/terms/8fbf6c02688f-indirect-prompt-injection)
- [gpt-6-luna](https://refivu.com/en/terms/b46e4bf44b79-gpt-6-luna)
- [AG News](https://refivu.com/en/terms/d980d6e0e126-ag-news)
- [typed decision model](https://refivu.com/en/terms/79298a27c45c-typed-decision-model)
- [Yahoo Answers](https://refivu.com/en/terms/ff3a47e016da-yahoo-answers)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/bc0899b3-aa3e-4335-8078-f8b1b1183609-ranked-but-not-stopped-detecting-prompt-injection-hijacks)
