AI Security
Secure LLMs and ML systems against prompt injection, poisoning, and abuse.
28 labs, about 26 hours: 11 beginner, 12 intermediate, 5 advanced. Free, no account needed to start.
Open this journey with your progress
The labs, in order
- Vet an AI model before you run it (AI supply-chain security)
- Detect toxic content with a model
- Protect your data when you use AI chatbots
- AI-generated text and why detectors can't be trusted
- Run an AI model on your own machine — and see its limits
- Read a model card and its license before you use an AI model
- Differential privacy hands-on with Python
- Check where a photo came from with Content Credentials (C2PA)
- See prompt injection happen — and learn to defend against it
- Test an AI model for bias with Fairlearn
- Generate safe synthetic test data with Python Faker
- Catch benchmark contamination inflating your security eval: prove the model only aced it because the answers leaked, then detect the leak and report the corrected score
- Race System-1 (snap answer) against System-2 (deliberate reasoning) on one alert-triage batch, and find the band where thinking longer stops paying
- Build a local chatbot and wrap it in safety guardrails
- Fool an image classifier with FGSM (adversarial examples)
- Explain ML model predictions with SHAP
- Evaluate local models on a security task with Inspect AI: write the Task, read the log, compare two models
- Tell a real eval win from noise: bootstrap a confidence interval and a paired McNemar test on a 50-item security eval, and find you can't ship the difference
- Offload CIDR and time-window math to code with program-aided reasoning, and measure where the errors move (deterministic stub model)
- Detect prompt injection against your own LLM app
- Harden a model with adversarial training (defensive AI)
- Build a content moderation pipeline
- Audit your security eval's gold labels for noise before trusting a score: Cohen's kappa by hand, a planted rule dispute, and a model ranking that flips (deterministic STUB models)
- Build a DLP guard for LLM outputs — catch PII and secret leakage before it reaches the user, and measure it
- Measure a stub triage agent's reliability with pass^k, not pass@k, and see the number a demo hides
- Defend a model against membership inference with DP-SGD
- Evade a text classifier with word-substitution attacks — then measure the defense
- Scan an ML model for malicious pickle code (before it runs code on you)