← Lab /AI/ML

Mirage reduces KV-cache timing side-channel to random guessing while keeping low latency

Mirage provably bounds timing leakage of KV-cache side-channels and achieves near-random-guessing accuracy

AI/ML arXiv 7 Nov 2026 Defense Prototype evidence

Published as “Mirage: Provable Defense Against LLM KV Cache Timing Side Channels with Topology-Aware Isolation”

Why it matters

Deployers can protect KV-cache side-channels without sacrificing the latency and throughput benefits of prefix sharing.

Summary

Mirage reduces KV-cache timing attack success rates to near zero (0.0-0.4%) while keeping median first-token latency within 1.5% of an undefended system and preserving throughput (up to 1.6× higher than isolation defenses). The evidence comes from three attacks on three model families, but a small equalization gap leaves a residual AUC of ~0.53, corresponding to ≤0.06 bits of leakage per probe.

What they found 4

  1. All three evaluated timing attacks are suppressed to near-zero success rates.

    “Mirage mitigates all three attacks using a single, unmodified policy. Across all models, OptiLeak’s success rate drops to exactly 0.0%, while EarlyBird falls to near-zero (0.0-0.2%). InputSnatch is similarly suppressed to ≤0.4% end-to-end.”

  2. Public-traffic latency overhead is negligible.

    “Its median TTFT remains within 1.5% of the undefended baseline (55.2 ms vs. 54.4 ms in a controlled 300-request trial).”

  3. Throughput remains comparable to an undefended system and far exceeds isolation baselines.

    “Mirage’s goodput tracks No Defense along the ideal line while per-tenant isolation saturates near 14 req/s; at 24 req/s Mirage sustains about 1.6× its throughput, matching the capacity ratio that Theorem 4 predicts.”

  4. Whole-trace timing distinguishers are reduced to chance.

    “Mirage effectively neutralizes this threat. Its whole-stream timeshift holds the ITL-only (0.53), whole-trace (0.56), and raw pertrace (0.58) classifiers near random chance.”

Caveats 5

  • A small residual timing signal remains: effective AUC is 0.53 ± 0.01, corresponding to an equalization gap δ_eq ≈0.06 bits per probe.
  • Although a negligible residual timing signal survives for individual tokens on larger models due to the equalization gap, the combined fields remain strictly at chance.
  • We assume a strong white-box adversary who knows Mirage’s full design and parameters ... but is not granted access to Mirage’s internal state
  • Low-and-slow evasion ... collapse to the guessing baseline in deployment
  • Mirage’s equalization gap leaves a residual of at most 0.06 bits per probe

What’s new here 4

  • Meters fan-out behavior instead of classifying content sensitivity.
  • Applies stream-level time shifting at the API gateway with provable equalization bounds.
  • Provides a plug-and-play module that adds no GPU overhead and retains cache reuse.
  • Generalizes the approach to semantic caches beyond KV-prefix caches.