mlsanityData to 24 Nov 2026

The Window Is in the Reasoning: When LLM Agents Decide to Follow Prompt Injections

arXiv 2610.24048 ↗Submitted 16 Oct 2026cs.CL cs.AI cs.CRcited by 2

On the map: LLM reasoning → Reasoning for agents, planning and code

also in 2 more
Abstract (arXiv)

LLM agents that read untrusted content can be hijacked by prompt injections. Runtime monitors that try to catch a hijack before the agent acts, and benchmarks that score each task with a single run, share an assumption: whether an agent follows an injection is settled when the injection is read. We test this assumption with branching rollouts that replay an episode exactly up to the step at which the agent reads an injection and then resample the rest of the episode many times, splitting the outcome variance into a part fixed at read time and a part decided afterwards. Across four AgentDojo suites, a Qwen3 agent without thinking is largely decided at read time (0.91 of the outcome variance lies between states); with thinking on, this share drops to 0.62 (95% CI of the drop [-0.38, -0.22]), in the same direction for three attack templates and two success labels. How much is fixed at read time is a property of the model that the same measurement reveals, and thinking lowers the attack success rate of Qwen3 but raises it for two other models. Resampling from reasoning prefixes shows that the decision forms gradually as the agent reasons. Zero-shot chain-of-thought monitors built on cheaper models miss much of what is already decided, whereas stronger monitors, and a lookahead monitor that judges simulated next actions, come close to what the prefix determines. Finally, single-run labels of thinking agents disagree with a rerun up to 35% of the time, so benchmarks need repeated runs per task.

Key facts. Cited by 2 papers in the map (data through 24 Nov 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 20 of its 32 references that are in the map. Submitted 16 Oct 2026.

Builds on

20 of 32 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024Deliberative Alignment: Reasoning Enables Safer Language Models20 Dec
  2. 2024GuardAgent: Safeguard LLM Agents by a Guard Agent via Knowledge-Enabled Reasoning13 Jun

Other references · 18

  1. 2024The Llama 3 Herd of Modelscited by 16,113
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
  3. 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,713
  4. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,638
  5. 2016Understanding intermediate layers using linear classifier probescited by 1,541
  6. 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,324
  7. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 971
  8. 2025Reasoning Models Don't Always Say What They Thinkcited by 503
  9. 2025Monitoring Reasoning Models for Misbehavior and the Risks of Promoting Obfuscationcited by 472
  10. 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 433
  11. 2025Defeating Prompt Injections by Designcited by 384
  12. 2024Defending Against Indirect Prompt Injection Attacks With Spotlightingcited by 319
6 more
  1. 2025Chain of Thought Monitorability: A New and Fragile Opportunity for AI Safetycited by 315
  2. 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 295
  3. 2025WASP: Benchmarking Web Agent Security Against Prompt Injection Attackscited by 183
  4. 2025Thought Anchors: Which LLM Reasoning Steps Matter?cited by 147
  5. 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 103
  6. 2024Preemptive Detection and Correction of Misaligned Actions in LLM Agentscited by 15

Built on by

Cited by year (2026 to 24 Nov)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Readable Before Actionable: Causal Tracing of Indirect Prompt Injection
  2. 2026Prompted to Discriminate: Generalizing Malicious-Input Probes in the Wild
  3. 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectories
  4. 2026On the Relative Security of Prompt Injection: Mechanised Definitions, Defences and Verdicts for LLM Agents
  5. 2026After the Attacker Leaves: Benchmarking Carryover Attacks on LLM Agents
  6. 2026Passing the Test You Trained On: Re-evaluating Prompt-Injection Detectors for LLM Agents
  7. 2026Blocking at the Boundary: Auditing Long-Horizon Agents against Staged Prompt Injection
  8. 2026Ignored, Not Refused: What Low Prompt-Injection Success Rates Hide in Small Tool-Using Agents