
Learn how to attack and defend LLM applications through hands-on projects, one module at a time.
Large language model apps are now part of real products, and they bring new security risks: prompt injection, insecure output handling, excessive agency, poisoned documents and data leaks between users. This course shows you how these attacks work and how to stop them, using code you can run yourself.
What you will build and test:
- A prompt injection scanner based on the OWASP Top 10 for LLM Applications
- Input and output guardrails, first by hand and then with Guardrails AI and NeMo Guardrails
- An LLM gateway with retries, fallback models, caching and cost tracking using LiteLLM
- A secure LangGraph agent that cannot be tricked into misusing its tools
- RAG security: document poisoning, a verifier defense and self-healing RAG
- A secure multi-tenant AI backend that fixes BOLA and IDOR problems
- Red-team attack batteries with PyRIT, including Attack Success Rate and multi-turn attacks
Every module comes with a short Python notebook in simple English. The whole course runs on a free Groq API key, so you do not need to pay for any model access. You also get an AI security interview checklist at the end.
Who this course is for: AI/ML engineers and backend developers who ship LLM apps and agents. Basic Python knowledge is required.
Disclaimer: all attacks in this course are for learning and for testing systems you own or have permission to test.