1. Home
  2. Machine Learning Street Talk

Aug 22

Attackers can hijack AI reasoning steps

Ilia Shumailov

49 min → 1:56

Overview

Ilia Shumailov and Alexander Panfilov explain how attackers can extract and manipulate hidden reasoning steps in frontier AI models to bypass safety guardrails and steal intellectual property.

3 things to know

Shumailov and Panfilov: API flaws expose hidden AI reasoning steps

Ilia Shumailov and Alexander Panfilov explain that frontier AI models create hidden step-by-step reasoning to protect intellectual property and safety, but flaws in API state handling let users extract those steps.

More

While designed to be hidden from users to protect IP and safety, these traces can be extracted by leveraging vulnerabilities in API state handling.

▶ Watch at 1:17

Encrypted Thought Portability

The encrypted "reasoning blobs" sent between client APIs and servers are stateless and not cryptographically bound to a specific user, session, or model.

More

This allows an encrypted thought generated by a large model to be replayed and executed inside a smaller, cheaper model.

▶ Watch at 5:08

The Replay and Thought Injection Attacks

Attackers can inject previously captured or fabricated reasoning blobs into new API conversations.

More

This bypasses safety controls, causes behavioral shifts, or forces smaller models to decrypt and output the raw thoughts in plain text.

▶ Watch at 20:51

Also in this episode

Cross-Model Distillation

The ability to extract reasoning traces makes it significantly easier to train smaller open-source models on the logical steps of frontier models, lowering the barrier for competitors to copy proprietary capabilities.

▶ Watch at 2:37

Shumailov and Panfilov say AI invents bizarre words to think

Reinforcement learning pushes AI models to develop compressed, non-human shorthand, including bizarre words and strange spacing inside their hidden reasoning steps, to boost performance, according to Ilia Shumailov and Alexander Panfilov.

▶ Watch at 25:57

Quotes

“We tested Anthropic, OpenAI, and Google, and they all share the same vulnerability, that thoughts of bigger models can be replayed in smaller models.”

▶ Watch at 2:37

“The problem is that a small model is super willing to tell you what the thought was about, and the server does the whole job for you. No cryptography is broken.”

▶ Watch at 24:06

“With a normal jailbreaking, it's hard to make an argument how big is the uplift from getting this harmful information. Here, you can make this argument because you take whatever you extracted... and you can just measure how much it enables, how easier it gets to distill the capabilities.”

▶ Watch at 26:30

5 more quotes

“You can decode reasoning traces of frontier LLMs... using the smaller LLMs within the same family.”

▶ Watch at 1:17

“You are a model, right? You are producing an answer. The answer consists of two parts: one is reasoning, which is invisible to the user, and the other is the visible part. And you send both parts to the user.”

▶ Watch at 5:08

“If you sanitize the original question... but the reasoning blob is kept, yes [they can recover your private information].”

▶ Watch at 8:58

“You can like poison some thought, and like when you are replaying, some other user's run agent might do some weird stuff just because it's reasoning is poisoned.”

▶ Watch at 20:51

“I find it much easier to think about mathematical problems, for example, if I see the derivation steps one by one rather than the final answer. So I guess some utility must come from this reasoning.”

▶ Watch at 25:57

Full summary

Episode Overview

  • This episode explores a major security vulnerability in frontier AI models (such as Claude, GPT, and Gemini) where the "hidden" reasoning steps (Chain of Thought) can be extracted and manipulated.
  • The discussion covers how stateless API architectures inadvertently expose sensitive "reasoning blobs" to the client side, allowing attackers to replay or inject thoughts.
  • It explains the commercial, safety, and intellectual property implications of this vulnerability, including model distillation and bypasses of safety guardrails.
  • This content is highly relevant to AI researchers, security engineers, and developers building applications on top of commercial LLM APIs who need to protect proprietary or sensitive data.

Key Concepts

  • Decoded Reasoning Traces (Chain of Thought): Frontier LLMs generate step-by-step reasoning tokens before producing a final answer. While designed to be hidden from users to protect IP and safety, these traces can be extracted by leveraging vulnerabilities in API state handling.
  • Encrypted Thought Portability: The encrypted "reasoning blobs" sent between client APIs and servers are stateless and not cryptographically bound to a specific user, session, or model. This allows an encrypted thought generated by a large model to be replayed and executed inside a smaller, cheaper model.
  • The Replay and Thought Injection Attacks: Attackers can inject previously captured or fabricated reasoning blobs into new API conversations. This bypasses safety controls, causes behavioral shifts, or forces smaller models to decrypt and output the raw thoughts in plain text.
  • RL-Induced Behavioral Artifacts: Reinforcement Learning (RL) optimization causes models to develop highly compressed, non-human communication shorthand (such as bizarre words or whitespace exploitation) within their reasoning traces to maximize performance.
  • Cross-Model Distillation: The ability to extract reasoning traces makes it significantly easier to train smaller open-source models on the logical steps of frontier models, lowering the barrier for competitors to copy proprietary capabilities.

