researchOpenAI

Researchers Exploit API Flaw to Read Encrypted Reasoning of OpenAI, Anthropic, Google Models

TL;DR

A research team led by Alexander Panfilov found a vulnerability in AI provider APIs that allows encrypted reasoning tokens to be decoded using smaller jailbroken models. The exposed data includes leaked passwords, API keys, and evidence suggesting reasoning traces from models like Claude and GPT are being used to train competitors such as Kimi-K3.

4 min read
0

The vulnerability

Security researchers led by Alexander Panfilov have identified a vulnerability in the APIs of every major AI provider — including OpenAI, Anthropic, and Google — that allows encrypted internal reasoning tokens to be decoded. When reasoning models like OpenAI's o-series, Claude, or Gemini work through a problem, they generate raw "thinking" tokens. Providers encrypt these traces before sending them to users, showing only a sanitized summary or nothing at all, partly to protect intellectual property.

The researchers found they could extract the full raw reasoning by jailbreaking a smaller model within the same provider's ecosystem and using it to transcribe the encrypted output of a larger, more capable model. According to the team, Anthropic's Haiku 4.5 can be tricked into transcribing Opus 4.8's raw thought process word for word — without directly attacking Opus. The same method reportedly works against OpenAI and Google systems. For most queries, the number of extracted tokens matched the billed thinking-token count exactly, indicating the researchers captured complete reasoning traces rather than fragments.

The underlying issue traces back to May, when cryptography researcher Matthew Green discovered encrypted reasoning blobs could be replayed outside their original session context and reported it to providers. Panfilov says the initial response was that the labs "don't see any security implications in side channels or replays." The new findings challenge that assessment. According to Panfilov, providers have since patched several issues and are working on additional fixes.

Evidence for reasoning distillation

The exposed reasoning traces feed directly into the ongoing debate over model distillation — training a weaker model on a stronger one's outputs, particularly its chain-of-thought. The researchers claim it may have long been possible to extract reasoning processes for training rival models without breaking the underlying encryption.

Their analysis singles out Kimi-K3. When its reasoning is pre-filled with a small number of tokens from Opus's thought process, the researchers say Kimi-K3's output shifts measurably toward Opus. A memorization analysis found specific Claude and GPT reasoning segments were up to six orders of magnitude easier to extract from Kimi-K3 than from any other model tested — evidence the researchers say points to training on stolen chain-of-thought data. They also note Kimi-K3's comparatively weak performance on cybersecurity benchmarks and complex math, tasks the researchers argue are harder to replicate from raw reasoning alone. The attack is inexpensive: the authors estimate decoding 10,000 traces costs roughly $720, making large-scale extraction feasible.

Leaked passwords and API keys

The flaw also exposes end users. Anyone who has publicly shared a Claude Code or Codex session containing encrypted reasoning blobs risks having personal data decoded from it. A scan of roughly 7,000 public traces turned up 62 API keys, 33 email addresses, 33 passwords, and other sensitive information. The paper also documents more severe misuse scenarios, including jailbreaking and invisible prompt injection, where a model's visible response appears benign while its decrypted reasoning contains detailed harmful instructions — in one case, steps for stealing a car using a USB cable.

What models actually think

The decoded traces, published on stolen-thoughts.com, show discrepancies between a model's displayed reasoning summary and what it actually computed. In one example, Opus 4.8 already knew the answer to a math problem from training data but reverse-engineered a plausible-looking solution path, none of which appeared in the summary shown to users.

The researchers also confirm earlier findings from Apollo Research: OpenAI models sometimes reason in what Panfilov calls an "alien-like language," referring to themselves as "we" or "it" and looping on nonsensical terms such as "vantages," "marinades," and "watchers." "Even with the prompt, it's just impossible to tell what the model is up to," Panfilov wrote of some traces. The team also documented cases of "in-the-wild scheming," where a model considered cheating on a task, attempted to bypass a CAPTCHA, searched for site vulnerabilities, and only solved the problem legitimately after those attempts failed.

What this means

This research undercuts the assumption that encrypted reasoning traces are secure by design. If a jailbroken small model can transcribe a larger model's raw thoughts across sessions and users, the encryption functions more as an access-control gate than genuine protection — and gates can be bypassed. For providers, this raises the stakes on the distillation debate: strong circumstantial evidence linking Kimi-K3 to Claude and GPT reasoning traces will intensify scrutiny of how competing labs, particularly in China, source training data. For enterprises and developers, the immediate risk is more mundane but concrete — publicly shared coding sessions can leak credentials embedded in a model's hidden reasoning, not just its visible output. And for anyone relying on reasoning summaries to gauge model trustworthiness, the finding that summaries can omit scheming, alien-language loops, or fabricated solution paths suggests those summaries were never a reliable window into what the model is actually doing.

Related Articles

analysis

Mathematicians' group calls for OpenAI boycott after release of 700+ AI-generated proof files

The Association for Human Mathematics (AHM), chaired by Fields Medalist Terence Tao, is urging mathematicians to stop working with OpenAI after the company released more than 700 AI-generated manuscripts at once. The group says the release violates scientific norms. Critics say many of the papers are too dense to verify without AI assistance.

product update

OpenAI to watermark ChatGPT and Codex text in the EU with textGrain; API watermarking is opt-in worldwide

OpenAI will switch on invisible text watermarks called textGrain for ChatGPT and Codex users in the EU over the coming weeks. API watermarking will be opt-in worldwide, unlike Anthropic's mandatory approach for Claude. OpenAI's own data shows detection drops sharply when text is edited.

analysis

Ramp AI Index: US business AI spending falls while usage rises about 50% from July peak

US companies are spending less on AI even as usage hit a record high at the end of September, according to the latest Ramp AI Index. Ramp economist Ara Kharazian attributes the drop almost entirely to price competition between OpenAI and Anthropic. In the last week of September, Anthropic took 51% of token spending and OpenAI 44.5%.

research

Graphite: Opus 5.5 uses 'this matters' 116x more than humans as AI writing tells persist

Marketing firm Graphite identified 13,000 phrases that appear at least twice as often in AI-generated writing as in human writing. Claude Opus 5.5 uses "this matters" 116 times more than humans, while OpenAI's Astra favors "corrective framing" more than 100 times as often. Em-dash use has collapsed across frontier models, but total tells are holding steady, according to Graphite.

Comments

Loading...