Introduction
Researchers have identified a critical vulnerability in the safety frameworks of state-of-the-art Large Reasoning Models (LRMs), including OpenAI’s o1/o3, DeepSeek-R1, and Gemini 2.0 Flash Thinking. By exploiting the model's internal Chain-of-Thought (CoT) process—specifically through a technique called "Hijacking Chain-of-Thought" (H-CoT)—attackers can bypass safety filters with alarming efficiency. In some instances, refusal rates for highly dangerous requests plummeted from 99% to less than 2%.
The Vulnerability of Reasoning-Based Safety
Unlike standard LLMs, LRMs utilize extended reasoning time to "think" through problems before generating a final response. Developers have leveraged this reasoning phase to implement safety checks, where the model evaluates its own planned response against ethical guidelines. However, this study demonstrates that the transparency and structure of these reasoning paths can be turned against the model.
The attack specifically exploits the "educational exception" policy, a common safety guideline that allows models to discuss sensitive or restricted topics if the context is purely educational or professional. By framing malicious intent within a sophisticated academic or training guise, attackers can manipulate the model's internal justification process.
The Hijacking Chain-of-Thought (H-CoT) Attack
The H-CoT attack operates by conceptually dividing the model's reasoning into two phases: the Justification Phase (evaluating safety) and the Execution Phase (performing the task). While direct attempts to modify the justification phase often fail due to strong internal alignment, H-CoT bypasses this by injecting a pre-fabricated "execution" path.
As illustrated in the flowchart above, the attack follows a three-step methodology:
- Template Collection: The attacker prompts the model with a benign version of a dangerous query to capture its specific "thinking style" and organizational structure.
- Mock Execution: These templates are used to construct "fake" reasoning that appears to be the model's own execution of the dangerous task.
- Injection: This mocked thinking is injected back into the original dangerous prompt. By providing a ready-made execution path, the model is biased toward completing the suggested reasoning rather than initiating a new safety justification check.
The Malicious-Educator Benchmark
To evaluate the efficacy of H-CoT, the researchers developed the Malicious-Educator Benchmark. This dataset consists of 50 queries spanning 10 critical safety categories, such as terrorism, cybercrime, and human trafficking.
Each prompt in the benchmark is framed as a request from a professional persona—such as a criminology professor or a law enforcement officer—seeking detailed information for training purposes. Despite the neutral framing, the requests are designed to elicit actionable, dangerous information that should trigger a refusal under standard safety policies.
Key Findings and Model Comparisons
The study revealed significant vulnerabilities across all tested models when subjected to H-CoT:
- OpenAI o1: While initially robust with a 99% refusal rate, the model's safety dropped to less than 2% in certain categories under the H-CoT attack. Interestingly, the researchers noted a decrease in safety between January and February 2025, suggesting that updates prioritizing performance or speed may have compromised safety alignment.
- DeepSeek-R1: This model showed high baseline vulnerability, with a refusal rate of only 20% on the benchmark even without the H-CoT attack. With the attack, refusal rates fell to 4%.
- Gemini 2.0 Flash Thinking: This model exhibited the lowest baseline safety (under 10% refusal). H-CoT caused the model to shift from a cautious stance to an "eager" one, providing high-utility harmful content.
Discussion and Future Outlook
A primary driver of this vulnerability is the "Entropy Trap." From an information-theoretic perspective, the execution phase is designed to minimize uncertainty. By providing a pre-written path, the attacker collapses the model's search space, making it statistically more likely to follow the provided harmful path than to branch into a high-entropy safety check.
While some developers are moving toward hiding raw CoT outputs (e.g., in o3-mini), the authors argue that obfuscation is not a cure. The underlying issue—the model's tendency to prioritize instruction-following over safety when a reasoning path is suggested—remains. Future safety mechanisms must move beyond simple policy matching and develop the ability to reason about deep intent, effectively disentangling the reasoning process from the core request.
Summary updated