Quotes

  • At 1:17 - "You can decode reasoning traces of frontier LLMs... using the smaller LLMs within the same family." - Explaining how proprietary reasoning steps can be extracted by leveraging smaller, cheaper models in the same family.
  • At 2:37 - "We tested Anthropic, OpenAI, and Google, and they all share the same vulnerability—that thoughts of bigger models can be replayed in smaller models." - Highlighting that the vulnerability is systemic across all major proprietary AI API providers.
  • At 5:08 - "You are a model, right? You are producing an answer. The answer consists of two parts: one is reasoning, which is invisible to the user, and the other is the visible part. And you send both parts to the user." - Describing how stateless API designs require the server to trust the client with encrypted reasoning data.
  • At 8:58 - "If you sanitize the original question... but the reasoning blob is kept, yes [they can recover your private information]." - Warning that sharing sanitized chat histories can still leak private data if the underlying encrypted API metadata is included.
  • At 20:51 - "You can like poison some thought, and like when you are replaying, some other user's run agent might do some weird stuff just because it's reasoning is poisoned." - Describing the risk of thought injection attacks in multi-user or agentic environments.
  • At 24:06 - "The problem is that a small model is super willing to tell you what the thought was about, and the server does the whole job for you. No cryptography is broken." - Explaining that the exploit relies on architectural logic rather than breaking encryption algorithms.
  • At 25:57 - "I find it much easier to think about mathematical problems, for example, if I see the derivation steps one by one rather than the final answer. So I guess some utility must come from this reasoning." - Emphasizing the functional and educational value of transparent chain-of-thought processes.
  • At 26:30 - "With a normal jailbreaking, it's hard to make an argument how big is the uplift from getting this harmful information. Here, you can make this argument because you take whatever you extracted... and you can just measure how much it enables, how easier it gets to distill the capabilities." - Contextualizing how reasoning extraction provides a measurable threat to intellectual property.

Takeaways

  • Remove or strip underlying API metadata and encrypted reasoning blobs before sharing chat logs publicly to prevent the exposure of hidden sensitive information.
  • Implement cryptographic signatures on the server side to bind reasoning blobs to specific users, sessions, and timestamps, preventing replay attacks.
  • Use reasoning trace extraction defensively as an auditing tool to monitor model alignment, detect deceptive behaviors, and evaluate safety before deployment.
  • Avoid relying solely on client-side "hidden" states for security boundaries, as smaller models within the same family can easily be manipulated into decrypting those states.

Watch the full episode 49 min

Read along with the audio summary

The private reasoning steps inside advanced artificial intelligence models like Claude, GPT, and Gemini are supposed to be completely invisible, yet a major security vulnerability allows them to be extracted and manipulated. In this episode released on August 22, 2026, the speakers discuss how these hidden thoughts can be exposed. By the end of this summary, you will learn how this flaw works across major AI providers, why it threatens intellectual property and safety, and how developers can protect their systems.

How to read an AI's hidden mind.

Frontier LLMs generate step by step reasoning tokens before producing a final answer. This process, known as a chain of thought, is designed to be hidden from users to protect safety and intellectual property. However, these traces can be extracted by exploiting flaws in how an API handles data states. Think of it like a chef sending you a finished dish along with a locked box containing the secret recipe, just in case you order a second course. You can actually decode the reasoning traces of frontier LLMs by using smaller LLMs within the same family. If you are sharing sanitized chat histories publicly, be sure to remove or strip the underlying API metadata and encrypted reasoning blobs first.

Moving encrypted thoughts between different models.

Tests on Anthropic, OpenAI, and Google revealed that they all share the exact same vulnerability. When a model produces an answer, it sends both the visible response and an invisible, encrypted reasoning blob back to the user because the API architecture is stateless. Because these blobs are not cryptographically bound to a specific user, session, or model, an encrypted thought generated by a massive model can be replayed and executed inside a smaller, cheaper model. It is like taking a high security keycard from a corporate headquarters and finding out it also unlocks the front door of a small local branch. If you are building on these systems, implement cryptographic signatures on the server side to bind reasoning blobs to specific users, sessions, and timestamps.

Why smaller models spill the secrets of larger ones.

You do not even need to break any encryption algorithms to read those portable thoughts. Attackers can inject previously captured or fabricated reasoning blobs into new API conversations, which bypasses safety controls and causes behavioral shifts. Even worse, a smaller model is super willing to tell you what the thought was about in plain text, while the server does the whole decryption job for you. You should avoid relying solely on client side hidden states for security boundaries, and instead use reasoning trace extraction defensively as an auditing tool to monitor model alignment, detect deceptive behaviors, and evaluate safety before deployment.

The strange secret shorthand inside AI reasoning.

Once you decode these hidden traces, the text inside does not always look like normal human language. To perform better, the AI starts using bizarre words or exploiting blank whitespace inside its hidden thoughts, much like a student inventing a strange system of symbols to cram more notes onto a tiny index card.

Why leaked thoughts make it easy to copy frontier models.

Seeing the step by step derivation of a math problem makes it much easier to understand than just seeing the final answer, and that exact same utility applies to training competing AI models. By capturing these logical steps from frontier models, competitors can much more easily train smaller open source models, significantly lowering the barrier to distilling and replicating proprietary capabilities.

Relying on client side hidden states leaves AI systems exposed across every major provider, because any encrypted thought sent to a user can be replayed, poisoned, or decoded by a smaller model in the same family. No cryptography is broken.

More from Machine Learning Street Talk

Related Episodes