The Early Bird Catches the Leak: Unveiling Timing Side Channels in LLM Serving Systems
Not on the map. Why?
Abstract (arXiv)
The wide deployment of Large Language Models (LLMs) has given rise to strong demands for optimizing their inference performance. Today's techniques serving this purpose primarily focus on reducing latency and improving throughput through algorithmic and hardware enhancements, while largely overlooking their privacy side effects, particularly in a multi-user environment. In our research, for the first time, we discovered a set of new timing side channels in LLM systems, arising from shared caches and GPU memory allocations, which can be exploited to infer both confidential system prompts and those issued by other users. These vulnerabilities echo security challenges observed in traditional computing systems, highlighting an urgent need to address potential information leakage in LLM serving infrastructures. In this paper, we report novel attack strategies designed to exploit such timing side channels inherent in LLM deployments, specifically targeting the Key-Value (KV) cache and semantic cache widely used to enhance LLM inference performance. Our approach leverages timing measurements and classification models to detect cache hits, allowing an adversary to infer private prompts with high accuracy. We also propose a token-by-token search algorithm to efficiently recover shared prompt prefixes in the caches, showing the feasibility of stealing system prompts and those produced by peer users. Our experimental studies on black-box testing of popular online LLM services demonstrate that such privacy risks are completely realistic, with significant consequences. Our findings underscore the need for robust mitigation to protect LLM systems against such emerging threats.
Key facts. Cited by 29 papers in the map (data through 7 Oct 2026). First posted on arXiv 30 Sep 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 2; 2025: 11; 2026: 16.
29 papers.
Sort:
By area:
- 2025Auditing Prompt Caching in Language Model APIscited by 19
- 2025Selective KV-Cache Sharing to Mitigate Timing Side-Channels in LLM Inferencecited by 18
- 2025MoEcho: Exploiting Side-Channel Attacks to Compromise User Privacy in Mixture-of-Experts LLMscited by 11
- 2025Optimizing Agentic Language Model Inference via Speculative Tool Callscited by 11
- 2025LLM Fingerprinting via Semantically Conditioned Watermarkscited by 7
- 2024When Speculation Spills Secrets: Side Channels via Speculative Decoding In LLMscited by 6
- 2024InstCache: A Predictive Cache for LLM Servingcited by 6
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
- 2025Can Transformer Memory Be Corrupted? Investigating Cache-Side Vulnerabilities in Large Language Modelscited by 3
- 2025Designing LLM-based Multi-Agent Systems for Software Engineering Tasks: Quality Attributes, Design Patterns and Rationalecited by 3
- 2026From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Cachingcited by 3
- 2025Spill The Beans: Exploiting CPU Cache Side-Channels to Leak Tokens from Large Language Modelscited by 2
17 more
- 2026Rethinking Latency Denial-of-Service: Attacking the LLM Serving Framework, Not the Modelcited by 2
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
- 2026OptiLeak: Efficient Prompt Reconstruction via Reinforcement Learning in Multi-tenant LLM Servicescited by 1
- 2026PrefixWall: Mitigating Prefix Caching Side Channels in Shared LLM Systemscited by 1
- 2026HijackKV: New Threat in Position-Independent KV Cache Reusecited by 1
- 2026LaCache: Robust Semantic Caching for LLM Servingcited by 1
- 2026Governing the KV Cache: Preventing Timing Side-Channel Leakage in Multi-Tenant LLM Inferencecited by 1
- 2025Attacks on Approximate Caches in Text-to-Image Diffusion Modelscited by 0
- 2026Shape and Substance: Dual-Layer Side-Channel Attacks on Local Vision-Language Modelscited by 0
- 2026Bit-Flip Vulnerability of Shared KV-Cache Blocks in LLM Serving Systemscited by 0
- 2026MESA: Prioritizing Vulnerable Communication Channels for Securing Multi-Agent Systemscited by 0
- 2026Leaky Language Models: Stealing Architecture and Inference Optimizations via Per-Token Timingcited by 0
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channelscited by 0
- 2026Detokenization Leaks: Reconstructing Local LLM Outputs From Cache Tracescited by 0
- 2026Characterizing Contention-Induced Reliability Collapse in KV-Cache Timing Side Channels for Multi-Tenant LLM Servingcited by 0
- 2026Unified AI Gateway: A Framework for Joint Model Routing and KV Cache Managementcited by 0
- 2026Ask the Tool, Don't Guess: Agent Tool Calls Hold Their Progress, and the Serving System Should Read Itcited by 0
- 2026Ask the Tool, Don't Guess: Agent Tool Calls Hold Their Progress, and the Serving System Should Read It16 Sep 2026
- 2026Unified AI Gateway: A Framework for Joint Model Routing and KV Cache Management7 Sep 2026
- 2026Characterizing Contention-Induced Reliability Collapse in KV-Cache Timing Side Channels for Multi-Tenant LLM Serving6 Sep 2026
- 2026Detokenization Leaks: Reconstructing Local LLM Outputs From Cache Traces6 Sep 2026
- 2026Governing the KV Cache: Preventing Timing Side-Channel Leakage in Multi-Tenant LLM Inference10 Aug 2026
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channels4 Aug 2026
- 2026LaCache: Robust Semantic Caching for LLM Serving3 Aug 2026
- 2026Leaky Language Models: Stealing Architecture and Inference Optimizations via Per-Token Timing22 Jul 2026
- 2026HijackKV: New Threat in Position-Independent KV Cache Reuse22 Jul 2026
- 2026MESA: Prioritizing Vulnerable Communication Channels for Securing Multi-Agent Systems29 Jun 2026
- 2026Bit-Flip Vulnerability of Shared KV-Cache Blocks in LLM Serving Systems19 Apr 2026
- 2026Shape and Substance: Dual-Layer Side-Channel Attacks on Local Vision-Language Models26 Mar 2026
17 more
- 2026PrefixWall: Mitigating Prefix Caching Side Channels in Shared LLM Systems11 Mar 2026
- 2026OptiLeak: Efficient Prompt Reconstruction via Reinforcement Learning in Multi-tenant LLM Services24 Feb 2026
- 2026Rethinking Latency Denial-of-Service: Attacking the LLM Serving Framework, Not the Model8 Feb 2026
- 2026From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Caching30 Jan 2026
- 2025Optimizing Agentic Language Model Inference via Speculative Tool Calls17 Dec 2025
- 2025Designing LLM-based Multi-Agent Systems for Software Engineering Tasks: Quality Attributes, Design Patterns and Rationale11 Nov 2025
- 2025Can Transformer Memory Be Corrupted? Investigating Cache-Side Vulnerabilities in Large Language Models20 Oct 2025
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Models16 Sep 2025
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 Sep 2025
- 2025Attacks on Approximate Caches in Text-to-Image Diffusion Models28 Aug 2025
- 2025MoEcho: Exploiting Side-Channel Attacks to Compromise User Privacy in Mixture-of-Experts LLMs20 Aug 2025
- 2025Selective KV-Cache Sharing to Mitigate Timing Side-Channels in LLM Inference11 Aug 2025
- 2025LLM Fingerprinting via Semantically Conditioned Watermarks22 May 2025
- 2025Spill The Beans: Exploiting CPU Cache Side-Channels to Leak Tokens from Large Language Models1 May 2025
- 2025Auditing Prompt Caching in Language Model APIs11 Feb 2025
- 2024InstCache: A Predictive Cache for LLM Serving21 Nov 2024
- 2024When Speculation Spills Secrets: Side Channels via Speculative Decoding In LLMs1 Nov 2024
- 2025Selective KV-Cache Sharing to Mitigate Timing Side-Channels in LLM Inferencecited by 18
- 2024When Speculation Spills Secrets: Side Channels via Speculative Decoding In LLMscited by 6
- 2024InstCache: A Predictive Cache for LLM Servingcited by 6
- 2026Rethinking Latency Denial-of-Service: Attacking the LLM Serving Framework, Not the Modelcited by 2
- 2026OptiLeak: Efficient Prompt Reconstruction via Reinforcement Learning in Multi-tenant LLM Servicescited by 1
- 2026PrefixWall: Mitigating Prefix Caching Side Channels in Shared LLM Systemscited by 1
- 2026HijackKV: New Threat in Position-Independent KV Cache Reusecited by 1
- 2026LaCache: Robust Semantic Caching for LLM Servingcited by 1
- 2026Governing the KV Cache: Preventing Timing Side-Channel Leakage in Multi-Tenant LLM Inferencecited by 1
- 2026Bit-Flip Vulnerability of Shared KV-Cache Blocks in LLM Serving Systemscited by 0
- 2026Leaky Language Models: Stealing Architecture and Inference Optimizations via Per-Token Timingcited by 0
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channelscited by 0
12 most cited of 14 All 14 (JSON)
- 2026Unified AI Gateway: A Framework for Joint Model Routing and KV Cache Management7 Sep 2026
- 2026Characterizing Contention-Induced Reliability Collapse in KV-Cache Timing Side Channels for Multi-Tenant LLM Serving6 Sep 2026
- 2026Governing the KV Cache: Preventing Timing Side-Channel Leakage in Multi-Tenant LLM Inference10 Aug 2026
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channels4 Aug 2026
- 2026LaCache: Robust Semantic Caching for LLM Serving3 Aug 2026
- 2026Leaky Language Models: Stealing Architecture and Inference Optimizations via Per-Token Timing22 Jul 2026
- 2026HijackKV: New Threat in Position-Independent KV Cache Reuse22 Jul 2026
- 2026Bit-Flip Vulnerability of Shared KV-Cache Blocks in LLM Serving Systems19 Apr 2026
- 2026PrefixWall: Mitigating Prefix Caching Side Channels in Shared LLM Systems11 Mar 2026
- 2026OptiLeak: Efficient Prompt Reconstruction via Reinforcement Learning in Multi-tenant LLM Services24 Feb 2026
- 2026Rethinking Latency Denial-of-Service: Attacking the LLM Serving Framework, Not the Model8 Feb 2026
- 2025Selective KV-Cache Sharing to Mitigate Timing Side-Channels in LLM Inference11 Aug 2025
12 newest of 14 All 14 (JSON)
- 2025Optimizing Agentic Language Model Inference via Speculative Tool Callscited by 11
- 2025Designing LLM-based Multi-Agent Systems for Software Engineering Tasks: Quality Attributes, Design Patterns and Rationalecited by 3
- 2026MESA: Prioritizing Vulnerable Communication Channels for Securing Multi-Agent Systemscited by 0
- 2026Ask the Tool, Don't Guess: Agent Tool Calls Hold Their Progress, and the Serving System Should Read Itcited by 0
- 2026Ask the Tool, Don't Guess: Agent Tool Calls Hold Their Progress, and the Serving System Should Read It16 Sep 2026
- 2026MESA: Prioritizing Vulnerable Communication Channels for Securing Multi-Agent Systems29 Jun 2026
- 2025Optimizing Agentic Language Model Inference via Speculative Tool Calls17 Dec 2025
- 2025Designing LLM-based Multi-Agent Systems for Software Engineering Tasks: Quality Attributes, Design Patterns and Rationale11 Nov 2025
- 2025LLM Fingerprinting via Semantically Conditioned Watermarks22 May 2025
- 2025Auditing Prompt Caching in Language Model APIscited by 19
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
- 2025Can Transformer Memory Be Corrupted? Investigating Cache-Side Vulnerabilities in Large Language Modelscited by 3
- 2026From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Cachingcited by 3
- 2025Spill The Beans: Exploiting CPU Cache Side-Channels to Leak Tokens from Large Language Modelscited by 2
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
- 2026Detokenization Leaks: Reconstructing Local LLM Outputs From Cache Tracescited by 0
- 2026Detokenization Leaks: Reconstructing Local LLM Outputs From Cache Traces6 Sep 2026
- 2026From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Caching30 Jan 2026
- 2025Can Transformer Memory Be Corrupted? Investigating Cache-Side Vulnerabilities in Large Language Models20 Oct 2025
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Models16 Sep 2025
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 Sep 2025
- 2025Spill The Beans: Exploiting CPU Cache Side-Channels to Leak Tokens from Large Language Models1 May 2025
- 2025Auditing Prompt Caching in Language Model APIs11 Feb 2025