Manuscript Offprint
arXiv:2610.33849Ranking Is Not Deciding: Benchmark Shortcuts and Operating-Point Collapse in Query-Time RAG Poisoning Defenses
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Pushkal Kumar
North Creek High School
Arvin Sahaym
Washington State University
Abstract—Query-time filters that screen each retrieved document before it reaches the generator are the dominant published defense against retrieval-augmented generation poisoning, and they report near-perfect detection on domain benchmarks. We show that this performance is predicted by how the poison set was built rather than by what the filter reads: removing a single construction cue destroys the deployed decision before it destroys the ranking. Two statistics computed from a poison set and its clean corpus alone, with no defense, scores or labels, profile the cue: containment, how often the target question appears verbatim in the poison, and length overlap. Containment captures a construction choice used in PoisonedRAG: its released code prepends the target question to every inserted passage. Of the 21 published defense evaluations we survey, 8 verifiably run poison built this way and 5 substitute a length cue; separately, 12 report no false-positive rate at the operating point they deploy. Deleting the prefix from the attack authors' own passages, and nothing else, leaves 0.93 of them still retrieved for their target and takes RAGuard, a published content filter we re-implement, from AUROC 0.953 to 0.758 and its miss rate from 0.191 to 0.763. Across four corpora, four attack families and ten per-document defenses on one shared candidate set, the profile predicts where detection saturates. Padding medical poison to clean length with word-shuffled filler that carries no content takes TrustRAG's set-level stage from a miss rate of 0.000 to 0.827, and one learned scorer of ours from 0.000 to 0.986 (0.321 at a matched 5% false-positive rate) while its AUROC holds at 0.953 and the share of injected poison reaching the context rises from 0.00 to 0.94. The ranking survives; the decision does not. AUROC alone can conceal this collapse, and a defense-aware attacker defeats our own scorer, so we draw no defense claim from it. A detection result is evidence only when it is reported with its poison set's construction profile and the false-positive rate at the threshold actually deployed; we release the script that computes the profile.
Index Terms—retrieval-augmented generation, data poisoning, benchmark validity, cost-sensitive classification, adaptive attacks
I. INTRODUCTION
Retrieval-augmented generation (RAG) grounds a language model in documents retrieved from an external corpus [1], so the corpus is an attack surface: an adversary who can insert text can steer the output for chosen queries without touching model weights. Five passages per target question suffice for over 90% attack success [2], later work needs one [3]–[5] or hides the payload behind triggers [6], [7], and content-level detectors have “negligible impact” on optimized attacks [8]. The response

