Skip to content
Glossary / Agent reliability and evaluation

Indirect prompt injection

Indirect prompt injection occurs when an AI system encounters attacker-controlled instructions embedded in external content, such as webpages, documents, email, retrieved data, or tool output, and treats them as instructions during task execution. Detection can surface possible compromise, but it does not by itself solve the attack.

Related terminology

  • prompt injection
  • prompt-injection detection
  • context poisoning
  • agent security

Not the same as

  • jailbreak
  • direct prompt injection

See also

All terms · Where we work