What you'll be able to do
Before you start
Course Syllabus
Every module and every lesson. The first three modules are open; the rest open on a click.
Download the full syllabus (PDF)
Phase 1: Foundations
The engineer's job and the principle behind the course, how an LLM application is built, three kinds of failure, testing safely, the lab and its evidence, and the review, prove, fix and verify loop run once. Start here.
Show 6 lessonsHide lessons
Threat-modeling the service-desk agent before it goes live: its design read from the code, trust boundaries, abuse paths from writer to harm, coverage against OWASP, ATLAS and ATT&CK, the threat-model board, and a ranked, written threat model.
Phase 2: Inputs, Data and Outputs
How a customer's ticket steers the service-desk agent, the forms injection takes, attacks that blend in, the layers that lower the rate and how to measure them, and the call check that holds, built and verified in the lab.
How a shared knowledge assistant hands one tenant's documents to another, the confused deputy behind it, where the permission check belongs, the check and the cache key built in the lab, and the result verified as evidence.
Who can put text into the knowledge assistant's index: the write paths, poisoning them, the editor, tenant and second-approval gates, provenance and removing every copy, and the boundary verified as evidence.
What happens to the model's output after it is written: rendering replies safely, generated URLs, queries and paths, schema and semantic validation, and output handling verified as evidence.
Phase 3: Agents and Their Actions
Whose authority the agent uses when it calls an API: application versus delegated access, the confused deputy, one scope and one record per call, tokens as credentials, and the identity boundary verified as evidence.
Securing an agent's tools over MCP: a token per server, no passthrough, audience checks at the server you run, tool definitions approved by hash, and the integration verified as evidence.
Securing what an agent does: approvals bound to the exact action and shown from its arguments, destinations matched against a registry, a budget per request, an idempotency key, and the approval matrix.
Securing what an agent remembers and who it listens to: provenance on every memory write, recall scoped by customer and expiry by kind, handoffs accepted only from known agents for their own field, and agent-to-agent trust by role.
Phase 4: Releases and Operations
Securing what an agent loads and the updates proposed for it: files verified against their publisher's record, formats that run nothing on load, a model swap gated on every earlier case, backdoors and what holds them, and connector and configuration changes reviewed by reach.
Turning security checks into an evaluation that can decide a release: six measures with their conditions, enough runs for the claim, judging by effects, guardrails measured beside controls, a suite grown with variants, and a gate for every change.
Investigating and responding to incidents in LLM applications and agents: what to record, scoping across services by trace, containing without destroying evidence, deciding what is an incident, and verifying containment by its cause.
Phase 0: Course Resources
One sheet per area of LLM application and agent security: the question, the control or check that settles it, how to use it and what it does not prove.
Show 13 lessonsHide lessons
- 1Architecture and Trust Boundaries
- 2Prompt Injection
- 3Sensitive Data and Tenant Isolation
- 4RAG and Ingestion
- 5Output Handling
- 6Agent Identity and Authorization
- 7Tools and MCP
- 8Containing Agent Actions
- 9Memory and Multi-Agent
- 10Supply Chain and Deployment
- 11Evaluation and Release Gates
- 12Investigation and Response
- 13Lookup Values
Eight runbooks for the controls an LLM application or agent needs, each built in the lab and tested from both sides.
Show 8 lessonsHide lessons
- 1Retrieval That Respects Authorization
- 2An Approval Bound to the Action
- 3Tool-Call Checks Independent of the Model
- 4Memory Writes With Provenance and Expiry
- 5Safe Output Handling
- 6Assessing a Model, Connector or Dependency Update
- 7An Evaluation Suite as a Release Gate
- 8Incident Response From Findings
Installing the SEC502 lab, the ai-app workspace the console queries, and checking both work before the first exercise.
Show 4 lessonsHide lessons
Three cases worked end to end across the modules, including the wrong turns, each ending in a scorecard, a report card and the point that transfers.
Show 3 lessonsHide lessons
Eight playbooks, one per thing that lands on an LLM application team: what to check first, how to contain it, and what the record must say.
The range to practice on freely, and every tool scenario, predict block and console query in the course, by module.
Show 1 lessonHide lessons
The standards, lists, protocols and tools the course relies on, each with the version it was read at.
Show 3 lessonsHide lessons
Course Completion
Securing LLM Applications and AI Agents end-of-course exam: 40 questions in four parts, from threat modeling to incident response, ending on a case study.
Show 1 lessonHide lessons
Course overview
Assistants, retrieval systems and agents are reaching production faster than security teams can review them, and the review usually falls to engineers who know web security but not this kind of system. This course teaches it as engineering: review the architecture, prove each weakness, implement the control, and verify with evidence that it holds and that the application still does its job.
Module 0 sets out how an LLM application is built and how the course's evidence is reported. Module 1 threat-models an agent from its code. Modules 2 to 5 cover prompt injection, tenant isolation, retrieval and ingestion, and model output reaching a browser, network, database or file. Modules 6 to 9 cover what agents add: identity, tools and MCP, actions and approvals, memory and other agents. Module 10 treats every model, package and connector update as a release, Module 11 builds the evaluation that gates it, and Module 12 investigates and contains an incident.
How this course works
Controls that hold when the model does not. Model behavior can fail, so every module builds a control that stays enforceable whatever the model is persuaded to do, outside the model, and measures the defenses that only change the odds, such as markers, prompts and guardrails, for what they are.
Two applications, three places to practice. A knowledge assistant over a shared index and a service desk agent with tools, memory and approvals carry the whole course. The AI Range in your browser proves each weakness, the Python lab pack is working code you fix until its check passes, attacks and legitimate work together, and a month of recorded application telemetry is investigated in the query console.
Named, versioned, and checked. Each weakness is named against the OWASP Top 10 for LLM Applications 2026, the OWASP Top 10 for Agentic Applications 2026 and MITRE ATLAS, with the version on every page that relies on one. The course ends on a 40-question exam that includes a case study of each application.
What you will learn
Who this course is for
Security practitioners, application developers and cloud engineers who have been handed an AI feature to secure, and the testers and responders who prove its weaknesses and answer its incidents. No minimum experience: Module 0 covers the Python, HTTP APIs and OAuth the lab uses, and every concept is explained where it is first used.
What this course does not cover: training or fine-tuning models, or the mathematics of adversarial examples; jailbreaks for harmful content; general web application security the model does not change; AI governance and regulation, which GRC302 teaches; and detection rules or hunting on AI telemetry, which SEC401 teaches.
Things you need to know
What are the prerequisites?
None. Reading a little Python helps you move faster in the lab, but Module 0 covers what the exercises assume, and every term is explained where it is first used.
What do I need?
A browser for the lessons, the AI Range and the query console, and Python on your own machine for the lab pack, which needs no other installation and calls no model provider. A local open-weight model through Ollama is optional, for running the same cases against a real model.
What will I be able to do after this course?
You'll be able to review an LLM application or agent before it ships and keep it secure after: a threat model from its code, each weakness proved by its effect, controls built outside the model with regression results, a release gate for model and connector updates, and an incident investigated, contained and verified.
Usage rights and disclaimer
Course materials: Licensed for individual professional development. The lab pack's code is yours to adapt in your own work. You may not redistribute course content or share account credentials.
Test only what you may test: The course demonstrates attacks on its own range and lab. Test a real system only with written authorization from its owner, as lesson 0.4 sets out.
Fictional examples: The applications, organizations and people in the course are fictional. Any resemblance to real organizations or people is coincidental.
End of Course Exam
Complete the course, then answer forty questions, from threat modeling to incident response, ending on a case study of one of the two applications, in 90 minutes. Pass mark: 70. Earn your certificate with CPE credits.
Answers are checked on the server. Certificate issued on pass.