AI Security
Identify and mitigate security, privacy and content-safety risks specific to LLM applications, including prompt injection, jailbreaks, data leakage, harmful content and unsafe handling of model output.
5 objectives 6 steps about 120 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Map an LLM application's assets, trust boundaries and threats using the OWASP Top 10 for LLM Applications.
- Demonstrate direct and indirect prompt injection against your own application and apply layered mitigations.
- Prevent sensitive data leakage by enforcing per-user authorization in retrieval and redacting secrets and personal data from prompts and logs.
- Treat model output as untrusted input: validate, encode or sandbox it before it reaches other systems.
- Screen inputs and outputs for harmful or off-policy content with a moderation API or guard model, and measure its false-positive and false-negative rates on a labelled sample.
Lesson plan
6 steps, about 120 min · 5 of 5 lessons available so far
- Threat Modeling an LLM Application Concept · 20 min
- Lab: Injecting Your Own RAG Assistant Lab · 25 min
- Layered Defenses, Moderation and Their Limits Concept · 15 min
- Permission-Aware Retrieval and Redaction Worked example · 20 min
- Untrusted Output and Content Moderation Worked example · 25 min
- Check: Spot the Vulnerability Knowledge check · 10 questions
Practise it
Write a one-page threat model for your RAG assistant, plant five indirect prompt-injection documents in its corpus, measure how often each succeeds before and after your mitigations, and add a test proving one user cannot retrieve another user's documents. Finally, add an output moderation check and report its false-positive and false-negative rates on 30 labelled responses.
References
Hard prerequisites
None.
Unlocks
On these roadmaps
Progress and evidence for this skill are shared across all of them.