From Capabilities to Performance: Evaluating Key Functional Properties of LLM Architectures in Penetration Testing
Lanxiao Huang, Daksh Dave, Tyler Cody, Peter Beling, Ming Jin
TL;DR
This work systematically evaluates multiple LLM-driven penetration testing agents, identifying core functional capabilities—context coherence, inter-agent coordination, tool-use accuracy, multi-step planning, and real-time responsiveness—that determine performance. It introduces five architectural augmentations (GCM, IAM, CCI, AP, RTM) inspired by Multi-Agent System principles and demonstrates their effectiveness in strengthening modular LLM agents across end-to-end PT tasks mapped to MITRE ATT&CK. Across a diverse testbed of vulnerable machines, results show that augmentations substantially improve reliability and task completion, though real-time tasks like MITM remain challenging for current models. The findings offer a concrete blueprint for designing robust, autonomous offensive security systems by embedding long-horizon memory, structured inter-component grounding, and runtime-event awareness, with implications for safer dual-use deployment and future antifragile AI safety research.
Abstract
Large language models (LLMs) are increasingly used to automate or augment penetration testing, but their effectiveness and reliability across attack phases remain unclear. We present a comprehensive evaluation of multiple LLM-based agents, from single-agent to modular designs, across realistic penetration testing scenarios, measuring empirical performance and recurring failure patterns. We also isolate the impact of five core functional capabilities via targeted augmentations: Global Context Memory (GCM), Inter-Agent Messaging (IAM), Context-Conditioned Invocation (CCI), Adaptive Planning (AP), and Real-Time Monitoring (RTM). These interventions support, respectively: (i) context coherence and retention, (ii) inter-component coordination and state management, (iii) tool use accuracy and selective execution, (iv) multi-step strategic planning, error detection, and recovery, and (v) real-time dynamic responsiveness. Our results show that while some architectures natively exhibit subsets of these properties, targeted augmentations substantially improve modular agent performance, especially in complex, multi-step, and real-time penetration testing tasks.
