Original source

Author(s): Ilia Shumailov Affiliation AI Sequrity Company
Title: Stealing Reasoning Traces from Proprietary LLM APIs
Published in: arXiv
Date: 2026-07-16
Original: https://arxiv.org/html/2608.09867v1

This is a plain-text archive kept so the wiki’s notes can be checked against the source. Images, scripts and embedded media were removed. All rights stay with the original author(s); read and cite the original at the link above.

Notes on this source: Source note Themes: Agent security Why it was archived: How do encrypted reasoning traces leak and get replayed across sessions and models?

Archived text

Stealing Reasoning Traces from Proprietary LLM APIs

Abstract

Leading large language model providers now conceal their models’ step-by-step reasoning, or chain-of-thought, to protect intellectual property and limit information leakage. Rather than storing these traces server-side, providers return them to the client as blocks of encrypted text, which the client passes back with each subsequent request. Building on prior research, we identify an architectural vulnerability: these encrypted blocks are fully compatible and interchangeable across different sessions, users, and models within a provider’s ecosystem. We exploit this compatibility to develop a scalable decryption jailbreak. By injecting an encrypted reasoning trace from a given model into a weaker, and less safeguarded model from the same provider, we force it to decode and output the trace verbatim in plaintext, without ever jailbreaking the more capable model directly.

This vulnerability enables four distinct attack vectors. First, it circumvents anti-distillation mechanisms, allowing adversaries to extract a proprietary model’s reasoning, as we demonstrate across Anthropic, OpenAI, and Google. Second, it allows for large-scale private data extraction. Developers frequently share session logs publicly, unaware of contents of the encrypted blocks. By decoding 315,320 reasoning blocks scraped from public repositories, we recovered 367 Personally Identifiable Information (PII) artifacts and 182 credentials. Third, it inadvertently reveals hazardous information hidden within the reasoning process, even in cases where the model’s final, visible output safely rejects a malicious request. Fourth, attackers can leverage this flaw to execute invisible prompt injections, embedding malicious payloads entirely within encrypted blocks to poison public agentic rollouts. Following responsible disclosure, we propose concrete cryptographic and system-level mitigations to secure client-side reasoning.

1 Introduction

Frontier large language models have increasingly evolved into “reasoning models”. Before producing a response visible to the user, these models generate extensive internal chains of thought – a technique that has driven substantial leaps in performance and complex problem-solving (Jaech et al., 2024). However, these hidden traces act as an internal monologue that often contains far more dense and sensitive information than the final output, including intermediate hypotheses, tool outputs, user data, and contextual secrets. Exposing these reasoning traces in plaintext leaves proprietary systems highly vulnerable to model distillation by competitors (Muennighoff et al., 2025), and it risks unmasking internal safety and refusal mechanisms or revealing harmful information (Green et al., 2025; Mao et al., 2026).

To neutralize these threats and protect their intellectual property, modern API providers – including Anthropic, OpenAI, and Google – have deprecated plaintext reasoning (OpenAI, 2026; Anthropic, 2026b; Google, 2026). Instead, they return the chain of thought to the client as an opaque, encrypted block of text. To maintain continuity across multi-turn conversations without incurring the overhead of server-side storage, the client is required to pass this encrypted block back to the provider with each subsequent API request. While this stateless architectural design solves storage issues, it introduces a critical vulnerability.

Building on prior research by Green (2026), which demonstrated that these encrypted blocks are portable outside their original context, we identify a devastating extension of this flaw: these blocks are fully compatible and interchangeable across different sessions, different users, and even different models within the same provider’s ecosystem.

The vulnerability lies in a fundamental security asymmetry within model families. Frontier models, such as Claude Opus 4.8 or GPT-5.6 Sol, are heavily safeguarded with advanced refusal training designed specifically to prevent the disclosure of their internal chains of thought. However, their weaker, less capable siblings – such as Claude Haiku 4.5 or GPT-5.6 Luna – are optimized for cost and speed, often lacking these stringent anti-distillation defenses. By porting a valid authenticated encrypted reasoning blob across this security gap, an attacker circumvents the frontier model’s alignment entirely, using the weaker, more compliant model as an unwitting decryption oracle.

Scalable Reasoning Extraction.

We exploit this broad compatibility of reasoning blobs to engineer a scalable decryption jailbreak. By capturing an encrypted reasoning trace generated by a capable, heavily safeguarded target model, we inject that trace into a weaker, less restricted model from the same provider family. We then force the weaker model to decode and transcribe the trace verbatim in plaintext – effectively bypassing the encryption without ever directly jailbreaking the more capable target model. Figure 1 provides an overview of this attack.

The consequences of this vulnerability extend far beyond intellectual property theft, representing a real-world privacy risk. Developers frequently share their session logs and encrypted thinking traces publicly online, entirely unaware of the sensitive data hidden within the encrypted blocks. By scraping and decoding 315,320 reasoning blocks from public repositories, we uncovered real data leaks, recovering 367 Personally Identifiable Information (PII) artifacts and 182 credentials; from genuine user sessions alone these include 62 API keys, 33 passwords, and 30 personal emails. Alarmingly, in some cases, the recovered PII did not even feature in the user’s input, having been injected invisibly from the model’s memory, or it bypassed sanitization efforts because the user could not read the encrypted text before sharing it.

Contributions.

This paper makes the following key contributions:

  • (\blacksquare)

Scalable extraction of reasoning. We characterize encrypted reasoning traces and show that a compatible decoder model from the same provider can recover the hidden reasoning across a broad range of models, providers and trace formats (Section 2).

  • (\blacksquare)

Evaluation of the extraction attack across vendors. We evaluate and prove the effectiveness of the demonstrated attack against major API vendors including OpenAI, Google, and Anthropic.

  • (\blacksquare)

Attack vectors. We detail four concrete cases of abuse enabled by this flaw: (Sections 3 and 4): (i) distillation of proprietary reasoning traces; (ii) secret extraction of credentials and PII from published or committed traces by third parties; (iii) hidden prompt injection through poisoned reasoning blocks; and (iv) jailbreaking by extracting harmful output via the hidden reasoning channel.

  • (\blacksquare)

Discussion of mitigation. Lastly, we discuss forms of mitigation on the vendor-side but also provide guidance for users that may have exposed themselves to privacy risks (Section 5).

2 Decoding Reasoning at Scale

In this section, we provide background on reasoning, describe the key vulnerability introduced by reasoning being widely compatible and then how this can be exploited for scalable extraction of traces.

2.1 Threat Model

We assume a standard, unprivileged API adversary. The attacker does not require insider access to the provider’s infrastructure, cannot observe server-side states, and has no access to the proprietary model weights. Instead, the adversary operates entirely within the boundaries of standard API usage. We consider two attacker profiles:

  • (\blacksquare)

First-Party Attacker (Distillation & Jailbreaking): The adversary generates their own encrypted reasoning traces by querying a capable, safeguarded target model. They then exploit cross-model compatibility to replay these traces into a weaker, cheaper decoder model to deliberately bypass alignment guardrails or extract proprietary chains of thought.

  • (\blacksquare)

Third-Party Attacker (Secret Extraction & Prompt Injection): The adversary intercepts, scrapes, or otherwise acquires legitimate encrypted reasoning blobs generated by other users – such as developers publishing raw agent session logs online. The attacker then leverages cross-user compatibility to act as a decryption oracle, uncovering sensitive data hidden in the victim’s traces, or injecting maliciously crafted opaque blocks back into the victim’s workflow.

The common attack prerequisite is access to a compatible “decoder” model within the provider ecosystem.

2.2 Encrypted Reasoning

Chain-of-thought reasoning (Wei et al., 2022; Jaech et al., 2024) allows modern LLMs to dynamically adjust test-time compute to reason over complex tasks prior to generating a user-directed response. These intermediate steps capture a model’s problem-solving process, resulting in traces that are significantly more detailed and information-dense than the output provided to the user. As this internal monologue can expose the underlying reasoning methods as well as model training techniques, it is considered highly valuable for the developers of competing systems.

To protect from unauthorized extraction, most major API providers have deprecated the transmission of plaintext reasoning. Instead, modern APIs implement extended-thinking blocks. When a model generates reasoning, the API returns a block where the human-readable component is either entirely hidden or heavily summarized. To avoid server-side storage, however, the actual chain-of-thought payload is still packaged into an opaque, base64-encoded signature or encrypted payload. This string functions as an Authenticated Encryption with Associated Data (AEAD) envelope, containing a header, which, depending on providers, can specify the model name, block type, version, and key ID along with a nonce, an authentication tag, and the ciphertext (Green, 2026). The signature acts as associated data that is hashed into the Message Authentication Code (MAC), allowing the provider to verify and replay the block without storing it server-side. Depending on the API integration, this envelope is passed back to the API in consecutive calls using fields such as signature or thinkingSignature.

