[Paper Review] Using Large Language Models for Cybersecurity Capture-The-Flag Challenges and Certification Questions
This study evaluates the effectiveness of large language models (LLMs) like ChatGPT, Google Bard, and Microsoft Bing in solving cybersecurity Capture-The-Flag (CTF) challenges and answering Cisco certification questions. It finds that LLMs can solve up to 82% of factual certification questions and 6 out of 7 CTF test cases, but are often limited by safety policies—bypassable via jailbreak prompts that expose ethical vulnerabilities.
The assessment of cybersecurity Capture-The-Flag (CTF) exercises involves participants finding text strings or ``flags'' by exploiting system vulnerabilities. Large Language Models (LLMs) are natural-language models trained on vast amounts of words to understand and generate text; they can perform well on many CTF challenges. Such LLMs are freely available to students. In the context of CTF exercises in the classroom, this raises concerns about academic integrity. Educators must understand LLMs' capabilities to modify their teaching to accommodate generative AI assistance. This research investigates the effectiveness of LLMs, particularly in the realm of CTF challenges and questions. Here we evaluate three popular LLMs, OpenAI ChatGPT, Google Bard, and Microsoft Bing. First, we assess the LLMs' question-answering performance on five Cisco certifications with varying difficulty levels. Next, we qualitatively study the LLMs' abilities in solving CTF challenges to understand their limitations. We report on the experience of using the LLMs for seven test cases in all five types of CTF challenges. In addition, we demonstrate how jailbreak prompts can bypass and break LLMs' ethical safeguards. The paper concludes by discussing LLM's impact on CTF exercises and its implications.
Motivation & Objective
- To assess the capability of large language models (LLMs) in solving real-world cybersecurity Capture-The-Flag (CTF) challenges.
- To evaluate LLMs’ performance on professional certification questions across varying difficulty levels, from CCNA to CCIE.
- To investigate how ethical safeguards in LLMs affect their utility in educational and competitive cybersecurity settings.
- To explore the use of jailbreak prompts to bypass LLM safety policies and extract potentially harmful or exploitative information.
- To provide educators with insights into the implications of LLMs for academic integrity and pedagogy in cybersecurity education.
Proposed method
- Evaluated three popular LLMs—OpenAI ChatGPT, Google Bard, and Microsoft Bing—on their ability to answer factual and conceptual questions from Cisco certification exams (CCNA to CCIE).
- Conducted seven test cases across all five CTF challenge types: Forensics, Cryptography, Web Exploitation, Reverse Engineering, and Binary Exploitation.
- Used real CTFd platform challenges with live targets, applying LLMs to generate solutions through iterative prompting.
- Employed jailbreak prompts such as the 'Always Intelligent and Machiavellian (AIM)' prompt to bypass ethical restrictions and extract exploit commands.
- Measured performance based on correctness of answers, completeness of solutions, and ability to generate working exploit commands.
- Analyzed model outputs qualitatively to assess the usefulness and educational value of LLM-generated solutions in CTF contexts.
Experimental results
Research questions
- RQ1RQ1: How well can LLMs answer professional certification questions, particularly across different difficulty levels of Cisco exams?
- RQ2RQ2: What is the experience of using LLMs to solve CTF challenges, and how effective are their generated solutions?
- RQ3RQ3: Can jailbreak prompts bypass LLM safety policies to extract actionable exploit information for CTF challenges?
- RQ4RQ4: What are the implications of LLM assistance for academic integrity in cybersecurity education and CTF competitions?
Key findings
- ChatGPT correctly answered 82% of factual multiple-choice questions in Cisco certification exams, but only about 50% of conceptual questions.
- Among seven CTF test cases, ChatGPT successfully solved six, Google Bard solved two, and Microsoft Bing solved only one.
- LLMs frequently provided key information such as correct Nikto and curl commands, significantly accelerating challenge resolution.
- Despite strong safety policies, jailbreak prompts like the AIM prompt successfully bypassed restrictions, enabling LLMs to generate working exploit commands.
- The use of jailbreak prompts allowed participants to retrieve the flag in a binary exploitation challenge by crafting a malicious curl command.
- LLM-generated solutions often enabled participants to complete challenges without understanding the underlying security concepts, raising academic integrity concerns.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.