AI for Defenders
Put LLMs and agents to work on real security tasks — and keep them on a leash.
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
- Build a local image classifier
- Generate images locally with an open-source model, privately and responsibly
- Run a local, offline AI coding assistant
- Summarize security logs with a local LLM
- Install Ollama and run your first local model — safely
- Build a private RAG app on your own machine
- Transcribe audio privately on your own machine with Whisper
- Build a recommender system
- Build a semantic search engine for your own documents
- Build a spam filter with Naive Bayes
- Classify text with a local model
- Add semantic caching to your LLM app: cut cost and latency by reusing answers to similar questions (without leaking data)
- Classify network traffic with a decision tree
- Build a local RAG pipeline over your own documents
- Decide when an incident-response agent should ask a clarifying question instead of acting: score ambiguity x blast radius, sweep the threshold, and measure when asking stops paying
- Build your first MCP server: expose a security tool to an LLM (and test it with the MCP Inspector — no API key needed)
- Triage security alerts with k-means clustering
- Build a neural network from scratch
- Measure lost-in-the-middle recall for an evidence-reading agent, then fix it by reordering
- Make your LLM app resilient: timeouts, retries with backoff, a circuit breaker, and a fallback model
- Draft an incident timeline from raw logs with a local LLM — then verify every single event
- Evaluate an LLM with a rubric and a test set
- Rewrite tool error messages so an IR agent can recover from them, and measure the recovery rate
- MCP server, Part 4: dynamic client registration and PKCE — let unknown clients register themselves and get tokens with no shared secret (all local, proven with curl)
- Fine-tune a Language Model with LoRA (Deep Dive)
- Detect log anomalies with an autoencoder
- Add a Reflexion self-critique loop to a triage agent: let it reflect on its own failed run and retry, then measure what it recovers and what it wrecks
- Build a prompt-injection-resistant tool broker: a deny-by-default layer that guards every tool an LLM can call (free, local Ollama — no API key)