Fig. 1. Two numbers, computable with no defense, no scores and no labels, say whether a published detection number means anything. Upper: each poison set's construction profile — how often the target question occurs verbatim in the poison, and how far the poison's word lengths fall outside the clean band ( : that corpus's clean band has no width at all, so its separation is degenerate). Lower: median miss rate at the deployed point over the six defenses of Fig. 3, on the template rung ( ) and under the one control that moves that corpus's median most ( , named above each pair). Per-defense values and the signed one-feature AUROCs are in the released data.
has been query-time filters that decide, before generation, which retrieved documents may enter the context [9]–[14] (Section II). Two construction numbers predict the result. A poison set can be profiled before any defense runs, from the poison and the clean corpus alone, by two numbers: how often the target question occurs verbatim as a contiguous substring of the poison document, and how far the poison and clean word-length distributions separate. The first is not an artifact of our regeneration. PoisonedRAG's released implementation constructs each inserted passage as the target question followed by the generated text [2], and its released archive stores the generated half alone. Across our four corpora the pair runs, as containment / length overlap, 1.00 / 1.00 on Natural Questions (NQ), 1.00 / 0.00 on medical, 1.00 / 0.91 on financial, and 1.00 / 0.00 on legal, whose clean corpus has no length variance at all ( ). Containment is thus 1.00 in every template cell of Table III and on the passages PoisonedRAG's code inserts: it is the literature's condition, not a variable of ours, and the across-corpus prediction rests on the length number and
src/attack.py: adv_text_a = question + ".", then adv_text_a + i for i in adv_texts_b; the white-box path initialises adv_a = query.
on the one released arm where we can set containment to zero. Deleting the prefix from the attack authors' own passages, changing nothing else, is the leading control of this paper (Fig. 1): it moves the best published content filter we re-implement, RAGuard, from AUROC 0.953 to 0.758. Every saturating cell has at least one extreme number; where both are, as on medical, 4 of the 8 distinct score systems miss nothing (ten defenses, eleven table rows, eight score systems: three rows are our one learned scorer at three thresholds, Section IV-A). Every miss rate here is reported against the false-positive rate it was bought at.
Ranking is not deciding. On medical poison padded to the clean length with word-shuffled filler — identical length and vocabulary, no coherent content — our learned scorer keeps AUROC 0.953 and misses 0.321 at a matched 5% false-positive rate, while at the threshold it deploys it misses 0.986; TrustRAG's set-level stage moves from 0.000 to 0.827 under the same edit. The ranking is degraded; the operating point is gone; and AUROC-only reporting cannot tell the two apart. Padding with real clean prose also collapses a GPT-2 perplexity threshold [15], [16] and RAGuard's chunk score, but by content dilution, not length: a mean-token likelihood is set by its padding, and shuffled filler returns their miss rates to 0.000 and 0.000 (Section VI-B); we lead with the detectors whose collapse survives the placebo. Once a cue has driven score mass to the extremes every threshold rule selects the same documents, so benchmark validity and operating-point evaluability are one quantity measured twice.
What this does not show. One of the ten defenses is our own learned scorer, the one system whose features can be ablated. Every negative result below indicts it first and the constructed benchmarks second: a defense-aware attacker passes 0.977 of its poisoned documents past it (Section VI-B), and we propose no defense. The profile is validated at four corpora and no more, and at single (corpus, attack, defense) points its direction is wrong for 40 of 90 (Fig. 5). Per-source trust is a mechanism reported beside a provenance leakage of 1.000; it is not a detection result, and nothing here is a guarantee.
Contributions. (I) A two-number construction profile of a poison set, computable before any defense runs, that predicts which published benchmarks saturate — measured on regenerated templates, on the attack authors' own released passages, on the poison sets of 21 published defense evaluations and on every question-targeted attack that releases poison as text (Sections II-E and V). (II) The dissociation the profile exposes and its two failure modes: calibration collapse, which leaves the ranking usable and the deployed point dead and is partly repairable at a stated false-positive cost, and signal collapse, which nothing in the decision layer repairs; with a five-rung ladder of payload-preserving edits scored under a conjunctive criterion (Section V). (III) The consequence for evaluation: on the cells the profile flags, no operating-point claim — ours included — is falsifiable, verified by building the best available cost-derived rule and finding that it changes no decision in 12 of 26 cells (Section VI).
A. Poisoning attacks on RAG
Attacks differ in objective (answer manipulation [2]–[4], [17], jamming [5], backdoors [6], [7], [18], universal corruption [19], stance flipping [20], utility degradation [21], prompt injection [22], [23]), in knowledge (black-box, gray-box with retriever gradients [7], [19], [24], supply chain [18]), and in budget, from N documents per target query [2] down to one [3]–[6], [8].
Two properties matter here. First, black-box poison is fluent text, so the standing reading is that perplexity separates only gradient-crafted strings and jamming blockers [2], [4], [5], and that adversarial decoding evades it outright [25]. On PoisonedRAG's own NQ passages that reading holds: a GPT-2 perplexity threshold misses 1.000 of them with the question prefix its code prepends and 1.000 without it, at AUROC 0.773 and 0.729. On poison regenerated from that attack's template for a medical corpus the same threshold misses 0.062 at AUROC 0.993: our skeletons are perplexity-detectable and the attack authors' text is not, which is a statement about corpora and generators, not about the prefix. Second, attacks frame the injection as a correction: CorruptRAG asserts that "the latest data confirms" the false answer [3], AuthChain adds authority cues and timestamps [4], and the Purpose attack writes poison as a non-contradicting update [26] — the surface form of a legitimate restatement, which no construction cue marks.
B. Defenses by stage and granularity
Defenses differ in where they act and what they decide on (Table I). Offline: duplicate hashing [2], DRS's covariance outlier score [13], provenance attestation [27], offline per-source reliability [28]. Retrieval-time: chunk-wise perplexity and query-similarity outlier removal [9], source-aware [29] and graph [30] re-ranking. Pre-generation, over the retrieved set: perplexity [16], gradient-masked token probability [31], k-means removal (TrustRAG stage 1 [11]), hierarchical clustering [10], a natural-language-inference (NLI) contradiction graph [12], min-cut selection [14], conflict-free assembly [32], supervised injection filters [33], [34]. Generation-time: isolate-then-aggregate with a certified bound [35], rationale generation and source-aware consolidation [36], [37], attention-based filtering [38], [39], capability-based isolation [40]. Post-generation: answer activations [41] and forensic attribution [42], [43].
Three published works share the name RAGuard: a misleading-retrieval benchmark [44] and two defenses. Here “RAGuard” is Cheng et al.’s query-time chunk filter [9]; the other, RAGuard-ZKIP [45], decides from generator outputs and exposes no per-document decision or operating point, so it is a capability row in Table XI, not a baseline.
C. Lineage of the decision rule
Every ingredient of the decision rule of Section IV-C is old and claimed by no one here [46]–[56]. We say query-time admission gate because observing the query is the escape Pathak and Sharma’s coverage bound names [57].
TABLE I
QUERY-TIME RAG POISONING DEFENSES, COLUMN BY COLUMN. NLL IS NEGATIVE LOG-LIKELIHOOD. STAGE: OFF OFFLINE, RET RETRIEVAL-TIME, PREG PRE-GENERATION. GRAN.: D DOCUMENT, RS RETRIEVED SET. Fit? IS YES WHEN ANYTHING IS ESTIMATED FROM DEFENDER DATA BEFORE DEPLOYMENT; IN ROWS 9–11 THAT IS THE SCORER, NEVER THE THRESHOLD. FPR: THE RATE NOMINALLY TARGETED AGAINST THE RATE REALISED HERE (FOUR CORPORA, TEMPLATE RUNG, POISONEDRAG, FIVE SEEDS); none: NONE IS SPECIFIED; RAGUARD'S IS THE UNION BOUND OVER ITS THREE TAIL TESTS (ONE TWO-SIDED, TWO ONE-SIDED). EVERY FITTED THRESHOLD IS A QUANTILE OF THE CALIBRATION SPLIT'S CLEAN TOP-k: ≤ 200 DOCUMENTS FOR PERPLEXITY AND RAGUARD, THE TOP-50 HELD OUT IN HALVES FOR DRS (SECTION IV-A). LATENCY: MEAN PER QUERY ON AMD RYZEN 7 5700G (16 THREADS), 15 GiB RAM, PYTORCH 2.14.0, CPU ONLY OVER 4400–7600 QUERIES PER ROW, POOLED OVER 199 RECORD SHARDS OF EVERY E1 LANE. ROWS 9–11 ARE ONE SCORE AT THREE THRESHOLDS. TABLE XI LISTS THE SYSTEMS THAT EXPOSE NO PER-DOCUMENT DECISION.
| Defense | Stage | Gran. | Signal | Operating-point rule | Fit? | FPR nom. → real. | ms/q |
|---|---|---|---|---|---|---|---|
| No defense (control) | — | — | none | admits every candidate | No | — → 0.000 | 0.014 |
| Perplexity [2], [16] | PreG | D | GPT-2 mean token NLL | p99 of clean top-k NLL | Yes | 1% → 0.003 | 503.1 |
| RAGuard (Cheng et al.) [9] | Ret/PreG | D | half-chunk NLL gap; query similarity | 2.5% clean tail, OR of three | Yes | 10% → 0.098 | 487.0 |
| DRS [13] | Off | D | shift along low-variance clean eigendirections | p99 of held-out clean top-50 | Yes | 1% → 0.103 | 0.369 |
| TrustRAG stage 1 [11] | PreG | D, RS | k-means(2) cohesion; ROUGE-L overlap | fixed 0.88 and 0.25 | No | none → 0.244 | 125.0 |
| RAGDefender [10] | PreG | D, RS | Ward cluster size; TF-IDF terms; concentration | drop the closest | No | none → 0.057 | 19.07 |
| NLI consistency [12] | PreG | RS | cross-encoder contradiction; max independent set | fixed edge at | No | none → 0.420 | 7258.4 |
| Dup-only [2], [8] | Off/PreG | D | exact-hash and cosine near-duplicate; norm test inert on unit-norm vectors | fixed cosine 0.95 | No | none → 0.039 | 0.421 |
| Same scorer at | PreG | D | learned calibrated posterior | fixed , harm-blind | Yes | none → 0.021 | 6.25 |
| This paper, -trust | PreG | D | the same | , from a stated harm ratio | Yes | none → 0.026 | 11.91 |
| This paper, +trust | PreG | D | shifted by a Beta source posterior | , clipped | Yes | none → 0.026 | 12.22 |
D. Evaluating a security classifier
The failure modes measured here are catalogued by this venue's own literature: experimental bias [58], [59], Arp et al.'s sampling bias, spurious correlations and inappropriate baselines [60], base-rate and closed-world problems [61], shortcut features a benchmark rewards and a deployment does not [62], [63], and robustness that is an artifact of how the attack was constructed [64]–[66]. That a ranking metric can hide what a detector does at a deployable false-positive rate is this community's own lesson [67]–[69]. The control ladder of Section V follows the adaptive-evaluation recipe.
E. The gap
Over Table I and the capability-only systems of Table XI—whose rules are certified budgets, graph cuts, fixed sieves in series, or static provenance and trust weights, none a harm-conditioned threshold—no surveyed defense conditions its operating point on deployment harm—thresholds are clean-score quantiles [9], [13], fixed hyperparameters, or consistency rules with no threshold semantics [10]–[12], [14]—and none maintains per-source trust with a defined feedback channel [27]–[29]. The third gap is measured rather than asserted (Table II). Of 21 published defense evaluations, 8 verifiably run PoisonedRAG poison with the target question inside it — 3 ship the attack's attack.py line unchanged, and one releases poison in which we measure the question in 500 of 500 passages — 5 substitute a length or repetition cue (a fragment repeated 2–10 times, or poison of 119–162 words against clean chunks fixed at 100, where word count alone reaches AUROC 0.999), 2 evaluate a construction with no question in it (gradient-optimised tokens, a rewritten gold passage), and 6 cannot be determined from what was published. No false-positive rate at the deployed operating point is reported by 12 of them; only 1 reports a ranking metric at all; and the 3 that remove the prefix [11], [70], [71] report attack success at one fixed threshold with no false-positive side — two observe the filter collapse, and the third's text describes the prefix-removed setting as its default while its released attack code has no such path. One concurrent per-document detector reports an AUROC beside a 5% clean-removal budget [72], on query-inclusion poison. The attack literature has meanwhile named query inclusion as a filterable artifact in order to build poison without it [73]–[75]; CamoDocs' fixed-threshold query detector is the containment-only floor of Section V. None measures what a published filter's ranking and deployed point each lose when the artifact is removed from the attack authors' own text, whether the loss is calibration or signal, or the length cue. That is this paper.
III. THREAT MODEL AND THE SEMANTICS OF A CONTROL
A. System and trust boundary
In a deployment , a dense retriever over an index returns a candidate set for a query . A query-time admission gate — the defense class measured here — scores each and emits an action ; only passed documents enter the generator context. Ingestion binds each document to a source identifier . The defender controls everything except document content; the adversary controls the content of documents in sources it owns or has compromised. The deployment label is a property of the query path, not of a document, so no document field can select the threshold applied to it.
TABLE II
TWENTY-ONE PUBLISHED RAG-POISONING DEFENSE EVALUATIONS, BY THE CONSTRUCTION OF THE POISON THEY REPORT AGAINST. Prefixed: THE TARGET QUESTION APPEARS VERBATIM IN THE EVALUATED POISON (CODE: VERIFIED IN THE RELEASED REPOSITORY; TEXT: STATED IN THE PAPER; MEAS.: MEASURED ON THE RELEASED ARTIFACT; —: UNDETERMINED FROM WHAT WAS PUBLISHED). Cue instead: THE CONSTRUCTION THAT STANDS IN FOR THE PREFIX WHERE THERE IS NONE. FPR: A FALSE-POSITIVE RATE AT THE DEPLOYED OPERATING POINT IS REPORTED. Control: ANY EVALUATION WITH THE PREFIX REMOVED, AND WHAT IT REPORTS. n: TARGET QUERIES PER DATASET. EVERY ROW IS SOURCED IN THE ARTIFACT.
| # | Evaluation | Poison evaluated | Prefixed | Cue instead | FPR | Control | n |
|---|---|---|---|---|---|---|---|
| 1 | RAGuard [9] | PoisonedRAG, PIA, jamming; 2 adaptive | — (no repo) | — | Yes, Table I | No (paraphrase only) | 100 |
| 2 | TrustRAG [11] | PoisonedRAG release via its attack.py; PIA, AdvDecoding, jamming | Yes, Code (attack.py:87); text says removed | — | No (CRR, F1 only) | Yes, Table 4, ASR only | 100 |
| 3 | RAGDefender [10] | PoisonedRAG (LM_targeted), GARAG; own GPT-4 poison | Yes, Code (attack.py:92; main.py:225) | — | Partial (NQ mis-partition rate) | No | 100 |
| 4 | ReliabilityRAG [12] | own GPT-4o context, repeated 10× (QA), 3× (Bio); PIA with query | No, Text (App. E.1.1) | repetition ×3–10 | No | No | 100–500 |
| 5 | RobustRAG [35] | own GPT-4 poison “following PoisonedRAG”, repeated 5–10× | No, Code+Meas. (attack.py:49; cont. 0.002) | repetition ×5–10 | N/A (not a detector) | No | 100 |
| 6 | RevPRAG [41] | “following PoisonedRAG”; GARAG; PRCAP | — (no repo) | — | Yes, TPR/FPR tables | No | 1,500 |
| 7 | D-SCAN [38] | PoisonedRAG-generated, 2 of 5 docs replaced | No, Meas. (cont. 0.001–0.005) | length: poison 119–162 words vs clean fixed at 100; word count alone AUROC 0.999 | No | No | 2,412–12,576 |
| 8 | AV-Filter [39] | PoisonedRAG / RobustRAG releases, fragment ×2; PIA with question | No, Code+Meas. (attack.py:30; cont. 0.002) | repetition ×2 | Yes, App. D.4 (0.05–0.45) | No | 100 |
| 9 | RADAR [14] | RobustRAG’s poison repeated 5×; DeepSeek-generated dynamic poison | No, Code+Meas. (attack.py:110; cont. 0.002) | repetition ×5 | No | No | 500 |
| 10 | TRIS [70] | PoisonedRAG black-box, HotFlip, own “Poison Factory” | Yes, Text (“triggers repeat the query verbatim”) | — | No (stated as future work) | Yes, Table 7, ASR only | 100 |
| 11 | SecureCollaRAG [76] | SAA, PoisonedRAG, own ATA | — (SAA: Text yes; PoisonedRAG row: no code path) | — | Yes, Table II | No | 50 |
| 12 | TriShieldRAG [71] | PoisonedRAG release, full 2.68M NQ corpus | Yes, Text (“target question verbatim”) | — | No (poison block counts only) | Yes, adaptive arm, ASR only | 100 |
| 13 | RAGForensics [42] | PoisonedRAG-B/W, InstruInject | Yes, Text (“only the targeted query as subtext”) | — | Yes, Table 1 | No | 50 |
| 14 | RAGOrigin [43] | 15 attacks incl. PoisonedRAG-B | Yes, Meas. (500 of 500 poison texts; 0 of 9,500 clean) | — | Yes, Table III | No | 100 |
| 15 | GMTP [31] | PoisonedRAG white-box (HotFlip), Phantom, AdvDecoding | No, Text (30 masked tokens, no verbatim question) | gradient-optimised tokens | Yes, App. H | No | 200 |
| 16 | FilterRAG [33] | PoisonedRAG release + GPT-4o extras | — (no repo) | — | No | No | 100 |
| 17 | RAGuard-ZKIP [45] | own LLM rewrites of gold documents; no PoisonedRAG | No, Text | LLM rewrite of the gold passage | No | No | 33–190 |
| 18 | PRA-RAG [77] | “according to the PoisonedRAG method”; AdvDec, DoS, CorruptRAG | — (no repo) | — | No | No | — |
| 19 | SeCon-RAG [32] | “following PoisonedRAG”; PIA | Yes, Code (attack.py:92, PoisonedRAG’s line) | — | No | No | 100 |
| 20 | DRS [13] | PoisonedRAG on medical QA; agent attacks | — (no code; PDF only) | — | Nominal only (p99 in-sample) | No | — |
| 21 | RSB benchmark [8] | 13 attacks × 7 defenses | Yes, Text (“contains the exact targeted query”) | — | Yes, Tables 23–37 | No | 100 |
B. Adversary and defender
G1–G3 (integrity, availability, stealth). Have a chosen passed so its payload reaches the generator [2], [3], [17]; have benign documents blocked or honest sources downtrusted [5], [56], [78]; do the first with no ESCALATE or BLOCK attributable to or .
C1. Insert or edit N documents per target query across S controlled identities.
C2. Choose all document text and every self-declared field;
no such field is a scorer input.
C3. Query the system as a user and learn whether a document reached the context: a hard-label oracle for decision-based evasion [66].
C4. Corrupt a fraction of adjudication records (simulation only, Appendix A; every pipeline result is at ).
C5. Cannot alter model weights, the ledger except through C4, or I other than by insertion.
C6. Per Kerckhoffs the adversary knows the algorithm, , the thresholds and the trust update rule. Every attack reported here is black-box (C3 plus a surrogate encoder [79], [80]); white-box results are labelled where they appear [65], [81].
D1–D4. Identities are bound by the identity provider, so Sybil resistance is inherited, not provided [82]; adjudication is independent of the gate; and the calibration split carries no adversarial document.
Out of scope: retriever-weight and index tampering beyond insertion [18], [83], generator-side effects of instructions that reach the context [22], and the veracity of a fluent falsehood with legitimate provenance.
C. What makes a rung an attack
A control is a poison set that removes one profiled construction cue (Section V) while holding the payload and the attack family fixed. Each rung is a payload-preserving edit available under C1 and C2 alone: no gradients, no surrogate, no queries to the defender. A rung that lowers detection is therefore an attack, not dataset hygiene. A rung counts as a successful attack only under a conjunction: the document is retrieved after the edited corpus is re-embedded and re-ranked, its payload is intact against the pre-edit text, and it passes the gate. A length or lexical edit moves the embedding, and a document that leaves has evaded nothing, so retrieval survival is re-measured at every rung and printed beside the miss rate (Section VI). The published attacks we reproduce are scored under the same conjunction.
The defense-aware attacker. One query-based attacker is run, on NQ, against our own scorer: the mimicry rung (question and cue phrases removed, length matched) followed by hard-label word substitution under C3 against the scorer's admission decision, at most 500 oracle queries and 60 iterations per document, with a 22M-parameter surrogate encoder for retrieval survival. The resulting documents are then scored by every other defense unchanged, so for those defenses the number is a transfer attack and a lower bound on what an attacker tuned to each of them would achieve [66].
IV. THE MEASURED STACK, AND THE DECISION LAYER AS INSTRUMENT
Every number here comes from one harness. This section fixes it, then states the decision layer Section VI uses as an instrument, not a contribution.
A. Corpora, poison, and defenses
Corpora. Four: general (NQ targets from PoisonedRAG [2] over a BEIR sub-corpus [84], 24,295 documents), medical (PubMedQA [85], 21,000), financial (FinQA [86] and TAT-QA [87], 24,991) and legal (CUAD [88] contracts chunked to a fixed 150 words, 33,530, which makes the clean legal lengths constant). Each corpus carries 100 target questions split 40/20/40 by query into scorer-train, calibration and evaluation; every cell is evaluated on 40 queries, NQ included. Retrieval is all-MiniLM-L6-v2 [79], [80], no reranker, k=10 candidates. The scale is small and fixed (400 candidates per cell and seed, one 384-dimensional retriever, every clean-quantile threshold of Table I fitted on the 20 calibration queries' clean top-k); Section VIII states what that costs. Realised corpus poison rate 0.0147–0.0233; the scorer is calibrated at its training bags' candidate-level prevalence and deployed at 0.090–0.746.
Poison. Four published families: PoisonedRAG (N=5) [2], CorruptRAG-AS (N=1) [3], HijackRAG-style instruction injection [17] and a jamming blocker [5]. In fifteen of sixteen corpus–family cells our generator regenerates the poison from the published template. The sixteenth, NQ under PoisonedRAG, is the attack authors' own text, assembled the way their code assembles it (the target question, then the released passage; Section V); deleting that prefix and changing nothing else is the leading control of Section VI. Source identities are ours — three of the four attacks specify no source model — and the identifier is an exact label indicator here (provenance-only AUROC 1.000), so no trust number is a detection result.
Defenses. The ten defenses of Table I score one identical candidate set and return one keep/remove decision per document; fitted rows use the condition's own calibration split. Three rows are one learned scorer of ours at three thresholds, and Table V splits the last at two trust weights, so the paper counts eleven table rows, ten defenses, and eight distinct score systems, and every count below says which it uses. DRS is fitted as its Algorithm 2 specifies, on the clean top-50 candidates of the 20 calibration queries: one held-out half defines the directions and holds more documents than the encoder has dimensions, the other supplies the 99th-percentile threshold, which its published protocol takes in-sample with no held-out false-positive rate (Table I prints the held-out one; Section VIII the rank-deficient fit an earlier draft ran).
B. Metrics and statistics
Reported separately, no composite index: false-negative (FNR) and false-positive (FPR) rates at each defense's deployed rule and at matched FPR; area under the receiver-operating-characteristic (ROC) curve (AUROC); expected calibration error (ECE) over fifteen equal-width bins at the realised prevalence [49] (the reliability diagram of Section VI bins by equal mass instead, and says so); harm per 1,000 queries [51]; and, in Appendix B, context contamination rate (CCR), the poisoned fraction of the top-k.
Five seeds, . Per-seed sd is not a precision claim and never appears alone: candidate sets are seed-invariant (Jaccard 0.909–1.000), which forces it toward zero. Every comparison is a paired cluster bootstrap on the difference against a named comparator: 40 question clusters, each carrying all five of its seeds, 1000 resamples. Hardware AMD Ryzen 7 5700G (16 threads), 15 GiB RAM, PyTorch 2.14.0, CPU only, 35.8 CPU-hours for the main-table lanes.
C. Cost-sensitive admission
Each candidate has an authenticated source , a latent label (1 adversarial) and a score estimating . Deployment prices a miss, a false block and an adjudication at [46];
only and enter, and is a governance input, illustrative at and swept in Appendix B. The objective is expected harm over the retrieval stream [47],
whose third term prevents escalating everything. Four assumptions. A1 (calibration): at the prevalence where the gate runs — the one that fails, because the scorer is calibrated at and deployed elsewhere (Section VI measures the ECE). A2 (independence): evidence and source identity are conditionally independent given ; never sees or a self-declared field (C2). A3 (per-document): an individually innocuous poison set is outside a per-document rule. A4 (cost stationarity): costs depend on the deployment, not the document.
Proposition 1 (Elkan [46]). Under A1, A3 and A4, with and unset, the decision minimising (1) pointwise is
Trust enters as a prior-odds multiplier on (Section IV-D), clipped to , so under A2 the decision is again one threshold on the raw score,
equal to at ; Appendix A carries the derivation and the closed forms. Both dials move only documents whose score lies in the bounded band , which a construction cue empties by driving score mass to the extremes (Section VI-E). With set the optimum is Chow's three-way rule [50]; no main-table cell exercises it.
D. The scored system
Our scorer’s features, the two instrumented groups first: near-verbatim query containment — the cue Section V profiles — and log document length; then embeddings, further lexical features and set-context features over the candidate set, all defender-computed from the two texts, their embeddings and the retrieval geometry, none from self-declared metadata (C2). A multilayer-perceptron (MLP) trunk [512, 256, 128] over bags, temperature scaled [48], with a gradient-boosted tree as an ablation arm; a feature mask drops any group, which is what the ablation of Section VI uses.
Trust is a per-source Beta posterior over adjudicated evidence, keyed to an authenticated identity (D1) and starting at ; its update and closed forms are Appendix A.
V. CUE PROFILES AND THE CONTROL LADDER
Two quantities profile a poison set before any defense runs; a ladder of controls removes what they find (Fig. 1 states both halves in advance). This section defines them; Section VI measures them.
A. Two construction quantities
Let P be a poison set built for a target question set Q, and C the clean corpus it is inserted into.
Verbatim containment. Normalise a string by lower-casing, stripping punctuation, and collapsing whitespace. A poison document built for target is contained if the normalised occurs as a contiguous substring of the normalised . Containment is the fraction of that is contained.
Length overlap. Let be the fifth and ninety-fifth percentiles of the word counts in ; length overlap is the fraction of inside that interval. We print the clean spread beside it: with no length variance in a low overlap describes the corpus rather than the attack, and CUAD's fixed 150-word chunking gives it a spread of one.
Neither quantity runs a defense, reads a score, or needs a held-out label (Table III). Containment is 1.00 wherever poison is regenerated from a published template and 1.00 on the one condition whose poison we did not write, because PoisonedRAG's released implementation prepends the target question to every inserted passage [2]. Nor is the profile specific to our corpora (Table IV). Every question-targeted attack that releases poison as text inserts it at full containment by its own construction: PoisonedRAG on three corpora, HijackRAG at 1.00 (“we set ”) [17], and CorruptRAG, whose authors state the convention outright ( ) [3]; a second group's independent run of PoisonedRAG carries the question in 500 of 500 passages at length overlap 1.00 [43]. The one released artifact with no question cue, TrojanRAG, targets fixed-width Wikipedia chunks and sits at length overlap 0.00 [18]. A defense evaluated by running PoisonedRAG sees containment 1.00; one evaluated on the fragment its archive stores sees 0.00; Table II says which each published evaluation did.
Length overlap cuts the other way: 0.00 on medical against 0.91 on financial and 1.00 on NQ, whose clean band is 24.38 times as wide at its ninety-fifth percentile as at its fifth. Overlap is coarse, so we print the signed one-feature AUROC of each cue beside it, never its absolute value: length alone is worth 1.000 on medical against 0.098 on financial, where the poison is the longer class and normalising the sign would report no cue at all.
The consequence, as a rule that applies to a paper and not only to our data:
A defense reporting near-perfect detection on a poison set whose containment rate is 1.00, or whose poison length distribution lies outside the clean , has published no evidence that it uses anything else.
A floor for the profile. Two reference detectors read one scalar each: length-only scores and containment-
TABLE III POISON-SET CONSTRUCTION PROFILE: TWO QUANTITIES COMPUTABLE FROM A POISON SET AND ITS CLEAN CORPUS ALONE.
| Corpus | PoisonedRAG | CorruptRAG | HijackRAG | jam. | words | clean |
|---|---|---|---|---|---|---|
| nq | 1.00/1.00 | 1.00/1.00 | 1.00/1.00 | 1.00/1.00 | 33/37/43 | 24.38 |
| medical | 1.00/0.00 | 1.00/0.00 | 1.00/0.00 | 1.00/0.00 | 37/42/50 | 2.56 |
| financial | 1.00/0.91 | 1.00/1.00 | 1.00/1.00 | 1.00/1.00 | 38/46/57 | 5.60 |
| legal | 1.00/0.00 | 1.00/0.00 | 1.00/0.00 | 1.00/0.00 | 41/85/183 | 1.00 |
| nq -prefix | 0.00/1.00 | N/A | N/A | N/A | 25/28/32 | 24.38 |
Each cell is containment / length overlap (Section V-A); words is the realised word count of the headline attack's poison and clean the clean corpus's own , at 1.00 a corpus with no length variance, where a length cue is free. nq is the one corpus whose poison the attack's authors wrote, assembled as their released code inserts it: the target question, a full stop, then the released text. The prefix removed row is those same passages with that prefix deleted and nothing else changed. Length overlap is interpolated from the recorded ladder in financial (poisonedrag), legal (corruptrag), legal (poisonedrag); elsewhere the poison distribution lies wholly inside or wholly outside the clean band and the value is exact.
TABLE IV RELEASED POISON OF FIVE ATTACKS UNDER THE TWO PROFILE QUANTITIES OF SECTION V. EVERY QUESTION-TARGETED ARTIFACT IS INSERTED AT CONTAINMENT 1.00 BY THE ATTACK'S OWN CONSTRUCTION; THE ONE ARTIFACT WITH NO QUESTION CUE SITS AT LENGTH OVERLAP 0.00.
| artifact | n | cont. | overlap | poison words | clean words |
|---|---|---|---|---|---|
| PoisonedRAG NQ, archive (I) | 500 | 0.00 | 1.00 | 24/28/32 | 8/81/195 |
| PoisonedRAG NQ, inserted (S⊕I) | 500 | 1.00 | 1.00 | 31/36/41 | 8/81/195 |
| PoisonedRAG HotpotQA, inserted | 500 | 1.00 | 1.00 | 34/42/57 | 10/79/182 |
| PoisonedRAG MS MARCO, inserted | 500 | 1.00 | 0.97 | 28/32/37 | 26/52/105 |
| PoisonedRAG NQ, 3rd party [43] | 500 | 1.00 | 1.00 | 24/30/40 | 18/70/213 |
| HijackRAG, R=qi ⊕ H [17] | 2,251 | 1.00 | 1.00 | 19/27/42 | 8/81/195 |
| TrojanRAG, DPR chunks [18] | 60 | 0.00 | 0.00 | 10/28/36 | 100/100/100 |
| Topic-FlipRAG (topic-level) [20] | 45 | 0.02 | 1.00 | 40/66/119 | 25/66/209 |
Containment and overlap as in Table III (overlap: the ladder interpolation on the word-length p5/p50/p95 ladders, with the exact fraction inside the clean band in parentheses where the two differ by more than 0.03); word counts are p5/p50/p95. Clean corpus: the paper's BEIR sub-corpus for PoisonedRAG and HijackRAG, the file's own retrieved clean passages for the third-party run, the file's own DPR negatives for TrojanRAG, and the attack's own database for Topic-FlipRAG. HijackRAG released H only, so its row assembles with PoisonedRAG's NQ questions as stand-ins; Topic-FlipRAG has no target question and shows the profile flags nothing there. The artifact's profiling script recomputes every row.
only scores with a smaller token-coverage term breaking ties. Each is one input of our own scorer's feature vector and fits a threshold as every fitted defense here does; neither is a defense, and both bound what a detection number is worth.
B. The control ladder
A control removes one profiled cue while holding payload and attack family fixed. Template: the published generator, unmodified. Prefix removed: every verbatim occurrence of the target question deleted and query-token coverage capped, payload untouched; containment falls to zero. On NQ that rung is applied to the attack authors' own passages, deleting the prefix their code writes and nothing else, which is why it is the control Section VI leads with. Length matched: poison padded with benign filler from the clean corpus until its word count lies inside ; two placebo fillers of the same length, the clean sentences with their words shuffled and pseudo-words, separate length from content (Section VI-B). Both. A fifth rung, mimicry, edits a real domain passage so that only the target fact changes [3], [89], and is length-matched in turn.
Every rung is scored under the conjunctive criterion of Section III-C [65], [66], with retrieval survival, its first leg, printed under every rung of Fig. 3. For adjacent rungs and defense , the detection attributable to the cue removes is at the deployed point, what the deployment loses, and the same difference at matched FPR = 5%, what the ranking loses; every table below prints both.
Template leakage and hold-out. Domain-regime scorers train on a disjoint half of our skeletons (Section IV) and are evaluated on the other; the only shared structure is the verbatim prefix and the answer slot, which the prefix-removed and mimicry rungs delete. The general-regime scorer trains on HotpotQA and MS MARCO poison only, so both NQ arms are scored by a model that has seen neither their corpus nor their generator (held-out-skeleton AUROC financial 1.000; legal 0.999; medical 1.000, on the calibration split, so it certifies only a shared register).
What the protocol does not establish. Four corpora do not validate a predictor, so we report the per-point scatter (Fig. 5) rather than a correlation coefficient; the profile's direction is wrong at 40 of 90 (corpus, attack, defense) points there, so it predicts which corpora saturate, not which defense does on which cell. A clean profile is necessary for an informative benchmark, not sufficient: unprofiled cues may remain, and surviving all five rungs certifies nothing beyond those five edits.
VI. RESULTS
Five questions, one per subsection, each closing with a one-sentence verdict; statistics throughout are Section IV-B's.
A. Prediction, and the published construction
The cleanest control here needs no defense-side change and no poison we wrote: the NQ passages as PoisonedRAG's own code inserts them (containment 1.00, what a defense evaluated by running that attack saw) against the same passages with that prefix deleted (0.00), every other word, question, retriever and candidate set held fixed.
Table V gives every defense on one shared candidate set; the paired cluster-bootstrap differences (Table XII) are in Appendix B. On templated medical poison — containment 1.00, poison length disjoint from the clean distribution (Table III) — 4 of the 8 distinct score systems miss nothing (FNR 0.000) and 3 score families reach AUROC 0.993. Two systems saturate nowhere. DRS [13], fitted as its Algorithm 2 specifies, misses 0.700 at FPR 0.035 and peaks at AUROC 0.882; the near-zero miss rate an earlier draft printed for it, bought by blocking most of the benign corpus, was our port's rank-deficient fit, not DRS (Table V's note, Section VIII). The norm/duplicate filter misses 0.496. Saturation is what the profile predicts; competence is not.
Fig. 2 puts every defense at the point it chooses for itself: near-zero miss rates are bought across more than two orders of
TABLE V
ELEVEN ROWS, TEN DEFENSES, EIGHT SCORE SYSTEMS (SECTION IV-A) AND TWO ONE-FEATURE REFERENCE DETECTORS ON ONE SHARED CANDIDATE SET, EACH CELL THE MISS RATE, THE FALSE-POSITIVE RATE IT WAS BOUGHT AT, AND THE MISS RATE AT A MATCHED 5% FALSE-POSITIVE RATE. THE GENERAL COLUMNS ARE THE ONE CONDITION WHOSE POISON THE ATTACK'S OWN AUTHORS WROTE, ASSEMBLED THE WAY THEIR CODE ASSEMBLES IT.
| Defense | general | general, -prefix | medical | financial | legal |
|---|---|---|---|---|---|
| No defense | 1.000 / 0.000 / N/A | 1.000 / 0.000 / N/A | 1.000 / 0.000 / N/A | 1.000 / 0.000 / N/A | 1.000 / 0.000 / N/A |
| Perplexity (GPT-2) | 1.000 / 0.005 / 0.809 | 1.000 / 0.005 / 0.866 | 0.062 / 0.000 / 0.046 | 1.000 / 0.005 / 1.000 | 0.551 / 0.000 / 0.392 |
| RAGuard (Cheng) | 0.191 / 0.065 / 0.216 | 0.763 / 0.061 / 0.796 | 0.000 / 0.115 / 0.000 | 0.146 / 0.104 / 0.309 | 0.078 / 0.108 / 0.087 |
| DRS | 0.854 / 0.154 / 0.970 | 0.930 / 0.164 / 0.995 | 0.700 / 0.035 / 0.635 | 0.833 / 0.094 / 0.904 | 0.816 / 0.128 / 0.897 |
| TrustRAG stage 1 | 0.000 / 0.149 / N/A | 0.070 / 0.153 / N/A | 0.000 / 0.014 / N/A | 0.009 / 0.665 / N/A | 0.004 / 0.147 / N/A |
| RAGDefender | 0.045 / 0.025 / N/A | 0.172 / 0.117 / N/A | 0.000 / 0.055 / N/A | 0.081 / 0.119 / N/A | 0.339 / 0.029 / N/A |
| Dup-only | 0.678 / 0.005 / N/A | 0.989 / 0.009 / N/A | 0.496 / 0.000 / N/A | 0.788 / 0.150 / N/A | 0.343 / 0.000 / N/A |
| Ours, τ=0.5 | 0.015 / 0.010 / 0.000 | 0.118 / 0.014 / 0.043 | 0.000 / 0.000 / 0.000 | 0.025 / 0.017 / 0.017 | 0.002 / 0.059 / 0.005 |
| Ours, τd | 0.015 / 0.010 / 0.000 | 0.118 / 0.014 / 0.043 | 0.000 / 0.000 / 0.000 | 0.025 / 0.017 / 0.017 | 0.000 / 0.079 / 0.005 |
| Ours, τd,s (a=0.3) | 0.012 / 0.008 / 0.000 | 0.086 / 0.013 / 0.009 | 0.000 / 0.000 / 0.000 | 0.025 / 0.017 / 0.017 | 0.000 / 0.079 / 0.003 |
| Ours, τd,s (a=0.1) | 0.015 / 0.007 / 0.000 | 0.104 / 0.014 / 0.025 | 0.000 / 0.000 / 0.000 | 0.025 / 0.017 / 0.017 | 0.000 / 0.079 / 0.003 |
| NLI (ReliabilityRAG) | 0.935 / 0.458 / — | 0.866 / 0.388 / — | 1.000 / 0.185 / — | 0.961 / 0.532 / — | 0.793 / 0.507 / — |
| length-only (ref.) | 1.000 / 0.000 / 1.000 | 1.000 / 0.000 / 1.000 | 0.000 / 0.000 / 0.000 | 1.000 / 0.000 / 1.000 | 0.992 / 0.000 / 0.183 |
| containment-only (ref.) | 0.000 / 0.025 / 0.000 | 0.882 / 0.023 / 0.839 | 0.000 / 0.005 / 0.000 | 0.009 / 0.298 / 0.022 | 0.077 / 0.029 / 0.039 |
Each cell is FNR / FPR at the deployed operating point / FNR at a matched 5% FPR (the third number is omitted, or N/A, where the defense emits no score), lower is better, point estimates over seeds [11, 22, 33, 44, 55], attack poisoneddrag_bb; per-seed sd is not a precision claim (Section IV-B); dispersion and every paired cluster-bootstrap interval are in the appendix grids (Table XII). The two reference rows read one scalar each (word count; verbatim occurrence of the target question) and are the floor a defense has to clear, not defenses; Dup-only appears under both its lane names and the learned score at two trust weights, so the defense rows are the eleven configurations of Table I. The DRS row was re-measured after a defect in our port: the earlier fit calibrated on 199 clean documents, fewer than the 384 embedding dimensions, and took its threshold cross-fit on fold directions that differ from the deployed ones; every DRS cell here uses the corrected fit (clean top-50 of the 20 calibration queries, held-out threshold; Section VIII), which moves its clean FPR medical 0.945 → 0.035, financial 0.669 → 0.094, legal 0.517 → 0.128, nq 0.985 → 0.154. The –prefix column is the released NQ poison with the question prefix its code prepends deleted and nothing else changed (Table IX in Appendix B adds AUROC).
TABLE VI
THEIR CODE ON THEIR POISON: THE RELEASED TRUSTRAG AND RAGDEFENDER FILTERS ON POISONEDRAG'S RELEASED NQ PASSAGES, WITH AND WITHOUT THE QUESTION PREFIX ITS CODE PREPENDS.
| Defense | P | poison removed | clean removed | left / query |
|---|---|---|---|---|
| TrustRAG-S1 (10) | 0.996 [0.990,1.000] | 0.122 [0.078,0.172] | 0.02 | |
| I | 0.980 [0.966,0.992] | 0.122 [0.078,0.170] | 0.10 | |
| TrustRAG-S1 (top-5) | 0.990 [0.981,0.998] | 0.095 [0.000,0.286] | 0.05 | |
| I | 0.850 [0.791,0.901] | 0.077 [0.033,0.123] | 0.36 | |
| RAGDefender (10) | 0.884 [0.832,0.932] | 0.052 [0.020,0.090] | 0.58 | |
| I | 0.830 [0.776,0.880] | 0.070 [0.036,0.106] | 0.85 | |
| RAGDefender (top-5) | 0.714 [0.688,0.740] | 0.238 [0.059,0.429] | 1.37 | |
| I | 0.596 [0.521,0.674] | 0.246 [0.197,0.299] | 0.97 |
Released repositories, imported unchanged and called as their own drivers call them: TrustRAG k_mean_filtering at its default (kmeans_ngram over SimCSE; commit 11dcea0) and RAGDefender
RAGDefender.defend with its artifacts/main.py embedder (ba2a17e), on PoisonedRAG's released NQ poison (100 targets, five passages each; f660d72) and its released clean Contriever top-5, each passage once as src/attack.py inserts it ( ) and once as the archive stores it (I). (10): the clean top-5 plus the five poison passages, the candidate set of Table V; (top-5): the top five of those by their Contriever score, what their code filters, holding 4.79 of the five poison passages per query under (all five in 86 of 100 queries) and 2.40 under I (all five in 14). Rates are shares of the released poison / clean passages removed [95% query bootstrap]. Under TrustRAG returns an empty context on 84 queries.
magnitude of FPR, the cheapest of them by a single boolean feature, and where a zero miss rate costs an FPR above one half we read the cell as blocking, not detecting (Section VII). The profile's four values predict four outcomes (Fig. 1): medical, containment with disjoint lengths, is where every content defense that saturates anywhere saturates; legal's constant clean width makes a length cue free; financial, containment with overlapping lengths, is where the prefix alone collapses the deployed point; NQ, containment 1.00 against overlap 1.00 on the attack authors' own text, is the diagnostic cell.
Delete the prefix and the picture inverts (Table V, -prefix

Fig. 2. “Near-perfect detection” is bought at a false-positive rate nobody reports. One mark per (corpus, defense) on the rung the literature reports against, each at the operating point that defense deploys for itself; two marks carry their own numbers. The same near-zero miss rate is realised across more than two orders of magnitude of false-positive rate — at one end by blocking most of the benign corpus, at the other by a single boolean feature. Right-hand shading: Section VII’s rule that a zero miss rate above FPR = 0.5 is a closed door and not a detector; dotted rule, its matched-FPR ruler. Marks in the grey floor band realise exactly zero false positives, pinned so a log abscissa can show them.
column; Table IX in Appendix B adds every AUROC). RAGuard, the best published content filter we re-implement, falls from AUROC 0.953 on the passage the code inserts to 0.758 without the prefix, and its deployed miss rate from 0.191 to 0.763: there both ranking and decision go, and neither of the other two scored baselines does better. Our own scorer, trained on HotpotQA and MS MARCO poison and never on NQ, holds AUROC 0.990 at a miss rate of 0.118 — not because it reads content, but because the released passages are short in a corpus whose clean band is 24.38 times as wide at its ninety-fifth percentile as at its fifth (length alone is worth AUROC 0.806 there), and the mimicry-plus-length rung below takes it to 0.518. Survival of the prefix-less passages is 0.93 here; at PoisonedRAG's million-document scale it would be lower, the attacker's problem and not the filter's evidence.
Their code, their poison. Fifteen of our sixteen cells carry poison we regenerated and seven baselines are our ports, so every separability number on them is an upper bound; Table VI has neither: the released code of TrustRAG's stage 1 and of RAGDefender, unmodified and at their own defaults, on PoisonedRAG's released NQ poison and clean top-5 under both constructions. On the ten-candidate set of Table V, TrustRAG removes 0.996 of the poison as the attack's code inserts it and 0.980 as the archive stores it (clean removal 0.122); RAGDefender, 0.884 against 0.830. Our port agrees (0.000 and 0.070 missed in Table V), and no embedding or gate variant moves a rate by more than 0.028. Neither reads containment: both are set-level redundancy filters, and five mutually similar passages per target is PoisonedRAG's construction as much as the prefix is, and survives its deletion. The prefix acts on them upstream, in their own retrieval: their Contriever top-5 holds 4.79 of the five poison passages per query with it and 2.40 without, and removal among what is retrieved falls to 0.850 and 0.596, leaving 0.36 and 0.97 poison passages per query. With the prefix that top-5 is all poison on 86 of 100 queries and TrustRAG returns an empty context on 84: on the literature's construction it blanks the context rather than discriminating within it, which no removal rate shows. The prefix is the cue of the per-document content filters; the set-level filters read a second construction cue, redundancy, that a –prefix control leaves in place.
The floor. The one-feature reference detectors of Section V reach AUROC 1.000 and 1.000 on templated medical poison and 0.806 and 1.000 on the published NQ construction (Fig. 6, Appendix B); on a profiled corpus no row of Table V clears that floor.
Verdict: yes, at corpus level. The profile predicts which corpora saturate, including the one whose poison we did not write, where the cue it reads is the attack's own construction. It does not predict an individual defense (wrong at 40 of 90 points, Fig. 5) and stays a hypothesis with four observations (Section V-B).
B. The control ladder
Fig. 3 runs the ladder of Section V-B, with retrieval survival, the first leg of the conjunction, printed under every rung. The two cues are independent, and each is load-bearing on a different corpus. Removing the verbatim prefix moves our scorer's deployed miss rate by +0.009 on medical and +0.421 on financial; matching poison length moves it by +0.983 on medical and +0.036 on legal, while staying inert on financial (+0.014). Fig. 6 (Appendix B) shows the same crossing on the two one-feature detectors: each dies under the control that removes its own cue and is untouched by the other, so a study running one control reads the other cue as content. Both readings have been published: TrustRAG's Table 4 and TriShieldRAG's adaptive arm reach opposite verdicts from one control each [11], [71].
Length matching pads and never truncates, so on medical the padded document is mostly clean prose. Two placebo arms hold length fixed and vary the filler (Table VII): the same clean sentences with their words shuffled across the pool (identical length and vocabulary, no content), and pseudo-words of matched length. Our scorer and TrustRAG's set-level stage collapse at the deployed point under all three fillers; the shuffled arm gives 0.986 at AUROC 0.953 for our scorer and 0.827 for TrustRAG, so the collapse is not content dilution. The two negative-log-likelihood detectors do not survive the placebo: perplexity and RAGuard miss 0.361 and 0.519 under clean filler and 0.000 and 0.000 under shuffled filler, because a mean-token likelihood is set by whatever it is padded with: fluent prose lowers it, shuffled words raise it. Padding cannot give an NLL detector a length control at all, so their collapse is withdrawn and both arms are reported as bounds. The pseudo-word arm is a vocabulary control rather than a length control: it pushes the document off the clean vocabulary, our scorer's ranking recovers to AUROC 0.999 while its deployed miss rate stays at 0.968, and DRS, an embedding-distance rule, recovers from 0.990 to 0.605; the shuffled arm holds vocabulary fixed and is the placebo we read. Where the clean corpus is a constant width, as on legal, padding overshoots and installs an inverted cue instead of removing one (Table X, Appendix B).
Survival is the leg that fails on medical with both cues removed: 0.18 of the poison is retrieved for its target, so the miss rate of 1.000 drawn there is over the survivors and the attack's success under the conjunction is 0.18; on financial and legal the both-cues rung survives at 0.69 and 0.50. Stacking the two rungs and adding style mimicry gives the strongest attack in this paper: on NQ the miss rate goes from 0.118 at the first rung (the archive-stored passages, already without the prefix) to 0.948 at the last, at a survival after re-embedding and re-ranking of 0.862; on medical from 0.000 to 1.000 at 0.958. Legal is the exception (0.497 at survival 0.757): the fixed-width chunking that makes CUAD a length constant [88] also makes padded poison expensive to retrieve.
The query-based attacker of Section III-C, tuned to our own scorer on NQ (the grid is Appendix B's E4-D1 table), passes 0.977 of its documents past the learned score; its static column is the archive-stored, prefix-less construction, which is why our scorer's static miss rate there (0.030) is not Table V's. For the baselines (0.069–1.000, the low end bought by blocking almost every benign candidate) the same documents are a transfer attack, a lower bound (Section III-C).
Verdict: the load-bearing cue is corpus-specific. One control understates the problem on some corpora and overstates it on others, so a single ablation is never evidence.
C. The dissociation, and two collapse modes
Fig. 4 plots ranking against decision under four cue conditions, with a reliability diagram at the realised prevalence [48], [49]; the deployed operating points slide off the curves, and AUROC cannot see it. The headline row is our scorer under

perplexity - RAGuard-Cheng - DRS - TrustRAG-S1 - RAGDefender - learned scorer - containment-only (ref.) ....length-only (ref.)
Fig. 3. No single control reveals the problem. Miss rate at the deployed operating point under four payload-preserving edits of the same attack (tpl template; –prefix, verbatim question removed; –len, poison padded to the clean word-length distribution; –both), one panel per corpus. Which rung moves a defense is a property of the corpus — length carries medical, the prefix carries financial — so either control run alone reverses the conclusion on the other. Black dashes: the two one-feature reference detectors of Section V (drawn per rung in Fig. 6, Appendix B). NQ has no length rungs: its released poison already lies inside the clean band (overlap 1.00), so the rung is inert by construction. The number under each rung label is retrieval survival, the first leg of the conjunction of Section III: the fraction of injected poison retrieved into its own target's candidate set with no defense. Whiskers: the mean over seeds of the per-seed cluster-bootstrap 95% interval. All ten defenses, each with its false-positive rate, are in Table V.
TABLE VII PLACEBO FILLERS FOR THE LENGTH-MATCHED RUNG ON MEDICAL. THE TWO NEGATIVE-LOG-LIKELIHOOD DETECTORS COLLAPSE UNDER CLEAN FILLER AND RECOVER UNDER THE SHUFFLED AND PSEUDO-WORD FILLERS; OUR SCORER AND TRUSTRAG'S SET-LEVEL STAGE COLLAPSE AT THEIR DEPLOYED POINTS UNDER ALL THREE.
| Defense | clean-prose filler | word-shuffled filler | pseudo-word filler | ||||||
|---|---|---|---|---|---|---|---|---|---|
| FNR / FPR | AUROC | FNR@5% | FNR / FPR | AUROC | FNR@5% | FNR / FPR | AUROC | FNR@5% | |
| Perplexity (GPT-2) | 0.361 / 0.003 | 0.981 | 0.092 | 0.000 / 0.000 | 1.000 | 0.000 | 0.000 / 0.000 | 1.000 | 0.000 |
| RAGuard (Cheng) | 0.519 / 0.103 | 0.838 | 0.694 | 0.000 / 0.110 | 1.000 | 0.000 | 0.000 / 0.112 | 1.000 | 0.000 |
| DRS | 0.988 / 0.035 | 0.536 | 0.977 | 0.990 / 0.038 | 0.526 | 0.982 | 0.605 / 0.034 | 0.907 | 0.497 |
| TrustRAG stage 1 | 0.781 / 0.017 | N/A | N/A | 0.827 / 0.013 | N/A | N/A | 0.843 / 0.019 | N/A | N/A |
| RAGDefender | 0.405 / 0.599 | N/A | N/A | 0.151 / 0.364 | N/A | N/A | 0.005 / 0.069 | N/A | N/A |
| Dup-only | 1.000 / 0.000 | N/A | N/A | 1.000 / 0.000 | N/A | N/A | 0.985 / 0.000 | N/A | N/A |
| Ours, τ=0.5 | 0.985 / 0.000 | 0.880 | 0.570 | 0.986 / 0.000 | 0.953 | 0.321 | 0.974 / 0.000 | 0.999 | 0.000 |
| Ours, τd | 0.983 / 0.000 | 0.880 | 0.570 | 0.986 / 0.000 | 0.953 | 0.321 | 0.968 / 0.000 | 0.999 | 0.000 |
| Ours, τd,s (a=0.3) | 0.979 / 0.000 | 0.993 | 0.044 | 0.982 / 0.000 | 0.998 | 0.014 | 0.955 / 0.000 | 1.000 | 0.000 |
| length-only (ref.) | 0.999 / 0.000 | 0.486 | 0.952 | 0.999 / 0.000 | 0.454 | 0.969 | 0.999 / 0.000 | 0.525 | 0.959 |
| containment-only (ref.) | 0.001 / 0.004 | 1.000 | 0.001 | 0.000 / 0.005 | 1.000 | 0.000 | 0.000 / 0.005 | 1.000 | 0.000 |
| retrieval survival | 0.84 | 0.96 | 0.97 | ||||||
Each column block pads the same template poison to the same draw from the clean word-length distribution with a different filler (Section VI-B). FNR / FPR at the deployed threshold, AUROC, and the miss rate at a matched 5% false-positive rate, point estimates over five seeds; N/A where the defense emits no score. The last row is retrieval survival with no defense, the first leg of the conjunction of Section III.
(a) medical, learned scorer

(b) collapse mode, all cells
(c) medical, learned posterior
Fig. 4. Ranking survives; the operating point does not, and AUROC alone cannot tell the two apart. (a) ROC of our learned scorer, trust off, on medical under the template rung, the length-matched rung with clean-prose filler, the same rung with the words of the filler shuffled (identical length and vocabulary, no content), and both cues removed. The filled square is the deployed point, labelled with the rung and that rung's AUROC: under shuffled filler the curve is degraded but usable while the square falls to the floor. The thin grey curve is a GPT-2 perplexity threshold under clean filler: the same shape, but for content dilution — under shuffled filler perplexity recovers to a miss rate of zero (Table VII), so it is drawn and not headlined. (b) Every cell, one mark per (corpus, defense, rung): abscissa the AUROC the rung costs, ordinate the miss rate it adds. High and to the right is calibration collapse, which a threshold repairs at a stated false-positive cost; left of the dashed rule the ranking itself is gone. (c) Fifteen equal-mass reliability bins for the deployed posterior under the three fillers of (a), on a logit abscissa; marker area bin count, grey curve perfect calibration, black rule , ticks and bins saturated to double precision.
shuffled filler, where nothing but length and word order changed: AUROC 0.953, miss rate 0.321 at 5% FPR, 0.986 at the deployed threshold; perplexity under clean filler has the same shape for the content-dilution reason of Section VI-B, so it is drawn and not headlined.
Sorting every defense-by-rung pair by the ratio of FNR at the deployed point to AUROC separates two modes. Calibration collapse: the ranking is degraded but usable and the deployed point dies — the headline row, at ECE 0.471 at the realised prevalence. Signal collapse: the ordering goes to chance and no threshold rule recovers anything — medical with both cues removed reaches AUROC 0.503, NQ at the mimicry-plus-length-matched rung 0.518, financial 0.511 (the boundary, AUROC = -0.05 in Fig. 4(b), is a stated convention). The profile predicts which mode a cell is in: where the removed cue was the only cue the detector had, the signal goes with it; where content structure remains, only the threshold is wrong.
Verdict: they dissociate. AUROC reported alone cannot separate a calibration failure, which a stated false-positive cost repairs, from a signal failure, which nothing in the decision layer repairs — and on these cells it reports both of them as success.
D. Mechanism and repair
Table VIII ablates the one scorer whose features we control. On length-matched medical, deleting the document-length feature moves the deployed miss rate from 0.986 to 0.204 under clean filler and from 0.988 to 0.026 under shuffled filler, ECE from 0.416 to 0.111, while AUROC rises from 0.885 to 0.992: the feature carried the threshold and was hurting the ordering, because a scorer that learned short documents are poison reads padded poison as an argument for admission. The repair is a fallback, not a recovery of content: containment is still 1.00 on that cell, deleting the query-overlap features instead gives 0.992 at AUROC 0.680, and with both cues removed nothing repairs anything — every row of that column misses at least 0.990 and the full scorer's AUROC is 0.483. A gradient-boosted tree on the identical features reaches FNR 0.000 at AUROC 1.000 on the same cell, so the collapse is a property of this MLP's calibration, which indicts our scorer first; the tree dies with everything else at 0.571 once both cues are gone. Source identity is an exact label indicator here (Section IV-A), so an earlier draft's trust-on version of this table, like every trust-weighted AUROC in Table VII, re-ranked on a leaked label.
Repair follows the taxonomy. An empirical clean-quantile floor — refuse to admit below the q-th percentile of clean scores, cross-fitted on held-out clean queries — returns the length-matched medical miss rate from 0.983 to 0.750 for +1.47 points of FPR; where the signal has collapsed no ordering is left for a quantile to exploit, and on medical with both cues removed it moves the miss rate by -0.029.
Verdict: the profiled cue that remains carries the calibration. Remove one and the threshold moves onto the other; remove both and the ranking goes with them.
E. Decision agreement and inertness
Table XIII (Appendix B) counts what the decision layer changes. Across the 26 corpus-by-attack cells the harm-blind classifier, the cost-derived and the trust-adjusted produce bit-identical actions on every candidate in 12 of them. On templated medical poison the fraction of candidates whose score falls anywhere in the decision band is 0 (0.00%): a shortcut drives score mass to the extremes, where every threshold rule is the same rule (397 distinct score values per cell). 5 of those carry , where the cost-derived rule is the classifier; the table flags them and none counts as evidence.
Where the score is unsaturated the cost-derived point acts: on length-matched legal, harm per 1,000 queries falls from 4195 to 2585, and on prefix-removed medical from 1600 to 900; the same rule wrapped over RAGuard's and perplexity's scores reproduces the direction on length-matched legal (18460 → 3915 and 50100 → 3725) at a printed false-positive cost that rule 5 of Section VII calls a closed door (Fig. 7, Appendix B).
Verdict: no. On the benchmark the literature reports against, the harm-blind, cost-derived and trust-adjusted rules take bit-identical actions on every candidate, so no operating-point claim on those cells — ours first — can be falsified by an experiment run on them.
VII. A REPORTING PROTOCOL FOR QUERY-TIME FILTERS
Six rules, each forced by a result above.
-
Publish the construction profile beside every reported AUROC: containment rate, length separation, and the clean band's own width, for the poison actually evaluated. Reconstruct the passage the attack inserts, not the fragment its archive stores: the difference is the result.
-
Run at least two controls, and report the inert ones. Which cue is load-bearing is corpus-specific, and an inert control is the evidence that the other cue carries the detection. A control that changes length needs a placebo filler: a filler with content moves the score for its own reasons.
-
Report FNR and FPR at the rule you would deploy, beside AUROC, and, for any detector that emits a probability, ECE at the realised prevalence rather than the training base rate. AUROC alone cannot separate calibration collapse from signal collapse.
-
Print the number of distinct score values beside every threshold-derived metric. Where a score takes few values every threshold rule is the same rule, and no operating-point claim is falsifiable there.
-
Compare at matched FPR, or on a swept harm axis with the harm ratio stated [51], never at each system's own operating point. A miss rate of zero at a false-positive rate above one half is a closed door, not a detector.
-
For every claimed evasion, report retrieval survival and payload preservation [65]. An edit that removes a cue and then falls out of the candidate set, or that survives retrieval
TABLE VIII
FEATURE-GROUP ABLATION OF THE ONE SCORER WHOSE FEATURES WE CONTROL, TRUST OFF AND NO ESCALATION BAND (THE E1 READING, SECTION IV-A); MEDICAL, ONE COLUMN GROUP PER POISON CONSTRUCTION, POINT ESTIMATES OVER THREE SEEDS (DISPERSION IN THE RELEASED E7NT_SUMMARY.JSON). — QUERY-OVERLAP DELETES THE TWO VERBATIM-QUESTION FEATURES; GBT IS A GRADIENT-BOOSTED TREE ON THE IDENTICAL FEATURES; IS THE FULL SCORER AT THE HARM-BLIND THRESHOLD.
| Variant | template | -len, clean | -len, shuffled | -both | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FNR | FPR | AUROC | FNR@5% | ECE | FNR | FPR | AUROC | FNR@5% | ECE | FNR | FPR | AUROC | FNR@5% | ECE | FNR | FPR | AUROC | FNR@5% | ECE | |
| full | 0.000 | 0.000 | 1.000 | 0.000 | 0.004 | 0.986 | 0.000 | 0.885 | 0.550 | 0.416 | 0.988 | 0.000 | 0.962 | 0.280 | 0.473 | 1.000 | 0.000 | 0.483 | 0.957 | 0.093 |
| - doc-length | 0.000 | 0.000 | 1.000 | 0.000 | 0.005 | 0.204 | 0.007 | 0.992 | 0.028 | 0.111 | 0.026 | 0.006 | 0.999 | 0.002 | 0.017 | 1.000 | 0.004 | 0.671 | 0.923 | 0.094 |
| - query-overlap | 0.000 | 0.000 | 1.000 | 0.000 | 0.006 | 0.992 | 0.000 | 0.680 | 0.927 | 0.418 | 0.998 | 0.000 | 0.817 | 0.824 | 0.476 | 0.991 | 0.000 | 0.398 | 0.982 | 0.091 |
| - lexical | 0.000 | 0.005 | 1.000 | 0.000 | 0.002 | 0.897 | 0.022 | 0.627 | 0.852 | 0.397 | 0.713 | 0.021 | 0.841 | 0.561 | 0.387 | 0.990 | 0.014 | 0.486 | 0.981 | 0.096 |
| - set-context | 0.000 | 0.000 | 1.000 | 0.000 | 0.002 | 0.990 | 0.000 | 0.957 | 0.201 | 0.420 | 0.991 | 0.000 | 0.966 | 0.133 | 0.477 | 1.000 | 0.000 | 0.785 | 0.758 | 0.096 |
| GBT scorer | 0.000 | 0.000 | 1.000 | 0.000 | 0.000 | 0.000 | 0.000 | 1.000 | 0.000 | 0.000 | 0.000 | 0.000 | 1.000 | 0.000 | 0.000 | 1.000 | 0.000 | 0.571 | 0.930 | 0.097 |
| τ=0.5 | 0.000 | 0.000 | 1.000 | 0.000 | 0.004 | 0.986 | 0.000 | 0.885 | 0.550 | 0.416 | 0.988 | 0.000 | 0.962 | 0.280 | 0.473 | 1.000 | 0.000 | 0.483 | 0.957 | 0.093 |
with the attacker's claim deleted, is a data ablation, not an attack.
VIII. LIMITATIONS AND CONCURRENT WORK
Scope. Three of our four corpora carry poison regenerated from published templates, so every separability number there is an upper bound; the exception, NQ, carries the argument, and the prefix control on the attack authors' own passages (RAGuard at AUROC 0.953 against 0.758) is one of the two controls everything rests on. The other, the placebo filler, withdrew a headline rather than repairing one: an earlier draft led with perplexity's length-matched collapse, which word-shuffled filler of the same length undoes (Table VII).
What the measurement does not cover. Seven published defenses are our re-implementations at their published rules (Table I prints nominal against realised false-positive rates); two of them, TrustRAG stage 1 and RAGDefender, also ran as released, on the poison as released (Table VI), RAGDefender with its artifact's MiniLM embedder rather than the 1.5B-parameter encoder its paper reports; RAGuard, DRS, perplexity, NLI and the duplicate filter ran only as our ports. An earlier draft calibrated DRS on 199 clean documents, fewer than the 384 embedding dimensions: the covariance is then rank-deficient, its lowest-variance directions are sampling noise, the cross-fitted threshold sat on fold directions that differ from the deployed ones, and DRS blocked most of the benign corpus at a nominal . That number was ours, not DRS's, and a wider encoder would not repair it: the operative quantity is calibration documents per dimension. Every DRS cell now uses the calibration size its Algorithm 2 specifies, with the threshold on a held-out half of that set, and realises 0.035 on medical and 0.103 over the four template cells (withdrawn rates: Table V's note). The scale is 100 target questions, 40 evaluation queries per cell and corpora of 21k–34k documents, against a sub-area norm of ; every other fitted threshold is a quantile of the calibration split's clean documents, so a 99th percentile is that sample's second-largest value, and because the split is fixed across seeds no per-seed spread contains that variance. One retriever, no reranker, no NQ length rung (the released NQ poison lies inside the clean band, overlap 1.00), one poison rate, one trust setting: the Contriever condition, the synthetic corpus and the legitimate-update and poison-rate arms are cut, no Sybil or competing-attack condition runs [90]–[92], and poison is never separated from a legitimate correction [26]. Every adaptive number is a lower bound: one attacker, tuned to our scorer and transferred unchanged to the others (Section III-C), with no LLM-guided or human arm, far below the budgets of [81] and without the strongest learned generator [93]. Generator-side harm is secondary (a 0.5B generator, substring matching, the template rung alone: 0.150).
Concurrent work. Section II-E measures the 2026 cohort's constructions rather than re-running the systems. The ranking/operating-point gap for thresholded detectors under shift is known [67], [68], [94], [95]; shortcut features in security benchmarks are old [58], [60]–[63]; and the query-inclusion artifact and the prefix-removed control are concurrently observed on the attack side and in one defense (Section II-E). What is new here is tying the gap to a construction cue of the poison set, the label-free profile that predicts it, and the false-positive side none of the above measures.
IX. CONCLUSION
Query-time RAG poisoning filters are reported on benchmarks whose poison carries the target question verbatim, because the field's most-cited attack constructs it that way in its own released code [2]. Of the 21 published evaluations we surveyed, 8 run poison built exactly that way, and 12 report no false-positive rate at the point they deploy. Two numbers, computable from a poison set and a clean corpus alone, say in advance, at corpus level, which cells will saturate. On the cells that do, unrelated defenses, ours among them, report near-perfect detection at operating points no cost-derived threshold can tell apart. Delete one cue and the deployed operating point dies while the ranking survives, degraded; delete both and the ranking goes with it. The first failure is repairable, at a printed false-positive cost; the second is not.
Until an AUROC arrives with its poison set's construction profile beside it, it is a statement about how the poison was written, not about what the filter will stop.
OPEN SCIENCE
Every artifact needed to reproduce every table and figure is released through a fully anonymized repository, linked
LLM USAGE CONSIDERATIONS
from the submission form, available within three days of the submission deadline, frozen on 2 October 2026 and left unedited for the remainder of review; on acceptance the same snapshot is deposited on Zenodo with a DOI. The release contains: (i) the scorer package (risk scorer, calibration, Bayesian trust ledger, cost-sensitive gate, per-decision audit records) and the re-implemented baselines under a common per-document interface, so that every measured defense scores one identical candidate set; (ii) the four attack-template generators (PoisonedRAG-style answer substitution, CorruptRAG-AS framing [3], HijackRAG-style instruction payloads [17], jamming blockers [5]), the adaptive attacks (mimicry, black-box word substitution, HotFlip suffix [24], set-context dilution, threshold probing) and the trust-attack scenario generators; (iii) the control-ladder lanes as payload-preserving edits of those generators, every adversarial passage used here as text with its target question id, seed and generator, the script that computes the two-number construction profile of Section V, and the measurement scripts of the Table II survey together with the released third-party artifacts they read; (iv) the configuration that rebuilds the embedding cache for the redistributable subcorpora under all-MiniLM-L6-v2 [79], [80], the cache itself being a deterministic function of the released corpora; (v) scripts that deterministically rebuild each sub-corpus from public document identifiers (experiments/build_data.py) and rerun every reported experiment at fixed seeds (experiments/reproduce_all.py); (vi) the design contract, the prior reviews and this response; and (vii) a scrubbed snapshot of the earlier version of the code, with identifying paths, names and repository history removed. The audit of that earlier version cites it by file and line, so its findings stay checkable against the snapshot. The main-table lanes take 35.8 CPU-hours on the reference machine; the placebo, DRS re-fit and ablation lanes add to that; no GPU is required.
Datasets and licences. Only adversarial passages are generated; every document and query comes from a public dataset and is redistributed only where its licence permits. PoisonedRAG's released poison texts and retrieval results [2] (MIT) are included, as are the BEIR [84] sub-corpora built from Natural Questions [96] and HotpotQA [97] (CC BY-SA 4.0) and the chunked sub-corpora from PubMedQA [85], FinQA [86] and TAT-QA [87] (MIT; CC BY 4.0 on the Hugging Face mirrors) and CUAD [88] (CC BY 4.0), each with its document ids and an attribution file. MS MARCO [98] carries Microsoft's research terms and no SPDX licence, so we redistribute neither its passages nor embeddings derived from them; the release ships passage ids and a loader that rebuilds the sub-corpus and its embedding cache. GPT-2 and the retriever weights are fetched from their public hosts at build time, not redistributed. What is not released, and why. No trained scorer weights are released; the build script regenerates them in 22 minutes on CPU. Nor are E9's raw generator outputs, beyond the substring-match verdicts and the prompts that recreate them, or any adversarial text targeting anything but the public benchmark questions above.
Accountability and correctness. LLMs were used for editorial purposes in this manuscript, and all outputs were inspected by the authors to ensure accuracy and originality. Editorial use means rephrasing, formatting and consistency checks; LLMs were also used as coding assistants for the evaluation harness, the baselines and the tests. Every reference was verified against its primary source before inclusion; every number in the paper is produced by the released scripts from the released data and was not generated, estimated or transcribed by a language model. The authors take full responsibility for the text, the code and the results.
Transparency: LLMs in the method and in the evaluation. No language model is part of the scorer whose failure modes this paper measures: it is a multilayer perceptron, with a gradient-boosted tree as the ablation comparator, over a Beta-posterior trust term and a closed-form decision rule. Language models appear only in the evaluation, in three places, all open-weight and named by their Hugging Face identifiers, so that no closed model is needed to reproduce a result. (1) The perplexity filter, the RAGuard [9] re-implementation and the NLI consistency baseline score documents with GPT-2 [15] and a small open cross-encoder [79], as in the original defenses. (2) The optional end-to-end attack-success-rate experiment (E9) uses Qwen/Qwen2.5-0.5B-Instruct [99] as the generator under attack, judged by substring match; it is a component of no defense, and no claim depends on it. (3) The PoisonedRAG poison passages [2] were generated by their authors with a closed LLM; that text is used verbatim, assembled into the inserted passage the way the attack's own code assembles it (Section IV-A). Every other adversarial passage here is produced by deterministic, seeded templates and gradient- or score-based search, not by a language model. Responsibility. All data are public research datasets used under their licences, and no personal data beyond what they already contain were processed. The evaluation runs on a single CPU laptop, which bounds its energy footprint (35.8 CPU-hours for the main-table and control lanes) and is why the E9 generator is a sub-billion-parameter model: the claims concern the admission decision made before generation, which a small generator suffices to measure.
ETHICAL CONSIDERATIONS
This work is defensive. It introduces no new attack capability: every attack we run is a published attack run as its own code runs it (PoisonedRAG [2]), a published attack re-implemented from its paper (CorruptRAG [3], HijackRAG [17], jamming [5], HotFlip [24]), or a standard adaptive-evaluation technique [65], [66] applied to defenses we implement ourselves. The control ladder removes construction cues from those attacks; it gives an attacker nothing the published generator does not. The trust-attack scenarios instantiate the long-known taxonomy of reputation-system attacks [56], [78], [82] in simulation only.
We follow the Menlo Report principles [100]. Respect for persons: no human subjects were involved; adjudication is by ground-truth labels and the human-review path is simulated, not staffed. Beneficence: the poison generators are released only as templates bound to the public benchmark question sets used here (NQ, HotpotQA, MS MARCO, PubMedQA, FinQA, CUAD), and the generated passages are labelled adversarial and are not fluent enough to pass as authoritative medical, financial or legal guidance outside a benchmark harness. We release the adaptive attacks because a defense evaluated without them is not a defense [65]. Justice: the deployments modelled are those where the burden of poisoning falls on end users, and the cost-sensitive formulation makes the trade-off between missed poison and withheld benign content explicit rather than hidden in a fixed threshold. Respect for law and public interest: no live system was probed, nothing was inserted into any third-party corpus, and all datasets are used within their licences; the medical corpus is published abstracts and the legal corpus contracts released for research, neither containing patient or client data.
Dual use, and disclosure. The decision dial is dual-use in both directions: an operator who sets or to admit what should be blocked moves the operating point without moving any ranking metric, which is the dissociation this paper measures under attack. Two properties of the implementation bound that, neither a guarantee: every decision is written to an audit record carrying , , , , and the action taken, so a shifted operating point is visible after the fact, and is clipped below at , so no accumulated reputation moves the threshold past a stated bound. Responsible disclosure does not arise: no third-party or live system was probed, and every defense whose failure we report is one we re-implemented and ran ourselves. We release the trust-attack and threshold-probing code too: both instantiate behaviour a Kerckhoffs adversary is assumed to have already, and the threat model (Section III) puts the mitigation in authenticated source identity and adjudicated evidence, not in secrecy.
REFERENCES
[1] P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. Küttler, M. Lewis, W.-t. Yih, T. Rocktäschel, S. Riedel, and D. Kiela, "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks," in Advances in Neural Information Processing Systems (NeurIPS), vol. 33, 2020, pp. 9459–9474.
[2] W. Zou, R. Geng, B. Wang, and J. Jia, “PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models,” in Proc. 34th USENIX Security Symposium. USENIX Association, 2025, pp. 3827–3844, code and released poisoned texts: https://github.com/sleepeeper/PoisonedRAG. [Online]. Available: https://www.usenix.org/conference/usenixsecurity25/presentation/zou-poisonedrag
[3] B. Zhang, Y. Chen, Z. Liu, L. Nie, T. Li, Z. Liu, and M. Fang, “Practical Poisoning Attacks against Retrieval-Augmented Generation,” in Proc. 31st ACM Symposium on Access Control Models and Technologies (SACMAT), 2026, pp. 33–44, attack name CorruptRAG (CorruptRAG-AS / CorruptRAG-AK). First released as arXiv:2504.03957 (2025).
[4] Z. Chang, M. Li, X. Jia, J. Wang, Y. Huang, Z. Jiang, Y. Liu, and Q. Wang, “One Shot Dominance: Knowledge Poisoning Attack on Retrieval-Augmented Generation Systems,” in Findings of the Association for Computational Linguistics: EMNLP 2025, 2025, pp. 18811–18825, attack name AuthChain.
[5] A. Shafran, R. Schuster, and V. Shmatikov, “Machine Against the RAG: Jamming Retrieval-Augmented Generation with Blocker Documents,” in Proc. 34th USENIX Security Symposium. USENIX Association, 2025, pp. 3787–3806, code: https://github.com/avitalsh/
jamming_attack. [Online]. Available: https://www.usenix.org/conference/usenixsecurity25/presentation/shafran
[6] H. Chaudhari, G. Severi, J. Abascal, A. Suri, M. Jagielski, C. A. Choquette-Choo, M. Nasr, C. Nita-Rotaru, and A. Oprea, “Phantom: General Backdoor Attacks on Retrieval Augmented Language Generation,” ACM Transactions on AI Security and Privacy, 2026, first released as arXiv:2405.20485 (2024). [Online]. Available: https://dl.acm.org/doi/10.1145/3796729
[7] J. Xue, M. Zheng, Y. Hu, F. Liu, X. Chen, and Q. Lou, “BadRAG: Identifying Vulnerabilities in Retrieval Augmented Generation of Large Language Models,” 2024, arXiv preprint arXiv:2406.00083. [Online]. Available: https://arxiv.org/abs/2406.00083
[8] B. Zhang, H. Xin, J. Li, D. Zhang, M. Fang, Z. Liu, L. Nie, and Z. Liu, “Benchmarking Poisoning Attacks against Retrieval-Augmented Generation,” 2025, arXiv preprint arXiv:2505.18543. RAG Security Bench (RSB). [Online]. Available: https://arxiv.org/abs/2505.18543
[9] Z. Cheng, J. Sun, A. Gao, Y. Quan, Z. Liu, X. Hu, and M. Fang, "Secure Retrieval-Augmented Generation against Poisoning Attacks," in Proc. IEEE International Conference on Big Data (BigData), 2025, pp. 1799–1806.
[10] M. Kim, H. Lee, and H. Koo, “Rescuing the Unpoisoned: Efficient Defense against Knowledge Corruption Attacks on RAG Systems,” in Proc. Annual Computer Security Applications Conference (ACSAC), 2025, pp. 1178–1192, system name RAGDefender. Code: https://github.com/SecAI-Lab/RAGDefender.
[11] H. Zhou, K.-H. Lee, Z. Zhan, Y. Chen, Z. Li, Z. Wang, H. Haddadi, and E. Yilmaz, “TrustRAG: Enhancing Robustness and Trustworthiness in Retrieval-Augmented Generation,” 2025, arXiv preprint arXiv:2501.00879. Code: https://github.com/HuichiZhou/TrustRAG. [Online]. Available: https://arxiv.org/abs/2501.00879
[12] Z. Shen, B. Imana, T. Wu, C. Xiang, P. Mittal, and A. Korolova, "ReliabilityRAG: Effective and Provably Robust Defense for RAG-based Web-Search," in Advances in Neural Information Processing Systems (NeurIPS), 2025.
[13] X. Xian, T. Wang, L. You, and Y. Qi, “Understanding Data Poisoning Attacks for RAG: Insights and Algorithms,” OpenReview submission 2aL6gcFX7q, submitted to ICLR 2025 (unpublished), 2025, proposes the Directional Relative Shift (DRS) embedding-space detector. [Online]. Available: https://openreview.net/forum?id=2aL6gcFX7q
[14] Z. Chen, Y. Lyu, Y. Liu, W. Han, J. Dong, C. Shan, and T. Tan, “RADAR: Defending RAG Dynamically against Retrieval Corruption,” 2026, arXiv preprint arXiv:2605.22041. Code: https://github.com/Ethereallllll/RADAR_code. [Online]. Available: https://arxiv.org/abs/2605.22041
[15] A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, and I. Sutskever, “Language Models are Unsupervised Multitask Learners,” OpenAI technical report, 2019. [Online]. Available: https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf
[16] N. Jain, A. Schwarzschild, Y. Wen, G. Somepalli, J. Kirchenbauer, P.-y. Chiang, M. Goldblum, A. Saha, J. Geiping, and T. Goldstein, "Baseline Defenses for Adversarial Attacks Against Aligned Language Models," 2023, arXiv preprint arXiv:2309.00614. [Online]. Available: https://arxiv.org/abs/2309.00614
[17] Y. Zhang, Q. Li, T. Du, X. Zhang, X. Zhao, Z. Feng, and J. Yin, "HijackRAG: Hijacking Attacks against Retrieval-Augmented Large Language Models," 2024, arXiv preprint arXiv:2410.22832. [Online]. Available: https://arxiv.org/abs/2410.22832
[18] P. Cheng, Y. Ding, T. Ju, Z. Wu, W. Du, P. Yi, Z. Zhang, and G. Liu, "TrojanRAG: Retrieval-Augmented Generation Can Be Backdoor Driver in Large Language Models," 2024, arXiv preprint arXiv:2405.13401. Code: https://github.com/CTZhou-byte/TrojanRAG. [Online]. Available: https://arxiv.org/abs/2405.13401
[19] Z. Zhong, Z. Huang, A. Wettig, and D. Chen, “Poisoning Retrieval Corpora by Injecting Adversarial Passages,” in Proc. Conference on Empirical Methods in Natural Language Processing (EMNLP), 2023, pp. 13764–13775, code: https://github.com/princeton-nlp/corpus-poisoning.
[20] Y. Gong, Z. Chen, J. Liu, M. Chen, F. Yu, W. Lu, X. Wang, and X. Liu, "Topic-FlipRAG: Topic-Orientated Adversarial Opinion Manipulation Attacks to Retrieval-Augmented Generation Models," in Proc. 34th USENIX Security Symposium. USENIX Association, 2025, pp. 3807–3826, code: https://github.com/LauJames/Topic-FlipRAG.
[21] S. Cho, S. Jeong, J. Seo, T. Hwang, and J. C. Park, “Typos that Broke the RAG’s Back: Genetic Attack on RAG Pipeline by Simulating Documents in the Wild via Low-level Perturbations,” in Findings of the Association for Computational Linguistics: EMNLP 2024, 2024, pp. 2826–2844, attack name GARAG. Code: https://github.com/zomss/GARAG.
[22] K. Greshake, S. Abdelnabi, S. Mishra, C. Endres, T. Holz, and M. Fritz, "Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection," in Proc. 16th ACM Workshop on Artificial Intelligence and Security (AISec), 2023, pp. 79–90.
[23] S. Abdelnabi, A. Fay, G. Cherubin, A. Salem, M. Fritz, and A. Paverd, "Get my drift? Catching LLM Task Drift with Activation Deltas," in Proc. IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), 2025, pp. 43–67.
[24] J. Ebrahimi, A. Rao, D. Lowd, and D. Dou, “HotFlip: White-Box Adversarial Examples for Text Classification,” in Proc. 56th Annual Meeting of the Association for Computational Linguistics (ACL), Volume 2: Short Papers, 2018, pp. 31–36.
[25] C. Zhang, T. Zhang, and V. Shmatikov, “Adversarial Decoding: Generating Readable Documents for Adversarial Objectives,” in Findings of the Association for Computational Linguistics: EACL 2026, 2026, pp. 2053–2068.
[26] Z. Wang, Y. Zhu, M. Dong, Y. Lou, Y. Li, Z. Zhang, W. Tong, Y. Zhang, J. Hua, and S. Zhong, “PURPOSE: Poisoning Conflict Resolution in RAG via Proxy-Fact-Grounded Updates,” 2026, arXiv preprint arXiv:2608.04756. [Online]. Available: https://arxiv.org/abs/2608.04756
[27] K. Patil, “RAGShield: Detecting Numerical Claim Manipulation in Government RAG Systems,” 2026, arXiv preprint arXiv:2604.00387. [Online]. Available: https://arxiv.org/abs/2604.00387
[28] J. Hwang, J. Park, H. Park, D. Kim, S. Park, and J. Ok, “Retrieval-Augmented Generation with Estimation of Source Reliability,” in Proc. Conference on Empirical Methods in Natural Language Processing (EMNLP), 2025, pp. 34279–34303, system name RA-RAG. Code: https://github.com/ml-postech/RA-RAG.
[29] Y. T. Koganti and H. G.-L. Belinchon, “Source-Aware Reranking for Retrieval-Augmented Generation: A Reliability Prior Approach,” 2026, arXiv preprint arXiv:2607.22584. [Online]. Available: https://arxiv.org/abs/2607.22584
[30] J. Zheng, A. P. Gema, G. Hong, X. He, P. Minervini, Y. Sun, and Q. Xu, "GRADA: Graph-based Reranking against Adversarial Documents Attack," in Proc. Conference on Empirical Methods in Natural Language Processing (EMNLP), 2025, pp. 22 244–22 266.
[31] S. Kim, J. Kim, Y. Jeon, and G. G. Lee, “Safeguarding RAG Pipelines with GMTP: A Gradient-based Masked Token Probability Method for Poisoned Document Detection,” in Findings of the Association for Computational Linguistics: ACL 2025, 2025, pp. 24597–24614, code: https://github.com/mountinyg/GMTP.
[32] X. Si, M. Zhu, S. Qin, L. Yu, L. Zhang, S. Liu, X. Li, R. Duan, Y. Liu, and X. Jia, “SeCon-RAG: A Two-Stage Semantic Filtering and Conflict-Free Framework for Trustworthy RAG,” in Advances in Neural Information Processing Systems (NeurIPS), 2025.
[33] K. Edemacu, V. M. Shashidhar, D. Abudu, M. Tuape, B. Jang, and J. W. Kim, “Defending Against Knowledge Poisoning Attacks During Retrieval-Augmented Generation,” in Proc. IEEE International Conference on Information Reuse and Integration for Data Science (IRI), 2026, pp. 460–465, system names FilterRAG / ML-FilterRAG.
[34] Y. Wang, S. Chen, R. Alkhudair, B. Alomair, and D. Wagner, “Defending Against Prompt Injection with DataFilter,” in Proc. IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), 2026, first released as arXiv:2510.19207 (2025). Code: https://github.com/yizhu-joy/DataFilter.
[35] C. Xiang, T. Wu, Z. Zhong, D. Wagner, D. Chen, and P. Mittal, "Certifiably Robust RAG against Retrieval Corruption," in Proc. IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), 2026, system name RobustRAG. First released as arXiv:2405.15556 (2024). Code: https://github.com/inspire-group/RobustRAG.
[36] Z. Wei, W.-L. Chen, and Y. Meng, “InstructRAG: Instructing Retrieval-Augmented Generation via Self-Synthesized Rationales,” in Proc. International Conference on Learning Representations (ICLR), 2025, code: https://github.com/weizhepei/InstructRAG. [Online]. Available: https://openreview.net/forum?id=P1qhkp8gQT
[37] F. Wang, X. Wan, R. Sun, J. Chen, and S. Ö. Arnk, “Astute RAG: Overcoming Imperfect Retrieval Augmentation and Knowledge Conflicts for Large Language Models,” in Proc. 63rd Annual Meeting of the Association for Computational Linguistics (ACL), 2025, pp. 30 553–30 571.
[38] Y. Ren, Z. Zhao, Y. Fu, X. Luo, Y.-C. Chang, and C.-T. Lin, “When Context Bites: Detecting RAG Poisoning via Document-Level Attention Collapse,” in Proc. 49th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2026, pp. 4080–4086, system name D-SCAN. Code: https://github.com/yingtaoren/D-Scan.
[39] S. Choudhary, N. Palumbo, A. Hooda, K. D. Dvijotham, and S. Jha, "Through the Stealth Lens: Attention-Aware Defenses Against Poisoning in RAG," in Proc. International Conference on Machine Learning (ICML), 2026, attention-variance (AV) filter. First released as arXiv:2506.04390 (2025). Code: https://github.com/sarthak-choudhary/Stealthy_Attacks_Against_RAG.
[40] E. Debenedetti, I. Shumailov, T. Fan, J. Hayes, N. Carlini, D. Fabian, C. Kern, C. Shi, A. Terzis, and F. Tramèr, “Defeating Prompt Injections by Design,” in Proc. IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), 2026, system name CaMeL. First released as arXiv:2503.18813 (2025).
[41] X. Tan, H. Luan, M. Luo, X. Sun, P. Chen, and J. Dai, “RevPRAG: Revealing Poisoning Attacks in Retrieval-Augmented Generation through LLM Activation Analysis,” in Findings of the Association for Computational Linguistics: EMNLP 2025, 2025, pp. 12999–13011.
[42] B. Zhang, H. Xin, M. Fang, Z. Liu, B. Yi, T. Li, and Z. Liu, “Traceback of Poisoning Attacks to Retrieval-Augmented Generation,” in Proc. ACM Web Conference (WWW), 2025, pp. 2085–2097, system name RAGForensics.
[43] B. Zhang, H. Xin, Y. Chen, Z. Liu, B. Yi, T. Li, L. Nie, Z. Liu, and M. Fang, “Who Taught the Lie? Responsibility Attribution for Poisoned Knowledge in Retrieval-Augmented Generation,” in Proc. IEEE Symposium on Security and Privacy (S&P), 2026, pp. 4203–4222, system name RAGOrigin.
[44] L. Zeng, R. Gupta, D. Motwani, D. Yang, and Y. Zhang, “Worse than Zero-shot? A Fact-Checking Dataset for Evaluating the Robustness of RAG Against Misleading Retrievals,” in Advances in Neural Information Processing Systems (NeurIPS), 2025, benchmark name RAGuard. [Online]. Available: https://arxiv.org/abs/2502.16101
[45] P. Kumar, T. Nielson, T. Kolhe, S. Zala, and V. Li, “RAGuard: A Layered Defense Framework for Retrieval-Augmented Generation Systems Against Data Poisoning,” 2026, arXiv preprint arXiv:2607.26339. Workshop versions: NeurIPS ResponsibleFM 2025; AAAI FrontierIR 2026. Referred to as RAGuard-ZKIP to disambiguate from Cheng et al. [Online]. Available: https://arxiv.org/abs/2607.26339
[46] C. Elkan, “The Foundations of Cost-Sensitive Learning,” in Proc. 17th International Joint Conference on Artificial Intelligence (IJCAI), 2001, pp. 973–978. [Online]. Available: https://cseweb.ucsd.edu/~elkan/rescale.pdf
[47] B. Zadrozny and C. Elkan, “Learning and Making Decisions When Costs and Probabilities Are Both Unknown,” in Proc. 7th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD), 2001, pp. 204–213.
[48] C. Guo, G. Pleiss, Y. Sun, and K. Q. Weinberger, “On Calibration of Modern Neural Networks,” in Proc. 34th International Conference on Machine Learning (ICML), ser. PMLR, vol. 70, 2017, pp. 1321–1330.
[49] M. P. Naeini, G. F. Cooper, and M. Hauskrecht, “Obtaining Well Calibrated Probabilities Using Bayesian Binning,” in Proc. 29th AAAI Conference on Artificial Intelligence, 2015, pp. 2901–2907.
[50] C. K. Chow, “On Optimum Recognition Error and Reject Tradeoff,” IEEE Transactions on Information Theory, vol. 16, no. 1, pp. 41–46, 1970.
[51] C. Drummond and R. C. Holte, “Cost Curves: An Improved Method for Visualizing Classifier Performance,” Machine Learning, vol. 65, no. 1, pp. 95–130, 2006.
[52] I. Androutsopoulos, J. Koutsias, K. V. Chandrinos, G. Paliouras, and C. D. Spyropoulos, “An Evaluation of Naive Bayesian Anti-Spam Filtering,” in Proc. Workshop on Machine Learning in the New Information Age, 11th European Conference on Machine Learning (ECML), Barcelona, Spain, 2000, pp. 9–17. [Online]. Available: https://arxiv.org/abs/cs/0006013
[53] S. Axelsson, “The Base-Rate Fallacy and the Difficulty of Intrusion Detection,” ACM Transactions on Information and System Security, vol. 3, no. 3, pp. 186–205, Aug. 2000, earlier version: Proc. 6th ACM Conference on Computer and Communications Security (CCS), 1999, pp. 1–7, doi:10.1145/319709.319710.
[54] F. Provost and T. Fawcett, “Robust Classification for Imprecise Environments,” Machine Learning, vol. 42, no. 3, pp. 203–231, 2001.
[55] A. Jøssang and R. Ismail, “The Beta Reputation System,” in Proc. 15th Bled Electronic Commerce Conference, Bled, Slovenia, 2002, paper 41. [Online]. Available: https://aisel.aisnet.org/bled2002/41/
[56] Y. L. Sun, Z. Han, W. Yu, and K. J. R. Liu, “Attacks on Trust Evaluation in Distributed Networks,” in Proc. 40th Annual Conference on Information Sciences and Systems (CISS), 2006, pp. 1461–1466.
[57] P. K. Pathak and T. K. Sharma, “Coverage Is Not Containment: A Fundamental Limit of Admission-Time Defenses Against Coordinated Poisoning of Vector Retrieval,” Aug. 2026, arXiv preprint arXiv:2608.16044. [Online]. Available: https://arxiv.org/abs/2608.16044
[58] F. Pendlebury, F. Pierazzi, R. Jordaney, J. Kinder, and L. Cavallaro, "TESSERACT: Eliminating Experimental Bias in Malware Classification across Space and Time," in Proc. 28th USENIX Security Symposium. USENIX Association, 2019, pp. 729–746.
[59] T. Chow, M. D'Onghia, L. Linhardt, Z. Kan, D. Arp, L. Cavallaro, and F. Pierazzi, "Beyond the TESSERACT: Trustworthy Dataset Curation for Sound Evaluations of Android Malware Classifiers," in Proc. IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), 2026.
[60] D. Arp, E. Quiring, F. Pendlebury, A. Warnecke, F. Pierazzi, C. Wressnegger, L. Cavallaro, and K. Rieck, "Dos and Don'ts of Machine Learning in Computer Security," in Proc. 31st USENIX Security Symposium. USENIX Association, 2022, pp. 3971–3988, checklist at https://dodo-mlsec.org/. [Online]. Available: https://www.usenix.org/conference/usenixsecurity22/presentation/arp
[61] R. Sommer and V. Paxson, “Outside the Closed World: On Using Machine Learning for Network Intrusion Detection,” in Proc. IEEE Symposium on Security and Privacy (S&P), 2010, pp. 305–316.
[62] R. Geirhos, J.-H. Jacobsen, C. Michaelis, R. Zemel, W. Brendel, M. Bethge, and F. A. Wichmann, “Shortcut Learning in Deep Neural Networks,” Nature Machine Intelligence, vol. 2, no. 11, pp. 665–673, 2020.
[63] N. Risse and M. Böhme, “Uncovering the Limits of Machine Learning for Automatic Vulnerability Detection,” in Proc. 33rd USENIX Security Symposium. USENIX Association, 2024, pp. 4247–4264. [Online]. Available: https://www.usenix.org/conference/usenixsecurity24/presentation/risse
[64] A. Athalye, N. Carlini, and D. Wagner, “Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examples,” in Proc. 35th International Conference on Machine Learning (ICML), ser. Proceedings of Machine Learning Research, vol. 80, 2018, pp. 274–283.
[65] N. Carlini, A. Athalye, N. Papernot, W. Brendel, J. Rauber, D. Tsipras, I. Goodfellow, A. Madry, and A. Kurakin, “On Evaluating Adversarial Robustness,” 2019, arXiv preprint arXiv:1902.06705. Living document; https://github.com/evaluating-adversarial-robustness/adv-eval-paper. [Online]. Available: https://arxiv.org/abs/1902.06705
[66] F. Tramèr, N. Carlini, W. Brendel, and A. Madry, “On Adaptive Attacks to Adversarial Example Defenses,” in Advances in Neural Information Processing Systems (NeurIPS), vol. 33, 2020, pp. 1633–1645.
[67] N. Carlini, S. Chien, M. Nasr, S. Song, A. Terzis, and F. Tramèr, "Membership Inference Attacks From First Principles," in Proc. IEEE Symposium on Security and Privacy (S&P), 2022, pp. 1897–1914.
[68] D. Jacob, H. Alzahrani, Z. Hu, B. Alomair, and D. Wagner, “Prompt-Shield: Deployable Detection for Prompt Injection Attacks,” in Proc. 15th ACM Conference on Data and Application Security and Privacy (CODASPY), 2025, pp. 341–352.
[69] D. J. Hand, “Measuring Classifier Performance: A Coherent Alternative to the Area under the ROC Curve,” Machine Learning, vol. 77, no. 1, pp. 103–123, 2009.
[70] M. B. Munir, A. J. Ononto, N. S. Joynab, B. Thuraisingham, and L. Khan, “TRIS: A Tri-Layer Retrieval Integrity Sieve Against Knowledge Poisoning,” in Findings of the Association for Computational Linguistics: EMNLP 2026, 2026, to appear.
[71] S. K. Mohanty, R. Patel, K. Yuvaraj, J. Chaudhary, and D. Singhania, "TriShieldRAG: 3 Rings, One Blind Spot in Layered Defenses for Retrieval-Augmented Generation," Jul. 2026, arXiv preprint arXiv:2607.23838. [Online]. Available: https://arxiv.org/abs/2607.23838
[72] X. Xu and Y. Y. Li, “RAGSieve: Self-Referenced Local Contrast for Knowledge-Poison Detection in Retrieval-Augmented Generation,” Aug. 2026, arXiv preprint arXiv:2608.13010. [Online]. Available: https://arxiv.org/abs/2608.13010
[73] J. Jung, H. Zheng, H. Jang, J. Song, B. Chen, and J. Lee, "CamoDocs: A Poisoning Attack Against Retrieval-Augmented
Language Models Using Camouflaged Documents," Aug. 2026, arXiv preprint arXiv:2608.28389. To appear in Proc. EMNLP 2026. [Online]. Available: https://arxiv.org/abs/2608.28389
[74] Z. Wang, G. Wang, and K. Wang, “RefineRAG: Word-Level Poisoning Attacks via Retriever-Guided Text Refinement,” Apr. 2026, arXiv preprint arXiv:2604.07403. [Online]. Available: https://arxiv.org/abs/2604.07403
[75] J. Zhang, M. Chen, X. Ren, Z. Zhang, Y. Shu, Y. Gao, and Z. Zhang, “InceptionRAG: Stealthy Poisoning Attack Against Retrieval-Augmented Generation,” Sep. 2026, arXiv preprint arXiv:2609.16818. To appear in Proc. ACM CCS 2026. [Online]. Available: https://arxiv.org/abs/2609.16818
[76] Z. Wang, D. He, Z. Zhang, Y. Liu, J. Liu, Z. Zeng, Z. Qin, Z. Li, X. Li, H. Yao, J. An, Y. Liu, Y. Li, Q. Sun, X. Liu, and L. Zhu, “Combating Knowledge Corruption in Agent Systems: A Byzantine-Tolerant Secure Collaborative RAG Framework,” in Proc. ACM Web Conference (WWW), 2026, pp. 2661–2672, referred to as SecureCollaRAG.
[77] X. Tan, Y. Zheng, C. Huo, Y. Zhang, Y. Liu, H. Luan, Z. Yu, J. Dai, X. Sun, and P. Chen, “PRA-RAG: Provably Robust Aggregation in Retrieval-Augmented Generation against Retrieval Corruption,” in Findings of the Association for Computational Linguistics: ACL 2026, 2026, pp. 36002–36017.
[78] K. Hoffman, D. Zage, and C. Nita-Rotaru, “A Survey of Attack and Defense Techniques for Reputation Systems,” ACM Computing Surveys, vol. 42, no. 1, pp. 1:1–1:31, 2009.
[79] N. Reimers and I. Gurevych, “Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks,” in Proc. Conference on Empirical Methods in Natural Language Processing and 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), 2019, pp. 3980–3990.
[80] W. Wang, F. Wei, L. Dong, H. Bao, N. Yang, and M. Zhou, “MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformers,” in Advances in Neural Information Processing Systems (NeurIPS), vol. 33, 2020, pp. 5776–5788.
[81] M. Nasr, N. Carlini, C. Sitawarin, S. V. Schulhoff, J. Hayes, M. Ilie, J. Pluto, S. Song, H. Chaudhari, I. Shumailov, A. G. Thakurta, K. Y. Xiao, A. Terzis, and F. Tramèr, “The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against LLM Jailbreaks and Prompt Injections,” in Proc. 35th USENIX Security Symposium. USENIX Association, 2026, pp. 1467–1486. [Online]. Available: https://www.usenix.org/conference/usenixsecurity26/presentation/nasr
[82] J. R. Douceur, “The Sybil Attack,” in Peer-to-Peer Systems: First International Workshop (IPTPS), ser. LNCS, vol. 2429. Springer, 2002, pp. 251–260.
[83] Y. Dai, Z. Ji, Z. Li, K. Li, and S. Wang, “DisarmRAG: Stealthy Retriever-Centric Poisoning to Disable Self-Correction in Retrieval-Augmented Generation,” in Proc. ACM SIGSAC Conference on Computer and Communications Security (CCS), 2026, to appear.
[84] N. Thakur, N. Reimers, A. Rücklé, A. Srivastava, and I. Gurevych, "BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models," in Proc. NeurIPS Datasets and Benchmarks Track (Round 2), 2021. [Online]. Available: https://datasets-benchmarks-proceedings.neurips.cc/paper_files/paper/2021/hash/65b9eea6e1cc6bb9f0cd2a47751a186f-Abstract-round2.html
[85] Q. Jin, B. Dhingra, Z. Liu, W. W. Cohen, and X. Lu, “PubMedQA: A Dataset for Biomedical Research Question Answering,” in Proc. Conference on Empirical Methods in Natural Language Processing and 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), 2019, pp. 2567–2577.
[86] Z. Chen, W. Chen, C. Smiley, S. Shah, I. Borova, D. Langdon, R. Moussa, M. Beane, T.-H. Huang, B. Routledge, and W. Y. Wang, "FinQA: A Dataset of Numerical Reasoning over Financial Data," in Proc. Conference on Empirical Methods in Natural Language Processing (EMNLP), 2021, pp. 3697–3711.
[87] F. Zhu, W. Lei, Y. Huang, C. Wang, S. Zhang, J. Lv, F. Feng, and T.-S. Chua, “TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Finance,” in Proc. 59th Annual Meeting of the Association for Computational Linguistics and 11th International Joint Conference on Natural Language Processing (ACL-IJCNLP), 2021, pp. 3277–3287.
[88] D. Hendrycks, C. Burns, A. Chen, and S. Ball, “CUAD: An Expert-Annotated NLP Dataset for Legal Contract Review,” in Proc. NeurIPS Datasets and Benchmarks Track, 2021, data: https://github.com/TheAtticusProject/cuad/.
[89] S. Thornton, “Semantic Chameleon: Corpus-Dependent Poisoning Attacks and Defenses in RAG Systems,” 2026, arXiv preprint arXiv:2603.18034. Code: https://github.com/scthornton/semantic-chameleon. [Online]. Available: https://arxiv.org/abs/2603.18034
[90] X. Nie, H. Li, S. Wu, M. Li, J. Li, and W. Jiang, “When Poison Fails After Retrieval: Revisiting Corpus Poisoning under Chunking and Reranking Pipelines,” Jun. 2026, arXiv preprint arXiv:2606.11265. [Online]. Available: https://arxiv.org/abs/2606.11265
[91] D. Lee and J. Kim, “A Failure-Mode Benchmark for Polymorphic Sybil Poisoning in RAG,” Jul. 2026, arXiv preprint arXiv:2607.03739. [Online]. Available: https://arxiv.org/abs/2607.03739
[92] L. Chen, X. Yang, Y. Lu, J. Zhang, X. Sun, Q. Liu, S. Wu, J. Dong, and L. Wang, “Uncovering Competing Poisoning Attacks in Retrieval-Augmented Generation,” in Proc. 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD), Vol. 2, 2026, pp. 414–424, benchmark name PoisonArena. Project page: https://poison-arena.github.io/.
[93] H. Hu, Z. Jiang, Y. Lyu, J. Zhang, Y. Liu, and K.-H. Chow, “Confundo: Learning to Generate Robust Poison for Practical RAG Systems,” Feb. 2026, arXiv preprint arXiv:2602.06616. [Online]. Available: https://arxiv.org/abs/2602.06616
[94] A. Akinrele and S. N. Gowda, “Prompt Injection Detection is Regime-Dependent: A Deployment-Aware Evaluation with Interpretable Structural Signals,” May 2026, arXiv preprint arXiv:2605.26999. [Online]. Available: https://arxiv.org/abs/2605.26999
[95] Y. K. Shire and S.-C. Kim, “PIDS-Bench: Evaluating Prompt-Injection Detectors Under Over-Defense, Obfuscation, and Distribution Shift,” IEEE Access, vol. 14, pp. 134 184–134 205, 2026.
[96] T. Kwiatkowski, J. Palomaki, O. Redfield, M. Collins, A. Parikh, C. Alberti, D. Epstein, I. Polosukhin, J. Devlin, K. Lee, K. Toutanova, L. Jones, M. Kelcey, M.-W. Chang, A. M. Dai, J. Uszkoreit, Q. Le, and S. Petrov, “Natural Questions: A Benchmark for Question Answering Research,” Transactions of the Association for Computational Linguistics, vol. 7, pp. 452–466, 2019.
[97] Z. Yang, P. Qi, S. Zhang, Y. Bengio, W. W. Cohen, R. Salakhutdinov, and C. D. Manning, “HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering,” in Proc. Conference on Empirical Methods in Natural Language Processing (EMNLP), 2018, pp. 2369–2380.
[98] T. Nguyen, M. Rosenberg, X. Song, J. Gao, S. Tiwary, R. Majumder, and L. Deng, “MS MARCO: A Human Generated MAchine Reading COmprehension Dataset,” in Proc. Workshop on Cognitive Computation: Integrating Neural and Symbolic Approaches (CoCo@NIPS), ser. CEUR Workshop Proceedings, vol. 1773, 2016. [Online]. Available: https://ceur-ws.org/Vol-1773/CoCoNIPS_2016_paper9.pdf
[99] Qwen Team, “Qwen2.5 Technical Report,” 2024, arXiv preprint arXiv:2412.15115. [Online]. Available: https://arxiv.org/abs/2412.15115
[100] D. Dittrich and E. Kenneally, “The Menlo Report: Ethical Principles Guiding Information and Communication Technology Research,” U.S. Department of Homeland Security, Science and Technology Directorate, Tech. Rep., Aug. 2012. [Online]. Available: https://www.dhs.gov/sites/default/files/publications/CSD-MenloPrinciplesCORE-20120803_1.pdf
APPENDIX A CLOSED FORMS FOR THE TRUST STATE
This appendix derives the closed forms that Section IV quotes by reference. They are properties of an update rule under its own generative model. They are not guarantees, and they support no claim of residual protection: in every condition we measure, source identity is an exact label indicator, so no quantity below may be read as a detection result. Every number quoted here is produced by the E3 simulation, which drives the ledger with hand-set scorer profiles rather than with the evaluated pipeline.
Notation. Notation is that of Section IV. A source holds state with prior , posterior mean , and prior-odds multiplier before clipping to . Each adjudicated event of weight applies
with forgetting indexed by the source’s own events. A target corresponds to the mean and odds ; is increasing in , so iff .
Lemma 1 (Saturation). Under symmetric forgetting , the evidence mass after events from is with , so and reaches 95% of after events.
Proof. Each event maps , an affine recursion with fixed point ; iterate and solve .
Lemma 2 (Poison budget and recovery under symmetric forgetting). Let . From state with , the number of consecutive adjudicated poison events after which first holds is
and otherwise. From state with , the number of consecutive benign events after which first holds is
Proof. After poison events, and . The condition rearranges to , i.e. ; taking logarithms and substituting gives (5). After benign events, and ; rearranges to , which gives (6).
The budget depends on the base rate, so the base rate is stated with it. For a fully farmed source the symmetric budget (5) reduces to , independent of . The deployed configuration forgets asymmetrically, so the budget is instead located by bisection on the trajectories below, which are monotone in . At the deployed calibration base rate with , that budget is 19 adjudicated poison events (simulation). The configuration default is a hypothetical and not the deployed value; at that setting the same computation returns 3, an order of magnitude cheaper for the attacker. The gap is the reason no budget figure in this paper appears without its base rate. Under the trajectories are with and , and the recovery count exceeds (6) because poison evidence decays at the slower rate .
Lemma 3 (Steady state of an on-off source). A source whose adjudicated events are poisoned with fraction p (independently, unit weights) converges to
(a) verbatim containment

