about
Whisper Leak: a side-channel attack on Large Language Models (arxiv.org)
3 points by bikenaga 332 days ago | hide | past | pdf | discuss on HN

In plain words: Even though chat traffic is encrypted, the sizes and timing of the packets streaming back can reveal what topic a user asked about. Across 28 chat services the trick guessed topics almost perfectly, and the three fixes tested only partly blocked it.

Abstract

Large Language Models (LLMs) are increasingly deployed in sensitive domains including healthcare, legal services, and confidential communications, where privacy is paramount. This paper introduces Whisper Leak, a side-channel attack that infers user prompt topics from encrypted LLM traffic by analyzing packet size and timing patterns in streaming responses. Despite TLS encryption protecting content, these metadata patterns leak sufficient information to enable topic classification. We demonstrate the attack across 28 popular LLMs from major providers, achieving near-perfect classification (often >98% AUPRC) and high precision even at extreme class imbalance (10,000:1 noise-to-target ratio). For many models, we achieve 100% precision in identifying sensitive topics like "money laundering" while recovering 5-20% of target conversations. This industry-wide vulnerability poses significant risks for users under network surveillance by ISPs, governments, or local adversaries. We evaluate three mitigation strategies - random padding, token batching, and packet injection - finding that while each reduces attack effectiveness, none provides complete protection. Through responsible disclosure, we have collaborated with providers to implement initial countermeasures. Our findings underscore the need for LLM providers to address metadata leakage as AI systems handle increasingly sensitive information.

Geoff McDonald, Jonathan Bar Or
arXiv:2511.03675 · cs.CR, cs.AI · submitted Nov 5, 2025
abstract · pdf · html · 14 pages, 7 figures

add comment on HN
Also discussed: Nov 2025 (3 points, 0 comments)