<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-steal-an-ai-model-s-private-thoughts-583owpyic" -->

---
title: How to Steal an AI Model’s Private Thoughts | daily.dev
description: Researchers from MATS Research, ELLIS Institute Tübingen, and Max Planck Institute for Intelligent Systems found that the encrypted reasoning blocks returned...
canonical: https://daily.dev/posts/how-to-steal-an-ai-model-s-private-thoughts-583owpyic
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Steal an AI Model’s Private Thoughts | daily.dev
og:description: Researchers from MATS Research, ELLIS Institute Tübingen, and Max Planck Institute for Intelligent Systems found that the encrypted reasoning blocks returned...
og:url: https://daily.dev/posts/how-to-steal-an-ai-model-s-private-thoughts-583owpyic
og:image: https://api.daily.dev/og/posts/583OWPYIC.png
og:image:alt: How to Steal an AI Model’s Private Thoughts
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Steal an AI Model’s Private Thoughts

**[ByteByteGo](https://daily.dev/sources/bytebytego)** · 14 min read · 1 upvotes · 0 comments

## Summary

Researchers from MATS Research, ELLIS Institute Tübingen, and Max Planck Institute for Intelligent Systems found that the encrypted reasoning blocks returned by Anthropic, OpenAI, and Google APIs can be replayed into a cheaper model in the same family, which will then print the hidden chain-of-thought in plaintext. The encrypted envelope authenticates model name and version but not the account or session that created it, so a valid block stays valid across users, sessions, and models. This enables four attack vectors: distillation of competitor models using stolen reasoning traces, jailbreaking to extract harmful reasoning that never appears in the visible answer, mining leaked secrets from published agent session logs (62 API keys, 33 passwords, and more found across over 300,000 decoded blocks), and prompt injection by planting malicious instructions inside a block that gets replayed as prior context. Proposed fixes include binding blocks to account identifiers, hash-chaining blocks to sessions, and rotating signing keys.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.bytebytego.com/p/how-to-steal-an-ai-models-private>

## Questions this post answers

### Can encrypted reasoning blocks from Claude, GPT, or Gemini APIs be decoded to reveal the model's hidden chain-of-thought?

Yes. Researchers from MATS Research, ELLIS Institute Tübingen, and the Max Planck Institute showed that replaying an encrypted reasoning block from a flagship model like Claude Opus 4.8 or GPT-5.6 Sol into a smaller sibling model such as Claude Haiku 4.5 or GPT-5.6 Luna, and asking it to transcribe the attached reasoning, causes it to output the hidden trace in plaintext, because smaller models receive far less anti-distillation training.

_Teams building on LLM reasoning APIs can follow emerging security research like this on daily.dev before shipping agents that rely on hidden traces._

### Do published AI agent session logs leak secrets even after the visible text has been sanitized?

Yes. Scanning 6,708 public agent trajectories from GitHub and Hugging Face and decoding 315,320 encrypted reasoning blocks recovered 62 API keys, 33 passwords, 24 access tokens, 7 private keys, and 30 personal email addresses across 328 sessions, because sanitization only removes secrets from the visible plaintext, while the encrypted reasoning blocks contain the same secrets and cannot be inspected or cleaned by whoever publishes the log.

_Anyone publishing agent trajectories for reproducibility can track findings like this on daily.dev to avoid leaking secrets through unreadable blocks._

### How can API providers fix cross-user and cross-session replay of encrypted LLM reasoning blocks?

The cheapest fix embeds an account identifier inside the authenticated data at issuance so the API can reject a block replayed from a different account, closing cross-user replay without server-side storage. Cross-session binding is harder because forking, compacting, and model-downgrading features depend on portability; the proposed solution is a hash chain linking each block to its session and predecessor, pruned via a Merkle tree of root fingerprints.

_Engineers designing stateless LLM APIs can weigh mitigations like these on daily.dev when hardening reasoning-trace handling._

## Similar posts on daily.dev

- [Schneier on Security](https://daily.dev/posts/schneier-on-security-bkhfug2oz) · Schneier on Security · 3 upvotes · 0 comments
- [OpenAI’s August fix for theft of reasoning traces was quickly bypassed](https://daily.dev/posts/openai-s-august-fix-for-theft-of-reasoning-traces-was-quickly-bypassed-vsywspmnq) · CSO Online · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#openai](https://daily.dev/tags/openai), [#anthropic](https://daily.dev/tags/anthropic), [#encryption](https://daily.dev/tags/encryption), [#prompt-injection](https://daily.dev/tags/prompt-injection)

[View this post on daily.dev](https://daily.dev/posts/how-to-steal-an-ai-model-s-private-thoughts-583owpyic)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Steal an AI Model’s Private Thoughts","url":"https://daily.dev/posts/how-to-steal-an-ai-model-s-private-thoughts-583owpyic","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-steal-an-ai-model-s-private-thoughts-583owpyic"},"datePublished":"2026-08-25T15:36:43.523Z","dateModified":"2026-09-14T08:34:26.369Z","description":"Researchers from MATS Research, ELLIS Institute Tübingen, and Max Planck Institute for Intelligent Systems found that the encrypted reasoning blocks returned...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/df6c921ce77dd6b34461fb095b403981?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/df6c921ce77dd6b34461fb095b403981?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"ByteByteGo","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ByteByteGo","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/35be29234ee14d01a9cd049c52e12753","url":"https://daily.dev/sources/bytebytego"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-steal-an-ai-model-s-private-thoughts-583owpyic","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,openai,anthropic,encryption,prompt-injection","timeRequired":"PT14M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ByteByteGo","item":"https://daily.dev/sources/bytebytego"},{"@type":"ListItem","position":3,"name":"How to Steal an AI Model’s Private Thoughts"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-to-steal-an-ai-model-s-private-thoughts-583owpyic#faq","mainEntity":[{"@type":"Question","name":"Can encrypted reasoning blocks from Claude, GPT, or Gemini APIs be decoded to reveal the model's hidden chain-of-thought?","acceptedAnswer":{"@type":"Answer","text":"Yes. Researchers from MATS Research, ELLIS Institute Tübingen, and the Max Planck Institute showed that replaying an encrypted reasoning block from a flagship model like Claude Opus 4.8 or GPT-5.6 Sol into a smaller sibling model such as Claude Haiku 4.5 or GPT-5.6 Luna, and asking it to transcribe the attached reasoning, causes it to output the hidden trace in plaintext, because smaller models receive far less anti-distillation training. Teams building on LLM reasoning APIs can follow emerging security research like this on daily.dev before shipping agents that rely on hidden traces."}},{"@type":"Question","name":"Do published AI agent session logs leak secrets even after the visible text has been sanitized?","acceptedAnswer":{"@type":"Answer","text":"Yes. Scanning 6,708 public agent trajectories from GitHub and Hugging Face and decoding 315,320 encrypted reasoning blocks recovered 62 API keys, 33 passwords, 24 access tokens, 7 private keys, and 30 personal email addresses across 328 sessions, because sanitization only removes secrets from the visible plaintext, while the encrypted reasoning blocks contain the same secrets and cannot be inspected or cleaned by whoever publishes the log. Anyone publishing agent trajectories for reproducibility can track findings like this on daily.dev to avoid leaking secrets through unreadable blocks."}},{"@type":"Question","name":"How can API providers fix cross-user and cross-session replay of encrypted LLM reasoning blocks?","acceptedAnswer":{"@type":"Answer","text":"The cheapest fix embeds an account identifier inside the authenticated data at issuance so the API can reject a block replayed from a different account, closing cross-user replay without server-side storage. Cross-session binding is harder because forking, compacting, and model-downgrading features depend on portability; the proposed solution is a hash chain linking each block to its session and predecessor, pruned via a Merkle tree of root fingerprints. Engineers designing stateless LLM APIs can weigh mitigations like these on daily.dev when hardening reasoning-trace handling."}}]}
```

