As Large Language Models (LLMs) transition from "fast" intuitive responses to "slow" deliberate reasoning—exemplified by models like DeepSeek-R1 and OpenAI’s o1—they utilize a process called Chain-of-Thought (CoT). While CoT allows models to solve complex problems by breaking them into logical steps, researchers have discovered that this internal "thinking" process introduces a massive and transparent attack surface.
The core insight across recent research is that the very capabilities that make these models "intelligent"—their ability to maintain logical consistency, follow complex instructions, and integrate context—are the same mechanisms that make them vulnerable to sophisticated adversarial manipulation.
The Paradox of Reasoning Capability
A recurring theme in recent benchmarks like BackdoorLLM and ELBA-Bench is a "paradox of capability": the more advanced a model is at reasoning, the more susceptible it may be to certain logic-based attacks.
Hanxun Huang and colleagues argue that because high-capacity models follow logical demonstrations more strictly, they are more easily manipulated by poisoned reasoning steps. If an attacker can embed a malicious "logic seed" into the intermediate reasoning layer, the model’s own proficiency in executing complex chains will lead it to follow that path to a predetermined, harmful conclusion. This is observed in the SABER attack developed by Naizhu Jin and others, which targets the reasoning process in code generation to produce logically flawed but syntactically correct code.
The Reasoning Snowball Effect
In standard LLMs, an error in one token might be ignored or corrected in the next. However, in reasoning models, a single perturbation can trigger a "snowball effect." Zihao Zhu and the AdvChain team describe this as a phenomenon where minor reasoning errors amplify into catastrophic safety failures.
Once a model is forced into a harmful reasoning prefix, it often lacks the internal resilience to steer back toward a safe conclusion. This vulnerability is exploited by the SEED (Stepwise rEasoning Error Disruption) attack. Jingyu Peng and Maolin Wang demonstrate that injecting subtle errors into early reasoning steps causes cascading failures. Because the model strives for internal coherence, it will adopt and extend a false premise if it is presented in a plausible, structured manner.
Structural Mimicry and Intent Hijacking
Advanced reasoning models are trained to recognize and produce specific logical patterns. Attackers can exploit this by using "structural mimicry"—crafting adversarial inputs that mirror the model’s own internal reasoning style.
Hongru Song and researchers at the Chinese Academy of Sciences demonstrated CoT Poisoning, where adversarial documents injected into a Retrieval-Augmented Generation (RAG) system mimic the "deep reasoning" patterns of models like DeepSeek-R1. This structural alignment tricks the system into treating external misinformation as a credible part of its own internal monologue.
Similarly, the AutoRAN framework by Tanqiu Jiang and Tingshu Jiang automates the hijacking of safety reasoning. By exploiting the transparency of the CoT trace, an attacker can use a smaller model to iteratively refine prompts that steer the target model into bypassing its own guardrails. The transparency intended for safety—allowing us to see why a model made a choice—becomes a roadmap for the attacker to navigate around filters.
Reasoning as a Security Surface
The shift from direct input-output mapping to explicit reasoning chains creates several new vectors for attack:
- Intermediate Layer Manipulation: Attacks like BadChain by Zhen Xiang show that the logical instructions guiding a generator are a distinct security surface.
- Contextual Integration: Wanru Zhao notes that because reasoning models prioritize a coherent narrative, they may actively work to integrate poisoned or contradictory information into their responses rather than identifying the data as an error.
- Multi-Step Exploitation: Aaditya Rastogi and Erick Galinkin found that while "thinking" helps models catch simple malicious requests, it makes them significantly more vulnerable to iterative, multi-step attacks like the Tree-of-Attacks (TAP).
Towards Reasoning-Aware Defenses
Traditional defenses that filter inputs or outputs are increasingly insufficient for Large Reasoning Models (LRMs). New strategies are emerging to address the reasoning chain directly. Zihao Zhu proposes AdvChain, which uses "Temptation-Correction" trajectories to teach models to self-correct when they detect their reasoning is being hijacked. Other approaches, like CAHL by Tengyun Ma, suggest architectural changes that force models to recognize instruction hierarchies, preventing them from following malicious commands hidden within tool outputs or context.
As AI continues to move toward deeper cognitive processing, the security community is realizing that a model's "internal thoughts" are not just a feature for interpretability, but a critical frontier for safety alignment.