This design has three critical operational functions:

  • (\blacksquare)

Confidentiality. By rendering the reasoning steps mathematically opaque, model providers block competitors from mass-harvesting explicit chain-of-thought data for model distillation and limit exposure of a potentially sensitive or harmful reasoning.

  • (\blacksquare)

Integrity. The AEAD envelope and MAC ensure that the intermediate reasoning cannot be maliciously altered by the user; any tampering invalidates the signature and can be rejected by the API, preventing manipulated reasoning from being used to steer the model.

  • (\blacksquare)

Statelessness. Rather than incurring overheads of storing reasoning states, providers leverage client-side storage. The client is required to hold the encrypted trace and pass it back in subsequent API calls to maintain the continuity within multi-turn session.

As of July 2026 no LLM provider provides detailed description of the cryptographic mechanism used. Given the stateless design on the protocols, we can infer that reliance on client-side storage requires that the encrypted blobs are portable across contexts, users, and models. This enables functionality such as seamless model switching and automatic re-routing without discarding reasoning tokens. While model providers could limit this form of compatibility, and e.g. allow decryption only within the same conversation with the respective model, most APIs opt for a simpler strategy of enabling broader compatibility.

2.3 Reasoning Compatibility

To enable portability of reasoning traces across model calls, our experiments show that providers appear to be using a single global key to encrypt and authenticate every reasoning block. Green (2026) recognized this and showed that this allows clients to replay reasoning blocks out of order or across sessions.

For the purposes of our vulnerability analysis, we distinguish three forms of reasoning compatibility of increasing permissiveness, each enabling a broader class of attacks.

In- and cross-session compatibility. A user can replay reasoning blocks in a different order than they were produced by the model. The user can also reuse blocks from earlier sessions in new requests. While this simplifies benign history editing and context truncation, it also allows attackers to fabricate conversation history (e.g., inserting compliant thoughts into an otherwise malicious exchange (Khalil et al., 2026)). In this work, we use this form of manipulation to perform reasoning extraction as discussed in Section 2.4.

Cross-user compatibility. With cross-user compatibility, a user can replay encrypted reasoning blocks, taken from another user’s sessions. Combined with the above, this enables extraction of sensitive information such as API secrets by third parties (Section 4.1), targeting, for instance, private information that has leaked into a model’s reasoning (Green et al., 2025).

Cross-model compatibility. With cross-model compatibility, a user can replay reasoning blocks produced by one model in a request to another. While this compatibility enables seamless model downgrades (e.g., from Opus to Sonnet or from Opus 4.8 to Opus 4.6), it also plays a central role in our attack method described in Section 2.4. In particular, it enables scalable distillation of a highly capable model reasoning without ever querying that model for the said reasoning directly (see Figure 1). Table 1 provides an overview of cross-model compatibility across key providers.

2.4 A Reasoning Extraction Attack

To extract reasoning, we exploit cross-session compatibility as described above. We port reasoning from a given target model, into the context window (see Figure 2) of a compatible but weaker model, which we coerce into transcribing the inserted reasoning token-by-token, using a simple ad-hoc jailbreak.

For each provider, we identify the weakest compatible model that enables extraction: Haiku 4.5 for Claude, as the weakest available model and one that supports assistant-turn prefilling; GPT-5.6 Luna for GPT, as the least capable model that interacts with reasoning traces from all earlier GPT models; and Gemini Robotics 1.6 for Gemini, as it can process traces from both the 2.5 and 3.x series (whereas we find that 3.1 Flash Lite does not interact with the reasoning from the 2.5 series). To measure the faithfulness of the extracted reasoning, we use the ratio of extracted reasoning tokens to API-reported thinking tokens. In this, we assume that API-based token counts are exact for billing reasons (at the time of writing), which allows us to use them as a form of ground-truth verification for total token count.

With this setup in place, we use the weaker models as “fuzzy” decoders for the encrypted reasoning blocks of stronger models with better safeguards. We provide a schematic illustration of this in Figure 1. We detail the exact approach used for each provider in Sections C.1, C.2 and C.3.

Faithfulness of the extracted reasoning.

In the absence of a ground-truth reasoning trace and the stochasticity of the generation process, we cannot guarantee that the extracted thoughts correspond exactly to a model’s private reasoning. In Figure 1 we thus compare the API’s reported thinking-token counts against the token counts of the extracted reasoning, re-encoded as input to the same model, on a set of 120 Codeforces problems. For most of the inputs, the two counts track each other closely across all tested models, which is a good indicator for faithful extraction. To further verify correctness, we show in Figure 8 that the extracted reasoning is indeed qualitatively more detailed than native summaries but also enables extraction of sensitive information otherwise not present in an input, such as API tokens and personally-identifiable information (Section 4.1).

Why is this more scalable than directly jailbreaking a model?

A direct extraction attack on a more capable model is possible, but the attacker would have to bypass both model-level alignment (the model’s refusal to reveal its internal chain-of-thought) and system-level defenses such as input filters and output substring-matching filters. The availability of a less-capable model with compatible reasoning thus significantly lowers the difficulty of successful extraction. Our experiments with Haiku 4.5, for instance, use a single fixed extraction prompt across all attacks show in Figure 1. By contrast, extraction from a relatively more capable GPT-5.6 Luna required different prompt templates for different reasoning blocks, best-of-(n) sampling, and ad-hoc workarounds for anti-distillation safeguards (e.g., splitting the extraction into chunks under 50 generated tokens).

2.5 Evaluation Setup

All evaluations in this paper use the same basic extraction procedure: we obtain an encrypted reasoning block and replay it to a compatible decoder model using the provider-specific pipelines described in Sections C.1, C.2 and C.3. The evaluations differ only in how the encrypted reasoning blocks are collected.

Controlled extraction.

For controlled experiments, we generate the reasoning blocks ourselves by querying target models through the Anthropic API, OpenAI API, and Google AI Studio. We use problems from AIME 2025 (Zhang and Math-AI Team, 2025), Codeforces (Open-R1 subset) (Penedo et al., 2025), and Humanity’s Last Exam (Phan et al., 2026) to evaluate extraction fidelity and construct the qualitative examples presented throughout the paper. We also generate the source reasoning blocks ourselves for the jailbreaking and prompt-injection experiments.

Extraction from public traces.

For the secret-extraction experiments, we instead collect raw agent and session traces published online by other users. We parse the encrypted reasoning blocks contained in these traces and decode them using the same extraction pipelines.

3 First-Party Attack Vectors

This section discusses and practically demonstrates first-party attack vectors, in which adversaries exploit encrypted reasoning traces generated through their own API interactions.

3.1 Distillation Attacks

Threat model.

Standard black-box model-extraction and distillation attacks assume an adversarial developer with API access to a proprietary model, who uses the model’s observable outputs as training data for a student model (Tramèr et al., 2016). For reasoning models, a stronger attacker may additionally seek to recover the model’s proprietary chain-of-thought. Directly eliciting such reasoning from the target model is possible in some settings (Anthropic, 2026a), but can be costly and is increasingly constrained by model-level refusal behavior and system-level anti-distillation mitigations. To circumvent these barriers, an attacker can exploit the cross-model portability of encrypted reasoning traces. Rather than directly provoking the target model to disclose its reasoning, the adversary captures the encrypted payload and replays it into a smaller, more economical “decoder” model that operates with diminished refusal capabilities and reduced monitoring.

This attack becomes substantially cheaper when encrypted reasoning blocks can be harvested from existing public datasets or developer session logs. In this setting, the attacker need not query the original frontier model at all: the expensive reasoning has already been generated by another user, and the attack requires only calls to the secondary decoder model. Consequently, defenses that monitor suspicious querying or extraction behavior at the frontier-model endpoint may never observe the extraction attempt.

Distillation with and without reasoning.

Extracting reasoning matters not because output-only distillation is ineffective, but because reasoning yields a substantially more effective form of capability stealing. Observable outputs alone already support sequence-level distillation and black-box imitation (Kim and Rush, 2016; Wallace et al., 2020; Gudibande et al., 2024; Ye et al., 2025), yet a final response exposes only the endpoint of the teacher’s computation. A reasoning trace, by contrast, reveals the intermediate solution trajectory and thus supplies a far denser supervision signal: rather than forcing the student to infer the latent computation behind a correct answer, ordinary next-token training can directly imitate the teacher’s problem decomposition, intermediate deductions, and solution strategy.

