AI Security: Securing LLM Applications and Agents
This course teaches how to secure LLM applications end-to-end: threat modeling, prompt injection defense, data leakage and access control, supply chain risks, misuse and abuse, and detecting and responding to attacks.

About this course
LLM applications break an old security assumption: instructions and data now arrive in the same channel, and the model cannot reliably tell them apart. A document, a web page, or a user's message can change what the application does. Security teams are being asked to secure systems they cannot fully constrain, and AI security has become its own interview round. This course covers securing LLM applications, one attack surface at a time.
Each section starts from a question AI security interviews ask and builds the defenses a strong answer needs, with the limits of each defense stated plainly.
What You Will Learn
- How to threat-model an LLM feature: data flows, trust boundaries, and where untrusted text meets data and actions
- Why prompt injection has no complete fix, and how layered defenses limit what injected text can do
- How to stop private data from leaking through retrieval, prompts, logs, providers, and trained models
- How to judge third-party models, datasets, and documents, and defend against poisoned data
- How to defend a public feature against jailbreaks, off-scope use, cost attacks, and model extraction
- How to detect an attack in production and run the incident through to regression tests
- Optional: turning AI governance frameworks into engineering controls
- Optional: protecting model weights and isolating tenants on shared inference
How This Course Works
Each section starts with the defense most teams reach for first, such as a filter on user input or a line in the system prompt. Then it shows the concrete attack that gets past it, and adds the next control only when that attack calls for it. No defense is presented as a complete fix.
Basic guardrails for a single assistant are covered in LLM Engineering 101. Securing agents that take actions is covered in AI Agents, and running and scoring a red-team exercise in AI Evals. This course links to them instead of repeating them.
Who This Course Is For
This course is for security engineers who know web application security and want to apply it to LLM systems, and for AI engineers who have built LLM features and are preparing for a security round. You don't need a machine learning research background.
This is not a course on general cloud or network security, on adversarial machine learning research, or on a specific security product.