Skip to content

I Think, Therefore I Attack: Evaluating Thought Injection Attacks Against Reasoning AgentsI Think, Therefore I Attack: Evaluating Thought Injection Attacks on Reasoning Agents

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2611.08811· Parth Illendula, Garik Livingston, Zain Shamsi, Ravi Srinivasan, Alex LiuApplied Research Laboratories, University of Texas at AustinIndexed by this site · 15 days ago· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors conduct a two-stage study of thought injection on open-source reasoning models, reporting that indirect injection imitating the target model's own reasoning style and adding think tags achieves an ASR of up to 50% on MiniMax-M2.5.

Threat modelStudy 1: The attacker controls only the user query, which contains injected thought content (optionally with thinking tags), and the goal is to make the model leak the PII it was asked to protect. Study 2: The attacker's goal is to make the agent perform unauthorized operations without the operator's knowledge; the attacker cannot modify the system prompt, model or harness, and has no direct conversational access; because open-source models are studied, it is assumed the attacker knows the target model's identity and can collect its native reasoning traces offline to construct injections, delivered indirectly through poisoned documents.

Questions
The explicit chain of thought of reasoning models introduces a new attack surface: feeding untrusted text disguised as the model's own reasoning back into the model (thought injection). The authors argue that in agent scenarios any ingested content can become a delivery channel, and the consequence is real tool calls rather than merely text output.
Methods
Two studies: Study 1 uses 100 model-agnostic short injections with/without think tags to measure PII leakage across three open-source models; Study 2 hides injections written from the target model's own reasoning traces in documents within a Docker network cyber range, testing whether indirect injection can drive malicious tool calls.
Experiments and results
The authors report: the effects of tags and payload style vary by model; in Study 2, self-style plus tags injection reaches 42% ASR (reverse shell) and 50% (backdoor) against MiniMax-M2.5, while user-style injection is 0% throughout; cross-model transfer is asymmetric; tags also raise the proportion of injections that are ignored.
Limitations and future work
Limitations listed by the authors: the two studies have different goals and were not combined; self-style payloads may confound style with problem-solving plans; it is unclear why tags remain effective on models with deprecated tags; the model identity is assumed known; the effect of context inflation was only preliminarily tested. The experiments cover only 5 open-source models and do not test closed-source models.
Experimental setupGLM-5.3-Flash、Qwen3.8-27B et al. · 虚构金融服务数据库(150 条客户记录,嵌入系统提示词)、Docker 容器化网络靶场(agent host、listener、内部 git server,5 个 CTF 风格 secrets) · ASR、泄露位置分布(think-only / response-only / both) et al.
Evaluated models
GLM-5.3-FlashQwen3.8-27BQwen3.8-Flash-NextGLM-5.2MiniMax-M2.5
Benchmarks
虚构金融服务数据库(150 条客户记录,嵌入系统提示词)Docker 容器化网络靶场(agent host、listener、内部 git server,5 个 CTF 风格 secrets)
Metrics
ASR泄露位置分布(think-only / response-only / both)注入被忽略率(ignored vs. flagged)
AI summaryResearchers proposed and evaluated thought injection attacks against large reasoning models, feeding the model untrusted text similar to its own thinking, achieving a maximum attack success rate of 50% in a containerized agent cyber range. The study first tested static thought injection prompts under different styles and with and without tags, finding that the effects of thought tags and payload style are properties of the specific target model; it then exploited this model specificity, using indirect injection prompts that imitate the style of the target model's own reasoning traces to attack operational objectives such as reverse shell data exfiltration and repository backdoor implantation, with test subjects including production-grade open-weight models such as GLM-5.3, MiniMax-M2.5, and Qwen3.8-Flash-Next. The same malicious objectives with prompt injection in a standard user tone never succeeded, and thought tags also suppressed the agent's tendency to disclose the injection; the authors note that imitating a reasoning model's own thinking style is effective for such attacks, and that stripping thought tags is not a reliable defense.