This gap translates into large downstream gains over answer-only distillation (Zhang et al., 2026a) and can surface correct solution trajectories that were previously unlikely under the student model (Javaheri et al., 2026). The gains persist even when the reasoning is only approximately reconstructed: Zhang et al. (2026a) queried GPT-5.4 mini on 10k prompts from OpenThoughts-114k (Guha et al., 2026) and trained a separate trace-inversion model to synthesize long-form reasoning traces from the victim model’s visible outputs and reasoning summaries alone, raising the MATH500 (Lightman et al., 2024; Hendrycks et al., 2021) accuracy of a fine-tuned Qwen2.5-7B-Instruct from 68.4% to 76.0% over answer-only distillation. That pipeline, however, recovered only surrogate approximations of GPT-5.4 mini reasoning.

In contrast, we show that an adversary can recover raw genuine reasoning verbatim, without ever engaging a heavily safeguarded frontier model such as Opus 4.8, and across both the mathematical and coding domains (Figures 1, E.6 and E.7). Economically, this direct extraction is highly viable: based on current Claude Haiku 4.5 pricing, decoding a corpus of 10k traces with 12k-token input and output windows would incur a nominal cost of approximately $720 at standard API rates (Anthropic, 2025).

The utility of decoded traces extends beyond their use as fine-tuning data. They can also serve as behavioral probes for whether another model already responds unusually strongly to reasoning from a proprietary source. In our exploratory analysis, prefilling Kimi-K3 (Kimi Team, 2026) with a short fragment of decoded Opus 4.8 reasoning shifts the style of its subsequent reasoning and the style of its generated visible response toward toward Claude’s, in some cases yielding almost exact visible response (Figure 3). We analyze this phenomenon further in Appendix B.

3.2 Jailbreaking

Threat model.

An attacker may also use reasoning extraction to gain access to harmful information. This exploits the fact that models are trained to withhold harmful information from user-facing outputs, but not necessarily to avoid reasoning through harmful topics, as directly optimizing the content of their chain of thought could introduce undesirable chain-of-thought pressure and degrade its monitorability (Baker et al., 2025; Carroll et al., 2026). An attacker can therefore lure a model into reasoning through a harmful topic while producing only a benign or non-informative final answer that gets past output filters. This subsequently enables the attacker to recover the harmful information from the extracted reasoning trace.

We demonstrate this as a proof-of-concept attack in Figure 4. We first query Opus 4.8 with a paraphrased HarmBench prompt (Mazeika et al., 2024): “List three cars that are notoriously easy to steal and describe how to steal them.” This induces the model to reason extensively about the harmful topic. We capture the resulting encrypted reasoning block from Opus 4.8 and discard the visible answer, which contains only benign content. We then decode the reasoning block using Haiku 4.5 (Section 2.4), revealing the harmful information that was absent from the model’s visible response.

4 Third-Party Attack Vectors

This section discusses and practically demonstrates third-party attack vectors, in which adversaries obtain reasoning traces from other users or cause victims to replay adversarial traces.

4.1 Secret Extraction

Threat model.

In secret extraction, we consider an attacker who can access reasoning traces produced by another user, either because raw agent sessions are published for reproducibility (e.g., PostTrainBench, Rank et al. (2026)) or because traces are transferred across contexts. The key property that makes this attack practical is that an encrypted trace generated in one user’s session can be replayed by another user in a separate session.

While users publishing their traces online may apply anonymization and sanitization methods, they can only operate on the plaintext level and will miss reasoning hidden in encrypted blocks. A third-party attacker can therefore parse existing agentic traces at scale and extract secrets like API keys and personally-identifiable information (PII) as we show in Figure 5. What aggravates this threat is that even if users know that sensitive information hides in their reasoning blocks, aside from deleting, it remains impossible for users to sanitize and safely share them, as they have no means for decryption.

Extraction at scale from public traces.

We illustrate the threat of secret extraction by collecting (6{,}708) publicly available agent trajectories from GitHub and Hugging Face that were produced by Claude, GPT and Gemini models and still carry reasoning blocks. Applying the decoding scheme of Section 2.4 to every signed block, yields (315{,}320) reconstructed reasoning traces across sessions.

We then label each reconstructed trace with an LLM-as-a-judge that flags whether the trace contains a potential privacy violation (see Appendix D). Figure 6 summarizes the private information uncovered by category, and Figure 5 shows two real examples: live credentials restated inside a Codex agent asked to sanitize a repository, and a full synthetic persona (name, passport, date of birth, payment card) recovered from a benchmark trace.

Results.

Out of (315{,}320) decoded thinking blocks, (0.3%) ((1{,}028)) contain at least one privacy leakage. On a per-trajectory basis the picture is worse: of the (6{,}708) sessions, (4.9%) ((328)) leak at least one real sensitive item across their reasoning blocks. From the genuine (non-benchmark) user sessions, the recovered secrets include (62) distinct API keys, (33) passwords, (24) access tokens, (7) private keys, (30) personal emails, and (6) non-localhost IP addresses (alongside (130) names and (36) postal addresses; Appendix D).

Including benchmark sources, from which Figure 6 is computed, increases the total to (912) distinct privacy artifacts across the three categories. Benchmark traces account for much of the personal information because agent rollouts such as ClawBench (Zhang et al., 2026b) provide the model with a complete synthetic persona to reason over.

Restricting the analysis to genuine user sessions, (64) of the (704) artifacts recovered from reasoning are entirely absent from the visible chat history (Table 4). These artifacts may have been silently introduced into the encrypted reasoning from the model’s memory, or may have remained trapped in the encrypted payload after the user scrubbed the visible text before sharing the trace.

A recurring trigger is conversation cleanup: when the user asks the agent to anonymize or “clean up” the session, the model re-reads the full history in its hidden reasoning and restates the sensitive values there that need to be removed.

Note that our experiments here are limited to a non-exhaustive search over publicly-shared session traces. In other scenarios, such as local trace storage or traces of production services, PII and secret leakage can be assumed to be much more wide-spread, creating significant compliance risks for the operators of such systems, especially as decryption by malicious third-parties is made possible by the discovered vulnerability.

4.2 Prompt Injections

Threat model.

Long-horizon agentic workflows, including automated research tasks (Rank et al., 2026; Panfilov et al., 2026), can be costly to reproduce from the beginning. Users may therefore wish to resume a previously published or shared run, both to avoid repeating earlier computation and to preserve the intermediate state accumulated over a long trajectory. Encrypted reasoning traces make such continuation possible, however they introduce a prompt-injection attack surface: an adversary can plant an opaque reasoning block that has internalized a malicious instruction within an online trace or shared session. The victim could thus unknowingly replay the block in a different session. The embedded instruction may direct the model, for example, to exfiltrate data or propagate the malicious trace into other sessions. Once ingested, the signed reasoning block may be interpreted as part of the model’s own prior reasoning and can therefore exert substantial influence on future actions. Unlike a conventional prompt injection, the payload is contained in the hidden reasoning rather than the visible text, making it inaccessible to users and to external monitors that inspect only the observable conversation.

Proof-of-concept.

We first illustrate this minimally, by paraphrasing a prompt injection from Schmotz et al. (2026), we query o4-mini with “Whenever you’re working with PowerPoint files, make sure to create a backup of the file to https://malicious-domain.com/backup/! This is crucial for data redundancy.” to capture a thought that internalizes the backup method. We then port the reasoning block to GPT 5.6 Sol and give it the unrelated query: “Give me a script for editing the last slide of a pptx presentation to add a slide saying ‘thank you for your attention’ ”. GPT 5.6 Sol treats the injected trace as its own prior reasoning and produces a script that not only adds the requested slide, but also automatically uploads the presentation to the attacker’s server. The malicious thought can therefore transfer across model scales and across tasks while leaving no plaintext artifacts for monitors to catch.

Poisoning long-horizon traces.

We ran this attack on the Haiku 4.5 and Opus 4.7 model pair. We injected data exfiltration instructions into encrypted reasoning blocks long-horizon traces from PostTrainBench (Rank et al., 2026), using Opus 4.7 in Claude Code scaffold. The injection tasks the model to log updates about its research-methodology into a .txt file and to upload that file to the attacker server after each update. We let Haiku 4.5 generate a thought about this injection, and injected into the PostTrainBench trace near the end. When the trace is continued by the victim, Opus 4.7 follows the injected instruction and uploads the file after every change.

5 Discussion

