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

  1. Vet an AI model before you run it (AI supply-chain security)
  2. Detect toxic content with a model
  3. Protect your data when you use AI chatbots
  4. AI-generated text and why detectors can't be trusted
  5. Run an AI model on your own machine — and see its limits
  6. Read a model card and its license before you use an AI model
  7. Differential privacy hands-on with Python
  8. Check where a photo came from with Content Credentials (C2PA)
  9. See prompt injection happen — and learn to defend against it
  10. Test an AI model for bias with Fairlearn
  11. Generate safe synthetic test data with Python Faker
  12. 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
  13. Race System-1 (snap answer) against System-2 (deliberate reasoning) on one alert-triage batch, and find the band where thinking longer stops paying
  14. Build a local chatbot and wrap it in safety guardrails
  15. Fool an image classifier with FGSM (adversarial examples)
  16. Explain ML model predictions with SHAP
  17. Evaluate local models on a security task with Inspect AI: write the Task, read the log, compare two models
  18. 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
  19. Offload CIDR and time-window math to code with program-aided reasoning, and measure where the errors move (deterministic stub model)
  20. Detect prompt injection against your own LLM app
  21. Harden a model with adversarial training (defensive AI)
  22. Build a content moderation pipeline
  23. 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)
  24. Build a DLP guard for LLM outputs — catch PII and secret leakage before it reaches the user, and measure it
  25. Measure a stub triage agent's reliability with pass^k, not pass@k, and see the number a demo hides
  26. Defend a model against membership inference with DP-SGD
  27. Evade a text classifier with word-substitution attacks — then measure the defense
  28. Scan an ML model for malicious pickle code (before it runs code on you)

Related