Measuring and Augmenting Large Language Models for Solving Capture-the-Flag Challenges
Capture-the-Flag (CTF) competitions are crucial for cybersecurity education and training. With the evolution of large language models (LLMs), there is growing interest in their ability to automate CTF challenge solving, with DARPA's AIxCC competition (since 2023) being a notable example. However,this demands a combination of multiple abilities of LLMs, from knowledge to reasoning and further to actions. In this paper, we highlight the importance of technical knowledge in solving CTF problems and deliberately construct a focused benchmark, CTFKnow, with 3,992 questions to measure LLMs' performance in this core aspect. Our study offers a focused and innovative measurement of LLMs' capability in understanding CTF knowledge and applying it to solve CTF challenges. Our key findings reveal that while LLMs possess substantial technical knowledge, they struggle to apply it accurately to specific scenarios and adapt based on feedback from CTF environments.
Authors
- Daoyuan Wu (ORCID: https://orcid.org/0000-0002-3752-0718)
- Shuai Wang (ORCID: https://orcid.org/0000-0002-0866-0308)
- Pingchuan Ma (ORCID: https://orcid.org/0000-0001-7680-2817)
- Zongjie Li (ORCID: https://orcid.org/0000-0002-9897-4086)
- Wenyuan Jiang
- Zhao Ji (ORCID: https://orcid.org/0009-0003-5529-0500)
Institutions
- Hong Kong University of Science and Technology (HK)
- ETH Zurich (CH)
Publication Details
- Published
- 2025-11-19
- DOI
- https://doi.org/10.1145/3719027.3744855
- Primary Topic
- Information and Cyber Security
- Type
- article
- Field-Weighted Citation Impact
- 0.00