LLM learning

Agent Guardrails & Security

Schema controls, prompt-injection defense, least privilege, circuit breakers, budgets, approvals, and incident response.

Not started3 min explanation

Visualize, practice, and deep-dive material are optional—use only what helps you learn.

Explanation

A focused 3-minute explanation using the topic's authored material.

Learning goals and prerequisites

After this lesson

  • Threat-model agent data and action paths
  • Defend against direct and indirect injection
  • Implement least privilege, circuit breakers, and response procedures

Helpful before starting

  • Tool-using agent architecture
  • Authentication and authorization basics
  • Threat modeling and secure software design

Start here

Agent Guardrails & Security, in plain language

Schema controls, prompt-injection defense, least privilege, circuit breakers, budgets, approvals, and incident response. Agents combine untrusted text with privileged capabilities, so trust boundaries and deterministic controls must constrain every action.

For a small example, untrusted text tells an agent to send a secret. Treat content as data, check the requested capability against policy, redact secrets, and deny the outbound action. This is the mechanism to keep in view as the lesson becomes more technical. Before moving on, identify the input, transformation, output, and one observation that would falsify your conclusion.

Key points

  • Assets, attackers, entry points, trust boundaries, and consequences.
  • Direct and indirect prompt injection.
  • Defense in depth and instruction-data separation.

Use it well

When Agent Guardrails & Security helps—and where it breaks

The agent reads tickets and can issue credits. Map prompt injection, data exfiltration, excessive agency, and confused-deputy paths; then add least privilege and approval. A useful result still depends on checking the assumptions and evidence below rather than treating one successful output as proof.

Key points

  • Relying on a stronger system prompt. Better approach: Use independent authorization and constrained capabilities.
  • Giving one broad credential to simplify tools. Better approach: Broker short-lived least-privilege access.
  • Filtering output after exposing secrets. Better approach: Prevent secret access and network exfiltration earlier.

Was this lesson helpful?

Submit to the team when server feedback is available; otherwise this browser keeps a local copy and tells you so.