[Paper Review] Automated Attack Planning
This paper presents a novel automated attack planning framework for penetration testing using PDDL and POMDP models to generate optimal, uncertainty-aware attack paths. It introduces 4AL, a hierarchical decomposition method that enables scalable, intelligent mixing of scanning and exploitation actions, achieving industrial-scale performance with provable optimality under assumptions.
Penetration Testing is a methodology for assessing network security, by generating and executing possible attacks. Doing so automatically allows for regular and systematic testing. A key question then is how to automatically generate the attacks. A natural way to address this issue is as an attack planning problem. In this thesis, we are concerned with the specific context of regular automated pentesting, and use the term "attack planning" in that sense. The following three research directions are investigated. First, we introduce a conceptual model of computer network attacks, based on an analysis of the penetration testing practices. We study how this attack model can be represented in the PDDL language. Then we describe an implementation that integrates a classical planner with a penetration testing tool. This allows us to automatically generate attack paths for real world pentesting scenarios, and to validate these attacks by executing them. Secondly, we present efficient probabilistic planning algorithms, specifically designed for this problem, that achieve industrial-scale runtime performance (able to solve scenarios with several hundred hosts and exploits). These algorithms take into account the probability of success of the actions and their expected cost (for example in terms of execution time, or network traffic generated). Finally, we take a different direction: instead of trying to improve the efficiency of the solutions developed, we focus on improving the model of the attacker. We model the attack planning problem in terms of partially observable Markov decision processes (POMDP). This grounds penetration testing in a well-researched formalism. POMDPs allow the modelling of 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
- Address the challenge of automating penetration testing by modeling attack generation as a planning problem to reduce human labor and increase accessibility.
- Develop a formal model of network attacks that captures real-world penetration testing practices, including exploit success probabilities and network topology.
- Introduce a scalable, probabilistic planning approach that accounts for uncertainty in exploit success and execution cost, enabling industrial-scale attack planning.
- Model the attack planning problem using Partially Observable Markov Decision Processes (POMDPs) to naturally integrate information gathering (scanning) with exploitation.
- Design a hierarchical decomposition method (4AL) to scale POMDP-based attack planning to large networks while preserving solution quality.
Proposed method
- Represent attack scenarios in the PDDL language to leverage classical planners for generating attack sequences.
- Integrate a classical planner with a real penetration testing tool to validate generated attack paths through execution on live networks.
- Develop a custom probabilistic planner that models action success as a probability and minimizes expected cost (e.g., time, traffic), with proofs of optimality under specific assumptions.
- Design a simulation platform to test and validate attack plans on large, arbitrary network scenarios before real deployment.
- Propose the 4AL framework, a four-level hierarchical decomposition: (1) decompose the network into biconnected components, (2) plan attacks on components, (3) plan subnetwork attacks with firewall constraints, and (4) solve single-machine attacks as POMDPs.
- Use off-the-shelf POMDP solvers at the lowest level, caching results to avoid recomputation, and compose solutions upward through the hierarchy.
Experimental results
Research questions
- RQ1How can automated penetration testing be systematically generated using formal planning techniques?
- RQ2To what extent can probabilistic planning models improve attack planning by accounting for uncertainty in exploit success and network state?
- RQ3Can POMDP-based modeling enable intelligent, cost-effective integration of scanning and exploitation actions in attack planning?
- RQ4How can POMDP-based attack planning be scaled to large networks without sacrificing solution quality?
- RQ5What is the trade-off between solution quality and computational efficiency when using hierarchical decomposition in POMDP-based attack planning?
Key findings
- The proposed POMDP-based model enables the first formal integration of scanning and exploitation into a single, coherent planning framework, allowing intelligent action sequencing under uncertainty.
- The 4AL hierarchical decomposition approach achieves industrial-scale performance, solving scenarios with several hundred hosts and exploits efficiently.
- Empirical results suggest that the hierarchical POMDP approach incurs only a small loss in solution quality compared to a global POMDP solution, while being scalable.
- The probabilistic planner produces optimal solutions under the assumptions of known action success probabilities and fixed costs, with formal proofs supporting this optimality.
- The integration of a classical planner with a real penetration testing tool enables end-to-end validation of attack plans through execution on live networks.
- The simulation platform successfully enables testing of attack plans on large, arbitrary network configurations prior to real-world execution, improving safety and reliability.
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.