# Training Language Model Agents to Find Vulnerabilities with CTF-Dojo

DevFeed: [Training Language Model Agents to Find Vulnerabilities with CTF-Dojo](<https://devfeed.tech/articles/training-language-model-agents-to-find-vulnerabilities-with-ctf-dojo-135644.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2508.18370>)

Author: Terry Yue Zhuo, Dingmin Wang, Hantian Ding, Varun Kumar, Zijian Wang

Published: 2026-11-16T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [rlvr](<https://devfeed.tech/topics/rlvr.md>), [ctf](<https://devfeed.tech/topics/ctf.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>)

Tags: [486](<https://devfeed.tech/tags/486.md>), [absolute](<https://devfeed.tech/tags/absolute.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [artifacts](<https://devfeed.tech/tags/artifacts.md>), [automated](<https://devfeed.tech/tags/automated.md>), [bench](<https://devfeed.tech/tags/bench.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [best](<https://devfeed.tech/tags/best.md>), [capture](<https://devfeed.tech/tags/capture.md>), [capture-the-flag](<https://devfeed.tech/tags/capture-the-flag.md>), [challenges](<https://devfeed.tech/tags/challenges.md>), [containerized](<https://devfeed.tech/tags/containerized.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [ctf](<https://devfeed.tech/tags/ctf.md>), [deepseek-v3](<https://devfeed.tech/tags/deepseek-v3.md>), [docker](<https://devfeed.tech/tags/docker.md>), [dojo](<https://devfeed.tech/tags/dojo.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [training](<https://devfeed.tech/tags/training.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

## AI overview

CTF-Dojo provides 658 reproducible, Docker-containerized CTF challenges for training language model agents with verifiable execution feedback. Its CTF-Forge pipeline turns public artifacts into ready-to-use environments in minutes, reducing configuration that the authors say traditionally took weeks. Agents trained on 486 execution-verified trajectories gained up to 9.9 percentage points over strong baselines across InterCode-CTF, NYU CTF Bench, and Cybench. The best 32B model scored 31.9% Pass@1; the authors report this as an open-weight state of the art rivaling DeepSeek-V3-0324 and Gemini-2.5-Flash.

## Source excerpt

arXiv:2508.18370v3 Announce Type: replace-cross Abstract: Large language models (LLMs) have demonstrated exceptional capabilities when trained within executable runtime environments, notably excelling at software engineering tasks through verified feedback loops. Yet, scalable and generalizable execution-grounded environments remain scarce, limiting progress in training more capable ML agents. We introduce CTF-Dojo, the first large-scale executable runtime tailored for training LLMs with verifiable feedback, featuring 658 fully functional Capture-The-Flag (CTF)-style challenges containerized in Docker with guaranteed reproducibility. To enable rapid scaling without manual intervention, we develop CTF-Forge, an automated pipeline that transforms publicly available artifacts into ready-to-use execution environments in minutes, eliminating weeks of expert configuration traditionally required. We trained LLM-based agents on just 486 high-quality, execution-verified trajectories from CTF-Dojo, achieving up to 9.9% absolute gains over strong baselines across three competitive benchmarks: InterCode-CTF, NYU CTF Bench, and Cybench. Our best-performing 32B model reaches 31.9% Pass@1, establishing a new open-weight state-of-the-art that rivals frontier models like DeepSeek-V3-0324 and Gemini-2.5-Flash. By framing CTF-style tasks as a benchmark for executable-agent learning, CTF-Dojo demonstrates that execution-grounded training signals are not only effective but pivotal in advancing high-performance ML agents without dependence on costly proprietary systems.