Skip to content

Prompting

Indirect prompt injection

Prompt injection that arrives through external content such as a webpage, document, or email.

Example

Hidden instructions inside a retrieved webpage try to redirect the assistant's behavior.

Why people use it

Understanding “Indirect prompt injection” helps teams give models clearer instructions and diagnose weak prompts.

What you'll hear

“Can we improve this with Indirect prompt injection before we change the model?”

Related terms