Towards Automated Penetration Testing: Introducing LLM Benchmark, Analysis, and Improvements

Isamu Isozaki, Manil Shrestha, Rick Console, Edward Kim
10/22/2024
47 citations
cs.CRcs.AI

Official code: isamu-isozaki/AI-Pentest-Benchmark (25 stars, Jupyter Notebook, MIT, last commit 2024-10-25).

Abstract

Hacking poses a significant threat to cybersecurity, inflicting billions of dollars in damages annually. To mitigate these risks, ethical hacking, or penetration testing, is employed to identify vulnerabilities in systems and networks.

Show full abstract

Recent advancements in large language models (LLMs) have shown potential across various domains, including cybersecurity. However, there is currently no comprehensive, open, automated, end-to-end penetration testing benchmark to drive progress and evaluate the capabilities of these models in security contexts. This paper introduces a novel open benchmark for LLM-based automated penetration testing, addressing this critical gap. We first evaluate the performance of LLMs, including GPT-4o and LLama 3.1-405B, using the state-of-the-art PentestGPT tool. Our findings reveal that while LLama 3.1 demonstrates an edge over GPT-4o, both models currently fall short of performing end-to-end penetration testing even with some minimal human assistance. Next, we advance the state-of-the-art and present ablation studies that provide insights into improving the PentestGPT tool. Our research illuminates the challenges LLMs face in each aspect of Pentesting, e.g. enumeration, exploitation, and privilege escalation. This work contributes to the growing body of knowledge on AI-assisted cybersecurity and lays the foundation for future research in automated penetration testing using large language models.

View on arXivView PDF

Code Implementations(1)

MIT

The goal of this repo is to become a benchmark for pentesting

252Jupyter Notebook, PythonJul 4, 20242 years agoMIT

Similar Papers

Cite this paper

@article{isozaki2024towards,
  title  = {Towards Automated Penetration Testing: Introducing LLM Benchmark, Analysis, and Improvements},
  author = {Isamu Isozaki and Manil Shrestha and Rick Console and Edward Kim},
  year   = {2024},
  eprint = {2410.17141},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.17141v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.17141.svg)](https://codeofpaper.com/paper/2410.17141)

Discussion