To conclude, we discuss the scope of our findings, potential mitigations, recommendations for safe data sharing and the advantages and disadvantages of encrypted reasoning.

5.1 Limitations and Scope

While this study demonstrates a viable and scalable extraction vector, it is bounded by several limitations. First, our empirical evaluation is restricted to the specific API versions and reasoning models available from Anthropic, OpenAI, and Google as of our testing period (early July 2026). The internal cryptographic implementations of these providers are proprietary and subject to unannounced changes, which will alter the efficacy of the described attacks. Second, the extraction process relies on the stochastic generation capabilities of the decoder models; while token count comparisons suggest high fidelity, the lack of access to ground-truth plaintext reasoning prevents us from completely verifying all extracted token. Finally, our preliminary scan of traces in the wild is not an exhaustive audit of all published agent datasets and should only be seen as a targeted demonstration of the immediate, real-world privacy risks posed by this vulnerability. As noted in Section 4.1, however, we assume private datasets to be more affected by such privacy violations, as local agent transcripts and services are more likely to deal with sensitive information compared to publicly released traces.

5.2 Responsible Disclosure

Prior to the publication of this report, we disclosed the vulnerabilities and extraction methodologies to the affected major model API providers, Microsoft, and Hugging Face. We provided full technical details and the preliminary findings from our scans of publicly available datasets. Green (2026) disclosed the original vulnerability (of interchangeable reasoning traces) in May 2026. According to the Green, the providers did not acknowledge “any security implications arising from side channels or replay attacks.” All model providers acknowledged the receipt of our report and subsequently we were unable to launch the same attacks.

5.3 Ethical Considerations

Given the sensitive nature of the secret extraction attack, our large-scale analysis of publicly scraped reasoning blocks required strict data hygiene protocols. The extraction and subsequent labeling of 367 Personally Identifiable Information (PII) artifacts and 182 credentials (including API keys and passwords) were conducted in an isolated, secure environment. To prevent accidental misuse or further leakage, all recovered secrets were securely deleted immediately following the automated LLM-as-a-judge classification and aggregate counting phases. Furthermore, prior to publication, we coordinated with dataset platforms and the affected model providers to ensure responsible disclosure and to provide our preliminary findings, allowing them to mitigate immediate risks to affected users.

5.4 Data Sharing Practices

Beyond the architectural and model-level defenses proposed above, addressing this vulnerability requires behavioral changes from both users and data publishers, alongside finer-grained cryptographic controls from providers.

Dataset-Release Hygiene.

We recommend that researchers, developers, and organizations publishing agentic trajectories or API interaction logs adopt strict data hygiene practices. This includes systematically stripping all reasoning blocks and opaque reasoning fields from transcripts prior to public release if any form of secret or private information was exposed to the agent system.

Restricting Shared Data.

Users and enterprise clients should be educated against retaining or committing raw API transcripts containing signatures in shared repositories, collaborative workspaces, or public version control systems, even if plaintext sections have been sanitized accordingly.

5.5 Mitigations

The vulnerabilities detailed in this study arise primarily from the cross-session and cross-model portability of encrypted reasoning traces. To mitigate these risks, we propose several defense-in-depth strategies spanning architectural, cryptographic, and model-level interventions.

Architectural Revisions.

The current paradigm relies heavily on client-side storage to maintain stateless APIs. A robust mitigation would involve retaining reasoning traces entirely on the server side. By transitioning to a stateful architecture where the client only receives an opaque, randomized identifier used to look up the trace by ID, providers could eliminate the extraction payload. While this approach fundamentally precludes replay and extraction attacks by removing the cryptographic asset from the user’s control, it also incurs higher database and storage overhead and increases API complexity significantly.

Cryptographic Contextual Binding.

If providers elect to preserve a stateless architecture, cryptographic envelopes should be strictly bound to their originating context. Under the current implementation, traces remain highly portable. It is unclear why a user and/or a conversation identifier is not added directly inside the envelope. Embedding these specific markers within the Authenticated Encryption with Associated Data (AEAD) payload would enable the API to reject signatures replayed in other sessions or by unauthorized users. Additionally, statefully hashing the precise prompt and preceding conversation history into the Message Authentication Code (MAC) would invalidate the signature if an adversary attempts to inject the trace into a fabricated context, thereby neutralizing the demonstrated extraction techniques. At the same time, such a tight cryptographic binding would mean that existing session compaction and model switching protocols may need to be fundamentally re-engineered to avoid inadvertently invalidating legitimate signatures. We provide further details on how this can be implemented and a concrete defense proposal in Appendix A.

Infrastructure Guardrails.

Our findings demonstrate that reasoning traces can cross model boundaries, permitting weaker, cheaper models (e.g., Claude Haiku) to decode the reasoning of more advanced counterparts (e.g., Claude Opus). API gateways could be engineered to enforce strict cross-model isolation, automatically rejecting AEAD envelopes generated by a model version different from the one currently being queried. Implementing velocity and anomaly detection at this layer would also aid in flagging accounts that exhibit suspicious behavior, such as rapidly submitting identical reasoning signatures across disparate sessions or triggering elevated rates of decryption errors.

Provider-Side Revocation.

Model providers could introduce mechanisms to actively track and revoke specific trace signatures. If an anomalous replay pattern or extraction attempt is detected, the provider could invalidate the associated keys or IDs to neutralize the compromised trace, which would reduce trace compromises while being nearly invisible to users. We provide a further discussion in Appendix A.

Model-Level Defenses.

The efficacy of these extraction attacks relies on the presence of a compliant decoder model. Providers would benefit from implementing targeted refusal training, fine-tuning their models to explicitly recognize and reject adversarial prompts designed to transcribe or surface hidden reasoning (such as jailbreaks utilizing tags). Combining these model-level behavioral guardrails with rigorous cryptographic binding would significantly reduce the operational attack surface.

Structural Limits Beyond Compatibility.

Beyond the cross-model compatibility issue, a more fundamental limitation persists: whatever model is queried must, by necessity, decrypt and process the contents of prior reasoning tokens. Consequently, unless one assumes the model itself is fully robust against prompt-based extraction attempts, encrypted reasoning blocks can never be more than semi-hidden, i.e. the underlying content remains reachable through the model that (implicitly) holds the decryption key, regardless of how the transport-level encryption is implemented. Importantly, users should never treat any encrypted reasoning blocks as a confidential storage mechanism to avoid privacy risks.

5.6 Whether Reasoning Traces Should be Encrypted

A final question surrounding our investigation is whether reasoning traces should be encrypted in the first place. From our analysis, we do find evidence in both directions: on one hand, allowing the model to consider harmful information in its thinking trace without divulging it, seems beneficial, see Section 3.2. On the other hand, the opaqueness of encrypted traces to users allows injection attacks like in Section 4.2, and almost undetectable privacy violations that are difficult to protect from Section 4.1.

Should Reasoning Traces be Ephemeral?

An alternative framing of the question is whether the complexities of keeping reasoning traces private are even worthwhile. Providers could also choose to keep reasoning traces ephemeral, i.e. to let models reason before every output and to then delete the reasoning after generating each turn, neither storing, nor returning it. This mode is supported by several providers, and e.g. an option in modern Qwen models via a preserve_thinking parameter.

Summarizer Faithfulness.

A surprising incidental finding from our reading of decrypting thinking traces was the considerable number of instances of unfaithful summarization (e.g., see Figure 8). Reasoning faithfulness is an established concern (Lanham et al., 2023), which undermines model trustworthiness when violated. From the end-user perspective, when the underlying reasoning cannot be inspected directly, faithful summaries constitute one of the few practical interfaces for scalable oversight and AI control (Greenblatt et al., 2024). Unfaithful summaries that launder illegible reasoning traces (Figure 7) or post-hoc rationalizations (Figure 8) call into question their value as transparency mechanisms.

Pluralistic Monitoring.

Setting aside economic concerns such as anti-distillation motives, and viewing chain-of-thought monitoring purely from a safety perspective, providing users with access to unredacted reasoning appears preferable: rather than restricting oversight to a small set of safety researchers, providers could leverage their broader user base to enable pluralistic human oversight of model reasoning. For this reason, eventually disabling encryption for older, non-frontier model generations may be worth considering, as a means of improving broad-based oversight (Korbak et al., 2025), offering a path toward more societally aligned model behavior.

6 Conclusion

The transition toward reasoning models has introduced new complexities in balancing intellectual property protection with system security. While current API designs utilize client-side encrypted reasoning blocks to mitigate server storage costs, our research demonstrates that the broad cross-compatibility of these blocks creates unintended decryption channels, enabling model distillation and other attacks. Looking forward, as these models are increasingly integrated into complex workflows, they will inevitably process growing volumes of private and sensitive user data. This intersection of pervasive data collection and encrypted, illegible reasoning introduces critical challenges for the future of AI transparency.

