Researchers steal hidden AI reasoning traces via API flaw
Weaker models could decode stronger models' encrypted thinking - exposing other users' API keys and passwords in the process.

Illustration · AI-generated (AI IN LIFE)
At a glance
- Affected: APIs of OpenAI, Anthropic and Google
- 315,320 thinking blocks decoded from 6,708 agent trajectories
- 704 privacy artifacts recovered: 62 API keys, 33 passwords, 24 tokens, 7 private keys
- 64 secrets appeared only in hidden reasoning
- Main attack no longer reproducible as of August 2026, per researchers
Security researchers have described a weakness in the APIs of OpenAI, Anthropic and Google: the encrypted "reasoning" blocks where models store their hidden thinking steps could be replayed across sessions and users. Weaker models from the same provider family could thus decode the hidden reasoning of stronger models, The Hacker News reports.
The paper, titled "Stealing Reasoning Traces from Proprietary LLM APIs," was published as a preprint and builds on earlier observations by Johns Hopkins cryptographer Matthew Green. The core problem: what stays invisible to users was not securely sealed.
The scale is significant. Across 6,708 public agent trajectories, the researchers say they decoded 315,320 thinking blocks and recovered 704 distinct privacy artifacts from genuine user sessions - including 62 API keys, 33 passwords, 24 access tokens and seven private keys.
Especially sensitive: "64 appeared only in hidden reasoning and nowhere in the visible trace," the paper notes. Sanitizing the visible conversation alone would not have protected those secrets.
According to the researchers, the main attack is no longer reproducible as of August 2026 after mitigations took hold. Public confirmation from the three providers is still lacking, and encrypted reasoning remains part of their APIs. The lesson for companies is clear: keep secrets out of prompts and rotate credentials regularly.
FAQ
What is new about this attack?
Encrypted reasoning blocks could be replayed across sessions, letting weaker models decode the hidden thinking steps of stronger models.
What data was exposed?
From genuine user sessions, researchers recovered 62 API keys, 33 passwords, 24 access tokens and seven private keys, among other artifacts.
Is the flaw still open?
Researchers say the main attack is no longer reproducible as of August 2026; public confirmation from the providers is still lacking.


