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
- Samsung engineers and ChatGPT, 2023
- Air Canada’s chatbot, 2024
- GitHub MCP server leak, 2025
- EchoLeak in Microsoft 365 Copilot, 2025
- Replit agent deletes a database, 2025
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
- McHire hiring chatbot, 2025
- Vanna.AI, CVE-2024-5565
- Slack AI data exfiltration, 2024
- ChatGPT Custom GPT Actions SSRF, 2025
- Ollama “Probllama”, CVE-2024-37032
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
- Snowflake customer breaches, 2024
- Stolen ChatGPT credentials, 2023
- Uber MFA fatigue, 2022
- Arup deepfake video call, 2024
- Langflow missing authentication, CVE-2025-3248
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
- Salesloft Drift token theft, 2025
- mcp-remote command injection, CVE-2025-6514
- Midnight Blizzard and Microsoft, 2024
- Asana MCP server exposure, 2025
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
- Okta support system breach, 2023
- Golden SAML in the SolarWinds campaign
- Cash App Investing former-employee access
- ServiceNow Now Assist agent chain, 2025
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
- Capital One breach, 2019
- Nx “s1ngularity” npm attack, 2025
- DeepSeek’s exposed database, 2025
- postmark-mcp malicious package, 2025
- Malicious models on Hugging Face, 2024
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
- ForcedLeak in Salesforce Agentforce, 2025
- CamoLeak in GitHub Copilot Chat, 2025
- Amazon Q Developer extension, 2025
- Cursor “MCPoison”, CVE-2025-54136
- WhatsApp MCP tool poisoning, 2025
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
- Italy’s fine against OpenAI, 2024
- SEC “AI washing” actions, 2024
- FTC Operation AI Comply, 2024
- Mobley v. Workday, 2025
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.