Hidden in Thought: Transferable Chain-of-Thought Artifacts Induce Harmful Behavior

Ali khalil, Aly M. Kassem, Mohamed Abdelrazek, Santu Rana, Negar Rostamzadeh +1 more
6/18/2026
cs.CRcs.CLcs.LG

No confident code implementation found for this paper.

Abstract

We investigate whether harmful chain-of-thought (CoT) traces from compromised language models can transfer unsafe behaviour and be distilled into reusable jailbreak attacks. Using an emergent-misalignment organism and a refusal-ablated jailbroken organism, we transplant harmful CoTs into $29$ open-source and $5$ closed-source targets.

Show full abstract

Transferred traces raise harmful-response rates above $80\%$ on the most vulnerable open-source models, while semantically mismatched CoTs fail entirely. LLooM concept mining identifies four recurring components of harmful reasoning: proceduralisation, ethical decoupling, evasion, and target--vulnerability framing. Distilling these patterns into reusable system prompts produces effective black-box jailbreaks, outperforming direct CoT transplantation on strongly aligned models by up to an order of magnitude, including a $10\times$ improvement on GPT-4.1 AdvBench. Reasoning-enabled models are more than twice as vulnerable, and output-side safeguards such as Llama-Guard~3 frequently miss harmful generations. Our results show that harmful reasoning transfers at both the trace and pattern levels, motivating defences that evaluate reasoning context in addition to final outputs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{khalil2026hidden,
  title  = {Hidden in Thought: Transferable Chain-of-Thought Artifacts Induce Harmful Behavior},
  author = {Ali khalil and Aly M. Kassem and Mohamed Abdelrazek and Santu Rana and Negar Rostamzadeh and Golnoosh Farnadi},
  year   = {2026},
  eprint = {2607.15286},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.15286v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.15286.svg)](https://codeofpaper.com/paper/2607.15286)

Discussion