← Saguaro

Course · 8 chapters · 1 hr 13 min

Security in the Age of AI

An eight-chapter, hands-on course for AI engineers: the security fundamentals, then identity and OAuth, then the risks that appear once models can read, decide and act, then enough compliance to sell to enterprises. Every chapter pairs the theory with real incidents and code you can run, and ends with an exercise.

The videos are hosted on YouTube. The narration is an AI voice. The incidents come from public reporting, linked under each video, and where sources disagreed the video says so. Code samples are for teaching and should be adapted before use.

Chapter 1 · 8 min 34 s

Foundations in the age of AI

The CIA triad, STRIDE threat modeling and trust boundaries, and why the boundary now runs through a model’s context window. Includes a prompt injection in 20 lines and the crypto you actually need.

Real cases in this chapter

Exercise. Draw your project as boxes and arrows, mark every trust boundary, and list one STRIDE threat for each arrow that crosses one.

Chapter 2 · 7 min 21 s

Web application security

The OWASP Top 10 and the bug classes to know cold: broken access control, SQL injection, XSS, CSRF, SSRF, path traversal and mass assignment, each with a vulnerable and a fixed version, and how AI tools bring them back.

Real cases in this chapter

Exercise. Finish the PortSwigger apprentice labs, search your own code for each pattern, and write one fixed version of each.

Chapter 3 · 8 min 27 s

Authentication

Passwords done right, the MFA ladder, passkeys, sessions versus JWTs, and authentication for AI agents: a separate identity, short-lived tokens, and acting on behalf of a user.

Real cases in this chapter

Exercise. Build a small login service with argon2id, TOTP and a passkey, then try to break it, then add an agent token function.

Chapter 4 · 9 min 35 s

OAuth 2.1 and OpenID Connect

The four roles, the tokens, the authorization code flow with PKCE step by step, the grant types, what OAuth 2.1 changes, and the authorization model behind MCP.

Real cases in this chapter

Exercise. Implement “Sign in with Google” without an auth library, then add refresh-token rotation with reuse detection.

Chapter 5 · 7 min 31 s

Enterprise identity

Single sign-on with SAML and OIDC, SCIM provisioning and offboarding, authorization models (RBAC, ABAC, ReBAC), multi-tenancy, and what changes when agents join the workforce.

Real cases in this chapter

Exercise. Wire up SSO with OIDC to a toy app, add SCIM, and prove an agent cannot read another tenant’s rows.

Chapter 6 · 8 min 47 s

Cloud and infrastructure security

Cloud IAM, secrets management, networks and data, the software supply chain for packages, models and MCP servers, and logging with incident response.

Real cases in this chapter

Exercise. Harden one cloud account: remove unused keys, replace a static key with a role, require IMDSv2, and add an audit-log line to an agent tool.

Chapter 7 · 13 min 2 s

AI and agent security

Prompt injection and why it has no complete fix, the lethal trifecta, the OWASP lists for LLM and agentic applications, memory poisoning, defenses that work, and MCP security. Includes a live demo of an injection failing safely.

Real cases in this chapter

Exercise. Attack one of your own agents with a hidden instruction, map the lethal trifecta for every tool and remove one leg, then add the defenses.

Chapter 8 · 10 min 13 s

Compliance

SOC 2 in plain terms, what auditors check, control matrices with evidence by script, the other frameworks (ISO 27001 and 42001, NIST AI RMF, GDPR, HIPAA, the EU AI Act), AI questions in security questionnaires, and a capstone checklist.

Real cases in this chapter

Exercise. Write a one-page security document for your project using only claims you can prove, and build a 15-control matrix with automated evidence for one.