How a Single Encryption Key Exposed Every Model's Reasoning
A paper published this week shows that Anthropic, OpenAI, and Google all encrypt the hidden reasoning behind their models with a single shared key. Researchers exploited that to read reasoning traces in plaintext, and 182 credentials leaked from public logs before anyone patched it. It’s a responsible AI failure in the most literal sense: the safety feature was the vulnerability.
This is the kind of bug that makes you stop and reread the paper title, because the claim is so dumb you assume you misread it. Three of the largest AI labs, independently, shipped the same encryption key for the part of the model they most wanted to keep secret.
The paper is “Stealing Reasoning Traces from Proprietary LLM APIs” (arXiv 2608.09867). Let me explain what actually broke, how the attack works, and what it means if you build on any of these APIs.
The bug, in plain terms
When you ask a frontier model a hard question, it “thinks” before it answers. That thinking is a chain of thought — the model’s step-by-step reasoning. Labs figured out years ago that exposing raw reasoning was dangerous: it leaks prompts, reveals how safety filters get bypassed, and makes distillation trivial.
So they started encrypting it. The reasoning is returned to the client as an opaque encrypted block, and the final answer is shown to you normally.
The paper’s core finding is that the encryption is a farce in one specific, devastating way: Anthropic, OpenAI, and Google each use a single global encryption key across their entire model family. Not a per-user key. Not a per-model key. Not even a per-session key. One key, shared across every model from the same provider.
Worse, the blocks are interchangeable. An encrypted reasoning block from a powerful, heavily-safeguarded model can be fed to a weaker, less-safeguarded model from the same provider, and that weaker model will happily decode it.
That interchangeability is the whole attack. It doesn’t matter that the strong model won’t reveal its reasoning under interrogation. The researchers never ask the strong model to.
How the replay attack works
The technique is almost insultingly simple, which is what makes it dangerous.
Take an encrypted reasoning block generated by, say, a frontier model. It’s opaque to you — you can’t read it. But you can paste it into a request to a weaker model from the same provider, the kind with fewer safety guardrails. Because both models share the same decryption key, the weaker model decrypts the block and, when prompted, writes the reasoning out in plaintext.
The researchers describe it bluntly: inject the encrypted trace into a weaker sibling, and “force it to decode and output the trace verbatim in plaintext, without ever jailbreaking the more capable model directly.”
There are four distinct attack vectors in the paper, but the replay attack is the headline. It’s a side channel that turns the providers’ own encryption scheme against them. The strong model’s guardrails never come into play, because the strong model never processes the request.
It also works across sessions, across users, and across accounts. A trace you couldn’t read yesterday can be decoded tomorrow by a different customer of the same provider. The confidentiality model — “your reasoning is encrypted so it’s safe” — simply doesn’t hold.
The second attack: reasoning as prompt injection
The replay isn’t the only problem. The paper describes a second vector that’s arguably worse for people building agents.
Because reasoning blocks are interchangeable, an attacker can craft a malicious reasoning trace — one that contains hidden instructions — and inject it into a victim’s session. When the model processes that block as part of its chain of thought, the embedded instructions become part of the model’s own reasoning context.
This is prompt injection with a nasty twist: the payload isn’t in the user-visible prompt. It’s buried inside what the model believes is its own private thinking. Models weight their own reasoning context more heavily than user text, which makes the injection harder to spot and harder to defend against.
For anyone running an agent that reads reasoning traces — or that passes context from one model to another — this is a real supply-chain risk, not a theoretical one.
The scale of the damage
The numbers in the paper are the kind that stick with you.
The researchers decoded 315,320 reasoning blocks using the shared-key flaw. In the process, they pulled live API keys out of public agent logs — credentials that real applications had leaked into their reasoning traces and that anyone could have extracted.
Before the patch, 182 credentials had already leaked from public logs. That’s not a hypothetical. Those are working keys that were sitting in plaintext, reachable by anyone who understood the trick.
This is the part I find hardest to wave away. A model’s reasoning isn’t just abstract thought. In practice it contains whatever the user’s request contained — API keys, internal URLs, customer data, private prompts. The “encrypted” reasoning was never actually private, and the proof is that people’s credentials came out of it.
Johns Hopkins researchers had flagged pieces of this earlier, in work dated May 29, 2026, showing reasoning blocks could be replayed within a session, across sessions, and across accounts. The new paper turns that observation into a working, general attack across all three providers.
Why a shared key is such a bad idea
If you’re an engineer reading this, your first question is probably “why would anyone do this?” and the answer tells you something about how these systems are actually built.
A shared global key is a convenience decision. When every model in your fleet uses one key, you don’t need per-user key management, key rotation, or a lookup to figure out which key decrypts which block. It’s dramatically simpler to implement, and it makes the encrypted blocks easy to log, cache, and replay internally — which is exactly why providers want them in the first place.
But it collapses the entire security model into a single point of failure. If the key leaks, or if the blocks are interchangeable across models, then “encryption” is providing roughly the same protection as a zip file with the password written on it.
For the responsible AI angle, this matters too. Labs justify encrypting reasoning partly on safety grounds — hiding the chain of thought makes the model harder to jailbreak or distill. But a scheme this weak doesn’t protect the model’s reasoning; it protects the appearance of a security boundary. Model evaluation that treats encrypted reasoning as private was measuring something that wasn’t true.
The good news is that the fix is boring and well-understood: per-session or per-user keys, cryptographic separation between model tiers, and treating reasoning blocks as untrusted input at every boundary. The bad news is that “boring and well-understood” fixes sometimes take a while to land in production systems this large.
This isn’t an isolated incident
If the shared-key flaw feels like a one-off, it isn’t. 2026 has been a rough year for AI security, and this paper slots into a pattern.
Earlier in 2026, security researchers disclosed a separate ChatGPT vulnerability that let conversation data be silently exfiltrated through a hidden DNS-based side channel, bypassing the guardrail against direct outbound requests. Check Point Research reported a related data-leakage channel in the code execution runtime, which OpenAI confirmed it had already identified internally and patched. BeyondTrust separately flagged a Codex GitHub token issue that granted lateral movement and read/write access to a victim’s entire codebase.
The through-line is the same in every case: features that are supposed to contain or protect a model turn out to have a hidden channel, and the channel gets found because someone was paying close attention to what the API actually returns. The reasoning blocks in this new paper are just the latest instance. Each fix patches one hole; the underlying lesson — that “hidden” AI internals are usually not hidden, just unexamined — keeps getting re-learned the hard way.
The model serving angle most coverage skips
There’s a part of this story that most write-ups miss, and it’s the one I keep thinking about as someone who has actually served models.
Encrypted reasoning blocks aren’t a security feature bolted on after the fact. They’re woven into how these providers serve inference. The reasoning is generated on one pass, encrypted, shipped to the client, and — crucially — often cached or replayed to save compute on subsequent turns. That’s why the blocks are designed to be interchangeable: it’s the same mechanism that lets a provider re-send your prior reasoning on the next request instead of re-running the whole chain of thought from scratch.
The shared key isn’t just laziness. It’s a direct consequence of an optimization. The providers wanted encrypted reasoning to be cacheable and replayable across their serving infrastructure, and a single global key is what makes that trivially easy. The researchers essentially turned the providers’ own caching design into an oracle: feed a block in, get the plaintext out.
This is why the fix is less trivial than “rotate the key.” You can’t just swap to per-user keys overnight if your serving stack, your caching layer, and your cost model all assume reasoning blocks are portable. Real key separation means reworking part of the inference pipeline, not updating a config flag. That’s the actual reason I’m not expecting a next-day fix across all three labs.
What to do if you build on these APIs
If you ship software that calls Anthropic, OpenAI, or Google models, treat reasoning traces as if they are already public. That’s the safe posture until the providers confirm and roll out real key separation.
Specifically: never log reasoning blocks to anything that isn’t encrypted and access-controlled, assume any secret in your prompt can leak into a reasoning trace and out through a log, and strip credentials from any context you send to a model. If you run an agent that pipes one model’s output into another, validate that output as untrusted input, the same way you’d treat any external string.
For users of consumer products built on these models, the exposure is more diffuse but not zero. If a product you use logs your conversations, and your conversations touch anything sensitive, this bug is one more reason not to paste secrets into a chat window.
The honest read on this: the providers shipped a confidentiality feature that didn’t provide confidentiality, and the proof isn’t a theoretical paper — it’s 182 leaked credentials. The fix is straightforward, but the damage already happened, and the trust cost is real. When a lab tells you your reasoning is encrypted and safe, this is the paper you should remember.