[Paper Review] POMDPs Make Better Hackers: Accounting for Uncertainty in Penetration Testing
This paper proposes a POMDP-based approach to penetration testing that models uncertainty in network configurations and intelligently integrates scanning and exploitation actions, significantly reducing runtime costs while maintaining high attack quality. By decomposing networks into subnetworks and solving POMDPs on individual machines, the method achieves scalable, near-optimal attack planning with only a 1.96% average quality loss compared to global POMDP solutions.
Penetration Testing is a methodology for assessing network security, by generating and executing possible hacking attacks. Doing so automatically allows for regular and systematic testing. A key question is how to generate the attacks. This is naturally formulated as planning under uncertainty, i.e., under incomplete knowledge about the network configuration. Previous work uses classical planning, and requires costly pre-processes reducing this uncertainty by extensive application of scanning methods. By contrast, we herein model the attack planning problem in terms of partially observable Markov decision processes (POMDP). This allows to reason about the knowledge available, and to intelligently employ scanning actions as part of the attack. As one would expect, this accurate solution does not scale. We devise a method that relies on POMDPs to find good attacks on individual machines, which are then composed into an attack on the network as a whole. This decomposition exploits network structure to the extent possible, making targeted approximations (only) where needed. Evaluating this method on a suitably adapted industrial test suite, we demonstrate its effectiveness in both runtime and solution quality.
Motivation & Objective
- To address the limitations of classical planning in penetration testing, which rely on costly pre-scan processes and fail to handle residual uncertainty.
- To model penetration testing as a POMDP, enabling reasoning over incomplete knowledge and dynamic decision-making under uncertainty.
- To develop a scalable decomposition method that preserves solution quality while avoiding the exponential growth of global POMDP models.
- To evaluate the approach on a realistic industrial test suite, demonstrating improved efficiency and practical feasibility over existing methods.
Proposed method
- The attack planning problem is modeled as a POMDP, where states represent uncertain network configurations, and actions include both scanning and exploiting with associated costs and rewards.
- Scans update the belief state by reducing uncertainty, while exploits modify the system state and may cause side effects like crashing services.
- The network is decomposed into biconnected components and subnetworks, with attacks on individual machines solved as separate POMDPs and composed hierarchically.
- A conservative approximation strategy ensures that the overall policy never overestimates value, preserving solution safety.
- The 4AL algorithm applies targeted approximations only where necessary, exploiting network structure to limit computational blowup.
- The method uses a belief state initialized from known configurations and time since last pentest, with exploit success modeled probabilistically.
Experimental results
Research questions
- RQ1Can POMDPs be effectively used to model penetration testing as a planning problem under uncertainty, capturing dependencies between exploits and network topology?
- RQ2How can POMDP-based attack planning be scaled to realistic network sizes without incurring prohibitive computational costs?
- RQ3What is the trade-off between solution quality and runtime when decomposing large-scale POMDPs into smaller, modular components?
- RQ4How does the quality of the proposed decomposition method compare to a global POMDP solution in terms of attack effectiveness and efficiency?
Key findings
- The average quality loss of the 4AL method compared to a global POMDP solution is only 1.96%, with a maximum loss of 14.1% across tested configurations.
- Runtime remains under 37 seconds even for networks with up to 100 machines and 100 exploits, demonstrating strong scalability.
- The method achieves significant performance gains over classical planning by reducing reliance on pre-scan processes while maintaining high attack quality.
- The quality loss increases with network size, from -1.14% for one machine to 4.37% for six machines, indicating a manageable trade-off.
- The approach outperforms existing methods by intelligently interleaving scans and exploits, avoiding the inefficiencies of exhaustive scanning.
- The method shows promise for industrial deployment, with realistic modeling of network structure, exploit dependencies, and belief updates based on time since last pentest.
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.