PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Design

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Yang, Ruozhao, Cheng, Mingfei, Deng, Gelei, Zhang, Tianwei, Wang, Junjie, Xie, Xiaofei
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914203776843776
author Yang, Ruozhao
Cheng, Mingfei
Deng, Gelei
Zhang, Tianwei
Wang, Junjie
Xie, Xiaofei
author_facet Yang, Ruozhao
Cheng, Mingfei
Deng, Gelei
Zhang, Tianwei
Wang, Junjie
Xie, Xiaofei
contents Penetration testing is essential for assessing and strengthening system security against real-world threats, yet traditional workflows remain highly manual, expertise-intensive, and difficult to scale. Although recent advances in Large Language Models (LLMs) offer promising opportunities for automation, existing applications rely on simplistic prompting without task decomposition or domain adaptation, resulting in unreliable black-box behavior and limited insight into model capabilities across penetration testing stages. To address this gap, we introduce PentestEval, the first comprehensive benchmark for evaluating LLMs across six decomposed penetration testing stages: Information Collection, Weakness Gathering and Filtering, Attack Decision-Making, Exploit Generation and Revision. PentestEval integrates expert-annotated ground truth with a fully automated evaluation pipeline across 346 tasks covering all stages in 12 realistic vulnerable scenarios. Our stage-level evaluation of 9 widely used LLMs reveals generally weak performance and distinct limitations across the stages of penetration-testing workflow. End-to-end pipelines reach only 31% success rate, and existing LLM-powered systems such as PentestGPT, PentestAgent, and VulnBot exhibit similar limitations, with autonomous agents failing almost entirely. These findings highlight that autonomous penetration testing demands stronger structured reasoning, where modularization enhances each individual stage and improves overall performance. PentestEval provides the foundational benchmark needed for future research on fine-grained, stage-level evaluation, paving the way toward more reliable LLM-based automation.
format Preprint
id arxiv_https___arxiv_org_abs_2512_14233
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Design
Yang, Ruozhao
Cheng, Mingfei
Deng, Gelei
Zhang, Tianwei
Wang, Junjie
Xie, Xiaofei
Software Engineering
Artificial Intelligence
Cryptography and Security
Penetration testing is essential for assessing and strengthening system security against real-world threats, yet traditional workflows remain highly manual, expertise-intensive, and difficult to scale. Although recent advances in Large Language Models (LLMs) offer promising opportunities for automation, existing applications rely on simplistic prompting without task decomposition or domain adaptation, resulting in unreliable black-box behavior and limited insight into model capabilities across penetration testing stages. To address this gap, we introduce PentestEval, the first comprehensive benchmark for evaluating LLMs across six decomposed penetration testing stages: Information Collection, Weakness Gathering and Filtering, Attack Decision-Making, Exploit Generation and Revision. PentestEval integrates expert-annotated ground truth with a fully automated evaluation pipeline across 346 tasks covering all stages in 12 realistic vulnerable scenarios. Our stage-level evaluation of 9 widely used LLMs reveals generally weak performance and distinct limitations across the stages of penetration-testing workflow. End-to-end pipelines reach only 31% success rate, and existing LLM-powered systems such as PentestGPT, PentestAgent, and VulnBot exhibit similar limitations, with autonomous agents failing almost entirely. These findings highlight that autonomous penetration testing demands stronger structured reasoning, where modularization enhances each individual stage and improves overall performance. PentestEval provides the foundational benchmark needed for future research on fine-grained, stage-level evaluation, paving the way toward more reliable LLM-based automation.
title PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Design
topic Software Engineering
Artificial Intelligence
Cryptography and Security
url https://arxiv.org/abs/2512.14233