Module resources

Safety and guardrails

Checked sources to go further than the lessons. Back to the module.

Recommended learning sequence

Work through these in order.

  1. The lethal trifecta for AI agents: private data, untrusted content, and external communication (opens in a new tab)

    Simon Willison2025Article

    Start with the mental model: private data, untrusted content and an outbound channel in one agent is the combination to avoid. Repeated on purpose: it is a lesson source, and it frames every later step.

  2. 2025 Top 10 Risk & Mitigations for LLMs and Gen AI Apps (opens in a new tab)

    OWASP GenAI Security Project2025Documentation

    Then see the whole list the two lessons draw from, so each control you learn has a risk name and number. Repeated on purpose: it is a lesson source, used here as the map of the module.

  3. Mitigating prompt injection attacks with a layered defense strategy (opens in a new tab)

    Google GenAI Security Team2025Article

    A vendor's layered defence in plain language: model hardening, prompt injection content classifiers, security thought reinforcement, markdown sanitization and suspicious URL redaction, a user confirmation framework. It shows lesson 1's layers working together.

  4. How Microsoft defends against indirect prompt injection attacks (opens in a new tab)

    Andrew Paverd2025Article

    A second production design that separates prevention, detection and impact mitigation, and says some injections will get through. This is the thinking behind lesson 2's blast-radius controls.

  5. Design Patterns for Securing LLM Agents against Prompt Injections (opens in a new tab)

    Luca Beurer-Kellner, Beat Buesser, Ana-Maria Creţu, Edoardo Debenedetti, et al.2025Preprint

    Move from controls to architecture: named design patterns that limit what an agent can do once it has read untrusted text. Read it after the two vendor posts so the trade-offs make sense.

  6. NeMo Guardrails (opens in a new tab)

    NVIDIA2026Repository

    Finish by trying guardrails in code: an open-source toolkit for input, output, retrieval and tool-call checks. Wire one check into a small app and see what it catches and what it misses.

All resources

Official documentation

Further reading

Research papers

Hands-on

  • NeMo Guardrails (opens in a new tab)

    NVIDIA2026Repository

    An open-source toolkit for adding programmable guardrails to LLM-based conversational systems; its README says it can filter input, check retrieved documents, validate tool calls and moderate output. Telemetry is on by default and can be disabled, per the README.

Case studies