# Mirage: Provable Defense Against LLM KV Cache Timing Side Channels with Topology-Aware Isolation

DevFeed: [Mirage: Provable Defense Against LLM KV Cache Timing Side Channels with Topology-Aware Isolation](<https://devfeed.tech/articles/mirage-provable-defense-against-llm-kv-cache-timing-side-channels-with-topology-aware-isolation-126005.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.10756>)

Author: Xiaobei Yan, Tianwei Zhang

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [LLM security](<https://devfeed.tech/topics/llm-security.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>)

Tags: [adaptive](<https://devfeed.tech/tags/adaptive.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [defense](<https://devfeed.tech/tags/defense.md>), [isolation](<https://devfeed.tech/tags/isolation.md>), [kv-cache](<https://devfeed.tech/tags/kv-cache.md>), [llms](<https://devfeed.tech/tags/llms.md>), [performance](<https://devfeed.tech/tags/performance.md>), [privacy](<https://devfeed.tech/tags/privacy.md>), [prompt](<https://devfeed.tech/tags/prompt.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [side-channels](<https://devfeed.tech/tags/side-channels.md>), [throughput](<https://devfeed.tech/tags/throughput.md>), [time-to-first-token](<https://devfeed.tech/tags/time-to-first-token.md>), [timing](<https://devfeed.tech/tags/timing.md>), [topology](<https://devfeed.tech/tags/topology.md>)

## AI overview

Mirage aims to limit prompt-token inference from KV-cache timing differences while retaining cache-sharing efficiency. It tracks how prefixes expand across the request topology with a Privacy Odometer; after a prefix exceeds a safety threshold, a two-phase policy estimates and pads time-to-first-token (TTFT) to a calibrated cache-miss baseline. Padding occurs at the gateway, allowing the GPU to continue serving other requests instead of stalling or recomputing. The abstract reports near-random-guessing-floor leakage on a 500-sample public corpus across three models, lower TTFT than defense baselines, resistance to a strong adaptive adversary, and applicability to semantic caching. These are abstract-level claims; evaluation details are not provided.

## Source excerpt

arXiv:2611.10756v1 Announce Type: cross Abstract: Large Language Models (LLMs) are increasingly deployed as shared multi-tenant services, relying on advanced optimizations like KV cache and prefix sharing to improve throughput and reduce latency. However, these optimizations introduce a critical vulnerability: attackers can exploit time-to-first-token (TTFT) variations between KV cache hits and misses to infer sensitive prompt tokens via prefix-matching side-channel attacks. Existing defenses indiscriminately restrict cross-tenant cache sharing, which incurs prohibitive performance overhead and negates the fundamental efficiency benefits of the KV cache. We propose Mirage, a topology-aware emission obfuscation framework that provably bounds timing leakage without sacrificing the performance gains of cache sharing. Instead of stalling the GPU or forcing redundant recomputations, Mirage delays token emission at the gateway so the attacker observes a natural cache miss distribution, while the GPU seamlessly continues serving other requests at full speed. Mirage uses a Privacy Odometer that persistently tracks the topological novelty of prefix fan-out expansions to distinguish aggressive probing from benign traffic. Once a prefix exceeds a safety threshold, Mirage engages a two-phase policy that uses a dynamic estimator to pad the TTFT to a calibrated cache-miss baseline. On a 500-sample public corpus across three models, Mirage suppresses the timing side-channel to near the random-guessing floor, while maintaining a significantly lower TTFT than defense baselines. We further show that Mirage withstands a strong adaptive adversary and the same principle carries over to semantic caching layers.