[Paper Review] Attack Planning in the Real World
This paper presents a PDDL-based attack planning framework that integrates classical planners with real-world penetration testing tools to automatically generate and validate attack paths against live networks. By modeling exploits and network states in PDDL and leveraging planners like Metric-FF and SGPlan, the approach scales to medium-sized networks (up to 200 hosts), enabling automated, executable attack planning without precomputing full attack graphs.
Assessing network security is a complex and difficult task. Attack graphs have been proposed as a tool to help network administrators understand the potential weaknesses of their network. However, a problem has not yet been addressed by previous work on this subject; namely, how to actually execute and validate the attack paths resulting from the analysis of the attack graph. In this paper we present a complete PDDL representation of an attack model, and an implementation that integrates a planner into a penetration testing tool. This allows to automatically generate attack paths for penetration testing scenarios, and to validate these attacks by executing the corresponding actions -including exploits- against the real target network. We present an algorithm for transforming the information present in the penetration testing tool to the planning domain, and show how the scalability issues of attack graphs can be solved using current planners. We include an analysis of the performance of our solution, showing how our model scales to medium-sized networks and the number of actions available in current penetration testing tools.
Motivation & Objective
- To address the gap in existing attack graph research by enabling the automatic execution and validation of attack paths in real target networks.
- To overcome the scalability limitations of traditional attack graphs, which grow exponentially with network size and are infeasible for medium-to-large networks.
- To integrate classical planning algorithms with real penetration testing frameworks (e.g., Core Impact) to generate and execute actionable attack plans.
- To demonstrate that planning-based attack modeling can scale to realistic network sizes using current planners, avoiding the need to precompute entire attack graphs.
- To enable automated, repeatable, and optimized penetration testing by modeling attack steps as executable plans with precise preconditions and effects.
Proposed method
- Transforming penetration testing data (exploits, host states, services) into a formal PDDL domain model that captures preconditions, effects, and goals of attack actions.
- Using classical planning algorithms (Metric-FF and SGPlan) to search the state space and generate attack sequences without constructing the full attack graph.
- Integrating the planner with a real pentesting framework (Core Impact) to execute generated plans against live target networks for validation.
- Applying constraint partitioning and heuristic optimization to improve planner performance on complex goals involving multiple compromised hosts.
- Validating the approach through end-to-end execution of attack plans in controlled test environments to ensure correctness and feasibility.
- Leveraging the pentesting tool’s own knowledge base (exploits, target states) as the source of truth, avoiding false positives from external scanners.
Experimental results
Research questions
- RQ1Can classical planning algorithms effectively generate and validate executable attack paths in real-world penetration testing scenarios without precomputing full attack graphs?
- RQ2How does the PDDL-based attack model scale to medium-sized networks with hundreds of hosts and dozens of exploits?
- RQ3What are the performance characteristics of different planners (e.g., Metric-FF vs. SGPlan) when applied to realistic penetration testing planning tasks?
- RQ4Can the integration of planners with real pentesting tools enable automated, repeatable, and reliable attack execution?
- RQ5How can incomplete knowledge of the target network be modeled and handled within a planning framework for practical penetration testing?
Key findings
- The PDDL-based attack model successfully scales to medium-sized networks, handling up to 200 hosts and a large number of available exploits.
- The approach avoids the exponential blowup of full attack graph construction by using planners to explore only relevant paths, enabling scalability.
- Metric-FF solved a complex goal (compromising 100 machines in a 200-host network) in under 6 seconds using slightly over 1 GB of RAM.
- SGPlan outperformed Metric-FF in speed for simpler problems, but suffered from scalability issues on complex goals due to its constraint partitioning strategy.
- The integration of planners with real pentesting tools enabled end-to-end execution and validation of attack plans, proving the feasibility of automated penetration testing.
- The model supports non-monotonic behaviors (e.g., DoS, failed exploits) by not relying on restrictive assumptions like monotonicity, unlike prior work such as TVA.
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.