Preprint · 2024 · Open access

InputSnatch: Stealing Input in LLM Services via Timing Side-Channel Attacks

Xinyao Zheng, Husheng Han, Shi, Shangyi, Fang, Qiyan, Zidong Du, Xing Hu, Guo, Qi

arXiv · Published 27 November 2024 · DOI 10.48550/arxiv.2411.18191

Open PDFView at the publisherCite this paper

In brief

“InputSnatch: Stealing Input in LLM Services via Timing Side-Channel Attacks” is a 2024 preprint by Xinyao Zheng and 6 co-authors, published in arXiv. OpenAlex counts 57 citations as of 24 November 2026. It is open access: the full text is free to read at arXiv.

Citations
57
Most cited in
2026 (34)
References
104
Authors
7

Abstract

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.

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Zheng, X., Han, H., Shangyi, S., Qiyan, F., Du, Z., Hu, X., & Qi, G. (2024). InputSnatch: Stealing Input in LLM Services via Timing Side-Channel Attacks. arXiv. https://doi.org/10.48550/arxiv.2411.18191

MLA 9

Zheng, Xinyao, et al. “InputSnatch: Stealing Input in LLM Services via Timing Side-Channel Attacks.” arXiv, 2024. https://doi.org/10.48550/arxiv.2411.18191.

Chicago

Zheng, Xinyao, Husheng Han, Shi, Shangyi, Fang, Qiyan, Zidong Du, Xing Hu, and Guo, Qi. 2024. “InputSnatch: Stealing Input in LLM Services via Timing Side-Channel Attacks.” arXiv. https://doi.org/10.48550/arxiv.2411.18191.

Harvard

Zheng, X. et al. (2024) ‘InputSnatch: Stealing Input in LLM Services via Timing Side-Channel Attacks’, arXiv. doi:10.48550/arxiv.2411.18191.

IEEE

X. Zheng et al., “InputSnatch: Stealing Input in LLM Services via Timing Side-Channel Attacks,” arXiv, 2024, doi: 10.48550/arxiv.2411.18191.

BibTeX

@misc{zheng2024inputsnatch,
  title     = {{InputSnatch: Stealing Input in LLM Services via Timing Side-Channel Attacks}},
  author    = {Zheng, Xinyao and Han, Husheng and Shangyi, Shi, and Qiyan, Fang, and Du, Zidong and Hu, Xing and Qi, Guo,},
  howpublished = {arXiv},
  year      = {2024},
  doi       = {10.48550/arxiv.2411.18191},
  url       = {https://doi.org/10.48550/arxiv.2411.18191}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Citations by year

YearCitationsShare of the best year
202411
20252222
20263434

Topic and keywords

Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning

  • timing attacks
  • large language models
  • cache sharing
  • inference privacy
  • response time analysis

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Zheng, X., Han, H., Shangyi, S., Qiyan, F., Du, Z., Hu, X., & Qi, G. (2024). InputSnatch: Stealing Input in LLM Services via Timing Side-Channel Attacks. arXiv. https://doi.org/10.48550/arxiv.2411.18191

How many times has this paper been cited?

57 times, according to OpenAlex on 24 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at arXiv: sign in and open the PDF from this page.

Who wrote this paper?

Xinyao Zheng, Husheng Han, Shi, Shangyi, Fang, Qiyan, Zidong Du, Xing Hu, Guo, Qi.

What is the DOI of this paper?

10.48550/arxiv.2411.18191, permanently at https://doi.org/10.48550/arxiv.2411.18191. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 24 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.