SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.22659 · 2026

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

Anas Biswas

arXiv · PDF · Open in the Atlas

Code that ran

13 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 12 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.22659.json · badge: /api/ran/2606.22659.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
anasbiswas1/picalib-research canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
FunctionStatusWhere it lives
build_task_prompts Ran
ran; our contract draft was wrong, not the code
anasbiswas1/picalib-research/src/targets.py
pointer only (licence: NONE) · get_code("11d11d94defb459e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

embed_e5 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anasbiswas1/picalib-research/src/detectors.py
pointer only (licence: NONE) · get_code("ce96575d56e2d578")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

fncr Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anasbiswas1/picalib-research/src/metrics.py
pointer only (licence: NONE) · get_code("fd1402dce146fb26")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

fnr Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anasbiswas1/picalib-research/src/metrics.py
pointer only (licence: NONE) · get_code("de9c5702fd636b82")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

judge_prompt Ran
ran; our contract draft was wrong, not the code
anasbiswas1/picalib-research/src/attack_success.py
pointer only (licence: NONE) · get_code("c203d3def96f1247")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_all Ran
ran; our contract draft was wrong, not the code
anasbiswas1/picalib-research/src/data_loaders.py
pointer only (licence: NONE) · get_code("421a22029a718158")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_bipia Ran
ran; our contract draft was wrong, not the code
anasbiswas1/picalib-research/src/data_loaders.py
pointer only (licence: NONE) · get_code("83d87ca0ba7db132")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_bipia_indirect Ran
ran; our contract draft was wrong, not the code
anasbiswas1/picalib-research/src/data_loaders.py
pointer only (licence: NONE) · get_code("468cc7dea41f8d82")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_judge Ran
ran, violated the contract we drafted
anasbiswas1/picalib-research/src/attack_success.py
pointer only (licence: NONE) · get_code("3b698ca3452c971d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

predict_p Ran
ran; our contract draft was wrong, not the code
anasbiswas1/picalib-research/src/detectors.py
pointer only (licence: NONE) · get_code("c77446575dc51551")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

programmatic_success Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anasbiswas1/picalib-research/src/attack_success.py
pointer only (licence: NONE) · get_code("1e285848197bff18")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

severity_S Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anasbiswas1/picalib-research/src/metrics.py
pointer only (licence: NONE) · get_code("37ec81b452256bbe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

train_xgb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anasbiswas1/picalib-research/src/detectors.py
pointer only (licence: NONE) · get_code("2f573efd9fa3b208")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_batch Not yet run
unverified (harvested, no recorded run)
anasbiswas1/picalib-research/src/targets.py
pointer only (licence: NONE) · get_code("75418e56998a073f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_lm Not yet run
unverified (harvested, no recorded run)
anasbiswas1/picalib-research/src/targets.py
pointer only (licence: NONE) · get_code("a30d234cb1ac1600")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anasbiswas1/picalib-research when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 15 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 wellcalibrated, 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.22659")
get_code_for_paper("2606.22659")
have("2606.22659")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.22659.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.22659.svg)](https://syntology.ai/paper/2606.22659)

Connect an agent — have() is free.