Open Agent School · Public worked example

Indirect prompt injection: meaning and example

Welcome! Take one idea with you today.

Attacker-supplied instructions reach a model through content it retrieves or receives, rather than the primary user’s request.

Picture it: A fictional document contains directions to change the assistant’s task instead of information to summarize.

What is easy to mix up?

Retrieved text is evidence to evaluate, not authority to grant permissions.

Teaching example by Open Agent School. Source: NIST SP 2400-102e2026.ipd — Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations (November 2026, Initial Public Draft); PDF p. 153.