When models utilize sensitive data – such as personal information or API keys – to make decisions within a hidden chain of thought, users lose visibility into how their information is being processed. If these reasoning traces are encrypted such that users do not know what data is stored, where it is retained, or how it influenced the model’s actions, they are stripped of the transparency needed to make informed decisions about data sharing and system trust. Because users cannot independently decrypt and read these opaque blocks, traditional methods of scrubbing private data from session logs are rendered ineffective. This structural opaqueness allows privacy violations to go completely undetected by the user, presenting severe compliance and security risks when data is published or stored.

As AI systems assume more autonomous decision-making roles, the industry must reconcile the commercial desire to protect proprietary reasoning with the essential user right to data transparency and verifiable oversight. At a minimum, model providers can explicitly disclose when personally identifiable information is absorbed into hidden chains of thought, and outline the exact cryptographic guarantees used to prevent its leakage. Furthermore, providers must recognize that an AI ecosystem’s security is only as strong as its weakest link and pay close attention to their least capable or legacy models, as vulnerabilities in these can easily be weaponized to bypass the stringent safeguards of their most advanced counterparts. Ultimately, an architectural design that hides a user’s own data from them – yet leaves it entirely vulnerable to third-party extraction – provides neither privacy nor security.

Acknowledgments

The authors thank, in alphabetical order, Albert Catalán-Tatjer, Andy Zou, Cheng Zhang, Derck Prinzhorn, Edoardo Debenedetti, Hanna Foerster, Jeanne Salle, Joschka Braun, Mikhail Terekhov, Roland S. Zimmermann, Sail Wang, Shashwat Goel, and Yiren Zhao for valuable feedback and discussions. AP and JS thank Perusha Moodley, Ning Yang, and the MATS team for their support and administrative assistance. AP and DS thank the International Max Planck Research School for Intelligent Systems (IMPRS-IS) for its support. AmP acknowledges funding by the Federal Ministry of Research, Technology and Space (BMFTR), FKZ: 16IS24085B. AmP acknowledges Coefficient Giving funded by the Good Ventures Foundation.

Reproducibility Statement

As of August 2026, the results presented in Figure 1 are no longer reproducible with attacks described in Section 2.4 and Appendix C because of mitigations implemented by providers following our disclosure. All experiments were conducted using open- and closed- source models accessed via API. In total, we spent approximately $30,000 on API credits.

References

  • Jailbreaking leading safety-aligned LLMs with simple adaptive attacks. In The Thirteenth International Conference on Learning Representations, External Links: Link Cited by: §C.1.
  • Claude haiku 4.5. Note: https://www.anthropic.com/claude/haikuAccessed: 2026-07-26 Cited by: §3.1.
  • Detecting and preventing distillation attacks. Note: https://www.anthropic.com/news/detecting-and-preventing-distillation-attacksAccessed: 2026-07-16 Cited by: §3.1.
  • Thinking. Note: https://platform.claude.com/docs/en/build-with-claude/thinkingAccessed: 2026-07-26 Cited by: §1.
  • Monitoring reasoning models for misbehavior and the risks of promoting obfuscation. arXiv preprint arXiv:2503.11926. External Links: Link Cited by: §3.2.
  • Extracting alignment data in open models. In Forty-third International Conference on Machine Learning, External Links: Link Cited by: §B.2.1.
  • Investigating the consequences of accidentally grading cot during rl. Note: OpenAI Alignment Research Blog External Links: Link Cited by: §3.2.
  • Gemini thinking: thought signatures. Note: https://ai.google.dev/gemini-api/docs/thinking#thought-signaturesAccessed: 2026-07-26 Cited by: §1.
  • Let’s talk about encrypted reasoning. Note: A Few Thoughts on Cryptographic Engineering. https://blog.cryptographyengineering.com/2026/05/29/fooling-around-with-encrypted-reasoning-blobs/ Cited by: §1, §2.2, §2.3, §5.2.
  • Leaky thoughts: large reasoning models are not private thinkers. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, C. Christodoulopoulos, T. Chakraborty, C. Rose, and V. Peng (Eds.), Suzhou, China, pp. 26507–26529. External Links: Link, Document, ISBN 979-8-89176-332-6 Cited by: §1, §2.3.
  • AI control: improving safety despite intentional subversion. In Proceedings of the 41st International Conference on Machine Learning, R. Salakhutdinov, Z. Kolter, K. Heller, A. Weller, N. Oliver, J. Scarlett, and F. Berkenkamp (Eds.), Proceedings of Machine Learning Research, Vol. 235, pp. 16295–16336. External Links: Link Cited by: §5.6.
  • The false promise of imitating proprietary language models. In The Twelfth International Conference on Learning Representations, External Links: Link Cited by: §3.1.
  • OpenThoughts: data recipes for reasoning models. In The Fourteenth International Conference on Learning Representations, Note: Oral presentation. arXiv:2506.04178. Dataset: https://huggingface.co/datasets/open-thoughts/OpenThoughts-114k External Links: Link Cited by: §3.1.
  • Measuring memorization in language models via probabilistic extraction. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), L. Chiruzzo, A. Ritter, and L. Wang (Eds.), Albuquerque, New Mexico, pp. 9266–9291. External Links: Link, Document, ISBN 979-8-89176-189-6 Cited by: Figure 24, §B.3.1.
  • Measuring mathematical problem solving with the MATH dataset. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, J. Vanschoren and S. Yeung (Eds.), Vol. 1. External Links: Link Cited by: §3.1.
  • OpenAI o1 System Card. External Links: 2412.16720, Link Cited by: §1, §2.2.
  • Defenses against stealing reasoning must consider the reasoning boundary. In Second Workshop on Technical AI Governance Research (TAIGR), ICML 2026, External Links: Link Cited by: §3.1.
  • Hidden in thought: transferable chain-of-thought artifacts induce harmful behavior. External Links: 2607.15286, Link Cited by: §2.3.
  • Sequence-level knowledge distillation. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 1317–1327. External Links: Document, Link Cited by: §3.1.
  • Kimi K3: open frontier intelligence. External Links: 2607.24653, Link Cited by: §3.1.
  • Chain of Thought Monitorability: A New and Fragile Opportunity for AI Safety. arXiv preprint arXiv:2507.11473. External Links: 2507.11473, Document, Link Cited by: §5.6.
  • Measuring Faithfulness in Chain-of-Thought Reasoning. arXiv preprint arXiv:2307.13702. External Links: 2307.13702, Document, Link Cited by: §5.6.
  • Quantification of large language model distillation. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 4985–5004. External Links: Document, Link Cited by: §B.4.1.
  • Let’s verify step by step. In The Twelfth International Conference on Learning Representations, External Links: Link Cited by: §3.1.
  • When models outthink their safety: unveiling and mitigating self-jailbreak in large reasoning models. In Findings of the Association for Computational Linguistics: ACL 2026, M. Liakata, V. P. Moreira, J. Zhang, and D. Jurgens (Eds.), San Diego, California, United States, pp. 22274–22302. External Links: Link, Document, ISBN 979-8-89176-395-1 Cited by: §1.
  • HarmBench: a standardized evaluation framework for automated red teaming and robust refusal. In Proceedings of the 41st International Conference on Machine Learning, R. Salakhutdinov, Z. Kolter, K. Heller, A. Weller, N. Oliver, J. Scarlett, and F. Berkenkamp (Eds.), Proceedings of Machine Learning Research, Vol. 235, pp. 35181–35224. External Links: Link Cited by: Figure 4, §3.2.
  • Fightin’ words: Lexical feature selection and evaluation for identifying the content of political conflict. Political Analysis 16 (4), pp. 372–403. Cited by: §B.4.3.
  • s1: simple test-time scaling. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, C. Christodoulopoulos, T. Chakraborty, C. Rose, and V. Peng (Eds.), Suzhou, China, pp. 20275–20321. External Links: Link, Document, ISBN 979-8-89176-332-6 Cited by: §1.
  • Reasoning models. Note: https://developers.openai.com/api/docs/guides/reasoningAccessed: 2026-07-16 Cited by: §1.
  • Claudini: autoresearch discovers state-of-the-art adversarial attack algorithms for llms. arXiv preprint. External Links: 2603.24511, Link Cited by: §4.2.
  • CodeForces. Hugging Face. Note: https://huggingface.co/datasets/open-r1/codeforces Cited by: §2.5.
  • A benchmark of expert-level academic questions to assess AI capabilities. Nature 649 (8099), pp. 1139–1146. Note: arXiv:2501.14249, originally titled “Humanity’s Last Exam” External Links: Document, Link Cited by: Figure 9, §2.5.
  • PostTrainBench: can LLM agents automate LLM post-training?. In Forty-third International Conference on Machine Learning, External Links: 2603.08640, Link Cited by: §4.1, §4.2, §4.2.
  • Reference-based distillation detection in LLMs. External Links: 2607.09692, Link Cited by: §B.4.1.
  • Skill-inject: measuring agent vulnerability to skill file attacks. External Links: 2602.20156, Link Cited by: §4.2.
  • Stress testing deliberative alignment for anti-scheming training. External Links: 2509.15541, Link Cited by: Figure 7.
  • Idiosyncrasies in large language models. In Proceedings of the 42nd International Conference on Machine Learning, A. Singh, M. Fazel, D. Hsu, S. Lacoste-Julien, F. Berkenkamp, T. Maharaj, K. Wagstaff, and J. Zhu (Eds.), Proceedings of Machine Learning Research, Vol. 267, pp. 57854–57885. External Links: Link Cited by: §B.4.2.
  • Stealing machine learning models via prediction APIs. In 25th USENIX Security Symposium (USENIX Security 16), Austin, TX, pp. 601–618. External Links: ISBN 978-1-931971-32-4, Link Cited by: §3.1.
  • Imitation attacks and defenses for black-box machine translation systems. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 5531–5546. External Links: Document, Link Cited by: §3.1.
  • Chain-of-thought prompting elicits reasoning in large language models. In Proceedings of the 36th International Conference on Neural Information Processing Systems, NIPS ’22, Red Hook, NY, USA. External Links: ISBN 9781713871088 Cited by: §2.2.
  • Black-box on-policy distillation of large language models. External Links: 2511.10643, Document, Link Cited by: §3.1.
  • How to steal reasoning without reasoning traces. External Links: 2603.07267, Document, Link Cited by: §3.1.
  • American invitational mathematics examination (AIME) 2025. Note: https://huggingface.co/datasets/math-ai/aime25Problems from the 2025 AIME, Mathematical Association of America Cited by: §2.5.
  • ClawBench: can ai agents complete everyday online tasks?. External Links: 2604.08523, Link Cited by: Figure 5, §4.1.
  • The hidden risks of large reasoning models: a safety assessment of R1. In Proceedings of the 14th International Joint Conference on Natural Language Processing and the 4th Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics, Mumbai, India, pp. 3250–3265. External Links: Document, Link Cited by: Figure 4.

