InputSnatch: Stealing Input in LLM Services via Timing Side-Channel Attacks
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) possess extensive knowledge and question-answering capabilities, having been widely deployed in privacy-sensitive domains like finance and medical consultation. During LLM inferences, cache-sharing methods are commonly employed to enhance efficiency by reusing cached states or responses for the same or similar inference requests. However, we identify that these cache mechanisms pose a risk of private input leakage, as the caching can result in observable variations in response times, making them a strong candidate for a timing-based attack hint. In this study, we propose a novel timing-based side-channel attack to execute input theft in LLMs inference. The cache-based attack faces the challenge of constructing candidate inputs in a large search space to hit and steal cached user queries. To address these challenges, we propose two primary components. The input constructor employs machine learning techniques and LLM-based approaches for vocabulary correlation learning while implementing optimized search mechanisms for generalized input construction. The time analyzer implements statistical time fitting with outlier elimination to identify cache hit patterns, continuously providing feedback to refine the constructor's search strategy. We conduct experiments across two cache mechanisms and the results demonstrate that our approach consistently attains high attack success rates in various applications. Our work highlights the security vulnerabilities associated with performance optimizations, underscoring the necessity of prioritizing privacy and security alongside enhancements in LLM inference.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). First posted on arXiv 27 Nov 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 10; 2026: 6.
16 papers.
Sort:
By area:
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2025Auditing Prompt Caching in Language Model APIscited by 19
- 2025Selective KV-Cache Sharing to Mitigate Timing Side-Channels in LLM Inferencecited by 18
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
- 2025Whisper Leak: a side-channel attack on 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
- 2025SecureInfer: Heterogeneous TEE-GPU Architecture for Privacy-Critical Tensors for Large Language Model Deploymentcited 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
- 2025Attacks on Approximate Caches in Text-to-Image Diffusion Modelscited by 0
4 more
- 2026Shape and Substance: Dual-Layer Side-Channel Attacks on Local Vision-Language Modelscited by 0
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channelscited by 0
- 2026Characterizing Contention-Induced Reliability Collapse in KV-Cache Timing Side Channels for Multi-Tenant LLM Servingcited by 0
- 2026When the Agent Becomes the Kernel: A Systematization of Security on the Path to AI-Native Operating Systemscited by 0
- 2026When the Agent Becomes the Kernel: A Systematization of Security on the Path to AI-Native Operating Systems20 Sep 2026
- 2026Characterizing Contention-Induced Reliability Collapse in KV-Cache Timing Side Channels for Multi-Tenant LLM Serving6 Sep 2026
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channels4 Aug 2026
- 2026Shape and Substance: Dual-Layer Side-Channel Attacks on Local Vision-Language Models26 Mar 2026
- 2026OptiLeak: Efficient Prompt Reconstruction via Reinforcement Learning in Multi-tenant LLM Services24 Feb 2026
- 2026From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Caching30 Jan 2026
- 2025Whisper Leak: a side-channel attack on Large Language Models5 Nov 2025
- 2025SecureInfer: Heterogeneous TEE-GPU Architecture for Privacy-Critical Tensors for Large Language Model Deployment22 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
- 2025Selective KV-Cache Sharing to Mitigate Timing Side-Channels in LLM Inference11 Aug 2025
4 more
- 2025Spill The Beans: Exploiting CPU Cache Side-Channels to Leak Tokens from Large Language Models1 May 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025Auditing Prompt Caching in Language Model APIs11 Feb 2025
- 2025Selective KV-Cache Sharing to Mitigate Timing Side-Channels in LLM Inferencecited by 18
- 2026OptiLeak: Efficient Prompt Reconstruction via Reinforcement Learning in Multi-tenant LLM Servicescited by 1
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channelscited by 0
- 2026Characterizing Contention-Induced Reliability Collapse in KV-Cache Timing Side Channels for Multi-Tenant LLM Servingcited by 0
- 2026Characterizing Contention-Induced Reliability Collapse in KV-Cache Timing Side Channels for Multi-Tenant LLM Serving6 Sep 2026
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channels4 Aug 2026
- 2026OptiLeak: Efficient Prompt Reconstruction via Reinforcement Learning in Multi-tenant LLM Services24 Feb 2026
- 2025Selective KV-Cache Sharing to Mitigate Timing Side-Channels in LLM Inference11 Aug 2025
- 2025Auditing Prompt Caching in Language Model APIscited by 19
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
- 2025Whisper Leak: a side-channel attack on 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
- 2025SecureInfer: Heterogeneous TEE-GPU Architecture for Privacy-Critical Tensors for Large Language Model Deploymentcited by 2
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
- 2026From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Caching30 Jan 2026
- 2025Whisper Leak: a side-channel attack on Large Language Models5 Nov 2025
- 2025SecureInfer: Heterogeneous TEE-GPU Architecture for Privacy-Critical Tensors for Large Language Model Deployment22 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