Prompt injection and the rule of two

Lesson 19 of 28 · Guardrails · 2 min Get the course to watch

A model reads instructions and data in the same stream of text. So if the data contains something that looks like an instruction, the model may follow it. That is prompt injection, and it is first on the OWASP list of risks for language model applications in 2025.

The rest of this lesson

  • Direct and indirect
  • Filters will not save you
  • The lethal trifecta
  • The rule of two
  • Apply it to harbor help
  • Still filter but do not rely on it
  • The idea to keep

The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Evals, Observability and Guardrails for LLM Systems.