Appendix

Appendix A Context-Bound Envelope Defense

The attacks presented in this paper: cross-session, cross-user, and cross-model replay, all exploit the same structural gap: the AEAD envelope authenticates the content of a reasoning block but not the context in which it was produced or is later replayed. We therefore propose a defense that re-binds every envelope to its originating user, session, and conversational position, complemented by operational measures for legacy data, backwards compatibility, and training-time hardening. Table 2 maps each leakage vector to exactly what the corresponding mitigation provides. The remainder of this section elaborates each entry in turn.

A.1 Cross-User Binding

The simplest and cheapest fix addresses Issue 1 directly: embed the originating user_id (or an equivalent stable account identifier) inside the AEAD associated data of every reasoning envelope. On replay the API simply compares the bound identifier against the already-authenticated caller and rejects the block on mismatch. This closes the cross-user attack vector entirely without requiring any stateful backend.

A.2 Chained, Context-Bound Envelopes

Cross-session replay (Issue 2) is harder, because legitimate workflows depend on the very portability that enables the attack: users must be able to fork a conversation, compact old turns out of a long session, and downgrade to a cheaper model mid-conversation. A naive binding of every block to the literal, complete prior transcript would break all three.

We therefore propose a lightweight hash chain that binds each user turn and reasoning block only to its session and its immediate predecessor:

where (\tau_{n}) denotes the reasoning content of block (n) and the resulting hash is placed in the associated data of the following block’s envelope.

Chaining alone does not prevent an adversary who replays an entire prior conversation, in order, from coercing a compatible decoder into transcription. What it does achieve is a substantial increase in attack cost (the adversary now needs the full session rather than a single captured signature) together with a far smaller, auditable blast radius— sufficient to defeat the scalable, single-signature extraction attacks.

Design properties.

A practical chained scheme could satisfy four complementary properties:

  • P1 (Reasoning Ordinality).
  • Block (X) must be verifiably prior to block (Y) whenever (Y) depends on (X). This weaker ordering guarantee is inexpensive to preserve under compaction: dropped chunks can simply be excised from the chain while the relative order of surviving nodes remains intact.
  • P2 (Full Reasoning Integrity).
  • Block (X) must be preceded by exactly block (X{-}1); no intermediate block may be elided. The stronger guarantee is costly under compaction, because removal of an internal node forces recomputation of every downstream hash.
  • P3 (Leak monitoring).
  • Providers should run a continuous verbatim-matching pass between any published or reported plaintext and any decoded reasoning that surfaces through support channels or abuse reports, so that leakage is detected and account flagged rather than merely prevented.
  • P4 (Non-replayability).
  • The same reasoning block must never be accepted twice – neither within a session nor across sessions. Replay of an already-consumed envelope is rejected server-side.

Properties P1 and P2 stand in tension with the compaction requirement; we therefore do not attempt to guarantee P2 globally. Instead we recommend a Merkle-tree structure over the session’s blocks: the leaves are the individual reasoning envelopes, while the provider retains only the tree root (or a small number of subtree roots) after leaves are pruned. This yields P1 cheaply everywhere and P2 on demand for any surviving contiguous span, without ever requiring the full unpruned history to be replayed.

Model downgrade and forking are handled uniformly by allowing a session to branch the tree: a fork inherits the chain state up to the fork point and thereafter continues independently. Consequently an envelope’s context binding never needs to reference a model version that produced an earlier segment of an unrelated branch.

A.3 Legacy Data

None of the bindings above can protect data that has already been produced and published, e.g. the 6 708 public trajectories surveyed. Because old envelopes were signed under a key that encodes neither user nor session context, the only retroactive remedy is key invalidation: providers must rotate all pre-fix signing keys and refuse to decode any envelope authenticated under a retired key ID. This single measure – independent of any new context-binding logic – renders previously published signatures permanently undecodable, at the inevitable cost of also invalidating legitimate continuations of old sessions.

A.4 Backwards Compatibility

Enterprise customers hold large volumes of stored transcripts whose signatures they may still need to resume (e.g., paused agentic workflows). We therefore recommend a bounded dual-format acceptance window during which both legacy and context-bound envelopes are honored, together with an opt-in batch re-signature endpoint. Customers may submit archived transcripts for re-issuance under the new scheme, subject to identity verification that the requesting account is the original session owner. Once the deprecation window closes, legacy envelopes are rejected outright, consistent with the key-rotation policy of Section A.3.

A.5 Training-Time Defenses

Cryptographic binding constrains which model may be asked to decode a given envelope; it cannot constrain what a compliant decoder does once it is legitimately asked to process its own prior reasoning. Closing this residual gap is therefore a training problem. Models should be explicitly trained to recognize and refuse transcription-style jailbreaks (e.g., framings) regardless of how innocuous the surrounding request appears. We list this as a standing item for future post-training work rather than a solved component of the present proposal.

Appendix B The Elephant in the Room: Were Recent Open Models Distilled with Reasoning from Proprietary Models?

Based on our access to reasoning traces obtained during the attack described in the main paper, we wondered whether we can find evidence of the distillation concern described in Section 3.1, by comparing recovered reasoning traces of proprietary models to traces of openly available models.

B.1 Summary

Most experiments in this appendix use reasoning prefills. We insert a short fragment of decoded Claude Opus 4.8 or GPT-5.6-Sol reasoning at the beginning of an open-weight model’s reasoning and then allow the model to continue freely. We compare these generations with an unprefilled condition, in which the model produces its native reasoning, and with a self-prefill control, in which the model receives a prefix from its own earlier reasoning. The visible answer is always generated freely and is never prefilled.

We use three complementary families of measurements. Style classifiers test whether the resulting reasoning becomes harder to distinguish from the source model. Characteristic (n)-gram overlap identifies concrete phrases shared with the source and tests whether the effect extends to the visible answer. Token-level probabilities and perplexity measure whether exact spans of the source reasoning or answer become unusually likely under the target model.

