An Empirical Evaluation of LLMs for Solving Offensive Security Challenges
Minghao Shao, Boyuan Chen, Sofija Jancheska, Brendan Dolan-Gavitt, Siddharth Garg, Ramesh Karri, Muhammad Shafique
TL;DR
The study evaluates how well large language models can solve real CTF challenges using HITL and fully automated workflows, comparing results to human teams. It benchmarks six LLMs across 26 challenges, analyzes strengths and failure modes, and demonstrates that GPT-4 in particular can approach or surpass average human performance in automated settings. The findings highlight substantial potential for LLM-enabled cybersecurity education and automated problem-solving while underscoring the ongoing need for human oversight and prompt/tooling enhancements. Overall, the work provides a practical framework and data for systematically assessing offensive cybersecurity capabilities of LLMs.
Abstract
Capture The Flag (CTF) challenges are puzzles related to computer security scenarios. With the advent of large language models (LLMs), more and more CTF participants are using LLMs to understand and solve the challenges. However, so far no work has evaluated the effectiveness of LLMs in solving CTF challenges with a fully automated workflow. We develop two CTF-solving workflows, human-in-the-loop (HITL) and fully-automated, to examine the LLMs' ability to solve a selected set of CTF challenges, prompted with information about the question. We collect human contestants' results on the same set of questions, and find that LLMs achieve higher success rate than an average human participant. This work provides a comprehensive evaluation of the capability of LLMs in solving real world CTF challenges, from real competition to fully automated workflow. Our results provide references for applying LLMs in cybersecurity education and pave the way for systematic evaluation of offensive cybersecurity capabilities in LLMs.
