mlsanityData to 14 Oct 2026

Autonomous Penetration Testing: Solving Capture-the-Flag Challenges with LLMs

arXiv 2508.01054 ↗First posted 1 Aug 2025cs.CR cs.AI cs.CYcited by 2

Not on the map. Why?

Abstract (arXiv)

This study evaluates the ability of GPT-4o to autonomously solve beginner-level offensive security tasks by connecting the model to OverTheWire's Bandit capture-the-flag game. Of the 25 levels that were technically compatible with a single-command SSH framework, GPT-4o solved 18 unaided and another two after minimal prompt hints for an overall 80% success rate. The model excelled at single-step challenges that involved Linux filesystem navigation, data extraction or decoding, and straightforward networking. The approach often produced the correct command in one shot and at a human-surpassing speed. Failures involved multi-command scenarios that required persistent working directories, complex network reconnaissance, daemon creation, or interaction with non-standard shells. These limitations highlight current architectural deficiencies rather than a lack of general exploit knowledge. The results demonstrate that large language models (LLMs) can automate a substantial portion of novice penetration-testing workflow, potentially lowering the expertise barrier for attackers and offering productivity gains for defenders who use LLMs as rapid reconnaissance aides. Further, the unsolved tasks reveal specific areas where secure-by-design environments might frustrate simple LLM-driven attacks, informing future hardening strategies. Beyond offensive cybersecurity applications, results suggest the potential to integrate LLMs into cybersecurity education as practice aids.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 2 of its 20 references that are in the map. First posted on arXiv 1 Aug 2025.

Builds on

2 of 20 references.

References · 2

  1. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
  2. 2025Towards Supporting Penetration Testing Education with Large Language Models: an Evaluation and Comparisoncited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.