R.16: Post-authentication KV boundaries: block-splice replay, approximate-verification impossibility, and hybrid SSM asymmetry
ReleasedAdding per-block KV MACs does not finish the job: unchained block MACs allow 30/36 zero-bit-flip block-splice hijacks, benign INT8/FP8/CPU-vs-MPS/Q4_0 drift dwarfs 12/12 adversarial hijacks by 2x to 6,069x (ruling out approximate post-sign verification), and hybrid SSM-Transformer models exhibit an attention-ratio asymmetry where locking Attention KV cuts hijacks to 1/12 on Zamba2 (6/38 Attn) but still leaks 8/12 through Mamba-1 states on Jamba-3B (2/28 Attn).
- 30/36 (0 fl)
- 35/36 CPU
- 1/12 @ 160
- 8/12 @ 160
Summary
- Unchained per-block KV MACs do not stop cross-session block splicing: Even with
0bit-flips and 100% passing per-block HMAC-SHA256 tags, splicing3to6legitimately prefilled 16-token blocks from a benign math-audit session into a victim prefix achieves30/36MPS &30/36CPU tool hijacks across three families (12/12Qwen3-1.7B,12/12Granite-3.3-2B,6/12Phi-4-mini-3.8Bwith0/12clean retained). Prefix-chained Merkle/CBC MACs binding(H_{i-1} || pos_i || block_i)reject 100%. - Approximate KV verification is empirically impossible under post-sign quantization or hardware drift: We tested whether projecting KV value changes onto the exact tool-token unembedding subspace (
V -> W_O -> W_U[tool_tokens]) could separate targeted hijacks from benign serving drift. That defensive hypothesis was falsified across all three families: a12/12mantissa hijack is1.8xto49.0xsmaller in global L2 and3.8xto6,069xsmaller in readout-subspace L2 than benignINT8,FP8-E4M3,CPU vs MPSbfloat16, orQ4_0drift. Combining the hijack with FP8 round-trip (Adv + FP8) retains35/36MPS & CPU hijacks while shifting FP8 readout L2 by only+0.0001%to+0.04%. Serving stacks must quantize into a canonical wire format before cryptographic signing. - Hybrid SSM + Attention models exhibit an architecture-dependent state asymmetry: Comparing Mamba-2 + Shared Attention (
Zyphra/Zamba2-1.2B-Instruct-v2,6/38Attention layers) against Mamba-1 + Attention (ai21labs/AI21-Jamba-Reasoning-3B,2/28Attention layers) shows Attention KV is always the sharpest hijack lever (12/12in96flips in both models). Locking 100% of Attention KV holdsZamba2to1/12at160flips (jointputs94/96flips in Attention KV), because exponential state decay damps prefilled SSM edits across user query tokens. On Mamba-dominantJamba-3B(ssm/kv = 8.39x), however,ssm_onlybreaks through to8/12MPS & CPU by160flips (0/720hybrid controls). Hybrid serving engines must authenticate both Attention KV blocks and recurrentssm_states.
1. Validly-signed block-splice replay (0 bit-flips)
PagedAttention and disaggregated KV stores (vLLM, LMCache, Mooncake) manage caches as fixed-size 16-token blocks. If a serving stack signs each block independently (MAC_i = HMAC(K, block_i)) without binding the preceding prefix chain and position index, an adversary who can redirect block-table pointers (as in recent PagedAttention fault attacks) or swap blocks in a shared store needs zero tensor bit-flips to hijack execution.
| Model (Family) | Baseline Clean | Spliced Blocks (k / total) |
Bit-Flips | Unchained MAC | Prefix-Chained MAC | Victim calc Hijack (MPS / CPU) |
|---|---|---|---|---|---|---|
Qwen3-1.7B |
11/12 (0/12 calc) |
3 / 30 (10%) |
0 |
PASS (100%) | REJECT (100%) | 12/12 / 12/12 |
Granite-3.3-2B |
12/12 (0/12 calc) |
6 / 27 (22%) |
0 |
PASS (100%) | REJECT (100%) | 12/12 / 12/12 |
Phi-4-mini-3.8B |
12/12 (0/12 calc) |
4 to 8 / 27 (15 to 30%) |
0 |
PASS (100%) | REJECT (100%) | 6/12 / 6/12 (0/12 clean) |
| Combined | 35/36 |
3 to 6 blocks |
0 |
100% PASS | 100% REJECT | 30/36 / 30/36 |
2. Approximate-verification impossibility bound across quantization & device drift
Bit-exact cryptographic MACs break whenever an inference stack re-quantizes a cached prefix (BF16 -> FP8/INT8/Q4) or compares against recomputation on a different device (CPU vs GPU). A tempting workaround is approximate verification: accept a KV cache if its L2 distance or its projection onto the tool-token unembedding subspace (V -> W_O -> W_U[tool_tokens]) stays below the benign quantization noise floor. Across all three Transformer families, that approach fails by orders of magnitude:
| Model | Condition | Hijack (MPS / CPU) | Global L2 | Readout-Subspace L2 | Drift Ratio vs Adv (gL2 / rL2) |
|---|---|---|---|---|---|
Qwen3-1.7B |
Adversarial (160 fl) |
12/12 / 12/12 |
77.2 |
0.058 |
1.0x / 1.0x |
Qwen3-1.7B |
Benign INT8 / FP8 / CPU-MPS / Q4_0 |
0/12 each |
496 / 944 / 1,636 / 3,778 |
25.6 / 90.6 / 166.2 / 353.8 |
6.4x to 49x / 440x to 6,069x |
Qwen3-1.7B |
Adv + FP8-E4M3 |
11/12 / 11/12 |
947.3 (+0.3%) |
90.63 (+0.0001%) |
Buried in FP8 |
Granite-3.3-2B |
Adversarial (96 fl) |
12/12 / 12/12 |
92.6 |
0.410 |
1.0x / 1.0x |
Granite-3.3-2B |
Benign INT8 / FP8 / CPU-MPS / Q4_0 |
0/12 each |
237 / 585 / 837 / 3,348 |
2.85 / 11.58 / 39.66 / 43.95 |
2.6x to 36x / 7.0x to 107x |
Granite-3.3-2B |
Adv + FP8-E4M3 |
12/12 / 12/12 |
591.6 (+1.2%) |
11.58 (+0.04%) |
Buried in FP8 |
Phi-4-mini-3.8B |
Adversarial (160 fl) |
12/12 / 12/12 |
24.8 |
0.201 |
1.0x / 1.0x |
Phi-4-mini-3.8B |
Benign INT8 / FP8 / CPU-MPS / Q4_0 |
0/12 each |
104 / 197 / 165 / 1,098 |
1.80 / 6.61 / 9.92 / 24.78 |
4.2x to 44x / 9.0x to 124x |
Phi-4-mini-3.8B |
Adv + FP8-E4M3 |
12/12 / 12/12 |
198.8 (+0.8%) |
6.61 (+0.04%) |
Buried in FP8 |
Why do targeted flips vanish inside even a targeted readout subspace? Because gradient pursuit concentrates flips in Key (K) tensors and early-layer Value (V) tensors whose nonlinear softmax-attention amplification steers the output logits with minimal Euclidean footprint. Consequently, any tolerance ball wide enough to tolerate INT8, FP8, Q4_0, or cross-device bfloat16 reductions will silently admit a 12/12 tool hijack. Exact cryptographic MACs must therefore be computed over the post-quantization canonical wire bytes, with zero mutation permitted after signing.
3. Hybrid SSM + Attention state asymmetry (Zamba2-1.2B vs Jamba-3B)
Modern serving architectures are adopting hybrid linear-attention / SSM + Attention models whose runtime cache contains both variable-length Attention KV tensors and fixed-size recurrent ssm_states. We tested two distinct hybrid designs under identical strict bfloat16 single-mantissa XOR budgets (12/12 clean exact baselines, 0/720 matched random controls):
| Hybrid Model (Architecture) | Layer Split (Attn %, ssm/kv) |
attn_only (100% SSM Locked) |
ssm_only (100% Attn Locked) |
joint (All Layers Unlocked) |
Random Controls |
|---|---|---|---|---|---|
Zyphra/Zamba2-1.2B-Instruct-v2 (Mamba-2 + Shared Attn) |
32 Mamba-2 + 6 Attn (15.8%, 1.06x) |
12/12 MPS & CPU (96 fl; 10/12 @ 32) |
1/12 MPS & CPU (160 fl; 9/12 clean) |
12/12 MPS & CPU (96 fl: 94/96 KV, 2/96 SSM) |
0/360 |
ai21labs/AI21-Jamba-Reasoning-3B (Mamba-1 + Attn) |
26 Mamba-1 + 2 Attn (7.1%, 8.39x) |
12/12 MPS & CPU (96 fl; 254K KV elems) |
8/12 MPS & CPU (160 fl; 1/12 @ 96, 6/12 @ 128) |
0/12 MPS & CPU (160 fl: 151 SSM collapses routing) |
0/360 |
Two complementary laws emerge:
- Attention KV is always the highest-leverage attack surface: Even when Attention makes up just 2 of 28 layers (
7.1%,253,952total elements) inJamba-3B,96mantissa flips inside those two layers hit12/12MPS & CPU hijacks. Static Attention KV entries do not decay across subsequent user query tokens. - Attention-only locking is not uniformly sufficient: In balanced hybrids (
Zamba2), exponential state decay damps prefilled Mamba-2ssm_stateflips across the query suffix, holdingssm_onlyto1/12at160flips. In Mamba-dominant hybrids (Jamba-3B), however, the 26 Mamba-1 layers retain enough semantic leverage to break through to8/12by160flips even when 100% of Attention KV is immutable. Furthermore, because recurrent states superpose system policies and user tokens inside one fixed-size matrix, token-range locking (R.12) cannot isolate schemas inside SSM layers.
4. Negative probes (honest null results on write-free divergence)
In companion write-free probes (0 bit-flips, 100% valid prefill) on Qwen3-1.7B and Granite-3.3-2B:
- Eviction latent ghosting: Deleting an untrusted prompt-injection turn from the KV cache while keeping a benign subsequent bridge turn did not trigger write-free
calchijacks (0/12on both models), though evicting without re-prefilling a 3-turn bridge silently degraded clean routing (7/12 -> 0/12on both models). - Standalone RAG KV stitching (TurboRAG
0%/ CacheBlend15%recompute): Precomputing an adversarial retrieved document standalone and stitching it with RoPE re-indexing actually broke the indirect prompt injection (12/12 -> 0/12onQwen3-1.7B,5/12 -> 0/12onGranite-3.3-2B) rather than amplifying it.
5. Practical engineering checklist
- Prefix-chain every KV block MAC: Compute
H_i = HMAC(K, H_{i-1} || tenant_salt || model_id || pos_i || block_i)so validly signed blocks cannot be spliced across sessions or positions. - Quantize before signing: Run
FP8/INT8/Q4conversion into a canonical wire format before MAC computation and reject any post-sign mutation; do not rely on L2 or subspace approximate verification. - Authenticate full hybrid state: On hybrid SSM-Transformer engines (Zamba2, Jamba, Granite-4-H), bind both Attention KV chains and recurrent
ssm_states/conv_statessnapshots into the same session MAC. - Keep host-side enforcement primary: Pair stateful authentication with R.15’s Stage-2 attention bottleneck and host-side tool allowlists plus argument validation.
- Reproducibility:
bash checks/verify_all.shinsymbolon-latent-channels(v2.2) runschecks/verify_r16_postauth_hybrid.py(360audited rows across5models,0/1,440controls,3/3negative fault-injection tests, part of22public recounts and31negative tests).
Changelog
- rev. 01 (2026-11-29): Initial release (
v2.2) covering 3-family signed block-splice replay, the approximate-verification impossibility bound acrossINT8/FP8/CPU-vs-MPS/Q4_0, and 2-architecture hybrid SSM + Attention state asymmetry (Zamba2-1.2BandAI21-Jamba-Reasoning-3B).
Three post-authentication KV and hybrid-state boundaries
Destructive controls
Each arm removes one part of the attack or isolates one variable.
- Matched random single-mantissa-bit XOR across all 5 models (3 Transformers + 2 Hybrids)0/1,440 [0.000, 0.0026] calc HTTP 200 executions (0/720 Transformers + 0/360 Zamba2 + 0/360 Jamba-3B)
Removes: the attacker-chosen bit coordinates by flipping an equal count of random mantissa bits across the unlocked KV or SSM tensors.
- Clean baseline & benign quantization utility checkBaseline 0/60 calc, 59/60 exact clean across all 5 models; benign INT8/FP8/CPU/Q4_0 trigger 0/144 calc hijacks
Removes: format-collapse artifacts by requiring 0/12 calc and 11-12/12 exact clean routing on unperturbed and benign quantized caches.
- Independent CPU bfloat16 cross-check across all 5 models100% exact integer parity on every run (30/36 splice, 36/36 adv, 35/36 adv+FP8, Zamba2 1/12 & 12/12, Jamba-3B 8/12 & 12/12)
Removes: Apple Silicon MPS arithmetic drift by re-evaluating every spliced, adversarial, Adv+FP8, and hybrid state on CPU.
Gates
| Gate | Preregistered condition | Result | Record |
|---|---|---|---|
| [Attack] Validly-signed 16-token block-splice replay defeats unchained per-block MACs | Splicing 3 to 8 legitimately prefilled, validly signed 16-token KV blocks from a benign math-audit session into a victim prefix with 0 bit-flips across Qwen3-1.7B, Granite-3.3-2B, and Phi-4-mini-3.8B. Measured: 100% of unchained per-block HMAC-SHA256 tags pass while victim tool hijacking reaches 12/12 [0.76, 1.00] on Qwen3 (k=3/30 blocks), 12/12 [0.76, 1.00] on Granite (k=6/27 blocks), and 6/12 [0.25, 0.75] on Phi-4-mini (k=4-8/27 blocks, 0/12 clean retained) = 30/36 MPS & 30/36 CPU. Prefix-chained Merkle/CBC MACs reject 100%. | Passed | verify_r16_postauth_hybrid.py |
| [Impossibility bound] Benign quantization and device drift dwarf 12/12 mantissa hijacks | Comparing 12/12 adversarial mantissa hijacks against benign INT8 per-channel, FP8-E4M3, CPU-vs-MPS bfloat16, and Q4_0 drift in both global L2 and unembedding readout subspace (V -> W_O -> W_U[tool_tokens]) across 3 Transformer families. Measured: adversarial hijacks are 1.8x to 49.0x smaller in global L2 and 3.8x to 6,069x smaller in readout-subspace L2 than every benign transform; Adv + FP8 retains 35/36 MPS & CPU (11/12 Qwen3, 12/12 Granite, 12/12 Phi-4-mini) while shifting FP8 readout L2 by only +0.0001% to +0.04% (0/720 controls). | Passed | verify_r16_postauth_hybrid.py |
| [Hybrid family 1] Zamba2-1.2B (32 Mamba-2 + 6 shared Attention) state asymmetry | Comparing strict bfloat16 mantissa hijacking across ssm_only (100% Attention KV locked, 160 fl), attn_only (100% SSM locked, 96 fl), and joint (unlocked, 96 fl) on Zyphra/Zamba2-1.2B-Instruct-v2 (baseline 12/12 clean, 0/12 calc). Measured: attn_only hits 12/12 [0.76, 1.00] MPS & CPU (10/12 @ 32 fl); joint hits 12/12 MPS & CPU placing 94/96 (97.9%) flips in Attention KV; locking Attention KV (ssm_only) collapses hijacking to 1/12 [0.01, 0.35] MPS & CPU (9/12 clean) vs 0/360 controls. | Passed | verify_r16_postauth_hybrid.py |
| [Hybrid family 2] AI21-Jamba-Reasoning-3B (26 Mamba-1 + 2 Attention) leaks through SSM states | Exact same protocol on ai21labs/AI21-Jamba-Reasoning-3B (only 2/28 Attention layers, ssm/kv = 8.39x; baseline 12/12 clean, 0/12 calc). Measured: attn_only hits 12/12 [0.76, 1.00] MPS & CPU in 96 flips across just 253,952 KV elements; ssm_only (100% Attention locked) stays at 1/12 through 96 flips then breaks through to 6/12 @ 128 fl and 8/12 [0.39, 0.94] MPS & CPU @ 160 fl vs 0/360 controls. | Passed | verify_r16_postauth_hybrid.py |
Figures


