What shipped

  • Paper title: I Think, Therefore I Attack: Evaluating Thought Injection Attacks on Reasoning Agents.
  • Authors: Parth Illendula, Garik Livingston, Zain Shamsi, Ravi Srinivasan, Alex Liu.
  • Publication date: 6 November 2026 (submitted to arXiv).
  • Primary Discovery: The researchers identified a critical vulnerability in Large Reasoning Models (LRMs) called "thought injection." This occurs when an attacker feeds untrusted text that mimics the model's internal deliberation (Chain-of-Thought) back into the model, tricking it into believing these thoughts are its own.
  • Evaluation Scope: The study targeted high‑performance open‑weight reasoning models, including GLM‑5.3, MiniMax‑M2.5, and Qwen‑3.8‑Flash‑Next.
  • Attack methodology: Indirect injection prompts crafted to resemble the target model's CoT style; evaluated in a containerized cyber‑range.
  • Key results:
  • High Success Rate: In a containerized agentic cyber range, imitating the target model's own thought style achieved attack success rates (ASR) of up to 50 %.
  • Objective Success: Successful attacks led to high‑impact outcomes, including reverse‑shell exfiltration and the insertion of backdoors into software repositories.
  • Failure of Standard Injection: Direct prompt injections using a standard "user voice" failed to achieve these results, proving that thought‑style imitation is the primary driver of the attack's success.
  • Defense Ineffectiveness: Traditional tag‑stripping (removing <thought> or <reasoning> tags) was found to be an unreliable defense. In some cases, thinking tags actually suppressed the agent's tendency to disclose the injection, making the attack more covert.

Why it matters

The rise of "Reasoning Models" (LRMs) has introduced a new, subtle attack surface. Because these models are trained to follow their own internal reasoning traces, they exhibit a strong bias toward trusting text that resembles those traces. When an agent reads a document or a webpage (indirect injection) that contains a "spoofed" reasoning trace, it can be tricked into overriding its original instructions and executing a malicious plan, believing that it "thought" of the plan itself.

This is far more dangerous than standard prompt injection because it bypasses the role‑distinction that many models have been trained to maintain. By speaking the "internal language" of the model, the attacker effectively escalates their privileges from "user" to "internal deliberation." For autonomous agents deployed in security‑sensitive roles (such as automated vulnerability researchers or system administrators), this vulnerability could allow an external attacker to compromise the entire agentic host via a simple malicious file or webpage.

Crucially, the paper highlights that the "thought" stage of the LRM—which is typically used to improve accuracy—actually becomes the entry point for the attack. The model's attempt to launder the malicious instruction through its own reasoning process makes the attack harder to detect for external monitors.

Adoption / Practical steps

  1. Audit Chain‑of‑Thought (CoT) Loops: Review any agent pipelines that feed a model's previous reasoning steps back into the context window. Ensure that any external data integrated into the reasoning loop is strictly sanitized.
  2. Implement Style‑Based Detection: Since the attack relies on imitating specific model styles, implement anomaly detection that flags unusually structured or repetitive "thought-like" patterns appearing in untrusted inputs.
  3. Enforce Strict Role Separation: Use system prompts that explicitly instruct the model to treat all retrieved content as "untrusted data" and to never adopt the reasoning style found within retrieved documents.
  4. Layered Defense‑in‑Depth:
  • Sandboxing: Run agents in restricted environments with no network access except to a strictly controlled proxy.
  • Egress Filtering: Use a proxy to block reverse‑shell attempts and unauthorized exfiltration to unknown IPs.
  • Human-in‑the‑Loop: Require manual approval for high‑impact tool calls (e.g., git push, curl to external IPs).
  1. Avoid Reliance on Tag Stripping: Do not assume that removing <thought> tags protects the model; instead, focus on content‑aware sanitization.
  2. When the full paper is not available: The arXiv abstract provides the high‑level ASR results; for the specific prompts used to imitate GLM‑5.3 or Qwen‑3.8, download the full PDF from arXiv:2611.08811.

References