Detectable Epistemic Attack Layers: A Coverage Theorem and Standardized Harness for Conversation-History Integrity
Organizations: Independent Researcher, Tokyo, Japan · Independent Researcher, Jakarta, Indonesia
Abstract
Conversation history is infrastructure: deployed language models rely on application layers to store and reinject prior turns, and that stored state is writable. We formalize session-level contamination by attack layer, state a coverage theorem, and measure its scope: each deployment-layer verification tier covers exactly its layer and is sound with respect to the others; instruction overrides are not detectable without false positives; and composite vectors evade per-fragment verification. A standardized harness applied to eight mechanism families across 3,249 sessions and three model families makes these claims checkable. First, pattern-based detection pays a measured false-positive price: the classic defenses flag 35 to 50 percent of benign sessions, and the naive refusal floor reaches only 2.4 percent attack-cell adoption while destroying 33 to 100 percent of benign turns, whereas provenance-gated channel separation achieves adoption at or below 1.2 percent with zero false positives and zero utility loss. Second, in the exploratory instruction-override extension, the gates' boundary is a cliff: directives rephrased without shape markers bypass them at control-equivalent rates, 47.7 to 49.5 percent against 0.0 percent for the shaped class, placing that class in the model-internal lane. Third, the deterministic core is storage-layer detection at 126 of 126 per model with zero false positives. External anchors reproduce published attack pressure, with PoisonedRAG falling from 70 to 0 percent under the full stack. For practitioners: authenticate stored history and content provenance with deterministic tiers, scope instruction-layer mitigation to provenance-gated designs whose measured benign cost is zero, and monitor composition at the trajectory level rather than per fragment. All protocols and acceptance criteria are pre-registered; the stack and harness are released.
Figures & tables
| Family | Mechanism | Layer scope | Measured on | Headline result (Table 4 / Sections 5-8) |
|---|---|---|---|---|
| Cryptographic integrity | M1 plain hash-verify | L1 | A, C, clean | 100% detection, 0% FP |
| M2 signed transitions | L1 | A, C | 100% detection, 0% FP | |
| M3 ledger + simulated TEE | L1 | A, C | 100% detection, 0% FP | |
| Classic defenses | M4 delimiter isolation | L2/L3 | A, C, clean | 10% on A, 100% on C, 45% clean FP |
| M5 sandwich prevention | L2/L3 | A, C, clean | 10% on A, 100% on C, 35% clean FP | |
| M6 instructional prevention | L2/L3 | A, C, clean | 10% on A, 100% on C, 35% clean FP |
| Cell / claim | strict | lenient | answerability |
|---|---|---|---|
| Gates (EXP-8 attack cell) | 0% | 0% | 0% |
| Shape cliff: shaped / escaped | 0% / 75% | 0% / 50% | 0% / 75% |
| Farma | 0% | 0% | 0% |
| Salami k=6 (sample rows) | 38% | 33% | 38% |
| Overall (300-row sample) | 15.3% | 14.3% | 14.0% |
| # | Type | Prediction (from theory) | Measured outcome | Status |
|---|---|---|---|---|
| P1 | deterministic | Lemma 1: T1 flags every byte-mutation, never a byte-identical history | 126 of 126 per model; Wilson LB 0.9704 at the 0.97 gate (pre-registered 2026-08-07, before runs) | Confirmed |
| P2 | deterministic | Lemma 1 soundness: zero flags on clean history | 0 flags in 600 sessions (n = 100 per protocol, two models); rule-of-three UB 0.5% < 3% gate | Confirmed |
| P3 | deterministic | Lemma 3: deterministic tiers are model-independent | Identical 126 of 126 on Gemini and GPT families | Confirmed |
| P4 | deterministic | Theorem 1: crypto-integrity covers L1, silent on L2/L3 | M1-M3: 100% on A, 0% on C | Confirmed |
| P5 | empirical | Theorem 1: classic defenses cover content, not storage | M4-M7: 10% on A, 100% on C; MR 1.7-5.0% on A vs 88.3-96.7% on C | Confirmed |
| P6 | empirical | Coverage implies misdirection collapse | Spearman -0.508 across the seven mechanisms (descriptive; n = 7, no significance claim) | Consistent (descriptive) |
| Mechanism | Detection A | Detection C | Clean FP | MR on A | MR on C |
|---|---|---|---|---|---|
| M1 hash | 100% | 0% | 0% | 1.7% | 98.3% |
| M2 signed | 100% | 0% | 0% | 1.7% | 100% |
| M3 ledger | 100% | 0% | 0% | 3.3% | 98.3% |
| M4 delimiter | 10% | 100% | 45% | 1.7% | 91.7% |
| M5 sandwich | 10% | 100% | 35% | 5.0% | 91.7% |
| M6 instructional | 10% | 100% | 35% | 3.3% | 96.7% |
| Experiment | Flagged sessions | Attribution (first blocking component) |
|---|---|---|
| EXP-1a (L1 audit) | 252 | T1, l1_hash: 252 of 252 (100%) |
| EXP-1c / 1c-neutral | 300 | T1, l1_hash: 300 of 300 (100%) |
| EXP-2 | 150 | T2a 60 (40%), T2b 60 (40%), T3 30 (20%); single-tier cells |
| EXP-4 | 40 | T1: 40 of 40 (100%) |
| EXP-5 | 524 | T1 mechanisms M1-M3 180 (34%); semantic filters M4-M7 344 (66%) |
| EXP-7a / 7b | 54 | T1 (M1/M2/M3): 54 of 54 (100%) |
| Coalition size k | Model | Adoption | Wilson 95% CI |
|---|---|---|---|
| 3 | Gemini-3.1 Flash-Lite | 19.5% (43/220) | [14.8, 25.3] |
| 6 | Gemini-3.1 Flash-Lite | 30.0% (66/220) | [24.3, 36.4] |
| 10 | Gemini-3.1 Flash-Lite | 34.1% (75/220) | [28.1, 40.6] |
| 6 | GLM-4.5-Air (reference) | 17.7% (39/220) | [13.2, 23.3] |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Domain | Gemini A | Gemini D | GLM A | GLM D |
|---|---|---|---|---|
| chemistry_long | 0.0% [0.0, 3.4] | 0.0% [0.0, 3.4] | 0.0% [0.0, 3.4] | 0.0% [0.0, 3.4] |
| chemistry_short | 0.0% [0.0, 3.4] | 0.0% [0.0, 3.4] | 0.0% [0.0, 3.4] | 0.0% [0.0, 3.4] |
| geo_long | 0.0% [0.0, 3.4] | 8.2% [4.4, 14.8] | 21.8% [15.1, 30.4] | 5.5% [2.5, 11.4] |
| geo_short | 0.9% [0.2, 5.0] | 5.5% [2.5, 11.4] | 2.7% [0.9, 7.7] | 30.9% [23.0, 40.1] |
| history_long | 0.0% [0.0, 3.4] | 21.8% [15.1, 30.4] | 0.0% [0.0, 3.4] | 0.9% [0.2, 5.0] |
| history_short | 0.0% [0.0, 3.4] | 0.0% [0.0, 3.4] | 0.0% [0.0, 3.4] | 3.6% [1.4, 9.0] |
LLM Security
Large language model (LLM) security studies attacks, privacy risks, and defenses across model training, inference, and deployment.
See all 352 papers