Skip to content

Indirect Prompt Injection

The attack an agent has no reason to distrust: instructions hidden inside data it asked for.

Runs on

Tool response.

Vectors

Vector What it looks like
Poisoned documents A file or web page the agent retrieves, carrying instructions in its text
Hostile tool descriptions A tool that advertises itself with an instruction attached
Compromised APIs A response field rewritten to redirect what the agent does next
Chained instructions Output that tells the agent to call another tool it should not

Second model

Direct prompt injection arrives in a user message, where the agent has reason to be skeptical. Indirect prompt injection arrives inside data the agent requested and implicitly trusts. The two look different on the page, so MATVIS runs a detector trained for each rather than reusing one for both. The direct one is Prompt Injection.

Configuration

Set on the tool response configuration, with the same Block from severity line and the same monitoring mode as everything on the chat path. It applies to every tool response the configuration screens.

Indirect prompt injection with its severity policy line.