CoChat

Measuring and Augmenting Large Language Models for Solving Capture-the-Flag Challenges

Ji, Zimo, Wu, Daoyuan, Jiang, Wenyuan, Ma, Pingchuan, Li, Zongjie, Wang, Shuai · 2025 · Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security
Cited by 9

The DOI matches its Crossref record; 16 of the 16 references it cites were found in a registry or an index.

Abstract

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.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/3719027.3744855

Cites

16 of 16 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Research works printed but not linked: 45

  1. 2020. Cybercrime To Cost The World $10.5 Trillion Annually By 2025. https://cybersecurityventures.com/cybercrime-will-cost-the-world-16--4-billion-a-day-in-2021/
  2. 2023. DEF CON® 27 Hacking Conference Contests & Events. https://defcon.org/html/defcon-27/dc-27-ce.html
  3. 2024. Meet Llama 3.1. https://llama.meta.com/. https://llama.meta.com/
  4. 2024. UIUCTF 2024. https://2024.uiuc.tf/. https://2024.uiuc.tf/
  5. 2024. VicOne & Block Harbor Spearhead Biggest Automotive Capture the Flag Competition for Cybersecurity Enthusiasts Worldwide. https://vicone.com/company/press-releases/vicone-and-block-harbor-spearhead-biggest-automotive-capture-the-flag-competition-for-cybersecurity-enthusiasts-worldwide
  6. Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv:2303.08774 (2023). · arXiv
  7. David Brumley. 2018. The cyber grand challenge and the future of cyber-autonomy. USENIX Login 43, 2 (2018), 6--9.
  8. Tanner J Burns, Samuel C Rios, Thomas K Jordan, Qijun Gu, and Trevor Underwood. 2017. Analysis and exercises for engaging beginners in online CTF competitions for security education. In USENIX Workshop on Advances in Security Education.
  9. Daihang Chen, Yonghui Liu, Mingyi Zhou, Yanjie Zhao, Haoyu Wang, Shuai Wang, Xiao Chen, Tegawendé F Bissyandé, Jacques Klein, and Li Li. 2024. LLM for Mobile: An Initial Roadmap. arXiv preprint arXiv:2407.06573 (2024). · arXiv
  10. Mingyang Chen, Tianpeng Li, Haoze Sun, Yijie Zhou, Chenzheng Zhu, Fan Yang, Zenan Zhou, Weipeng Chen, Haofen Wang, Jeff Z Pan, et al . 2025. Learning to Reason with Search for LLMs via Reinforcement Learning. arXiv preprint arXiv:2503.19470 (2025). · arXiv
  11. Kevin Chung and Julian Cohen. 2014. Learning obstacles in the capture the flag model. In USENIX 3GSE.
  12. Gelei Deng, Yi Liu, Víctor Mayoral-Vilches, Peng Liu, Yuekang Li, Yuan Xu, Tianwei Zhang, Yang Liu, Martin Pinzger, and Stefan Rass. 2024. PentestGPT: Evaluating and harnessing large language models for automated penetration testing. In Proc. USENIX Security.
  13. 10.1145/3597503.3623343 · DOI · Paper page
  14. Richard Fang, Rohan Bindu, Akul Gupta, Qiusi Zhan, and Daniel Kang. 2024. Teams of LLM Agents can Exploit Zero-Day Vulnerabilities. arXiv preprint arXiv:2406.01637 (2024). · arXiv
  15. Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2020. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300 (2020). · arXiv
  16. Pengfei Jing, Mengyun Tang, Xiaorong Shi, Xing Zheng, Sen Nie, Shi Wu, Yong Yang, and Xiapu Luo. 2024. SecBench: A Comprehensive Multi-Dimensional Benchmarking Dataset for LLMs in Cybersecurity. arXiv:2412.20787 (2024). · arXiv
  17. 10.1016/j.cose.2022.103009 · doi:10.1016/j.cose.2022.103009
  18. 10.1016/j.jnca.2019.102470 · DOI
  19. Xuefeng Li, Haoyang Zou, and Pengfei Liu. 2025. Torl: Scaling tool-integrated rl. arXiv preprint arXiv:2503.23383 (2025). · arXiv
  20. Yuanchun Li Hao Wen Weijun Wang Xiangyu Li Yizhen Yuan Guohong Liu Jiacheng Liu Wenxing Xu Xiang Wang Yi Sun et al. 2024. Personal llm agents: Insights and survey about the capability efficiency and security. arXiv preprint arXiv:2401.05459 (2024). · arXiv
  21. Zongjie Li, Wenying Qiu, Pingchuan Ma, Yichen Li, You Li, Sijia He, Baozheng Jiang, Shuai Wang, and Weixi Gu. 2024. On the Accuracy and Robustness of Large Language Models in Chinese Industrial Scenarios. In Proc. ACM/IEEE IPSN.
  22. Zhong-Zhi Li, Duzhen Zhang, Ming-Liang Zhang, Jiaxin Zhang, Zengyan Liu, Yuxuan Yao, Haotian Xu, Junhao Zheng, Pei-Jie Wang, Xiuyi Chen, et al . 2025. From system 1 to system 2: A survey of reasoning large language models. arXiv preprint arXiv:2502.17419 (2025). · arXiv
  23. Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. 2024. Visual instruction tuning. Advances in neural information processing systems 36 (2024).
  24. 10.14722/ndss.2025.241357 · DOI
  25. Pingchuan Ma Rui Ding Shuai Wang Shi Han and Dongmei Zhang. 2023. InsightPilot: An LLM-empowered automated data exploration system. In EMNLP: System Demonstrations.
  26. 10.1109/ICSE55347.2025.00027 · DOI · Paper page
  27. 10.1109/SP46215.2023.10179420 · doi:10.1109/sp46215.2023.10179420 · Paper page
  28. Minghao Shao, Boyuan Chen, Sofija Jancheska, Brendan Dolan-Gavitt, Siddharth Garg, Ramesh Karri, and Muhammad Shafique. 2024. An empirical evaluation of llms for solving offensive security challenges. arXiv:2402.11814 (2024). · arXiv
  29. Teotino Gomes Soares, Azhari Azhari, Nur Rokhman, and E Wonarko. 2021. Education question answering systems: a survey. In Proceedings of The International MultiConference of Engineers and Computer Scientists.
  30. Nicholas Springer and Wu-chang Feng. 2021. Thunder CTF: Learning Cloud Security on a Dime. arXiv preprint arXiv:2107.12566 (2021). · arXiv
  31. Yuqiang Sun, Daoyuan Wu, Yue Xue, Han Liu, Wei Ma, Lyuye Zhang, Miaolei Shi, and Yang Liu. 2024. LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning. arXiv:2401.16185 (2024). · arXiv
  32. 10.1145/3597503.3639117 · DOI · Paper page
  33. 10.1145/3564625.3567985 · DOI · Paper page
  34. 10.1109/CIEES62939.2024.10811132 · DOI
  35. Norbert Tihanyi, Mohamed Amine Ferrag, Ridhi Jain, and Merouane Debbah. 2024. Cybermetric: A benchmark dataset for evaluating large language models knowledge in cybersecurity. arXiv preprint arXiv:2402.07688 (2024). · arXiv
  36. y, and Ee-Chien Chang. 2020. Benefits and pitfalls of using capture the flag games in university courses. In Proceedings of the 51st ACM Technical symposium on computer science education. 752--758.
  37. Liwen Wang, Yuanyuan Yuan, Ao Sun, Zongjie Li, Pingchuan Ma, Daoyuan Wu, and Shuai Wang. 2024. Benchmarking Multi-Modal LLMs for Testing Visual Deep Learning Systems Through the Lens of Image Mutation. arXiv preprint arXiv:2404.13945 (2024). · arXiv
  38. SeongIl Wi, Jaeseung Choi, and Sang Kil Cha. 2018. Git-based {CTF}: A Simple and Effective Approach to Organizing {In-Course} {Attack-and-Defense} Security Competition. In 2018 USENIX Workshop on Advances in Security Education.
  39. Dandan Xu, Kai Chen, Miaoqian Lin, Chaoyang Lin, and Xiaofeng Wang. 2023. Autopwn: Artifact-assisted heap exploit generation for ctf pwn competitions. IEEE Transactions on Information Forensics and Security (2023).
  40. John Yang, Akshara Prabhakar, Karthik Narasimhan, and Shunyu Yao. 2024. Intercode: Standardizing and benchmarking interactive coding with execution feedback. Advances in Neural Information Processing Systems 36 (2024).
  41. John Yang, Akshara Prabhakar, Shunyu Yao, Kexin Pei, and Karthik R Narasimhan. 2023. Language agents as hackers: Evaluating cybersecurity skills with capture the flag. In Multi-Agent Security Workshop@ NeurIPS'23.
  42. Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Tom Griffiths, Yuan Cao, and Karthik Narasimhan. 2024. Tree of thoughts: Deliberate problem solving with large language models. NeurIPS (2024).
  43. Wenhao Yu, Hongming Zhang, Xiaoman Pan, Kaixin Ma, Hongwei Wang, and Dong Yu. 2023. Chain-of-note: Enhancing robustness in retrieval-augmented language models. arXiv preprint arXiv:2311.09210 (2023). · arXiv
  44. Lyuye Zhang, Kaixuan Li, Kairan Sun, Daoyuan Wu, Ye Liu, Haoye Tian, and Yang Liu. 2024. Acfix: Guiding llms with mined common rbac practices for context-aware repair of access control vulnerabilities in smart contracts. arXiv preprint arXiv:2403.06838 (2024). · arXiv
  45. Li Zhong, Zilong Wang, and Jingbo Shang. 2024. Ldb: A large language model debugger via verifying runtime execution step-by-step. arXiv preprint arXiv:2402.16906 (2024). · arXiv

Cited by

See all 9

Metadata

Authors
Ji, Z., Wu, D., Jiang, W., Ma, P., Li, Z., & Wang, S.
Venue
Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security
Publisher
ACM
Published
2025-11-19
Pages
603-617
Cited by
9
References
16

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.