In November 2025, Microsoft’s Defender Security Research Team revealed a novel type of side-channel attack called Whisper Leak, which targets streaming large-language-model (LLM) services. Here’s a deep dive into what it is, how it works, why it matters — and some extra context that fills in the gaps beyond the original announcement.

What is Whisper Leak?
At its core, Whisper Leak exploits metadata — specifically the sizes of encrypted network packets and the timing (inter-arrival intervals) of those packets — to infer what topics a user is discussing with a remote language-model service, even though the actual content is encrypted.
Here’s how it works:
- Many LLM-based services stream their responses in chunks (token by token or in small batches) so users can see text appear in real time.
- Even though the traffic is encrypted (for example, via HTTPS or TLS), an adversary observing the network can still see packet lengths and timings. Encryption hides content but not size or flow.
- By recording many such traces, a classifier can be trained to detect whether a conversation is about a sensitive topic (for example, “legality of money laundering”).
- The researchers demonstrated that with enough samples, the attack could identify such topics with extremely high accuracy — over 98% in controlled tests.
In simple terms: even if your prompts and responses are encrypted, the pattern of how many bytes are sent, and when they’re sent, can leak what you’re talking about.
Why This Matters
1. A Privacy Red Flag
For individuals in sensitive environments — such as journalists, activists, or citizens in restrictive countries — the ability to infer discussion topics from encrypted traffic poses a serious privacy risk. Even without content, identifying “who’s talking about what” can be enough to endanger someone.
2. Beyond Token-Length Attacks
Earlier research looked at packet sizes and token lengths, but Whisper Leak goes further. It uses a combination of packet sizes and timing data, feeding both into a machine-learning classifier that can recognize not just message length, but entire topic categories.
3. Implications for LLM Service Providers
This means LLM providers must consider more than just content encryption. They must analyze the behavior of the communication itself — streaming patterns, packet grouping, latency, and output timing — all of which can silently leak information.
4. Part of a Larger Trend
Whisper Leak joins a growing list of side-channel threats to LLMs — including cache-based attacks, timing inference, and output token analysis. It highlights a new front in AI privacy: metadata security.
How Whisper Leak Works — Step by Step
1. The Threat Model
The attacker doesn’t decrypt your data. They simply observe your encrypted network traffic — such as through shared Wi-Fi, ISP monitoring, or compromised routers — and measure the size and timing of packets.
2. Data Collection
Researchers collected two sets of encrypted traffic:
- “Target” prompts related to specific sensitive topics.
- “Noise” prompts made up of generic, unrelated questions.
Each traffic trace (both prompt and response) was logged with packet size and time intervals.
3. Feature Extraction
From those traces, the researchers extracted sequences of packet sizes and inter-packet times. These numerical patterns became the “features” used to train machine-learning models.
4. Model Training
Using classifiers such as gradient boosting and neural networks, they trained models to detect whether a traffic trace belonged to the sensitive topic or not.
5. The Results
The models achieved high accuracy, with precision above 98% and solid recall even when the target traffic was rare (1 in 10,000 samples).
6. Mitigation Techniques Tested
To counter the attack, researchers tested several countermeasures:
- Padding: Randomly adjusting packet sizes to hide true lengths.
- Batching: Grouping multiple tokens into a single packet to blur timing patterns.
- Traffic Shaping: Adding fake packets or random delays.
These approaches reduced, but did not eliminate, the leakage — showing that perfect protection remains a challenge.
What the Original Blog Didn’t Emphasize
- Offline and Local Models: The research focused on remote services, but local LLMs running on shared hardware can also be exposed to cache-based or timing side-channels.
- Granularity of Topic Detection: The attack can classify topics but cannot reconstruct full sentences or prompts. Still, knowing the subject matter can be damaging enough.
- Infrastructure Sharing Risks: Multi-tenant cloud architectures may amplify leakage between users if shared caches or network paths are involved.
- Usability Trade-Offs: Padding and batching protect privacy but increase latency and cost, forcing providers to balance user experience and security.
- Regulatory Blind Spots: Metadata isn’t always covered by data-protection laws, yet it can reveal sensitive behavior. Enterprises and regulators may soon need to address this explicitly.
- User Perception Gap: Many assume encryption equals complete privacy. Whisper Leak proves otherwise — metadata can betray as much as content.

Who’s at Risk
- Users on Shared or Public Networks — e.g., cafes, airports, offices.
- Individuals Discussing Sensitive Topics — political, legal, or investigative.
- Organizations Using LLM APIs for Confidential Workflows — where queries might hint at trade secrets or internal projects.
- LLM Providers — who must protect user trust and regulatory compliance.
Practical Defenses
For Users
- Avoid sensitive discussions over untrusted or public networks.
- Use reputable VPNs to add a layer of obfuscation.
- Prefer models or apps that process data locally or return responses in full batches rather than streams.
- Check whether your provider has addressed streaming-related metadata leaks.
For Providers
- Implement traffic padding or constant-rate streaming.
- Batch tokens to reduce granularity of output.
- Add random delays or dummy traffic to break timing correlations.
- Include metadata protection in privacy audits and disclosures.
- Educate users that encryption alone isn’t a full defense.
Frequently Asked Questions
Q1: Can Whisper Leak read my prompts or responses?
No. It cannot decrypt or read your text. It can only infer the topic based on traffic metadata.
Q2: Does HTTPS protect me?
Not completely. HTTPS encrypts content, but packet size and timing remain visible to anyone who can monitor your connection.
Q3: Is this only an issue with streaming responses?
Mostly yes. The attack relies on streaming patterns. Models that send full responses in a single chunk are harder to analyze, though not immune.
Q4: Who could perform this kind of attack?
Attackers with access to your network traffic — for example, a malicious Wi-Fi host, ISP, or state-level actor — could carry it out.
Q5: Can it identify users?
Potentially, if combined with session tracking or IP correlation. Whisper Leak focuses on topic detection, but user attribution is a possible extension.
Q6: How likely is this to happen in real life?
It’s more feasible for high-resource adversaries than ordinary hackers. Still, the research proves that encrypted LLM traffic can leak information, so mitigations are essential.
Q7: Should I stop using AI chat models?
No, but be aware of the risk. For casual use, it’s minimal. For high-sensitivity topics, take extra precautions such as VPNs or non-streaming models.
Q8: What should companies using LLM APIs do?
Enterprises should treat metadata as confidential information. Even if content is protected, traffic patterns can reveal business interests or projects.
Q9: Is there a perfect fix?
Not yet. Padding, batching, and traffic shaping help, but they can’t fully hide all metadata patterns. Long-term solutions may require protocol-level redesigns.
Final Thoughts
Whisper Leak underscores an uncomfortable truth: encryption isn’t the same as privacy. While your words may be hidden, the way they move across the network can still give you away.
As AI assistants become embedded in everything from business tools to personal devices, protecting user intent and context — not just message content — must become a top priority.
Whisper Leak may be just the beginning of a new generation of side-channel threats — where what we don’t say out loud, but simply how we communicate, can still be overheard.

Sources Microsoft


