AI
New CTF-Dojo framework trains AI agents to detect security vulnerabilities at scale
Researchers introduce an executable training environment with 658 containerized challenges that enables language models to find software bugs more effectively than existing methods.
Researchers have developed CTF-Dojo, a large-scale training platform that equips AI language models with the ability to identify software vulnerabilities through hands-on problem-solving in realistic environments. The system represents a significant step forward in creating executable, verifiable training grounds where AI agents can learn from concrete feedback rather than abstract instruction.
The Challenge with Current AI Training#
Large language models show strong performance on coding tasks when given real-time execution feedback, yet the field has lacked scalable, reproducible environments to train such agents at meaningful scale. Most existing training setups require extensive manual configuration by security experts, creating a bottleneck that slows research progress. CTF-Dojo addresses this limitation by providing 658 fully containerized, Docker-based Capture-The-Flag (CTF) challenges—security puzzles where participants must discover hidden vulnerabilities or "flags" to advance.
How CTF-Dojo and CTF-Forge Work#
The framework bundles an automated pipeline called CTF-Forge that transforms publicly available security challenge datasets into ready-to-deploy training environments in minutes. Rather than requiring weeks of manual setup, CTF-Forge handles the heavy lifting of containerization and reproducibility assurance, making it practical to expand training datasets without proportional expert labor.
- 658 fully functional CTF challenges with guaranteed reproducibility
- Automated pipeline that converts raw artifacts into executable environments
- Verifiable feedback loops that train agents on concrete success/failure signals
Real-World Performance Gains#
The team trained language model agents on just 486 high-quality, execution-verified training trajectories drawn from CTF-Dojo. Despite the relatively modest training dataset, their best-performing 32-billion-parameter open-weight model achieved a 31.9% Pass@1 success rate—the proportion of problems solved on the first attempt—and delivered improvements of up to 9.9 percentage points over strong baseline systems across three competitive benchmarks: InterCode-CTF, NYU CTF Bench, and Cybench.
Notably, this open-weight model now matches the performance of frontier proprietary systems like DeepSeek-V3-0324 and Gemini-2.5-Flash, demonstrating that execution-grounded training can produce competitive results without reliance on expensive, closed-source infrastructure.

