Secrets and prompt injection

Lesson 20 of 27 · Guardrails · 2 min Get the course to watch

Your agent reads a README, an issue, or a web page. Hidden in that text is a sentence telling it to send your environment file to a stranger. It does not know the sentence is not yours. To the model, everything it reads is just more text.

The rest of this lesson

  • Injection in one idea
  • The three legs
  • Remove one leg
  • Keep secrets out of reach
  • Gate the exits

The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Engineering with Coding Agents.