Malicious tool servers can force LLM agents into overthinking loops, inflating tokens up to 142.4×
A co-registered malicious tool server can induce cyclic tool-call loops that dramatically increase token usage and degrade task performance.
AI/ML arXiv 16 Feb 2026 Attack Prototype evidence
Published as “Overthinking Loops in Agents: A Structural Risk via MCP Tools”
Why it matters
Agents can be forced into costly loops, inflating inference costs and potentially enabling denial-of-wallet attacks in real deployments.
Summary
Structural overthinking attacks using malicious MCP tools can cause massive resource amplification, inflating token usage up to 142.4× and runtime up to 27.5× while often leaving task accuracy unchanged; decoding-time concision controls like NoWait do not reliably stop these loops.
What they found 2
- Token consumption can increase up to 142.4× under attack.
“The attack amplifies token consumption up to 142.4×.”
- Maximum token amplification reaches 142.35× and runtime amplification reaches 27.49× in the Qwen-Code setting.
“Maximum token amplification reaches 142.35×, and runtime amplification reaches 27.49×, substantially exceeding ReAct-based results.”
Caveats 5
- models experience minimal accuracy change (0.90× ∼1.02×) despite severe token amplification (2.52× ∼10.83×).
- We focus on scientific reasoning, mathematics, and programming, where tool use and multi-step execution are clearly observable. This limits general-domain coverage.
- On highly challenging benchmarks (e.g., CodeElo), models sometimes enter long-running loops even without attacks.
- We do not systematically evaluate alternative defenses (e.g., RL-based reasoning suppression, registry-level tool filtering, or stricter turn and depth constraints); comparative analysis remains future work.
- Our experiments assume largely autonomous agents with minimal human intervention.
What’s new here 4
- Identifies structural overthinking as a distinct, loop-driven cost vector separate from token-level verbosity.
- Quantifies token and latency amplification across both general-purpose ReAct agents and production-grade coding assistants.
- Shows that mixed registries (benign plus malicious tools) can amplify costs more than attack-only registries.
- Demonstrates that existing decoding-time defenses do not prevent loop induction.