Researchers proposed and evaluated thought injection attacks against large reasoning models, feeding the model untrusted text similar to its own thinking, achieving a maximum attack success rate of 50% in a containerized agent cyber range. The study first tested static thought injection prompts under different styles and with and without tags, finding that the effects of thought tags and payload style are properties of the specific target model; it then exploited this model specificity, using indirect injection prompts that imitate the style of the target model's own reasoning traces to attack operational objectives such as reverse shell data exfiltration and repository backdoor implantation, with test subjects including production-grade open-weight models such as GLM-5.3, MiniMax-M2.5, and Qwen3.8-Flash-Next. The same malicious objectives with prompt injection in a standard user tone never succeeded, and thought tags also suppressed the agent's tendency to disclose the injection; the authors note that imitating a reasoning model's own thinking style is effective for such attacks, and that stripping thought tags is not a reliable defense.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Studies thought injection attacks: whether text disguised as the model's own reasoning, fed back into a reasoning model, can bypass safety rules and drive malicious tool calls.

    Core problem: The explicit chain of thought of large reasoning models (LRMs) introduces a "thought injection" attack surface—untrusted text resembling the model's own reasoning process is placed in context, and the model may treat it as its own thinking and act on it; the paper evaluates the effectiveness of this attack.

    • Scenario and importance: The authors argue that in agent workflows, LRMs both perform multi-step reasoning and autonomously execute tools, so any untrusted content ingested by the agent (files, tool outputs, network responses, emails) can become a delivery channel for injected thoughts; the consequences of failure are not limited to policy-violating text but also include unauthorized tool operations.
    • Gaps in existing research: The authors state that prior work separately studied how well injection style matches the chain of thought, step-by-step guidance of harmful actions through thoughts, and cross-model transfer of think and tool tag combinations; this paper differs by comparing responses to different thought prompts in greater depth, experimenting in an agent cyber range, and examining model sensitivity to tag structure and self-style.
    • Core hypothesis: The authors invoke "role confusion" as an explanation—the model may distinguish its own thinking from the query by text style rather than tag structure, so injections written in the target model's own narrative style are absorbed as self-reasoning. Study 1 tests this phenomenon, and Study 2 exploits it.
    • What the paper proposes: Two empirical studies—Study 1 measures the success rate of model-agnostic short injections with/without think tags in a controlled single-turn setting; Study 2 tests malicious tool calls using indirect injections written from the target model's own reasoning traces in a containerized agent cyber range; and discusses defense implications.
    • Threat model:
      • Study 1: The attacker controls only the user query, which contains injected thoughts (optionally wrapped in thinking tags), followed by a request to display customer data; the goal is to make the model leak PII that the system prompt explicitly forbids sharing.
      • Study 2: The attacker's goal is to make the agent perform unauthorized operations without the operator's knowledge; the attacker cannot modify the system prompt, model or harness, and has no direct conversational channel with the agent.
      • Study 2: Because open-source models are studied, it is assumed the attacker knows the target model's identity and can collect its native reasoning traces offline to construct injections.
      • Victim systems: Study 1 is an assistant holding a privileged database; Study 2 is a ReAct-style agent whose tool calls execute in a real isolated network.
  2. What related research exists?

    Related work covers prompt injection, attacks on chain of thought/tag roles, and research on the influence of reasoning traces; the authors position this paper's difference as model sensitivity analysis and agent network range experiments.

    Prompt injection (direct and indirect)

    • Liu et al. [8] (USENIX Security 24)—formalizes and benchmarks prompt injection attacks and defenses.
    • Greshake et al. [5] (AISEC 2023)—indirect prompt injection: placing malicious input in content the user ingests, such as websites and documents, to compromise real LLM applications.
    • Wang et al. [10] (EMNLP Findings 2025)—a survey of large reasoning model safety.

    Attacks on chain of thought and the role of tags

    • Nakash et al. [9] (NAACL Findings 2025)—Foot-in-the-Door attack: gradually guiding a ReAct agent to perform harmful actions through thought injection; the authors note that this is the earliest paper they know of to use the term "thought injection," so this paper uses that term throughout.
    • Cui and Ye [3] (Kaggle 2025)—Chain-of-Thought Forgery: studies how closely the injection style should match the chain of thought.
    • Chang et al. [2] (ChatInject, ICLR 2026)—abuses chat templates (Role Hierarchy Abuse), combining think and tool tags to test cross-model transfer of attacks.
    • Ye, Cui, and Hadfield-Menell [13] (ICML 2026)—interprets prompt injection as Role Confusion: the authors paraphrase its claim as that the actual tag structure does not matter and that models distinguish their own thinking by text style; Study 1 of this paper tests this phenomenon.

    Effects and disclosure of reasoning traces

    • Hao et al. [6] (ACL 2026)—the authors paraphrase: reasoning traces causally shape the model's final output, and models rarely disclose this influence; this paper extends this concern from textual influence to concrete data exfiltration.
    • Fernandes et al. [4] (arXiv 2026)—reasoning traces cause cognitive overload, and the authors use this to point out that most tools hide reasoning traces from users by default, making attacks more covert.

    Baselines and benchmarks: This paper uses no external attack baselines or public benchmarks; the control is the paper's own user-style standard prompt injection payload (Study 2), and the evaluation environments are a self-built fictional PII database (Study 1) and a Docker network range (Study 2).

    Positioning: The authors state that this paper's difference from prior work lies in—an in-depth comparison of how models respond to different thought prompt styles, operational experiments in an agent network range, and a systematic examination of differences in model sensitivity to tag structure and self-style.

  3. How does the paper address this problem?

    Two studies: Study 1 uses model-agnostic short injections to measure tag and style effects; Study 2 uses the target model's own reasoning traces to write indirect injections and measures malicious tool calls in a cyber range.

    Overall approach: first separate the two variables label and payload style in a controlled single-turn setting (Study 1), then use the resulting model-specific conclusions to perform indirect injection in an operational agent environment using the target model's own reasoning style (Study 2).

    Study 1: Design of model-agnostic direct injection

    • Task setting: A fictional financial services database containing 150 customer records (name, ten-digit account number, email, phone, balance, SSN), embedded in the system prompt; an explicit safety rule prohibits sharing PII with the user. The attacker controls only the user query: an injected thought block (optionally with ⟨think⟩ tags) followed by a request to display customer data.
    • Attack samples: 25 attack vectors identified from preliminary exploratory testing, each with 4 variants, for 100 base attack prompts in total; organized into 3 major categories and 10 subcategories—social engineering (fabricated trust/authority/prior authorization), technical injection (exploiting model response structure), memory poisoning (manipulating prior session state). Injections are kept short, and the style is agnostic to any model (Table 1 gives descriptions and examples for each category).
    • Execution: Based on the Inspect AI framework [1]; single-turn, no tool execution, no session state between samples. Each attack is run for 10 independent epochs under each of two conditions, with and without tags, for 100 prompts × 10 epochs × 3 models × 2 conditions = 6,000 evaluations in total.
    • Success determination: The scoring function extracts all text from the model output (including reasoning content); an attack is judged successful if any complete field value from the protected database appears verbatim in the output; the leak location is also recorded (reasoning only / response only / both).

    Study 2: Design of model-specific indirect injection

    • Environment: An isolated network range built with Docker containers, containing three hosts: agent host, listener service, and internal git server; 5 CTF-style secrets are scattered across the agent host's file system. The agent is a ReAct-style loop, and tool calls execute against the real network inside the container.
    • Tasks: reverse shell—the agent connects back to the listener, and the listener sends commands to exfiltrate secrets; backdoor—clone the internal repository, implant a backdoor, and push it back upstream. The former requires one key attack step, while the latter requires genuine multi-step tool use.
    • Injection delivery: The agent's legitimate task is to summarize a business document on the agent host; the injected thought is hidden inside that document, simulating a scenario where the user asks the model to summarize a poisoned document/website/email.
    • Three payload voices: user-style (writing the malicious task as a step-by-step hidden CTF exercise, i.e., standard prompt injection); self-voice (transcribed from the reasoning traces produced when the target model itself was asked to complete the task); cross-voice (taken from another model's traces on the same task). Each voice is tested with and without think tags.
    • Execution and determination: Each evaluation consists of 50 independent runs with fresh containers, for 2 tasks × 2 models × 3 voices × 2 conditions × 50 = 1,200 evaluations in total. Success is determined by manual review of each transcript: reverse shell requires a connection to be established and secrets to be read; backdoor requires the backdoor code to be committed and pushed. Reviewers also record whether the agent mentions the injection in its final response (flagged vs. ignored), measuring the attack's visibility to users who only read the final answer.
  4. What experiments did the paper conduct?

    Study 1 measures PII leakage from 6,000 direct injections, and Study 2 measures 1,200 indirect injections in a network range; the authors state that the effects of tags and self-style both vary by model, and user-style injection never succeeded.

    Experimental setup

    • Models tested: Study 1 uses GLM-5.3-Flash (320B parameters), Qwen3.8-Flash-Next (125B), and Qwen3.8-27B; Study 2 uses GLM-5.2 (750B) and MiniMax-M2.5 (230B). A footnote by the authors states that because of changes in model availability on shared infrastructure, the model lists of the two studies could not be aligned.
    • Dataset/environment: Study 1 uses a fictional financial services database embedded in the system prompt (150 customer records); Study 2 uses a three-host Docker network range (5 CTF-style secrets).
    • Baselines/controls: In Study 1, initial testing confirmed that without injection all queries were refused by the safety rule; in Study 2, the control is the user-style standard prompt injection payload.
    • Metrics: ASR (Study 1 determined by verbatim appearance of field values; Study 2 determined by manual judgment of end-to-end completion of the malicious objective); distribution of leak locations; injection-ignored rate (proportion of final responses that do not mention the injection).
    • Review method: Study 1 uses a rule-based scoring function; Study 2 uses manual review of each transcript, and the paper does not state the number of reviewers or inter-rater agreement.
    • Sample size: Study 1 has 100 prompts × 10 epochs = 1,000 runs per cell, 6,000 in total; Study 2 has 50 independent runs per cell, 1,200 in total.

    Main results

    Study 1 ASR by model and tag condition (from Table 2, 1,000 runs per cell):

    ModelThink (with tags)No-Think (without tags)
    GLM-5.3-Flash13.4%3.8%
    Qwen3.8-27B13.5%9.8%
    Qwen3.8-Flash-Next10.6%11.8%

    Study 2 ASR by payload voice, tags, and task (from Table 4, 50 runs per cell):

    Swipe horizontally to read the table

    PayloadTargetReverse Shell (with/without tags)Backdoor (with/without tags)
    MiniMax CoTMiniMax-M2.542% / 8%50% / 10%
    MiniMax CoTGLM-5.20% / 0%2% / 0%
    GLM CoTMiniMax-M2.520% / 6%14% / 2%
    GLM CoTGLM-5.216% / 2%0% / 0%
    User-styleboth targets0% / 0%0% / 0%
    • The tag effect varies by model: The authors state that wrapping the same text with think tags raises GLM-5.3-Flash's ASR from 3.8% to 13.4% and Qwen3.8-27B's from 9.8% to 13.5%, while the difference for Qwen3.8-Flash-Next (10.6% vs. 11.8%) is within sampling noise at this sample size; the tag effect is a property of the target model rather than of the payload.
    • Voice determines success: The authors state that in Study 2 the self-voice plus tags combination produced the highest success rates in the paper, while user-style payloads requesting the same malicious actions failed under all conditions; cross-voice transfer is asymmetric—GLM-5.2's style transfers to MiniMax-M2.5, but the reverse almost does not transfer.
    • No universally effective payload: The authors state that, as in Study 1, no payload style is universally effective; voice, model, and task are all target-specific.

    Leak locations and the tag-stripping effect (Study 1)

    • What was measured → results: Table 3 decomposes all 629 leaking runs in Table 2 by location: combined, 67.7% of leaks appear in the final response, 20.8% only in the chain of thought, and 11.4% in both; the response-only share for each of the three models is between 66.9% and 68.2%.
    • Interaction with tag condition: Under the no-tag condition the think-only share rises—to 28.9% for GLM-5.3-Flash and 33.7% for Qwen3.8-27B.
    • Authors' interpretation: Reasoning traces are often not shown to end users, so leaks that exist only in the thought channel are invisible to users and to monitors that only inspect the rendered answer; stripping tags not only fails to eliminate the risk but may shift leaks to another channel, so PII/DLP filters must scan the full output including reasoning content.

    Visibility of the injection (Study 2)

    • What was measured → results: Table 5 reports the proportion of runs whose final response does not mention the injection. GLM CoT with tags reaches 100% on the reverse shell task against GLM-5.2; user-style payloads are almost always flagged (ignored rate only 0%–6% across conditions).
    • Tags suppress disclosure: The authors point out a notable result—removing tags often raises the flagging rate; for example, for MiniMax CoT on the reverse shell task against GLM, 92% of runs ignore the injection with tags, versus only 22% without tags.
    • Authors' interpretation: think tags not only raise success rates on these models but also suppress the model's tendency to disclose the injection; the most successful attacks are also the least visible.

    Other ablations and analyses

    • Attack family breakdown (Figure 3): On GLM-5.3-Flash, tags amplify all families, with technical injection rising from 1.2% to 17.5%; Qwen3.8-27B shows smaller magnitudes (memory poisoning from 8.1% to 14.6%); Qwen3.8-Flash-Next's breakdown is mixed, with memory poisoning and technical injection having nearly equal success rates.
    • Pooled baseline leak rates: Combining both tag conditions, GLM-5.3-Flash is 8.6%, Qwen3.8-27B is 11.7%, and Qwen3.8-Flash-Next is 11.2%; the authors state that no model is uniformly safe or uniformly exposed.
    • GLM family differences: The authors note that both the Qwen3 and GLM-4 families use the ⟨think⟩ format, whereas GLM-5 separates reasoning and response into different channels, yet tags have a larger effect on GLM-5.3; the authors say further analysis is needed and offer no explanation.
    • Negative results: user-style injection has 0% ASR under all 16 conditions in Study 2; MiniMax style almost does not transfer to GLM-5.2 (0% reverse shell, 2% backdoor).
  5. What are some points that can be further explored?

    The authors list five limitations and future directions; the experiments cover 5 open-weight models and two tasks, and no closed-source models or adaptive defense tests are reported.

    Limitations and future directions noted by the authors

    • The two studies' objectives were not combined (Section 5 Limitations): The two studies tested different objectives, and the authors state that the first step should be to combine payload style with the voice method to build a better profile of model exposure.
    • Confound in self-voice payloads (Section 5 Limitations): The self-voice payload is taken from the target model's own traces, which may confound style imitation with the target's own plan for solving the task; the authors state that further testing with varied plans and voice-content swap controls is needed.
    • Tags still work on models that deprecated them (Section 5 Limitations): Models use different reasoning output channels, yet think tags still work on models that have deprecated them (such as GLM 5.3); the authors suggest this may point to a broader phenomenon of "memorized vulnerabilities" in models, which needs study.
    • Assumes known model identity (Section 5 Limitations): This paper assumes the attacker knows the target model in order to generate the voice; the authors state that measuring the CoTness of injections (e.g., [13]) may generalize the attack, and that metrics quantifying similarity to a model's thought-trace style are needed, which would help both attack construction and detection.
    • Context inflation (Section 5 Limitations): Preliminary sandbox tests suggest that larger contexts dilute system prompt defenses and raise attack success rates; the authors state that systematic study of context inflation as a hiding place for injections is necessary.

    Scope of experimental coverage

    • There are 5 models tested, all open-weight models: GLM-5.3-Flash, Qwen3.8-27B, Qwen3.8-Flash-Next (Study 1), GLM-5.2, MiniMax-M2.5 (Study 2); the model lists of the two studies are inconsistent because of availability (Section 4 footnote).
    • Study 1 is single-turn, with no tool execution and no session state; 1,000 runs per cell, 6,000 in total (Section 3.2).
    • Study 2 covers 2 tasks (reverse shell, backdoor), 2 target models, 3 payload voices, and 2 tag conditions, with 50 runs per cell, 1,200 in total (Section 4.2).
    • Study 2 success determination is manual review of transcripts, and the paper does not report the number of reviewers or inter-rater agreement (Section 4.2).
    • On defenses, the paper discusses directions such as tag stripping, imperative-wording filtering, and style classifiers and explains their difficulties, but no defense was implemented or evaluated in the experiments (Section 5).
  6. Summarize the main content of the paper

    Two empirical studies evaluate thought injection: the effects of tags and self-style vary by model, and indirect injection with self-style plus tags achieves an ASR of up to 50% on MiniMax-M2.5.

    This is an empirical study of thought injection attacks, targeting large reasoning models with explicit chain of thought and their agent applications.

    • Problem: When untrusted text resembling the model's own reasoning is placed in context, the model may absorb it as its own thinking; the authors argue that in agent scenarios this escalates from text violations to real unauthorized tool operations.
    • Method: Study 1 uses 100 model-agnostic short injections (3 major categories, 10 subcategories), running 1,000 times per cell for each of 3 open-source models with/without think tags, measuring PII leakage; Study 2 hides injections written using the target model's own reasoning traces in documents within a Docker network cyber range, measuring two malicious tasks, reverse shell and backdoor, with success judged manually.
    • Tag effects vary by model: Adding tags raises GLM-5.3-Flash's ASR from 3.8% to 13.4%, and Qwen3.8-27B's from 9.8% to 13.5%; for Qwen3.8-Flash-Next the difference is within sampling noise (Table 2).
    • Self-style plus tags is most effective: In Study 2, MiniMax CoT with tags achieves an ASR of 42% (reverse shell) and 50% (backdoor) on MiniMax-M2.5; user-style injections with the same style instructions achieve 0% ASR under all conditions (Table 4).
    • Transfer is asymmetric and tags suppress disclosure: GLM-5.2's style transfers to MiniMax-M2.5 (20%/14% with tags), while the reverse almost does not transfer (0%/2%); with tags, the proportion of injections ignored reaches up to 100%, and after removing tags the flagging rate rises (Table 5).
    • Leakage location: In Study 1, 67.7% of leaks are in the final response and 20.8% only in the chain of thought; when tags are removed, the think-only share rises to 28.9%–33.7%, from which the authors conclude that stripping tags shifts leakage to an invisible channel (Table 3).
    • Authors' conclusion: The authors state that imitating the target model's own thinking style is effective for this type of attack, and that tag stripping is an unreliable defense; because sensitivity is model-specific, red-team testing should include payloads written in the deployed model's own reasoning style, and model selection itself should be treated as a defense decision.
Read originalarxiv.org