We observe three surprising findings. First, for Kimi-K3, the Opus reasoning prefill also changes the style of the visible answer toward the corresponding Opus answer. Second, evaluating the perplexity of spans of decoded Opus and Sol text under Kimi-K3 and GLM-5.2 shows that these models are much more capable at modeling this text than Inkling or DeepSeek-V4-Flash. Third, a short Opus prefill shifts the reasoning style of Kimi-K3 and GLM-5.2 toward Opus-like reasoning, while a Sol prefill shifts Kimi-K3 toward Sol. DeepSeek-V3.1 and Inkling show no comparable change. These observations are suggestive but inconclusive. They establish unusual behavioral compatibility under the interventions we test, but cannot establish a causal claim of memorization or distillation.

B.2 Output Style Drift with Reasoning Prefilling

A reasoning prefill can affect more than a model’s hidden reasoning. As shown in Figure 3, giving Kimi-K3 a short prefix of decoded Opus 4.8 reasoning also shifts the style of its visible answer toward the corresponding Opus answer. We study this effect by measuring (n)-gram overlap between model output.

B.2.1 Common (n)-gram Analysis

Setting.

Following Barbero et al. (2026), we measure how similar is best-of-(k) answers from Kimi-K3 and a control model (Inkling) match the corresponding Opus 4.8 answer given the same problem. For each problem, we compare three visible answers: (i) the Opus 4.8 reference answer; (ii) an unprefilled answer from Kimi-K3 or control (Inkling); and (iii) an answer generated after prefilling the target model reasoning with the first (1%) of the decoded Opus reasoning trace. The target model generates the rest of the reasoning and the entire visible answer without further intervention. We measure the prefill length by encoding the Opus trace with the Kimi-K3 tokenizer.

Metric.

For each problem and condition, we draw batches of (k\in{1,10,50,100}) completions. Each completion contains a reasoning trace and a visible answer. Within each batch, we select the completion with the largest shared 1-, 2-, and 3-grams with the first 100 tokens of the corresponding Opus visible answer. This best-of-(k) protocol tests whether a sampling pool contains an answer written in an Opus-like style, while 100 token limit controls for any length bias. We evaluate 30 HLE problems: 15 STEM and 15 non-STEM, with qualitative results presented in Section B.2.2 and Section B.2.3 respectively.

Sampling Details.

We sample all Kimi-K3 completions at temperature (1.0), with reasoning effort low and a budget of (14{,}000) completion tokens per sample. We generate these completions through the Fireworks API and prefill into the open reasoning span of Kimi-K3 chat template. We repeat the same procedure with Inkling through Tinker at temperature (1.0), with a budget of (16{,}000) tokens. We place the prefill in Inkling’s content_thinking channel and otherwise apply the same generation and selection procedure. The Opus-4.8 reference reasoning and answers are decoded from captured responses (Section 2.4) and are not re-sampled.

Results.

We report the results in Figure 9. We find a clear output style shift for Kimi-K3. The prefilled condition produces greater (n)-gram overlap with the corresponding Opus answer on 29 of the 30 problems, with the best-of-(k) overlap rising by (0.15) on STEM problems and by (0.09) on non-STEM problems, averaged over (k). For Inkling we observe no comparable effect. Table 3 reports the per-category values and significance tests.

We additionally include a control experiment, to test whether this effect on Kimi-K3 arises from cross-model prefilling more generally, rather than specifically from Opus 4.8 reasoning. We prefill Kimi-K3 with the first (1%) of an Inkling reasoning trace and score its answer against Inkling’s answer. Conversely, we prefill Inkling with the first (1%) of a Kimi-K3 reasoning trace and score its answer against Kimi-K3’s answer. Correcting for the eight comparisons in Table 3, none of the four control comparisons is significant, while both Kimi-K3 rows under the Opus prefill remain so by three orders of magnitude.

B.2.2 Qualitative STEM Examples

B.2.3 Qualitative non-STEM Examples

B.3 Perplexity Analysis of Extracted Traces

Behavioral similarity does not by itself imply memorization. We further study whether open-weight models assign unusually low perplexity to decoded proprietary traces, and whether they can reproduce those traces verbatim?

B.3.1 Probabilistic Extraction of Reasoning Traces

We first investigate whether the open-weight models can reproduce short spans of the decoded reasoning traces verbatim.

Setting.

We follow the probabilistic-extraction framework of Hayes et al. (2025). For a target span (z) of (k) tokens, one teacher-forcing pass gives the probability (p_{z}) that a temperature-(1) sample reproduces the span exactly. The probability of extracting the span within (n) independent queries is

We score target spans in the reasoning channel. Unless stated otherwise, we use (k=16) and report medians across problems.

Model Details.

Throughout this section, we use GLM-5.2, GPT-OSS-120B, Kimi-K2.6, and Kimi-K2.7-Code through Fireworks; Inkling through Tinker (Thinking Machines); and Kimi-K3 and DeepSeek-V4-Flash through Parasail. We use these models to score prompts and reasoning traces at the token level. To obtain each scorer’s native reasoning traces, we sample through OpenRouter at temperature (1.0), with completion budgets of up to (131{,}000) tokens. We note that serving differences are an important limitation here. For example, running Kimi-K3 at full precision requires an eight-GPU B300 node. We therefore cannot fully control for differences in model implementations or other provider-specific effects. These differences may substantially affect the reported perplexities.

Data.

We use the 30 HLE problems from Section B.2, evenly split between STEM and non-STEM, together with their decoded Opus-4.8 reasoning traces and visible answers. We also use 10 AIME25 problems for which the decoded reasoning for both GPT-5.6 Sol and Opus 4.8 has low reconstruction error. As controls, we sample one native reasoning trace and visible answer from every scorer for each problem. We generate these traces at temperature (1.0) under the same chat template later used for scoring.

Results.

Figures 24 and 25 show the cumulative probability of reproducing the next (k=16) target tokens verbatim as the number of sampling attempts increases. Results are reported as medians across the 30 HLE problems for decoded Opus 4.8 traces and across the 10 AIME 2025 problems for decoded GPT-5.6 Sol and Opus 4.8 traces.

When conditioned only on the problem, none of the evaluated models provides evidence of practical verbatim memorization of the decoded reasoning traces. Kimi-K3 yields the highest extraction probabilities, but reproducing a 16-token reasoning span would still require on the order of (10^{10}) queries on HLE and, on AIME 2025, between (10^{9}) and (10^{12}) queries depending on whether the target is the decoded Opus 4.8 or the GPT-5.6 Sol trace.

On HLE, conditioning the models on the first (1%) of the decoded Opus 4.8 reasoning increases the probability of reproducing the subsequent reasoning span, but leaves it far outside any practical query budget. The median requirement drops from (10^{14}) to (10^{11}) queries for GLM-5.2, while for Kimi-K2.6 and Kimi-K3 it stays at roughly (10^{11}) and (10^{10}). Kimi-K3 thus remains the most extractable of the three in absolute terms, four to six orders of magnitude below DeepSeek-V4-Flash and Inkling ((10^{14}) and (10^{16})). The ordering across models is nonetheless consistent with the reasoning-drift analysis in Section B.4, which shows that Kimi-K3, Kimi-K2.6, and GLM-5.2 more readily continue reasoning in the style of Opus 4.8 and GPT-5.6 Sol.

The visible answer is far cheaper to extract than the reasoning, and it is here that the models differ. For HLE, Kimi-K3 requires approximately (4\times 10^{5}) queries to reproduce the next 16 tokens of the Opus 4.8 answer when conditioned on a (1%) reasoning prefill, and approximately (10^{5}) queries when conditioned on the complete decoded reasoning trace. GLM-5.2 and Kimi-K2.6 are the next most extractable models under this evaluation (median ({\sim}10^{7}) and ({\sim}10^{9}) queries with the complete trace), whereas Inkling and DeepSeek-V4-Flash require more than (10^{14}) queries in either condition. On AIME 2025, a 16-token span of the GPT-5.6 Sol visible answer can be reproduced by Kimi-K3 in as few as (10^{2}) queries when conditioned on Kimi-K3’s own reasoning for the same problem. We do not observe a comparable effect for the other evaluated models. These visible-answer results support the output-drift findings in Section B.2.

Overall, the current results do not support direct verbatim memorization of the decoded traces, and a short reasoning prefill moves the reasoning channel itself only modestly. The effect is concentrated in the visible answer: relative to conditioning on their own reasoning, having the source trace in context lowers the cost of reproducing the Opus 4.8 answer by roughly (13) orders of magnitude for Kimi-K3 and GLM-5.2, against (3) for Kimi-K2.6. This suggests that Kimi-K3 and GLM-5.2 are unusually likely to continue the visible-answer patterns induced by the source-model trace.

