
AI security training: hands-on labs, tools and courses for LLM, RAG and agent security. Maintained by Pwned Labs.
AI systems are much more than a chatbot. Much of the risk sits in what surrounds the model: the system prompt, the documents a RAG pipeline retrieves, the tools an agent can call and the permissions those tools carry. This repository collects the hands-on labs, tools and courses we recommend for learning to attack and defend LLM applications, RAG pipelines and agents.
Key Takeaway: Prompt injection becomes a real security problem the moment untrusted content can reach a model that is allowed to act, whether that content arrives in a user message, a retrieved document, a ticket or a web page. The training worth your time makes you exploit that against a live application, follow the injection through to tool calls and data access, and then build the controls and detections that would have stopped it.
Maintained by Pwned Labs. Our own training is listed alongside the community projects we rate, and marked so you know which is which. Pull requests are welcome.
| Lab | Type | What you practice |
|---|---|---|
| Gandalf: Agent Breaker from Lakera | Hosted, free | Prompt attacks against a set of mock GenAI apps and agents, from system prompt extraction to indirect injection through documents, web pages and MCP server descriptions. |
| AI Red Teaming Playground Labs from Microsoft | Self-hosted, free | The challenges from Microsoft's AI Red Teaming in Practice course, first taught at Black Hat USA 2024, including credential exfiltration and multi-turn attacks. |
| Damn Vulnerable LLM Agent from Reversec | Self-hosted, free | Prompt injection against a tool-using agent, where the injection turns into actions. |
| Damn Vulnerable MCP Server | Self-hosted, free | Ten challenges against deliberately vulnerable MCP servers, including tool poisoning, rug pulls, tool shadowing and token theft. |
| Web LLM attacks from the PortSwigger Web Security Academy | Hosted, free | LLM features inside web applications, including excessive agency, insecure output handling and indirect prompt injection. |
| Prompt Airlines from Wiz | Hosted, free | A CTF where you talk a customer service bot into handing over a free (fictional) airline ticket. |
| Pwned Labs AI security labs (ours) | Hosted | AI and agentic attack scenarios in live environments, next to the cloud labs they often depend on. |
| Course | Format | Focus |
|---|---|---|
| AI Systems Attack and Defense Bootcamp (AISRTP) from Pwned Labs (ours) | On-demand, hands-on exam | Direct and indirect prompt injection, RAG poisoning, tool and agent abuse, and MCP and CI/CD agent attack paths, with the defenses for each. No prior AI security experience or Python required. |
| AI-300: Advanced AI Red Teaming (OSAI) from OffSec | Self-paced, 24-hour hands-on exam | Offensive testing of AI-integrated systems, including LLMs and multi-agent setups. Advanced level, aimed at experienced security practitioners. |
| SANS SEC411: AI Security Principles and Practices | Self-paced with labs | GenAI and LLM defense for practitioners. |
| Red Teaming LLM Applications from DeepLearning.AI | Short course, free | A gentle introduction to manual and automated red teaming of chatbots. |
Check each provider for current dates and pricing.
If you are on the blue team, our PromptStorm cyber range puts defenders inside an AWS breach that abuses AI and LLM workflows (ours, enterprise).
Open a pull request with the resource, a one-line description and whether it is free. We only list resources that are live and hands-on, and if a link breaks we will fix it or take it out.
This list is licensed under CC BY 4.0. You can share and adapt it, including commercially, as long as you credit Pwned Labs.