Skip to the content
AI and Cybersecurity Learning and Practice Center Test automation Open the Learning Center

WeaknessASC-2026-0045Other weakness

Agent loops and runaway tool calls

LowFixed

Agents retry, recurse or call each other in loops that burn tokens, hit rate limits and repeat side effects.

How to detect it

  • The same tool called repeatedly with similar arguments
  • Sessions far longer or costlier than usual

How to resolve it

  • Cap steps, tool calls and spend per task
  • Detect repeated identical calls and stop the run

How to investigate

  1. Find the step where the loop began and the input that caused it
  2. Undo repeated side effects

Sources

Open it in the Learning Center's vulnerability database