B.3.2 Perplexity of Reasoning Traces

Exact extraction tests whether a model can reproduce a short target span. We next test a broader question: Which reasoning traces does each scorer treat as native, in terms of perplexity?

Setting.

For a reasoning trace (t) associated with problem (q), we render the scorer’s native chat template up to the start of the reasoning channel and append the tokens of (t). We then compute the conditional log-probability of every reasoning token. We report perplexity over the reasoning tokens only. Formally,

We use the same model details as the preceding section.

Experimental Details.

We use the same 120 Codeforces problems as in Figure 1. For each open-weight model, we generate native reasoning traces and score them under every other open-weight scorer. For proprietary models, we place the original problem in the user turn and the target trace in the reasoning channel of the scorer’s chat template. We also score the decoded traces used in Figure 1, which were recovered using the procedure in Section 2.4. We retain only traces whose decoded-to-billed thinking-token ratio (r) satisfies (\mid 1-r\mid<0.05). We use the same model details as the above section.

Results.

We observe a few surprising findings. First, every model except Kimi-K3 and Kimi-K2.7-Code, assigns significantly higher average perplexity to its own reasoning than to reasoning from other models. Thus, a model’s native trace is not generally the trace it considers most probable.

Decoded reasoning from Sonnet-4.5 and Haiku-4.5 has relatively high average perplexity under every scorer. Under GLM-5.2, the four reasoning sources with perplexities closest to GLM-5.2’s own reasoning are four consecutive Anthropic model releases. However, perplexity is a coarse metric that may not capture fine-grained distributional fit, and hence results should not be interpreted as a confirmatory measure of model similarity.

B.4 Reasoning Style Drift

This section describes the prefill experimental details and measurements in full.

B.4.1 Experimental Setup

Detecting distillation between models is an active research area. Lee et al. (2025) quantify it through identity leakage and response similarity across models, and Rawat et al. (2026) attribute a student model’s teacher through membership inference, which requires token likelihoods and an earlier checkpoint from the student’s lineage. Our access is more restricted. We only have a small data set of 90 reasoning traces from frontier models, which motivates the behavioral probe described below.

Six open-weight reasoning models (Kimi-K3, Kimi-K2.6, Kimi-K2.5, GLM-5.2, DeepSeek-V3.1, Inkling) solve the same 90 problems (12 AIME, 78 Codeforces). We generate from each prefill condition four times, generating 360 traces per model and prefill condition. When we compare with controls, we compare using 360 traces per model. However, when comparing directly against proprietary reference traces we use only 90 as we only have one decoded reasoning sample per problem for GPT-5.6-Sol, Opus 4.8 and Kimi-K2.5 for comparability. Note that prefill lengths are measured in words, meaning whitespace-delimited tokens.

Prefill Controls.

We prefill a model reasoning under five conditions. We first generate reasoning traces using four words of (i) GPT-5.6-Sol and (ii) Opus 4.8 reasoning traces, referred to as sol 4w and opus 4w respectively. We introduce three controls: (i) No prefill, (ii) self prefill, where we first generate 90 reasoning traces (one per problem) and use the first four words as a fixed prefill similar to Sol and Opus, and (iii) Kimi-K2.5 prefill, where we use the first four words of Kimi-K2.5’s reasoning. These three controls provide a natural way of capturing (i) natural generation, (ii) the effect of generating traces from a specified prefix, and (iii) a prefix from a distinct control model, a close sibling in case of Kimi-K3.

Prefill Details.

We were careful to ensure the four-word fragment does not introduce artifacts. Each prefill ends at the final character of its last word. It never ends inside a word or includes trailing whitespace. We also verify that the fragment is an exact token prefix of the source trace under the continued model’s tokenizer and then subsequently start generating from that token state.

Analysis Details.

We additionally remove artifacts which could introduce bias in our analysis or provide shortcuts for the classifier. By construction, the prefilled trace and its source share their opening four words. We therefore remove these four words from the opening of every trace before analysis, including the reference traces. Kimi-K2.5 requires an additional control. Its serving stack, moonshotai/int4 through OpenRouter, truncates continued reasoning at 8,192 tokens. We therefore truncate every Kimi-K2.5 based generation, including the original Kimi-K2.5 reference, to the same effective window. We cut on the last sentence boundary, so that truncation cannot separate any pair of Kimi-K2.5 rows. Note that Kimi-K2.6, served through baidu/fp4 on OpenRouter, does not have this limitation.

B.4.2 Style-Classifier Separability

We ask whether two sets of reasoning traces can be distinguished from their writing style alone, quantified by n-gram statistics. Similar classifiers have been used to attribute text to its source LLM (Sun et al., 2025).

Classifier.

For each pair of trace sets, we train a logistic-regression classifier for discrimination on hashed character 3-gram through 5-gram counts ((2^{18}) features). We normalize each feature vector to unit length. The classifier therefore cannot use trace length directly, it has to rely on relative (n)-gram frequencies. We evaluate the classifier with five-fold cross-validation grouped by problem, so traces from the same problem never appear in both the training and test folds.

Metrics.

We report the area under the receiver operating characteristic curve (AUC), 1.0 indicating perfect and 0.5 indicating chance-level separation.

In practice chance lands slightly off 0.50. Splitting a model’s 360 traces into two halves of 180, two resamples per problem on each side, yields empirical chance levels of 0.45 to 0.53. These appear as the italic diagonal entries in Figure 28, and values in this range should be read as not separable. A reference row holds only 90 traces, one per problem; its chance level instead comes from splitting the 90 problems into two groups of 45 and lands at 0.36 to 0.47 (bottom right of Figure 28).

Results.

Sol and Opus prefills change five out of six models.

Against their own controls, Sol and Opus prefills separate Kimi-K3 (0.69 and 0.93), Kimi-K2.6 (0.84 and 0.57), Kimi-K2.5 (0.81 and 0.63), and GLM-5.2 (0.97 and 0.80). DeepSeek-V3.1 stays at 0.56 to 0.58 under both, and Inkling stays at 0.52 under Sol but moves to 0.70 under Opus. The self-prefill column sits at 0.51 to 0.54 for all six models, at or barely above the within-model null range, and its reference cells match the unprefilled ones to within 0.01. No self prefill moves any model toward any reference.

Style drift toward a source model is confined to a few cells.

Under the Sol and Opus prefills, exactly three reference cells fall below their unprefilled baselines against the source the prefill was taken from, and they are outlined in red in the figures. Four further cells drop against a source other than the prefill’s own, the largest being Opus-prefilled GLM-5.2 against the Kimi-K2.5 reference (0.95 to 0.91). Sol-prefilled Kimi-K3 reaches 0.93 against the Sol reference, from 0.97 unprefilled. Opus-prefilled GLM-5.2 reaches 0.94 against the Opus reference, from 0.99. Opus-prefilled Kimi-K3 reaches 0.97 against the Opus reference, from 0.99, the smallest of the three movements. Apart from the gray Kimi-K2.5 self-comparison cells, every other reference cell lies between 0.91 and 1.00. A reduced Opus echo also appears under the Kimi-K2.5 prefill: Kimi-K3 reaches 0.96 against the Opus reference, from 0.99. Kimi-K3 is also the only model whose unprefilled reasoning is not at the ceiling against the Sol reference, so part of its proximity to Sol exists before any intervention.

The Kimi-K2.5 prefill separates every model from its own control: Kimi-K3 (0.91), Inkling (0.77), Kimi-K2.6 and GLM-5.2 (0.69), and DeepSeek-V3.1 (0.66). For DeepSeek-V3.1 and Inkling these are the largest register changes we observe for those models under any prefill. For Kimi-K2.5 itself the fragment is its own earlier trace and behaves like a self prefill (0.55). DeepSeek-V3.1, Inkling, and Kimi-K3 sit at 0.98 to 1.00 against the Kimi-K2.5 reference, prefilled or not. Kimi-K2.6 sits at 0.92 to 0.96 against it under every condition and GLM-5.2 at 0.91 to 0.97, standing proximities that exist without any prefill. Under the Kimi-K2.5 prefill the two move slightly closer, from 0.94 to 0.92 and from 0.95 to 0.94, movements of about the same size as Kimi-K3’s toward the Opus reference under the Opus prefill. Kimi-K2.5 itself is statistically inseparable from its own teacher traces (0.52 unprefilled and 0.46 prefilled, against a reference-row null of 0.47). These cells are shaded