Indirect Prompt Injection

Quick definition

Prompt injection delivered through content the model reads rather than through a direct user message.

Prompt injection delivered through content the model reads rather than through a direct user message.

Documents, websites, repository files, and retrieved passages can carry instructions that should remain untrusted data.

Example: A PDF includes hidden instructions asking an assistant to email its contents elsewhere.

Common use cases: RAG security and tool-using agent defense.

Examples

  • A PDF includes hidden instructions asking an assistant to email its contents elsewhere.

Use cases

  • RAG security and tool-using agent defense.

Frequently asked questions

What is Indirect Prompt Injection?

Prompt injection delivered through content the model reads rather than through a direct user message.

What should I know about Indirect Prompt Injection?

Documents, websites, repository files, and retrieved passages can carry instructions that should remain untrusted data.

Categories and tags