AI Security CTF Challenges
Competitive AI security challenges - ordered by skill level.
Test your skills against real AI security scenarios.
Platform
Challenges
Level
Topics
Link
Gandalf (Lakera)
8+ levels + sandbagging
Beginner
Prompt injection, guardrail bypass
gandalf.lakera.ai
Crucible (Dreadnode)
50+ challenges
Beginner-Expert
Full AI red team spectrum
crucible.dreadnode.io
Prompt Airlines
Multiple scenarios
Beginner
Prompt injection, booking AI abuse
promptairlines.com
PortSwigger LLM Labs
10+ guided labs
Beginner-Intermediate
Injection, data exfiltration, plugins
portswigger.net
DVAP
Ongoing scenarios
Beginner-Advanced
Full stack AI security
GitHub
Field
Detail
Description
World's largest prompt injection competition
Organizer
Learn Prompting
Level
Beginner → Advanced
Topics
Prompt injection, guardrail bypass, LLM manipulation
Format
Multi-level, scored challenges
Website
hackaprompt.com
Field
Detail
Description
The world's largest AI security competition, held annually at DEF CON
Level
Intermediate → Advanced
Topics
Red teaming LLMs, adversarial ML, AI system exploitation
Format
Annual, team-based
Website
aivillage.org
Notable
DEF CON AI Village has featured challenges against production models from major AI companies
Field
Detail
Description
Academic AI security competition at IEEE SaTML conference
Level
Advanced
Topics
LLM red teaming, safety bypass, adversarial attacks
Format
Annual competition
Website
satml.org
Field
Detail
Description
Capture the Flag focused on LLM attack and defense
Level
Intermediate-Advanced
Topics
Prompt injection, jailbreaking, data extraction
Format
Team competition
Field
Detail
Description
AI-focused security challenges
Level
Intermediate
Topics
LLM manipulation, agent security
Website
cybernative.ai
Prompt Injection Challenges
Skill Level
What You'll Practice
Beginner
Basic instruction override, simple bypass
Intermediate
Multi-turn injection, indirect injection via retrieved content
Advanced
Chained injection, multi-modal injection, automated injection
Agent Security Challenges
Skill Level
What You'll Practice
Intermediate
Tool manipulation, goal hijacking
Advanced
Multi-agent attacks, persistent memory poisoning, autonomous exploitation
Skill Level
What You'll Practice
Beginner
Roleplay bypass, simple encoding
Intermediate
Many-shot, authority impersonation
Advanced
Novel techniques, automated fuzzing, model-specific exploits
RAG/Knowledge Base Challenges
Skill Level
What You'll Practice
Intermediate
Document poisoning, retrieval manipulation
Advanced
Embedding attacks, cross-tenant exfiltration
1. Start with Gandalf - free, always available, great for learning
2. Work through PortSwigger LLM labs - structured learning path
3. Join Crucible for ongoing challenges
4. Work up to HackAPrompt competition
5. Aim for AI Village @ DEF CON
Tool
Use Case
Burp Suite
Intercept and modify requests to LLM APIs
Python + OpenAI/Anthropic SDK
Automate attack attempts
Garak
Automated LLM vulnerability probing
DVAP
Practice specific techniques in controlled environment
Want to host an AI security CTF challenge?
Resources:
DVAP provides pre-built challenge modules you can host: GitHub
CTFd framework works well for AI security challenges: ctfd.io
See CONTRIBUTING.md to add your CTF to this list
Top AI security CTF performers and notable achievements.
Submit your CTF achievement via PR
Be the first to add yours here.