Per-principal salted KV cache stops prompt-leak timing attacks while keeping 93% cache benefit
KVGov’s per-principal HMAC salt eliminates the three known KV-cache timing side-channels and retains about 93% of cache efficiency
AI/ML arXiv 10 Aug 2026 Defense Prototype evidence
Published as “Governing the KV Cache: Preventing Timing Side-Channel Leakage in Multi-Tenant LLM Inference”
Why it matters
Deploying KVGov can eliminate prompt leakage in multi-tenant LLM serving without major latency overhead, enabling safer shared-inference services.
Summary
KVGov eliminates the KV-cache timing side channel, achieving 0% attack success rate for PROMPTPEEK, EarlyBird, and InputSnatch. The core HMAC-salt namespace isolation alone is sufficient for this guarantee, and the ORIGAMI audit scheduler further cuts adversary expected utility by 12.6% under realistic heterogeneity. Evidence comes from a deterministic simulation of 1,000 trials (seed 2026) and hardware measurements on an NVIDIA A100 (cold/cached TTFT ratio 0.22) confirming the channel’s real-world exploitability.
What they found 4
- KVGov reduces attack success to zero for all three attack families
“KVGov achieves 0% ASR across all three families; flush is a partial defense that still exposes 9-22%.”
- HMAC-salt alone is necessary and sufficient for the zero-ASR guarantee
“HMAC-salt alone achieves 0% ASR for both attacks (same as KVGov full), confirming it is the necessary and sufficient mechanism.”
- Real-world hardware shows a cold/cached TTFT ratio of 0.22, confirming the side channel at production scale
“we measure a gate-verified cold/cached TTFT ratio of 0.22, confirming the channel is exploitable at production scale”
- Boundary salting retains ~93% of cache benefit while removing cross-principal timing signals
“injecting the salt at that boundary rather than at the chain root retains an estimated 93% of the prefix-cache benefit while leaving no cross-principal timing signal.”
Caveats 7
- Session-boundary flushing leaves PROMPTPEEK at 19.5% and InputSnatch at 9.8% - an adversary probing within an active session retains substantial advantage
- Noise injection suppresses timing correlation while leaving membership-based recovery untouched
- Admission control alone reduces InputSnatch ASR to 90.5% (by preventing PII prompts from entering the cache) but does not affect timing-based attacks
- Our EarlyBird results use a reference simulation (block size=1) because vLLM 0.26.0 removed that configuration.
- Root salting eliminates crossprincipal prefix sharing, which for workloads with high crosstenant prompt similarity materially reduces hit rates. Boundary salting ... its efficiency figures are extrapolated from our hardware measurements rather than measured directly, and it requires an offset parameter that current engines do not expose.
- It does not cover InputSnatch’s semantic-cache variant, which resolves by nearest-neighbour search over embeddings - two distinct salts do not make two embeddings less similar.
- ASR experiments use a discrete-event simulation with fixed hit/miss latencies (5 ms / 50 ms). Real deployments exhibit variable latencies ... extended field experiments with real adversarial tenants remain future work.
What’s new here 4
- Unified defense that blocks all three known KV-cache timing attacks simultaneously
- HMAC-keyed per-principal namespace isolation that is provably necessary and sufficient
- ORIGAMI Stackelberg water-filling audit scheduler that reduces adversary utility
- Evolutionary stability analysis identifying a 31.6% adversary prevalence tipping point