← Research & Publications
Paper presentation · CSCI 699 · Side-Channel Threats in Cloud & LLM Systems · USC · Fall 2026

Whisper Leak: A Side-Channel Attack on Large Language Models

Geoff McDonald & Jonathan Bar Or (Microsoft) · arXiv 2025

A paper presentation for CSCI 699 at USC, given in class on Thursday, November 19, 2026. The paper is by Geoff McDonald and Jonathan Bar Or of Microsoft (arXiv, November 2025). This page is my summary and my reading of it.

The question

Chatbots stream their answers. Each token, or a small group of tokens, is sent as soon as it is generated, usually in its own encrypted TLS record. TLS hides the content, but modern ciphers keep the ciphertext the same length as the plaintext plus a fixed overhead, and nothing hides when each record arrives. The paper asks whether someone who can only see that encrypted traffic can still tell what a conversation is about.

Threat model

A passive observer on the network path: an ISP, a government, or someone on the same Wi-Fi. They see the size and arrival time of every packet, but cannot decrypt anything, touch the user's device or the provider's servers, or inject traffic. The only active step happens offline: the attacker queries the same service to record labelled traffic and trains a classifier on it.

Whisper Leak pipeline: a user sends a query to a remote LLM, which streams tokens back; an attacker sniffing the encrypted traffic records packet sizes and inter-arrival times and feeds them to an LSTM, BERT or LightGBM classifier that flags the target topic
Figure 1 from McDonald and Bar Or (2025): the attack pipeline. The paper is released under CC0.

Method

  • Target topic: the legality of money laundering, phrased 100 ways and each asked 100 times. Background: 11,716 unrelated questions from the Quora Question Pairs dataset, each asked once. Random extra spaces were inserted into every prompt so that no response came from a cache.
  • Traffic was captured with tcpdump. Each response becomes two sequences: TLS record sizes and the time gaps between records.
  • Three classifiers: LightGBM on the flattened sequences, a bidirectional LSTM with attention, and DistilBERT reading the sizes and gaps as binned tokens. Each was trained on sizes only, timing only, and both.
  • 20 of the 100 target phrasings are held out for testing. Results are medians over five random splits, scored by AUPRC (area under the precision-recall curve), which suits a task where the target class is rare.

Results

  • The 28 models come from OpenAI, Microsoft Azure, Anthropic, Google, Amazon, Mistral, xAI, DeepSeek and Alibaba, plus Meta's Llama served by Groq and Lambda. Most score in the high 90s: Mistral Large reaches 100% AUPRC, and the weakest, Amazon Nova Lite, still reaches 71.2%. Packet sizes alone carry most of the signal.
  • With one target conversation per 10,000, 17 models keep 100% precision up to 20% recall, and 8 keep it at 50% recall: every flagged conversation is a real hit, and a share of the people asking are still found. These figures are projected from the test results, not measured on live traffic.
  • Google Gemini (81.9–84.0%) and Amazon Nova (71.2–77.5%) leak the least. More training data makes the attack stronger (121,111 captures of GPT-4o on Azure, with the BERT classifier gaining most), and temperature has no statistically significant effect.

One count to read carefully: the text says 17 of 28 models exceed 98% AUPRC, but the best-model column of Table 1 has 13 models at 98% or higher and 17 at 97% or higher.

Defenses

DefenseModelAUPRC beforeAfterCost
Random paddingAzure GPT-4o mini97.5%92.9%Small
Token batching (5 tokens)OpenAI GPT-4o mini98.2%94.8%Choppier streaming
Packet injectionOpenAI GPT-4o mini98.1%93.3%2–3× the traffic

Each one helps and none closes the leak. Padding hides token lengths but leaves timing and the number of chunks. Batching five or more tokens removes most of the risk for most models, yet providers that already batch, such as Alibaba's Qwen 2.5, Gemini 2.5 Pro and Claude 3 Haiku, still allow 100% precision at 5% recall.

Disclosure

The authors notified 28 providers in June 2025 through the Microsoft Security Response Center. OpenAI and xAI shipped fixes in August 2025, Mistral in September and Microsoft Azure in October. OpenAI and Azure now add a random-length obfuscation field to every streamed chunk. Other providers declined or did not respond. All results were measured before the fixes.

My take

The attacker is about as weak as attackers get, the evaluation covers 28 commercial models, precision is reported at a realistic 10,000:1 ratio rather than only AUPRC, the work led to shipped fixes, and the code and prompts are public. The limits: one topic and single-turn conversations, projected rather than measured 10,000:1 numbers, ablations on a single model, simulated batching and injection, clean lab captures, and no explanation of why Gemini and Nova leak less.

Why it belongs in a side-channel course: a secret (the topic) leaks through something observable (packet size and timing), the cryptography is not broken, and every defense trades bandwidth or latency for more uniform behaviour, the same structure as cache attacks on AES. For my course project I plan to reproduce the attack at small scale with the authors' prompts and test whether the 2025 fixes still hold, comparing OpenAI's obfuscation on and off and a provider that never patched.