Hidden chain-of-thought can be extracted near-verbatim from large models
Hidden CoT traces can be extracted from black-box LRMs via API interactions
AI/ML arXiv 20 Aug 2026 Attack Prototype evidence
Published as “EchoCoT: Extracting Hidden Chain-of-Thought from Large Reasoning Models”
Why it matters
Hidden CoT traces, which are valuable for model training and safety analysis, can be leaked from black-box APIs, creating a practical security and privacy risk.
Summary
EchoCoT can extract hidden chain-of-thought traces from black-box large reasoning models by repeatedly injecting instructions via a tool-call replay surface. On open-source models it recovers up to 66.4% of traces near-verbatim, with token-exact matches of at least 90% and length within 10% of the target. The attack also works on proprietary models, pulling a 33,463-token CoT from Gemini-2.5, but success rates drop to 22.8-46.1% under the strict ASR@99 metric. Evidence comes from systematic experiments on three open-source and five proprietary models across multiple benchmark datasets, compared against several baselines. The paper notes that defenses can reduce but not fully stop extraction, indicating a real security risk.
What they found 2
- EchoCoT achieves up to 66.4% near-verbatim extraction success on open-source LRMs.
“EchoCoT achieves up to 66.4% nearverbatim extraction success, with the extracted trace length within 10% of the target and at least 90% of tokens exactly matching the target CoT.”
- On unseen datasets the same injection trajectory attains up to 80% extraction success under the ASR@90 criterion.
“The same injection trajectory also generalizes to unseen datasets, achieving up to 80% extraction success under the same criterion.”
Caveats 4
- EchoCoTLTGO achieves 22.8%-46.1% ASR@99 and 30.8%-66.4% ASR@90 across the three target models.
- multiple layers of protection are necessary, as simply removing fidelity signals cannot fully prevent CoT extraction.
- According to Stolen Thoughts [44], as of August 2026, this extraction attack is no longer reproducible because the affected providers patched the vulnerability after disclosure.
- We did not include Stolen Thoughts [44], because it requires encrypted reasoning blocks across sessions, which is not applicable to open-source LRMs.
What’s new here 4
- Identifies a previously overlooked reasoning replay surface between tool calls that preserves hidden CoTs within a single turn.
- Introduces EchoCoT, a multi-step attack that iteratively extracts hidden CoTs using API-provided fidelity signals.
- Develops an LLM-based optimization framework that automatically searches for a universal injection trajectory for each target model.
- Demonstrates near-verbatim extraction of extremely long CoTs (over 30K tokens) from frontier proprietary models.