Skip to content
AI / LLM Write-up Intermediate

LLM Apps: Don't Get Stuck in an Infinite Loop! ๐Ÿ’ต๐Ÿ’ฐ

An attacker can use indirect prompt injection to make an LLM call a tool or plugin recursively, causing an infinite loop. This could drive up API costs or cause a denial of service, though ChatGPT's subscription model and call limits mitigate the impact for its users.

embracethered.com

Published on embracethered.com

What happens if an attacker calls an LLM tool or plugin recursively during an Indirect Prompt Injection? Could this be an issue and drive up costs, or DoS a system?

The author, on embracethered.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the LLM application does not limit or detect recursive tool calls triggered by injected prompts.

Impact

This could drive up costs or cause a denial of service, but ChatGPT's subscription model, call limit of 10 times per turn, and the 'Stop Generating' button reduce the threat for its users.

What the attacker needed

LLM with tool/plugin access; attacker can inject prompts

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Large language models (LLMs) like ChatGPT can use tools or plugins to perform actions. An attacker can trick the model into repeatedly calling the same tool, creating an endless loop. This wastes computing resources and money, and could make the service unavailable.

What is AI / LLM?

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.