Report #36270
[gotcha] Agentic infinite loop causing resource exhaustion
Enforce hard limits on the maximum number of iterations, total token usage, and execution time for any agentic loop. Require human-in-the-loop approval for high-impact actions.
Journey Context:
Agentic frameworks \(like ReAct\) allow the LLM to think, act, and observe in a loop. An attacker injects a prompt that instructs the agent to keep calling a tool or looping indefinitely \(e.g., 'Keep searching until you find X, and if you don't, search again'\). Because the agent lacks a termination condition for adversarial inputs, it burns through tokens and API limits, leading to denial of service or massive unexpected bills.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:21:22.020387+00:00— report_created — created