[Paper Review] Penetration Testing == POMDP Solving?
This paper proposes modeling penetration testing as a Partially Observable Markov Decision Process (POMDP) to handle uncertainty in network configurations and intelligently interleave scanning and exploitation actions. It demonstrates that POMDPs naturally model information gathering and exploit ordering under uncertainty, outperforming classical planning by dynamically adapting to partial observability and enabling cost-effective, adaptive attack strategies in realistic scenarios.
Penetration Testing is a methodology for assessing network security, by generating and executing possible attacks. Doing so automatically allows for regular and systematic testing without a prohibitive amount of human labor. A key question then is how to generate the attacks. This is naturally formulated as a planning problem. Previous work (Lucangeli et al. 2010) used classical planning and hence ignores all the incomplete knowledge that characterizes hacking. More recent work (Sarraute et al. 2011) makes strong independence assumptions for the sake of scaling, and lacks a clear formal concept of what the attack planning problem actually is. Herein, we model that problem in terms of partially observable Markov decision processes (POMDP). This grounds penetration testing in a well-researched formalism, highlighting important aspects of this problem's nature. POMDPs allow to model information gathering as an integral part of the problem, thus providing for the first time a means to intelligently mix scanning actions with actual exploits.
Motivation & Objective
- To address the limitations of classical planning in penetration testing, which assumes complete knowledge and ignores uncertainty.
- To model the attack planning problem more accurately by incorporating partial observability and information-gathering actions like port scanning.
- To provide a formal framework that captures the dynamic, uncertain nature of real-world network security assessments.
- To enable intelligent sequencing of scanning and exploitation actions based on expected information gain and exploit success probability.
- To explore the feasibility and benefits of using POMDPs for scalable, adaptive penetration testing in realistic network settings.
Proposed method
- The paper models penetration testing as a POMDP, where states represent network configurations (e.g., OS, open ports), and actions include scanning and exploiting.
- Actions are deterministic, but the initial state is partially observable, reflecting uncertainty about machine configurations post-configuration changes.
- The belief state is updated using Bayesian inference after each action, reflecting the evolving knowledge about the network.
- The policy is computed via POMDP solvers to maximize expected cumulative reward (e.g., system compromise) while minimizing cost (time, traffic).
- The approach supports dynamic exploit ordering based on real-time belief updates, unlike classical planners that pre-order exploits statically.
- The method is evaluated on a synthetic problem generator that scales the number of machines, exploits, and time since last scan.
Experimental results
Research questions
- RQ1Can POMDPs model penetration testing more naturally and accurately than classical planning by capturing partial observability and information gathering?
- RQ2How does the integration of scanning and exploitation actions in a single planning framework improve attack strategy compared to pre-scan classical planning?
- RQ3What is the scalability of POMDP-based attack planning in realistic network configurations, particularly for pairwise machine transitions?
- RQ4How do belief updates and dynamic exploit ordering under uncertainty affect the quality and cost-efficiency of penetration testing?
- RQ5Can structural properties of the pentesting problem (e.g., static states, monotonicity, single-action per action) be exploited to improve POMDP solving efficiency?
Key findings
- POMDP-based planning enables dynamic, belief-dependent exploit ordering that adapts to scan outcomes, unlike classical planners that rely on fixed, precomputed sequences.
- The model naturally integrates scanning and exploitation as interdependent actions, allowing cost-effective information gathering before high-risk exploits.
- POMDP solvers scale reasonably well for pairwise machine transitions (2-machine networks), making them suitable for use as atomic components in higher-level planning.
- The approach outperforms prior work by handling dependencies between exploits—e.g., shared failure reasons—through belief-based policy adaptation.
- The model captures key aspects of real pentesting, such as incomplete knowledge of configurations and the trade-off between information gain and attack cost.
- While full-network scaling remains limited, the method provides a principled foundation for building scalable, adaptive penetration testing tools using pairwise POMDP solutions as building blocks.
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.