NEURON VISION← All reviews

About this review

Packet sizes and timing from streamed LLM replies let an eavesdropper spot sensitive topics with about 98% accuracy across 28 models. Providers now offer padding to stop it.

Source: Microsoft · arXiv 2511.03675

Transcript

Welcome. Today we look at Whisper Leak. Even with T L S encryption, the size and timing of the packets an L L M streams back can reveal what a prompt is about. Microsoft tested twenty eight models and reached about ninety eight percent accuracy at spotting a sensitive topic.

The leak. Encryption hides words, not rhythm. You type a prompt, the service streams tokens back, and an eavesdropper on a router, provider or government network tries to guess the topic. Two facts make it work. Packet size tracks token size, and the gaps between packets track generation timing.

Why does it work? A stream cipher keeps the ciphertext the same size as the plaintext, so packet size tracks token size. And models send tokens as fast as they generate them, so gaps between packets track generation timing. The text is hidden, but sizes and timing are not.

The experiment trains a classifier on the shape of the traffic. For each chat, the attacker records packet sizes and the gaps between packets. The classifier separates sensitive from normal. The data had one thousand sensitive prompts and ten thousand everyday ones. Three model types were used: BERT, an L S T M, and LightGBM.

The results are striking. All three classifiers reached about ninety eight percent accuracy, as reported, telling sensitive from regular prompts using sizes and timing alone. Twenty eight L L Ms were tested, and the attack worked on all of them. The training set had eleven thousand prompts.

Who is at risk? Anyone who can watch the wire. That includes someone on shared Wi-Fi, a compromised router or device, an internet provider, or a government. The authors point to identifying regime opponents or other targeted activity, since the attacker needs no access to the text.

The fix is to add noise between the tokens. Random padding is inserted between real tokens, so traffic looks flat and sizes no longer match token sizes. Microsoft disclosed this first, working with industry leaders for nearly a year. OpenAI and Mistral then added an A P I option for obfuscation.

Why it matters. Safety is not only the model. The wrapper, the protocol and the network are attack surface. No decryption is needed, so T L S is necessary but not sufficient. Defence is cheap. The takeaway: a chat can be encrypted and still reveal its subject, and providers now offer padding to stop it.

Related reviews

Security · Privacy

All reviews

Paper review · Microsoft · arXiv 2511.03675

Whisper Leak: encrypted chats still talk

Even with TLS encryption, the size and timing of the packets an LLM streams back can reveal what a prompt is about. Microsoft tested 28 models and reached about 98% accuracy at spotting a sensitive topic.

Encrypted trafficThe attackDefenceNumbers and limits
01 · The leak

Encryption hides words, not rhythm

Youtypes a promptLLM servicestreams tokensEavesdropperrouter, ISP,governmentTopic guesssensitive or not?Text is hidden. Sizes and timing are not.
Two facts make it work. A stream cipher keeps ciphertext the same size as plaintext, so packet size tracks token size. And models send tokens as fast as they generate them, so gaps between packets track generation timing.
02 · The experiment

Train a model on the shape of the traffic

What the attacker records for each chatPacket sizessequence per responseInter-packet gapstiming between chunksClassifiersensitive vs normalSensitive topic1,000 promptsEveryday queries10,000 prompts

BERT

Sequence model

LSTM

Recurrent network

LightGBM

Decision trees

03 · Results

Three different classifiers, the same result

~98%

accuracy telling sensitive from regular prompts, from sizes and timing alone

28

LLMs tested, all with an attack that works

11,000

training prompts: 10,000 benign + 1,000 sensitive

Detection success, as reported
BERT
~98%
LSTM
~98%
LightGBM
~98%
04 · Who is at risk

Anyone who can watch the wire

Who could listen in?NetworkRouterGovernmentHackershared Wi-Ficompromised devicedissidents, banned topicscode on a router
The authors point to identifying regime opponents or other targeted activity, since the attacker needs no access to the text.
05 · The fix

Add noise between the tokens

Token streamreal tokensRandom paddingfiller between tokensFlat trafficsizes no longer matchObfuscation breaks the link between packet size and token size.

Disclosed first

Microsoft worked with industry leaders for nearly a year.

Shipped

OpenAI and Mistral added an API option for obfuscation: random data generated between tokens.

06 · Why it matters

A new class of leak for AI systems

Beyond the model

Safety is not only the model. The wrapper, the protocol and the network are part of the attack surface.

No decryption needed

Metadata alone is enough, so TLS is necessary but not sufficient.

Defence is cheap

Padding adds bytes, not model changes.

Design rule from the paper: build LLM systems to minimise leakage through side channels.