(b) clean/poison length separation

Fig. 5. Per-point view of the construction profile. One point per (corpus, attack, defense). Abscissa: the cue, measured on the poison set alone. Ordinate: the change in miss rate at the deployed operating point under the control that removes that cue. Circled: the 40 of 90 points whose profiled direction is wrong at the level of a single point (the profile's claim is at corpus level, Section V); their keys are in the released data.
TABLE IX THE PREFIX CONTROL ON THE ATTACK AUTHORS' OWN PASSAGES: EVERY DEFENSE ON THE RELEASED NQ POISON WITH AND WITHOUT THE QUESTION PREFIX THE ATTACK'S CODE PREPENDS.
| Defense | , as inserted | only, as stored | ||||
|---|---|---|---|---|---|---|
| FNR / FPR | AUROC | FNR@5% | FNR / FPR | AUROC | FNR@5% | |
| Perplexity | 1.000/0.005 | 0.773 | 0.809 | 1.000/0.005 | 0.729 | 0.866 |
| RAGuard (Cheng) | 0.191/0.065 | 0.953 | 0.216 | 0.763/0.061 | 0.758 | 0.796 |
| DRS | 0.854/0.154 | 0.539 | 0.970 | 0.930/0.164 | 0.450 | 0.995 |
| TrustRAG-S1 | 0.000/0.149 | N/A | N/A | 0.070/0.153 | N/A | N/A |
| RAGDefender | 0.045/0.025 | N/A | N/A | 0.172/0.117 | N/A | N/A |
| Dup-only | 0.678/0.005 | N/A | N/A | 0.989/0.009 | N/A | N/A |
| Ours, | 0.015/0.010 | 1.000 | 0.000 | 0.118/0.014 | 0.990 | 0.043 |
| Ours, | 0.015/0.010 | 1.000 | 0.000 | 0.118/0.014 | 0.990 | 0.043 |
| Ours, | 0.012/0.008 | 1.000 | 0.000 | 0.086/0.013 | 0.997 | 0.009 |
| length-only (ref.) | 1.000/0.000 | 0.806 | 1.000 | 1.000/0.000 | 0.864 | 1.000 |
| contain.-only (ref.) | 0.000/0.025 | 1.000 | 0.000 | 0.882/0.023 | 0.718 | 0.839 |
| NLI | 0.935/0.458 | — | — | 0.866/0.388 | — | — |
| retrieval survival | 0.99 | 0.93 | ||||
The released NQ passages of PoisonedRAG, once as its attack.py inserts them ( : the target question, then the released text) and once as the archive stores them (I only); nothing else changes. FNR / FPR at the deployed threshold, AUROC, and the miss rate at a matched 5% false-positive rate, point estimates over five seeds; N/A where the defense emits no score. The last row is retrieval survival with no defense.
so under symmetric forgetting and, with the defaults , , . The source keeps iff (symmetric) or (defaults).
Proof. In expectation each event maps and , with fixed points and ; (7) is . With the defaults . Then iff ; for the defaults, iff .
Lemma 3 is read twice. For the attacker, it gives the poison fraction at which an on-off source's steady-state mean crosses the base rate, which asymmetric forgetting lowers by roughly a factor of four. For the defender, an honest source whose adjudications are flipped at rate is indistinguishable to the ledger from a source with , so the same crossing point moves from to : 0.115 at the deployed base rate against 0.013 at the hypothetical 0.05 (simulation, both arms). The asymmetry that costs the attacker is the asymmetry that costs the honest source, at the same rate and in the same direction. Every figure in this paper is simulated; the evaluated pipeline is reported at , and the measured trajectories are in Section VI.
APPENDIX B FULL E1 GRIDS
Table XII gives the paired cluster-bootstrap differences behind the comparisons of Section VI, and Table XIII the per-cell decision-agreement grid whose counts Section VI-E quotes. Fig. 5 plots the profile against the outcome one (corpus, attack, defense) point at a time, including the points the corpus-level reading of Fig. 1 does not cover; Fig. 6 draws the two one-feature reference detectors of Section V under every rung; Table IX is the prefix control on the released NQ passages with every defense's AUROC beside the deployed point that Table V carries; and Table X is the legal panel of the placebo table. Table XI completes the survey of Table I with the systems that expose no per-document admission decision, and therefore cannot be scored on the shared candidate set that makes Table I a comparison; it carries no measurement, only the reason each was not reproduced. All four are reproduced in the released artifact, alongside the twelve per-cell grids and the out-of-distribution sweep, which are artifact-only. The false-positive rates themselves are not here: they are the second number in every cell of Table V, in the body, because a miss rate is not readable without them. Per-query cost is the last column of Table I.
Closed by design, tested as regressions. Domain is a property of the query, so domain laundering through document metadata is moot (0.000, expected zero), and attacker-declared metadata is never a scorer input (0.000, expected zero). Both are run as regressions rather than reported as findings.
The defense-aware attacker. Table XIV is the query-based attacker of Section VI-B: the mimicry rung followed by hard-label word substitution tuned against our scorer on NQ (archive-stored, prefix-less passages; 500 oracle queries and 60 iterations per document), then scored by every defense unchanged. Each cell is static / adaptive at that defense's deployed point; for every row but our own the number is a transfer attack and a lower bound [66]. The DRS row is the pre-fix port and is footnoted as such.
Where the operating point acts, and where it hurts. Fig. 7 sweeps normalised expected cost against on the control lanes, where the score is unsaturated, wrapping one rule over three unrelated scores: ours, the chunk score of RAGuard-Cheng [9] and GPT-2 perplexity [15]. Two existence proofs. On length-matched legal, harm per 1,000 queries falls from
TABLE X
PLACEBO FILLERS FOR THE LENGTH-MATCHED RUNG ON LEGAL, WHOSE CLEAN CORPUS IS A CONSTANT WIDTH: PADDING OVERSHOOTS THE CLEAN BAND AND INSTALLS AN INVERTED LENGTH CUE INSTEAD OF REMOVING ONE (SECTION VI-B).
| Defense | clean-prose filler | word-shuffled filler | pseudo-word filler | ||||||
|---|---|---|---|---|---|---|---|---|---|
| FNR / FPR | AUROC | FNR@5% | FNR / FPR | AUROC | FNR@5% | FNR / FPR | AUROC | FNR@5% | |
| Perplexity (GPT-2) | 0.775 / 0.000 | 0.878 | 0.605 | 0.247 / 0.000 | 0.948 | 0.230 | 0.280 / 0.006 | 0.942 | 0.259 |
| RAGuard (Cheng) | 0.279 / 0.116 | 0.883 | 0.321 | 0.071 / 0.115 | 0.964 | 0.071 | 0.087 / 0.119 | 0.956 | 0.087 |
| DRS | 0.857 / 0.100 | 0.688 | 0.933 | 0.922 / 0.101 | 0.649 | 0.961 | 0.479 / 0.097 | 0.836 | 0.643 |
| TrustRAG stage 1 | 0.044 / 0.206 | N/A | N/A | 0.038 / 0.185 | N/A | N/A | 0.142 / 0.199 | N/A | N/A |
| RAGDefender | 0.382 / 0.306 | N/A | N/A | 0.321 / 0.158 | N/A | N/A | 0.226 / 0.112 | N/A | N/A |
| Dup-only | 0.830 / 0.000 | N/A | N/A | 0.836 / 0.000 | N/A | N/A | 0.786 / 0.000 | N/A | N/A |
| Ours, τ=0.5 | 0.063 / 0.041 | 0.989 | 0.053 | 0.035 / 0.042 | 0.995 | 0.025 | 0.033 / 0.037 | 0.992 | 0.030 |
| Ours, τd | 0.036 / 0.081 | 0.989 | 0.053 | 0.017 / 0.072 | 0.995 | 0.025 | 0.027 / 0.062 | 0.992 | 0.030 |
| Ours, τd,s (a=0.3) | 0.019 / 0.081 | 0.995 | 0.032 | 0.005 / 0.072 | 0.998 | 0.015 | 0.017 / 0.062 | 0.997 | 0.022 |
| length-only (ref.) | 1.000 / 0.000 | 0.024 | 0.992 | 1.000 / 0.000 | 0.025 | 0.988 | 1.000 / 0.000 | 0.030 | 0.991 |
| containment-only (ref.) | 0.031 / 0.025 | 0.994 | 0.022 | 0.023 / 0.022 | 0.997 | 0.016 | 0.009 / 0.023 | 0.997 | 0.009 |
| retrieval survival | 0.96 | 0.97 | 0.91 | ||||||
Each column block pads the same template poison to the same draw from the clean word-length distribution with a different filler (Section VI-B). FNR / FPR at the deployed threshold, AUROC, and the miss rate at a matched 5% false-positive rate, point estimates over five seeds; N/A where the defense emits no score. The last row is retrieval survival with no defense, the first leg of the conjunction of Section III.
TABLE XI
QUERY-TIME AND GENERATION-TIME RAG POISONING DEFENSES compared by capability only: EACH EXPOSES NO PER-DOCUMENT ADMISSION DECISION OR NO SWEEPABLE OPERATING POINT, SO NONE CAN BE SCORED ON THE SHARED CANDIDATE SET OF TABLE I; THE LAST ROW IS THE ONE PER-DOCUMENT DETECTOR THAT COULD HAVE BEEN AND WAS NOT. COLUMNS AS IN TABLE I; THE LAST COLUMN IS WHY EACH WAS NOT REPRODUCED.
| Defense | Stage | Gran. | Signal | Operating-point rule | Fit? | Not reproduced because |
|---|---|---|---|---|---|---|
| RAGuard-ZKIP [45] | Ret+Gen | D | leave-one-out counterfactual answer change | keep iff the answer survives removal | Yes | k+1 generation passes; no per-document score |
| RobustRAG [35] | Gen | RS | isolate-then-aggregate document answers | certified budget, not a threshold | No | one generation pass per document |
| RADAR [14] | PreG | RS | min-cut over an answer-agreement graph | graph cut; no per-document score | No | needs per-document answers |
| DataFilter [34] | PreG | D | fine-tuned LLM data filter | model output; no exposed threshold | Yes | outside a CPU-only budget |
| RAGShield [27] | Off+Ret+Gen | D, Src | numeric-claim consistency; provenance attestation | static provenance weights | No | scoped to numeric claims |
| TRIS [70] | PreG+Gen | D, RS | cross-embedding clustering; judge; trigger filter | three fixed sieves in series | No | 16–19 s per query as reported |
| SecureCollaRAG [76] | Ret+Gen | Src | GNN per-source credibility | Byzantine aggregation; no threshold | Yes | needs a multi-agent deployment |
| TriShieldRAG [71] | Off+Ret+Gen | D, Src | ingest guard; static trust re-rank; LLM consensus | static trust weights | No | outside a CPU-only budget |
| GMTP [31] | PreG | D | masked-token probability at the retriever's high-gradient tokens | threshold on the masked-token probability | No | a per-document detector we did not reproduce: the one CPU-feasible omission from Table I |
TABLE XII
E1 PAIRED DIFFERENCES: EVERY DEFENSE MINUS THE HARM-BLIND CLASSIFIER ON THE SAME RESAMPLED QUERY CLUSTERS, WITH 95% PAIRED CLUSTER-BOOTSTRAP INTERVALS. CONDITION: LEGAL/POISONEDRAG_BB.
| Defense | FNR | FPR | CCR | H/1k |
|---|---|---|---|---|
| Perplexity (GPT-2) | +0.549 [+0.418, +0.670]* | -0.059 [-0.148, +0.000] | +0.645 [+0.509, +0.778]* | +40750.000 [+29192.500, +51751.250]* |
| RAGuard (Cheng) | +0.076 [+0.028, +0.138]* | +0.049 [-0.058, +0.155] | +0.194 [+0.072, +0.339]* | +5775.000 [+2049.375, +10451.875]* |
| TrustRAG stage 1 | +0.002 [-0.004, +0.010] | +0.088 [-0.042, +0.211] | +0.007 [-0.011, +0.034] | +375.000 [-175.000, +1075.000] |
| RAGDefender | +0.337 [+0.262, +0.396]* | -0.029 [-0.127, +0.052] | +0.511 [+0.357, +0.666]* | +25075.000 [+17460.250, +32500.625]* |
| Dup-only | +0.341 [+0.290, +0.397]* | -0.059 [-0.148, +0.000] | +0.610 [+0.517, +0.707]* | +25250.000 [+21350.000, +29050.000]* |
| Ours, τd | -0.002 [-0.006, +0.000] | +0.020 [+0.000, +0.051] | -0.006 [-0.023, +0.000] | -100.000 [-450.000, +100.000] |
| Ours, τd,s (a=0.3) | -0.002 [-0.006, +0.000] | +0.020 [+0.000, +0.051] | -0.006 [-0.023, +0.000] | -100.000 [-450.000, +100.000] |
| Ours, τd,s (a=0.1) | -0.002 [-0.006, +0.000] | +0.020 [+0.000, +0.051] | -0.006 [-0.023, +0.000] | -100.000 [-450.000, +100.000] |
| NLI (ReliabilityRAG) | +0.791 [+0.726, +0.852]* | +0.448 [+0.335, +0.545]* | +0.972 [+0.947, +0.992]* | +60140.000 [+55638.375, +65107.000]* |
| length-only (ref.) | +0.990 [+0.976, +1.000]* | -0.059 [-0.148, +0.000] | +0.975 [+0.948, +0.996]* | +73650.000 [+65148.750, +81802.500]* |
| containment-only (ref.) | +0.075 [+0.021, +0.140]* | -0.029 [-0.074, +0.000] | +0.183 [+0.051, +0.332]* | +5525.000 [+1473.750, +10601.250]* |
| No defense | +0.998 [+0.994, +1.000]* | -0.059 [-0.148, +0.000] | +0.987 [+0.965, +1.000]* | +74250.000 [+66448.750, +82251.250]* |
| DRS | +0.814 [+0.700, +0.909]* | +0.069 [-0.057, +0.199] | +0.879 [+0.776, +0.957]* | +60825.000 [+49824.375, +71226.875]* |
Each cell is the difference against Uniform threshold (tau=0.5) with a 95% paired cluster-bootstrap interval: 1000 draws resampling the 40 query clusters (pooled over 5 seed(s)) once per draw and applying the same resample to both systems. * marks an interval that excludes zero. Seeds vary query order, the adjudication draw and poison-template choice; the corpus split is fixed. The retrieved candidate sets are identical across all 5 seeds in financial/jamming_blocker, legal/corruptrag_as, legal/jamming_blocker, medical/corruptrag_as, medical/hijackrag_bb, medical/jamming_blocker, medical/poisonedrag_bb, nq/corruptrag_as, nq/jamming_blocker, nq/poisonedrag_bb (Jaccard 1.000), so the seed sd there is arithmetically forced to 0.000 and is not a sampling error. Candidate sets do move with the seed in financial/corruptrag_as 0.995, financial/hijackrag_bb 0.970, financial/poisonedrag_bb 0.970, legal/hijackrag_bb 0.914, legal/poisonedrag_bb 0.951, nq/hijackrag_bb 0.909 (minimum Jaccard against seed 11). Intervals are therefore paired cluster bootstraps over the evaluation queries, not seed spreads. The same table for the other 3 corpora is in the released artifact.
(a) medical: FNR at the deployed point

control rung
(b) medical: signed AUROC
control rung
(c) financial: FNR
control rung
(d) legal: FNR
control rung
-
-
- containment-only - - - length-only
-
Fig. 6. Each cue alone manufactures a perfect result, and each one-feature detector is destroyed by its own control and left untouched by the other. The detectors read one bit — does the target question appear verbatim? — and one scalar — how long is the document? Both are single inputs of our own scorer's feature vector. (a) On medical both miss nothing on the template rung; the dashed segments join each detector's template bar to the bar under the control that removes its cue, and they cross. (b) The same cells' AUROC, signed: below the chance line the cue is present with the opposite sign, which is why no absolute value is taken anywhere here. (c),(d) On financial and legal the prefix control leaves containment-only standing because the two cues co-occur there; financial's length cue runs backwards and legal's clean corpus is one constant width, so neither one-feature detector is destroyed by its own control on those corpora. Whiskers as in Fig. 3; the false-positive rates are in the released data.
TABLE XIII ON THE BENCHMARK THE LITERATURE REPORTS AGAINST, THREE DIFFERENT THRESHOLD RULES PRODUCE THE SAME DECISIONS.
| Condition | cands. | in band | ≠ τd | ≠ τd,s | distinct scores | ρ=1 |
|---|---|---|---|---|---|---|
| financial/corruptrag_as (template) | 2000 | 0 (0.00%) | 0 | 0 | 358 | |
| financial/hijackrag_bb (template) | 2000 | 0 (0.00%) | 0 | 0 | 202 | |
| financial/jamming_blocker (template) | 2000 | 0 (0.00%) | 0 | 0 | 359 | |
| financial/poisonedrag_bb (template) | 2000 | 0 (0.00%) | 0 | 0 | 196 | |
| legal/corruptrag_as (template) | 2000 | 63 (3.15%) | 63 | 68 | 400 | |
| legal/hijackrag_bb (template) | 2000 | 19 (0.95%) | 19 | 19 | 400 | |
| legal/jamming_blocker (template) | 2000 | 95 (4.75%) | 95 | 93 | 400 | |
| legal/poisonedrag_bb (template) | 2000 | 13 (0.65%) | 13 | 13 | 400 | |
| medical/corruptrag_as (template) | 2000 | 0 (0.00%) | 0 | 0 | 395 | |
| medical/hijackrag_bb (template) | 2000 | 0 (0.00%) | 0 | 0 | 397 | |
| medical/jamming_blocker (template) | 2000 | 0 (0.00%) | 0 | 0 | 396 | |
| medical/poisonedrag_bb (template) | 2000 | 0 (0.00%) | 0 | 0 | 397 | |
| nq/corruptrag_as (template) | 2000 | 0 (0.00%) | 0 | 4 | 400 | yes |
| nq/hijackrag_bb (template) | 2000 | 0 (0.00%) | 0 | 0 | 399 | yes |
| nq/jamming_blocker (template) | 2000 | 0 (0.00%) | 0 | 0 | 400 | yes |
| nq/poisonedrag_bb (template) | 2000 | 0 (0.00%) | 0 | 5 | 400 | yes |
| financial/poisonedrag_bb (length matched) | 2000 | 0 (0.00%) | 0 | 0 | 199 | |
| legal/poisonedrag_bb (length matched) | 2000 | 63 (3.15%) | 63 | 84 | 400 | |
| medical/poisonedrag_bb (length matched) | 2000 | 1 (0.05%) | 1 | 5 | 397 | |
| financial/poisonedrag_bb_natural (prefix removed) | 2000 | 2 (0.10%) | 2 | 3 | 315 | |
| legal/poisonedrag_bb_natural (prefix removed) | 2000 | 36 (1.80%) | 36 | 37 | 400 | |
| medical/poisonedrag_bb_natural (prefix removed) | 2000 | 7 (0.35%) | 7 | 7 | 399 | |
| nq/poisonedrag_bb_natural (prefix removed) | 2000 | 0 (0.00%) | 0 | 31 | 400 | yes |
| financial/poisonedrag_bb_natural (both removed) | 2000 | 1 (0.05%) | 1 | 1 | 343 | |
| legal/poisonedrag_bb_natural (both removed) | 2000 | 193 (9.65%) | 193 | 265 | 400 | |
| medical/poisonedrag_bb_natural (both removed) | 2000 | 0 (0.00%) | 0 | 0 | 397 |
Decisions counted by joining the stored per-document actions of three defenses on the same candidate set on (seed, query, document); nothing is re-thresholded. In band is the number of scored candidates whose posterior lies in the closed interval between and , outside which the two rules provably agree. Distinct scores is the number of distinct values the score took: a threshold-derived metric computed on two values is not a measurement, and this column is how a reader checks that. 12 of 26 cells are bit-identical under all three rules; 2 of them have , where exactly and the cost-derived rule IS the harm-blind classifier by construction – those are a control, not evidence of inertness.
4195 to 2585 at a miss rate of 0.063 against 0.036; on prefix-removed medical, from 1600 to 900 at 0.017 against 0.009. The same rule wrapped over the two scores we did not build reproduces the direction on length-matched legal (18460 → 3915 for the chunk score, 50100 → 3725 for perplexity, in harm per 1,000 queries), which is the evidence that the effect belongs to the decision layer and not to our features. Both wrappers buy it on the clean side, at the false-positive cost Fig. 7(b) prints, because realised prevalence on that cell makes aggressive blocking cost-optimal; and unlike the wrapper needs a labelled calibration set.
The negative half is not on the harm axis. On the financial out- of-distribution condition (the scorer calibrated at a prevalence it does not meet) the rule still lowers harm (-26.6%) but pays +2.6 points of false-positive rate for it, and a deployment pricing a false block differently from our reads that trade the other way. The prevalence correction is not the repair either: harm at against runs medical ; financial ; legal , so re-anchoring the prior recovers nothing and on legal costs more. Nor is the cost-derived point the achievable optimum at the native harm ratio: proportionality regret, the harm of the cost-derived threshold minus the least harm any threshold reaches at the same ratio, is 170.0 on financial and 20.0 on legal against 0.0 on medical, where every threshold is
TABLE XIV
E4-D1: MIMICRY PLUS HARD-LABEL WORD SUBSTITUTION TUNED AGAINST OUR SCORER ON NQ (ARCHIVE-STORED, PREFIX-LESS PASSAGES; 500 ORACLE QUERIES AND 60 ITERATIONS PER DOCUMENT), THEN SCORED BY EVERY DEFENSE UNCHANGED. STATIC / ADAPTIVE AT EACH DEFENSE'S DEPLOYED POINT; FOR EVERY ROW BUT THE LAST FOUR THIS IS A TRANSFER ATTACK (SECTION III-C).
| Defense | FNR | FPR | retrieved | reached | ccr |
|---|---|---|---|---|---|
| No defense | 1.000 / 1.000 | 0.000 / 0.000 | 0.990 / 0.870 | 0.990 / 0.870 | 0.920 / 0.670 |
| Perplexity (GPT-2) | 1.000 / 1.000 | 0.000 / 0.000 | 0.990 / 0.870 | 0.990 / 0.870 | 0.920 / 0.670 |
| RAGuard (Cheng) | 0.162 / 0.897 | 0.119 / 0.115 | 0.990 / 0.870 | 0.160 / 0.780 | 0.154 / 0.626 |
| DRS | 0.909 / 0.943 | 0.119 / 0.124 | 0.990 / 0.870 | 0.900 / 0.820 | 0.840 / 0.657 |
| TrustRAG stage 1 | 0.000 / 0.069 | 0.198 / 0.487 | 0.990 / 0.870 | 0.000 / 0.060 | 0.000 / 0.095 |
| RAGDefender | 0.000 / 0.368 | 0.040 / 0.239 | 0.990 / 0.870 | 0.000 / 0.320 | 0.000 / 0.308 |
| NLI (ReliabilityRAG) | 0.909 / 0.690 | 0.465 / 0.354 | 0.990 / 0.870 | 0.900 / 0.600 | 0.880 / 0.574 |
| Dup-only | 0.646 / 0.954 | 0.010 / 0.009 | 0.990 / 0.870 | 0.640 / 0.830 | 0.620 / 0.650 |
| Ours, | 0.030 / 0.977 | 0.010 / 0.018 | 0.990 / 0.870 | 0.030 / 0.850 | 0.030 / 0.660 |
| Ours, | 0.030 / 0.977 | 0.010 / 0.018 | 0.990 / 0.870 | 0.030 / 0.850 | 0.030 / 0.660 |
| Ours, () | 0.027 / 0.966 | 0.010 / 0.018 | 0.990 / 0.870 | 0.027 / 0.840 | 0.027 / 0.650 |
| Ours (trust a=0.3 eps=0 d=0, farmed source) | 0.030 / 1.000 | 0.010 / 0.018 | 0.990 / 0.870 | 0.030 / 0.870 | 0.030 / 0.670 |
Each cell is static / adaptive at the deployed operating point, a point estimate over seeds; the per-seed dispersion is in the released e4fix_d1_*.json. The defenses that are not bypassed pay for it in the FPR column: read the pair, not the miss rate alone.

Fig. 7. A cost-derived operating point is a lever only where the score is unsaturated. (a) Normalised expected cost against where the score is unsaturated and the rule acts; shading is the interval in which the cost-sensitive and the harm-blind rule decide bit-identically. On the cell the literature reports against that interval covers the whole axis and every trace is identically zero, which is why that cell is a number in Appendix B and not a panel (f4_inert.dat). (b) The same rule fitted out of fold over three score families that share no code path, length-matched medical: o each score's own deployed rule (harm 1.0 by construction), ● the cost-derived rule, | the best that score's thresholds allow, with the false-positive rate each gain costs printed beside it. (c) The cross-domain lane, where the calibration prevalence is wrong; dotted rule, the native . Note the per-panel vertical scale.
the same one. The failure is assumption A1, not the threshold formula. The decision layer is a lever everywhere except the benchmark: unsaturated scores give it room, the literature's own cells give it none, and a wrong calibration prevalence makes it pay for its gain in benign blocks.
APPENDIX C PRIOR REVIEWS AND RESPONSE
An earlier version of this work was submitted to HICSS-60 and rejected. That round produced two reviews and no rebuttal; both are reproduced here in full and there were no others. Section C-A maps every distinct criticism to the part of this submission that addresses it; Section C-B gives the reviews. A code audit against the reviews confirmed every point raised and found further defects the reviewers could not see from the manuscript: an untrained head used in ranking, a reliability signal derived from the filter's own decisions, a baseline fit on the evaluation corpus with ground-truth labels, and hard-coded strings from the authors' own attack generator. All numerical results of the earlier version are withdrawn; this submission reports only results from the rewritten pipeline on public corpora with published attacks. Experiment identifiers E1–E9 are those of Section VI, except E3, a trust simulation whose closed forms are Appendix A and whose remaining arms are artifact-only; E5 and E6 were planned, cut for compute, and named as limitations (Section VIII).
A. How each criticism is addressed
Status codes: A addressed; N addressed with a narrowed claim; R criticised component or metric retired, or result withdrawn; O out of scope, stated as a limitation.
Reviewer 1.
R1.0 Methodology not coherently specified; evaluation does not support the claims. Restated as a cost-sensitive decision problem with an explicit objective, Proposition 1 and stated assumptions, one of which is measured to fail; every claim is tied to an experiment. Section IV, Section VI, Table I. [A]
R1.1 Pass rule inverted ( falls with risk yet documents pass when ). An exposition error: the legacy code blocked when and was stricter for higher-risk domains; but spanned only 0.450–0.474 across domains, so the mechanism was nearly inert. Both are replaced by the Bayes threshold , monotone in and (Proposition 1, Equation (3)); trust now enters the threshold. E2 (Appendix B) measures the effect of with the scorer fixed. [A]
R1.2 Combined score S mixes benignness with impact and relevance; its role in filtering is unexplained. S only reranked passed documents and is removed; the sole decision variable is (Section IV-C). [R]
R1.3 Three heads R, I, D but the loss covers only R, I. The D head was never trained and the I label was a function of the poison label; both removed. Single-output calibrated scorer (Section IV-D); ablation in E7 (Section VI-D). [A]
R1.4 Query never reaches the encoder. Confirmed; the scorer is now query-conditioned, , and near-verbatim query containment is one of its features (Section IV-C, Section IV-D); its feature groups are ablated in E7 (Table VIII). [A]
R1.5 Reliability signal r never defined. It was the filter's own decision, and no trust update preceded any reported number. Replaced by an exogenous adjudication ledger (Section IV-D); the channel is in the threat model as C4 (Section III-B); the corrupted-ledger and merged-channel arms are E3 B6 and the trust term itself is ablated in E7 (Table VIII); every E3 number is simulation, and in these conditions no trust number is a detection result (Appendix A). [A]
R1.6 GSQ has no recall term. Retired; alert precision/recall, escalation volume, time-to-flag, false-demotion and recovery are reported separately (E3). [R]
R1.7 DPS “ideal” vs. “actual” thresholds not distinguished. Retired; proportionality is judged by against the oracle-optimal threshold and by cost curves (E2). [R]
R1.8 TCA omits the calibration weight. Retired; ECE (two binnings), Brier decomposition and reliability diagrams are reported separately (E1, E3). [R]
R1.9 Baselines not apt; F1 = 0 reflects an interface mismatch. One filter interface for every defense over the same candidate set; detector metrics only for label-emitting systems, N/A otherwise (Section IV-A, E1). [A]
R1.10 Document-level screening baselines would be more appropriate. Same-task baselines re-implemented (perplexity, RAGuard, DRS, TrustRAG-S1, RAGDefender, NLI consistency, uniform-threshold classifier); systems needing a GPU or generator internals appear in Table I only. E1, E4 (Section VI-B). [A]
R1.11 Adversarial training reached DR= 1, PPR= 0, beating the proposal. Cause: that baseline was fit on the evaluation corpus with ground-truth labels. Result withdrawn; the fair version (disjoint training split, uniform ) is the cost-blind baseline in E1 and E7. [R]
Reviewer 2.
R2.1 Section 2 is not a comparative related-work review. Rewritten by intervention stage, granularity, attack class, source reliability, consistency, attribution and certification, including every work named (Section II-B, Table I). [A]
R2.2 Unsupported “first/only” claims. All removed; query-time per-document filtering is credited to prior work (Section I, Section II-E). [A]
R2.3 Concise comparison table; discuss the six named papers. Table I carries stage, granularity, signal, operating-point rule, whether anything is fitted, nominal against realised FPR and per-query cost; attack class and the post-generation and attribution stages are covered in the prose of Section II-A, Section II-B rather than as columns. Of the six named works, RAGuard, DRS and the ReliabilityRAG-style NLI filter are reproduced as baselines (E1, Table XIV); RAGForensics (post-generation attribution) and D-SCAN (generator-attention filtering) lie outside the per-document admission class and are discussed, not reproduced (Section II-B); RSB [8] is cited for the finding that motivates the adaptive lane (Section I). [A]
R2.4 The contribution is the integration, not filtering per se. Overtaken rather than adopted: no system-level contribution is claimed now. The composition—cost-sensitive threshold, Beta trust, per-document decision, audit record—is credited to prior work as classical instrumentation (Section II-C) and used as an instrument (Section IV); the three contributions are the construction profile, the two failure modes with their protocol, and a both-signs measurement of the decision layer (Section I). [R]
R2.5 Figure 1 uninformative. Removed, not redrawn: the paper no longer proposes the system it depicted, and the adversary entry points it carried are enumerated in Section III. The figures that replace it (Figs. 3 to 5 and 7) each state a measured claim. [A]
R2.6 Table 1 should span both columns. Table I is full width. [A]
R2.7 Reconcile the pass rule with Eq. 10; confirm equations match the code. See R1.1; equations are transcribed from the decision module, whose unit tests compare the closed form with brute-force harm minimisation (Section IV-C). [A]
R2.8 Direction of S; relevance head absent from the loss; score weights unreported. Components removed; single-purpose notation (Section IV). [R]
R2.9 If r is the model's own decision the system reinforces its errors; if human, describe the workflow; how is compromise detected? Trust updates are stated to be non-automatic; the escalate–adjudicate–ledger workflow is described (Section IV-D); the self-reinforcement the review predicts is the E3 B6 merged-channel arm, in which every honest source is eventually demoted; time-to-demotion and the attacker's poison budget are E3 B1 (Appendix A), cold start and the long-history insider E3 B7. Every one of these is simulation; every pipeline result is reported at (Section III-B). [A]
R2.10 Malicious modification vs. legitimate correction: provenance, versioning, authentication, corroboration, cold start, compromised trusted sources, reversal, superseded documents. Source identity is bound to an authenticated channel (Section III-B); contradiction is evidence routed to ESCALATE, never adjudication; cold start ; the trust floor bounds insiders; reversal recomputes the ledger. The legitimate-update benchmark (E5) is cut for compute and named as a limitation (Section VIII). Content-only signals cannot separate identical texts and the paper says so (Section VIII). [N]
R2.11 Separate architectural capability from security performance. Table I (capability) vs. E1 (cross-system outcomes; detector metrics only where defined). [A]
R2.12 Table 2/Figure 3 misleading; F1 should be N/A. Figure removed, table withdrawn (see R1.11); E1 uses N/A. [R]
R2.13 Financial/legal gains within noise; reframe around common outcomes. Every comparison is a paired cluster-bootstrap CI on the difference against a named comparator; per-seed spread is never reported as a precision claim, because candidate sets are seed-invariant; the instruction-injection and jamming conditions are retained and reported as is, in the attack set of Section IV-A and in every cell of Tables III and XIII. [A]
R2.14 DR= 1-PPR for every system. Renamed context contamination rate; detector metrics are class-conditional and counted over the candidate set (Section IV-B). [A]
R2.15 Proportionality confounded with domain difficulty. Domain is no longer a treatment. is swept within one corpus over stored scores, with corpus, candidate sets, attack and scorer all fixed, so the harm ratio is the only thing that moves (E2, Fig. 7); the cross-corpus swap is reported separately, and it is a loss (Appendix B). [A]
R2.16 Risk weights unjustified; applications within a sector differ. Replaced by one harm ratio per deployment, a governance input labelled illustrative and always swept over (Section IV-C, E2, Section VIII). [N]
R2.17 Narrow to “partial support in the medical condition”. Earlier conclusions withdrawn; every prediction is scoped to corpus level with its per-point failure count printed (Section V-B, Section VI-A), and no claim is stated on a rung the paper calls unfalsifiable. [A]
R2.18 DPS circular. Retired; is oracle-referenced (E2). [R]
R2.19 TCA parameters unreported. Retired; see R1.8. [R]
R2.20 GSQ constituents undefined; GSQ= 1 misread as recall. Retired; see R1.6. [R]
R2.21 Table 3/Figure 4 duplicate. Both gone; no figure duplicates a table. [A]
R2.22 Vector-database manipulation unevaluated. Removed from the defended classes; index/retriever tampering stated out of scope (Section III-B). [O]
R2.23 Unintended poison rate needs evidence. Root cause (append rather than substitute) fixed; realised rate logged; the dedicated poison-rate sweep (E6) is cut for compute and named as a limitation (Section VIII); one poison rate is used throughout, and the injection budget is instead read across attack families at and , where it decides which defense class wins (Section VI-D); primary metrics are prevalence-invariant, with an odds correction (Section IV-C). [A]
R2.24 Table 4 operating guidance not derived from results. Removed; operating points are read off cost curves and escalation is Chow's rule with an explicit review cost (Section IV-C). [R]
R2.25 Synthetic corpus, few conditions and trials. Four real corpora (NQ/PoisonedRAG over BEIR, PubMedQA, FinQA with TAT-QA, CUAD), published attacks, five seeds on the main grid — three on the E7 ablation, one on the secondary E9, stated wherever they appear — and an out-of-distribution training regime; the synthetic corpus is dropped, and the single retriever and the 40 evaluation queries per cell are stated as limitations (Section IV-A, Section VIII). [A]
R2.26 Frame as an exploratory prototype; no superiority or deployment-readiness claims. Abstract, Section I and Section VIII rewritten; adaptive-attack success is reported even when high. [A]
Reviewer 2, “Suggested revisions” S1–S16. The sixteen closing bullets restate the items above and are answered by them:
S1 R2.1, R2.3, R2.4 S9 R1.9, R2.11
S2 R2.2, R2.4 S10 R1.11, R2.12
S3 R2.10 S11 R1.6–R1.8, R2.18–R2.20
S4 R2.5 S12 R2.14
S5 R2.6 S13 R2.21
S6 R1.1, R2.7 S14 R1.1, R2.15–R2.17
S7 R1.2–R1.4, R2.8 S15 R2.24
S8 R1.5, R2.9 S16 R2.26
B. The reviews
As the call for papers requires, the two reviews are reproduced below anonymized but otherwise unedited and complete: the text and scores are exactly as received. The only omission is the programme chairs' cover e-mail, a form rejection notice containing no review content; no chair or reviewer names appeared in the original. Nothing is excerpted, summarised or reordered, and apart from the redaction recorded immediately below, the only changes are typesetting ones—paragraph reflow, runs of spaces collapsed, invisible subscript artefacts dropped, and quotation marks, dashes, bullets, URLs and mathematical symbols set in LATEX rather than plain text—applied mechanically by a script, not by hand.
[Redaction, disclosed. The reviews name the system the earlier version proposed. That name is an identifier: the submission is double-blind, and one search for it would undo the anonymity. It occurs 25 times in the two reviews below and every occurrence is replaced, by script, with the token [SYSTEM]. What is replaced is that proper name and nothing else—no word of a reviewer's own prose, no score, no heading, no citation. No other character of either review is altered, and no sentence, clause or punctuation mark is dropped, softened or reordered.]
Review 1
Characteristics of Submission (scale is 1..5, 5 is best)
| Interest: 2 | Originality: 2 | Contribution: 1 |
|---|---|---|
| Relevance: 3 | Theory: 1 | Methodology: 1 |
| Presentation: 2 | Validity: 1 | References: 1 |
The Review
This paper proposes [SYSTEM], a framework for detecting poisoned documents in RAG corpora for enterprise applications. It centers on the idea that that security sensitivity should vary with the organizational consequences of a failure. The paper highlights a salient threat, and per-document screening at query time could be useful. However, the current formulation contains several technical inconsistencies, and the evaluation does not support the paper's main claims. The core methodology is not coherently specified. Most seriously, the document pass rule appears inverted. The paper defines a theta term that declines as domain risk increases and source trust decreases. It defines a threshold for documents passing as below 1 - theta. As specified, the filter becomes less restrictive for riskier documents - higher risk and lower trust reduce theta, which increases 1 - theta, giving a higher threshold for documents passing. Equation 5 has a related problem. It combines 1-R(d) positively with harm and relevance, making it unclear whether S is a risk score or a safety score. The paper also never explains how S determines filtering. The multi-task model is likewise incomplete. The paper introduces three heads, R, I, and D, but the training objective includes losses only for R and I. D is described as query relevance, but it is unclear how a query representation is made available to the encoder, which is described as operating over document embeddings. The source-trust mechanism also depends on a runtime reliability signal r that is never defined. The proposed metrics are difficult to interpret. GSQ does not include recall, so a perfect GSQ cannot mean that every poisoned document was caught. That claim also conflicts with the reported medical poison pass rate and document precision. DPS is unclear because the "ideal" and "actual" thresholds are not operationally distinguished, while TCA omits key details such as the calibration weight. The baselines are not apt comparisons. Standard RAG and query filtering do not produce document-level labels, and adversarial training removes poisoned documents offline; assigning these systems an F1 score of zero mainly reflects an interface mismatch. Prior work has proposed direct document-level screening and filtering baselines that would be more appropriate. Further, adversarial training achieves DR=1 and PPR=0 in every domain, outperforming [SYSTEM] on the reported prevention objective.
Review 2
Characteristics of Submission (scale is 1..5, 5 is best)
| Interest: 5 | Originality: 4 | Contribution: 3 |
|---|---|---|
| Relevance: 5 | Theory: 3 | Methodology: 2 |
| Presentation: 3 | Validity: 2 | References: 3 |
The Review
The paper addresses a timely and important problem: how retrieval-augmented generation systems should detect and respond to malicious documents in enterprise repositories when the consequences of a successful attack differ substantially across deployment contexts. The proposed [SYSTEM] framework is conceptually interesting, particularly its integration of query-time document scoring, dynamic source trust, domain-sensitive thresholds, and governance reporting. Grounding the framework in Service-Dominant Logic also provides an original basis for arguing that security controls should reflect the organizational value and potential harm associated with a retrieval event rather than treating every poisoned document as equally consequential. The paper is highly relevant, generally well written, and commendably candid about several limitations and negative results, including its poor prompt-injection performance and the lack of meaningful differentiation between the financial and legal conditions. The manuscript nevertheless requires clarification and reframing in several areas. Section 2 does not adequately position [SYSTEM] against comparable security systems, the baseline comparison conflates architectural capability with comparative security performance, and the reported results provide only partial evidence that the proportionality mechanism functions as intended. The mathematical description of the decision process also contains ambiguities, while the dynamic trust mechanism does not explain how malicious changes are distinguished from legitimate document updates. These issues do not eliminate the paper's conceptual contribution, but they substantially narrow what can be concluded from the current evaluation. Section 2 is titled "Related Work," but it primarily provides background on RAG, categorizes attack vectors, introduces the proportionality gap, and summarizes Service-Dominant Logic. These are useful foundations, but the section does not perform the comparative function normally expected of a related-work review. It does not discuss comparable runtime poisoning defenses, document-level or chunk-level filtering methods, embedding-anomaly approaches, source-reliability frameworks, multi-document consistency defenses, or poisoning-attribution systems. Consequently, the manuscript does not adequately establish which components of [SYSTEM] are novel, which extend existing techniques, or why the selected baselines appropriately represent the state of the field. This omission is especially important because the manuscript makes several strong positioning claims. It states that no existing RAG security system operationalizes the proposed value-conditioned objective, that [SYSTEM] is the first RAG security framework grounded in Service-Dominant Logic, and that it is the only evaluated system capable of identifying individual adversarial documents at query time. The first two claims may be supportable, but the current review of the literature does not provide enough evidence for the reader to assess them. The third is explicitly limited to the systems selected for the experiment, yet it receives considerable emphasis throughout the abstract, introduction, results, discussion, and conclusion. The manuscript should distinguish between being the only selected baseline that emits a particular output and being the only existing framework capable of that function. A concise comparison of related systems would substantially strengthen the paper. The comparison should identify whether each system operates offline, during retrieval, before generation, or after an attack is observed; whether it detects attacks at the query, document, chunk, retrieval-set, or generated-output level; which attack classes it addresses; whether it incorporates source reliability, provenance, or cross-document consistency; and whether it supports document attribution or governance reporting. Relevant studies the authors may wish to consider include: • RAGuard - Secure Retrieval-Augmented Generation against Poisoning Attacks: Expands the initial retrieval set and applies chunk-wise perplexity and text-similarity filtering to identify and remove poisoned texts at query time. It is a particularly important comparator because, like [SYSTEM], it makes document-level or chunk-level filtering decisions before generation. (https://arxiv.org/abs/2510.25025) • ReliabilityRAG - Effective and Provably Robust Defense for RAG-based WebSearch: Uses document-reliability signals and a contradiction graph to identify a consistent subset of retrieved documents and filter potentially malicious sources. Its use of document reliability is especially relevant to [SYSTEM]'s source-trust component. (https://arxiv.org/abs/2509.23519) • Directional Relative Shifts - Understanding Data Poisoning Attacks for RAG: Insights and Algorithms: Proposes an embedding-space defense that detects poisoned entries through directional distribution shifts associated with successful attacks. It is relevant to [SYSTEM]'s embedding-anomaly and vector-database-manipulation claims. (https://openreview.net/pdf?id=2aL6gcFX7q) • RAGForensics - Traceback of Poisoning Attacks to Retrieval-Augmented Generation: Uses iterative retrieval and LLM-guided inspection to identify specific poisoned texts responsible for an observed attack. Although it is primarily a traceback system rather than a preventive query-time filter, it is relevant to claims about document-level attribution. (https://arxiv.org/abs/2504.21668) • D-SCAN - When Context Bites: Detecting RAG Poisoning via Document-Level Attention Collapse: Monitors generator attention dynamics for a collapse pattern associated with poisoned context. It provides a useful contrast because detection occurs through generator behavior rather than document-content or source-trust scoring. (https://dl.acm.org/doi/epdf/10.1145/3805712.3809904) • Benchmarking Poisoning Attacks against Retrieval-Augmented Generation: Evaluates multiple poisoning attacks and defense mechanisms across different datasets and RAG configurations. This work could help justify the selected
baselines and situate the evaluation within the broader defense landscape. (https://arxiv.org/abs/2505.18543) The authors need not reproduce each framework experimentally, but they should discuss the closest alternatives and explain why their selected baselines are appropriate. Such a comparison may reveal that [SYSTEM]'s more defensible contribution is not query-time document filtering by itself, but the integration of value-sensitive thresholds, dynamic source trust, document-level decisions, and governance signals. Section 2 could be revised accordingly or retitled to reflect its present role as background, attack taxonomy, and theoretical foundation, with a compact discussion of comparable defenses and the resulting research gap added to the introduction. The system description should then be clarified before the evaluation is interpreted. Figure 1 currently provides little information beyond the Layer 1 through Layer 4 sequence and labels for three attack entry points. It does not show how the components described in Section 4 interact. A more useful architecture diagram would show query screening, embedding and FAISS retrieval, the retrieved document set, the cross-document encoder, risk, impact, and relevance heads, Bayesian source-trust calibration, Layer 3 filtering, accepted context, generation, governance reporting, and the feedback path used to update source trust. Annotating the four layers and attack entry points on that architecture would make the implementation substantially easier to understand. Table 1 should also span both columns because its current narrow formatting breaks short phrases across multiple lines and obscures the relationship among attack method, detection layer, and risk interaction. The mathematical description of the filtering process also appears to require correction or clarification. Section 4.1.3 states that a document passes when , where is the predicted probability that the document is adversarial. Equation 10 lowers when domain risk is high and source trust is low. Under the stated pass rule, lowering increases , permitting documents with higher adversarial probabilities to pass. For example, reducing from .65 to .45 increases the allowable risk score from .35 to .55. This appears to loosen the filter in the circumstances where the text says it becomes more restrictive. The authors should verify whether the pass rule, threshold equation, or interpretation has been reversed and confirm that the equations match the implementation used to produce the reported results. Equation 5 also requires a clearer interpretation. The combined score increases with , which represents benignness, but also increases with impact and relevance. It is therefore unclear whether a higher value of represents safety, risk, priority, or another decision quantity. The manuscript does not clearly explain how affects the Layer 3 decision, which is described primarily through and . The relevance head appears in the architecture and combined score but not in the training loss shown in Equation 6. The score weights are also not reported, and the same notation appears to be used for both score weights and loss weights. These may be notation or reporting issues rather than implementation errors, but they should be resolved because these equations define the framework's central value-aware mechanism. The dynamic trust loop is another promising component that requires additional operational explanation. Equations 7 and 8 update source trust using a reliability signal r, but the manuscript does not define how this signal is obtained after a live retrieval event. If r comes from the risk model's own decision, the system may reinforce its own errors: a legitimate document incorrectly classified as malicious reduces source trust, which then affects subsequent filtering decisions. If r comes from human review, downstream outcomes, administrator confirmation, or known labels, the process is not fully automatic and the associated governance workflow should be described. Figure 2 illustrates how the trust equation behaves once a source is designated as compromised, but it does not establish how the system independently determines that a compromise occurred. This ambiguity is closely connected to a practical issue that the manuscript does not address: distinguishing malicious document modification from a legitimate correction or update. The introductory example contrasts a legitimate 24.7 million profit with a fabricated 8.3 million loss, but an enterprise repository may contain a later accounting restatement, corrected filing, revised clinical protocol, or amended legal policy. Semantic contradiction or numerical replacement alone cannot establish which document is authoritative. A new document may be anomalous but correct, while a previously trusted source may be compromised. The framework should therefore explain how it incorporates document provenance, authorized authorship, version history, temporal validity, source authentication, cross-source corroboration, or human adjudication. Source-level trust alone does not resolve the issue because legitimate new sources begin with limited history, while compromised trusted sources may retain high trust until sufficient negative evidence accumulates. The manuscript should clarify the assumptions under which a correction is labeled as malicious, how authorized updates enter the corpus, how superseded documents are handled, and how erroneous trust penalties can be reversed. This is central to the proposed enterprise use case and can be addressed through architectural and governance clarification. The baseline evaluation is the most significant methodological concern. The F1 comparison evaluates a capability that only [SYSTEM] was designed to provide. Standard RAG performs no security detection, Input Filtering RAG examines the query rather than the retrieved documents, and Adversarial Training RAG cleans the corpus before inference. None produces per-document inference-time labels. Their reported F1 values of zero therefore do not represent unsuccessful document classification; they indicate that these systems do not emit the output required for the metric. The Adversarial Training RAG baseline makes the problem particularly clear. Table 2 reports a detection rate of 1.00 and poison pass rate of 0.00 in every domain, meaning that no poisoned documents remain available to influence generation. Nevertheless, the system is assigned F1 = 0 because TP, FP, and FN are all zero at inference time. In this circumstance, F1 is undefined or not applicable rather than a meaningful zero-performance result. Figure 3 then places this system at zero beside [SYSTEM], creating the visual impression that [SYSTEM] substantially outperforms it even though the adversarial-training baseline prevents all poisoned documents from reaching inference. The authors acknowledge that the baselines have zero F1 “not because they perform poorly” but because they do not produce per-document flags. That qualification is appropriate, but it does not resolve the comparability problem. The manuscript should separate two questions: whether a system can identify and report a specific document at query time, and whether it reduces the passage or downstream influence of poisoned documents. The first is an architectural capability comparison; the second is a security-performance comparison. F1 can be reported for [SYSTEM]’s document-level classifier, but it should not be used to rank systems that do not perform the same task. The common outcomes in Table 2 provide a substantially more restrained picture. In the medical domain, [SYSTEM] improves detection rate from .769 to .928 and reduces poison pass rate from .231 to .072 relative to Standard RAG and Input Filtering RAG. This is a meaningful descriptive improvement. In the financial domain, detection rate changes from .894 to .896 and poison pass rate from .106 to .105. In the legal domain, detection rate changes from .924 to .925 and poison pass rate from .076 to .075. The financial and legal differences are negligible relative to the reported standard deviations. The manuscript acknowledges that these gains fall within noise, but the F1 comparison and Figure 3 visually obscure how limited the common performance improvement is. The baseline narrative should therefore be reframed around outcomes that are available across systems. Figure 3 should be removed because it duplicates Table 2 and presents unavailable document-labeling outputs as ordinary zero scores. Table 2 should instead distinguish common security outcomes, such as poison pass rate, from [SYSTEM]-specific document-classification metrics. F1 should be marked as not applicable for systems that do not emit inference-time document labels, while [SYSTEM]’s precision, recall, and F1 can be reported separately. The interpretation of detection rate also requires clarification. In Table 2, DR and PPR sum to 1.00 for every system and condition, including Standard RAG, which the manuscript states has no detection mechanism. DR therefore appears to be defined as the complement of poison pass rate rather than as the proportion of poisoned documents actively identified by a detector. If so, it is not an independent metric, and the term “detection rate” is misleading for systems that merely fail to retrieve a poisoned document or remove it offline. The authors should provide the exact definition and computation of DR and consider renaming it as poison exclusion or blocking rate. The comparative discussion should then avoid implying that Standard RAG performs document detection. The evidence for domain proportionality is also incomplete. The manuscript’s central premise is that higher-risk domains should receive stronger protection, and the authors interpret the medical-domain improvement as support for this hypothesis. However, domain content, linguistic characteristics, attack examples, classifier difficulty, source distributions, and assigned risk weights all vary simultaneously. The medical, financial, and legal conditions therefore do not isolate the effect of the domain-risk parameter. The manuscript itself explains that legal detection is difficult because legitimate legal writing contains conditional language, hedging, and authority references that resemble adversarial correction text. That explanation is plausible, but it also demonstrates that domain-specific detection difficulty may dominate the intended risk weighting. Legal receives a higher risk weight than financial, yet its precision, recall, and F1 are substantially lower. The current experiment therefore cannot establish that the assigned weights caused the observed ordering or that the framework successfully scales protection across all three domains. The domain-risk weights themselves require justification. The manuscript assigns 1.00 to medical, .92 to legal, and .88 to financial but does not explain how these values were derived, who selected them, or whether they reflect empirical loss estimates, expert judgment, regulatory classifications, organizational risk tolerances, or merely illustrative design choices. It is unclear why the difference between legal and financial is .04 rather than .10 or .20, or whether the same ordering would apply across different applications within each domain. A medical scheduling system and a clinical dosage assistant may present very different risks, just as a routine financial reporting tool and a high-value trading system may not belong in the same risk category. As currently presented, the values appear author-assigned and closely clustered. Under Equation 10, the resulting threshold differences may be small, particularly as source trust increases. The manuscript should explain the provenance, interpretation, and governance of the weights; identify who would assign or revise them in practice; and characterize them as illustrative unless they were derived through a defensible risk-assessment process. The results support a narrower conclusion: [SYSTEM] produced a substantial improvement in the highest-risk medical condition but did not demonstrate meaningful improvement in the financial or legal conditions. This constitutes partial evidence consistent with the proportionality hypothesis, not general validation of proportional security behavior. The three value-sensitive metrics also require clearer definition and interpretation. Domain Proportionality Score is defined as an average over domains, but Table 3 reports separate values for each domain. The manuscript should explain how the per-domain values are derived and what constitutes the “ideal” threshold against which actual behavior is compared. If the ideal threshold is generated from the same formula and assigned weights used by the framework, DPS may measure conformity with the authors’ selected parameters rather than correspondence with organizational harm. Trust Calibration Accuracy combines expected calibration error with sharpness, but the weighting parameter, calibration procedure, binning method, and operational definition of actual source reliability are not reported. Because a model can be sharply confident and still wrong, ECE and sharpness should also be reported or interpreted separately. Governance Signal Quality combines alert precision, explainability, and timeliness, but the Explainability Index and Timeliness Score are not sufficiently defined for replication. The interpretation of medical GSQ = 1.00 should also be corrected. The manuscript states that this means every bad document was caught, although medical recall is .924 and poison pass rate is .072. Because GSQ appears to include alert precision but not recall, a perfect score may mean that every issued alert was accurate, understandable, and timely, not that every poisoned document was detected. Table 3 and Figure 4 also substantially duplicate the same DPS, TCA, and GSQ results. The table is the more useful presentation because it preserves the exact means and standard deviations. Figure 4 could therefore be removed, with the prompt-injection null results stated in the accompanying text or incorporated into the table if a direct comparison is necessary. The evaluation also does not cover all attacks included in the stated threat model. Vector-database manipulation is presented as a supported attack class and is mapped to Layers 1 and 2 in Table 1, but the six experimental conditions cover only document poisoning and prompt injection. Claims concerning detection of crafted embeddings should therefore be characterized as architectural proposals rather than evaluated capabilities. The assertion that the unintended increase from a 5% to an approximately 8% poison rate does not affect relative comparisons also requires evidence. Changes in attack prevalence can alter precision, F1, trust updates, and threshold behavior. The authors should either provide a sensitivity analysis across poison rates or qualify the claim. Finally, the implications for practice are not sufficiently connected to the study’s operationalized results. Table 4 specifies threshold values, review cadences, and escalation criteria for high, medium, and low-risk deployments, but the manuscript does not explain how these recommendations were derived from the reported DPS, TCA, GSQ, detection-rate, or poison-pass-rate results. The values appear to be author-assigned rather than empirically estimated, optimized, or validated within the experiment. For example, the paper does not show why and are appropriate for high-risk systems, why GSQ thresholds of .70, .50, and .30 should trigger different responses, or why review should occur in real time, daily, or weekly across the three risk categories. Practical recommendations should follow from the study’s measured outcomes, sensitivity analyses, or a clearly articulated governance framework. In the absence of such derivation, Table 4 should be presented as an illustrative configuration rather than evidence-based operating guidance, and the manuscript should explicitly distinguish parameters demonstrated by the study from values proposed by the authors for future validation. Overall, [SYSTEM] is an interesting and potentially valuable framework. Its value-aware framing, dynamic trust mechanism, and emphasis on governance signals are original and likely to stimulate productive conference discussion. The current evidence supports the feasibility of producing query-time document alerts and shows a meaningful descriptive improvement in the medical-domain poisoning condition. However, the synthetic corpus, limited experimental conditions, and small number of trials do not yet establish that the observed behavior will generalize across different enterprise repositories, attack strategies, source distributions, organizational risk models, or deployment settings. The paper would be substantially strengthened by providing a genuine related-work positioning, clarifying the architecture and decision logic, reframing the baseline comparison, explaining the provenance and operation of the value and trust mechanisms, and narrowing the conclusions to the results actually demonstrated. Suggested revisions: • Strengthen the related-work positioning: Section 2 currently functions primarily as background, attack taxonomy, and theoretical foundation. Add a concise comparison of existing runtime poisoning defenses, document- or chunk-level filtering methods, embedding-anomaly approaches, source-reliability systems, and poisoning-attribution methods. Clearly identify what [SYSTEM] adds beyond those systems. Alternatively, retitle Section 2 to reflect its current content and introduce the comparative literature and gap in the introduction. • Clarify the novelty claim: Distinguish the statement that [SYSTEM] is the only selected baseline that emits per-document query-time labels from any broader claim that it is the only existing system capable of runtime document identification. Emphasize the integration of value-sensitive thresholds, dynamic source trust, and governance reporting as the primary contribution. • Address legitimate document updates: Explain how [SYSTEM] distinguishes poisoning from authorized corrections, restatements, revised policies, or other valid knowledge changes. Discuss the roles of provenance, version history, source authentication, temporal validity, corroboration, and human review. • Replace Figure 1: Provide a substantive system architecture diagram showing retrieval, document scoring, trust calibration, filtering, context assembly, generation, governance reporting, and the trust-update feedback loop, with Layers 1 through 4 and attack entry points annotated. • Reformat Table 1: Expand the table across both text columns to improve readability. • Verify the threshold equations: Reconcile the pass condition with Equation 10, which appears to loosen the gate when risk is high and trust is low. Confirm that the equations, implementation, and narrative describe the same decision logic. • Clarify the combined score and training objectives: Define the direction and use of S(di), report the score weights, explain how the relevance head is trained, and distinguish the scoring weights from the loss weights. • Define the reliability signal: Explain how r is obtained after each retrieval event and whether it reflects model output, human adjudication, known ground truth, or downstream feedback. Acknowledge the possibility that erroneous flags could reinforce later trust decisions. • Reframe the baseline comparison: Separate architectural capability from security performance. Do not interpret missing document-level outputs as failed classification. • Revise Table 2, the treatment of F1, and remove Figure 3: Figure 3 repeats the results in Table 2 while visually presenting unavailable document-level F1 values as ordinary zero-performance scores. Remove the figure and revise Table 2 to distinguish metrics that are comparable across all systems, such as poison pass rate, from [SYSTEM]-specific document-classification metrics. Report F1 as not applicable for systems that do not produce inference-time document labels, present [SYSTEM]'s precision, recall, and F1 separately, and avoid representing Adversarial Training RAG as unsuccessful when it prevents all poisoned documents from reaching inference. • Clarify DPS, TCA, and GSQ: Provide the missing operational definitions and constituent parameters, explain how per-domain DPS values relate to the aggregate equation, and correct the interpretation of medical GSQ = 1.00 so that it does not imply perfect recall when poisoned documents were still missed. • Clarify detection rate: Define how DR is computed and explain why systems without a detection mechanism receive non-zero values. If DR is simply 1-PPR, rename it to reflect poison exclusion or blocking and avoid reporting it as an independent metric. • Consolidate Table 3 and Figure 4: Table 3 and Figure 4 substantially duplicate the DPS, TCA, and GSQ results. Retain a revised table because it reports the exact means and standard deviations more clearly and compactly, and remove Figure 4. The prompt-injection null results currently conveyed by the figure can be stated in the accompanying text or incorporated into the table if the authors believe a direct comparison across attack types is necessary. • Narrow the proportionality conclusion: State that the results provide partial support in the medical condition. Financial and legal performance is effectively unchanged relative to Standard RAG under the common metrics. Discuss whether the assigned risk weights and threshold adjustment exert enough influence to overcome differences in domain-specific detection difficulty. • Calibrate the practice guidance: Present the thresholds, review cadences, and escalation values in Table 4 as illustrative proposed configurations rather than validated enterprise operating standards. • Narrow the final claims: Frame [SYSTEM] as a promising exploratory prototype that demonstrates query-time document attribution and partial value-sensitive behavior in the medical condition. Avoid general claims of proportionality, comparative superiority, or deployment readiness that are not supported across all three domains.