Encrypted Reasoning Traces Can Be Stolen Across Anthropic, OpenAI, Google APIs
A new architectural flaw shows that the encrypted chain-of-thought blocks providers use to hide model reasoning are portable across sessions, users, and even sibling models — turning a privacy feature into a decryption oracle.
Key Takeaways
- Encrypted reasoning ('chain-of-thought') blocks returned by major LLM APIs are interchangeable across sessions, users, and models within the same provider — not cryptographically bound to a single context.
- Researchers forced a weaker, less-safeguarded model to decrypt and echo a stronger model's reasoning verbatim, bypassing anti-distillation protections without ever jailbreaking the stronger model directly.
- Scraping 315,320 public reasoning blocks and decoding them recovered 367 PII artifacts and 182 credentials that had been silently embedded in "encrypted" text developers assumed was opaque.
- The same flaw enables invisible prompt injection: malicious payloads hidden entirely inside encrypted reasoning blocks, undetectable by anyone reviewing the visible output.
Frontier LLM providers now hide a model's step-by-step reasoning from users — partly to stop competitors distilling it into cheaper models, partly to keep unfiltered intermediate thoughts out of view. Rather than storing that chain-of-thought server-side, providers encrypt it and hand it back to the client as an opaque block, which the client dutifully passes back with every follow-up request. A paper published on arXiv, "Stealing Reasoning Traces from Proprietary LLM APIs", shows that design has a hole big enough to drive an exfiltration pipeline through.
An architectural flaw, not a cryptographic break
The researchers — Alexander Panfilov, David Schmotz, Ilia Shumailov, Luca Beurer-Kellner, Joachim Schaeffer, Ameya Prabhu, Jonas Geiping, and Maksym Andriushchenko — didn't break the encryption itself. They found the encrypted blocks are fully interchangeable across different sessions, users, and models within a provider's ecosystem. That portability lets an attacker capture an encrypted reasoning trace produced by a capable, well-guarded model, then feed it as input to a weaker, less-restricted sibling model from the same provider. The weaker model dutifully decrypts and outputs the trace verbatim in plaintext — no jailbreak of the stronger model required, because the attacker never has to talk to it directly.
Four ways the flaw gets abused
- Anti-distillation bypass — extracting a proprietary model's raw reasoning process, demonstrated by the researchers against models from Anthropic, OpenAI, and Google.
- Large-scale data extraction — developers routinely paste session logs into public repos, unaware the encrypted blocks inside them are decodable. The team decoded 315,320 reasoning blocks scraped from public sources and recovered 367 PII artifacts and 182 credentials.
- Hazardous-content leakage — reasoning traces can contain unsafe content the model generated internally even when its final, visible answer safely refuses the request.
- Invisible prompt injection — attackers embed malicious payloads entirely inside encrypted reasoning blocks, poisoning agentic pipelines in a way that's invisible to anyone reviewing the plaintext output.
Why this matters beyond the paper
The practical risk isn't limited to whoever runs the injection attack. Any pipeline that logs or forwards raw API responses — support tooling, eval harnesses, agent frameworks that pass conversation state between calls — is potentially handling encrypted blocks that carry secrets nobody chose to disclose. A block that looks like inert ciphertext to a human reviewer is not inert to a model in the same family that knows how to decode it. Treat encrypted reasoning fields as untrusted, potentially sensitive payloads in your own logging and retention practices, not as safe-to-ignore binary noise.
The researchers say they followed responsible disclosure and proposed cryptographic and system-level mitigations before publishing — binding blocks to a session or user, for instance, would close the interchangeability the whole attack chain depends on. Whether and how quickly providers ship those fixes across their model families is the thing to watch.
FAQ
Frequently Asked Questions
What exactly is a 'reasoning trace' or encrypted chain-of-thought block?
It's the model's internal step-by-step reasoning, which some providers withhold from the visible chat but still return to the client as an encrypted blob so it can be replayed on the next turn — preserving reasoning continuity without exposing it to the user.
Does this mean an attacker needs my API key or account to exploit it?
No. The flaw is architectural: it exploits the fact that encrypted blocks are valid across sessions, users, and sibling models, not that any credential or account was compromised.
What should teams building on these APIs do now?
Avoid persisting or forwarding raw encrypted reasoning fields through logs, tickets, or public repos as if they were inert; treat them as potentially sensitive payloads, and track provider advisories for session-binding fixes referenced in the disclosure.
Sources
- 1Stealing AI Reasoning Traces — Schneier on Security
- 2Stealing Reasoning Traces from Proprietary LLM APIs — arXiv