Simulated Penetration Testing and Mitigation Analysis

Michael Backes, Jörg Hoffmann, Robert Künnemann, Patrick Speicher, Marcel Steinmetz

Abstract

Penetration testing is a well-established practical concept for the identification of potentially exploitable security weaknesses and an important component of a security audit. Providing a holistic security assessment for networks consisting of several hundreds hosts is hardly feasible though without some sort of mechanization. Mitigation, prioritizing counter-measures subject to a given budget, currently lacks a solid theoretical understanding and is hence more art than science. In this work, we propose the first approach for conducting comprehensive what-if analyses in order to reason about mitigation in a conceptually well-founded manner. To evaluate and compare mitigation strategies, we use simulated penetration testing, i.e., automated attack-finding, based on a network model to which a subset of a given set of mitigation actions, e.g., changes to the network topology, system updates, configuration changes etc. is applied. Using Stackelberg planning, we determine optimal combinations that minimize the maximal attacker success (similar to a Stackelberg game), and thus provide a well-founded basis for a holistic mitigation strategy. We show that these Stackelberg planning models can largely be derived from network scan, public vulnerability databases and manual inspection with various degrees of automation and detail, and we simulate mitigation analysis on networks of different size and vulnerability.

Introduction: The Mitigation Challenge

In modern cybersecurity, identifying vulnerabilities through penetration testing is only the first step. The more complex challenge is mitigation: deciding which vulnerabilities to patch when faced with hundreds of hosts, thousands of potential weaknesses, and a finite budget. Traditional methods often prioritize vulnerabilities based on individual severity scores (like CVSS), but this approach fails to account for how attackers chain minor weaknesses together to reach sensitive targets.

Because the combinatorial space of attack paths and mitigation strategies grows exponentially with network size, human analysts struggle to find optimal defense configurations. This research aims to transform mitigation from a heuristic "art" into a rigorous, automated computational problem.

Methodology: Stackelberg Planning and Automated Modeling

The core of the proposed framework is Stackelberg planning, a game-theoretic approach where a defender (the leader) moves first by applying a set of "fix-actions" within a budget. The attacker (the follower) then observes these changes and executes the most effective attack path possible.

To make this model applicable to real-world environments, the authors developed an automated pipeline to ingest network data. As shown in Figure 1, the system integrates data from Nessus network scans and the National Vulnerability Database (NVD) to construct a logic-based model of the network.

Automated model acquisition pipeline

Key technical innovations include:

  • Critical Attack Paths: Focusing on the most probable sequence of attacker actions to ensure computational scalability.
  • Pareto Optimization: Generating a "Pareto frontier" of dominant strategies, allowing security teams to choose the best defense for any given budget level.

Experimental Setup

To evaluate the system, the authors utilized a Scenario Generator to create synthetic but realistic network topologies, including DMZs, sensitive zones, and user subnets. The generator uses a Dirichlet process to model "host homogeneity"—the tendency for computers within the same organizational unit to share similar software and vulnerability profiles. Vulnerability data was pulled from the NVD and scored using CVSS, while patch data was derived from the OVAL (Open Vulnerability and Assessment Language) database.

Results and Discussion

The framework was tested on networks of varying scales and complexities. A primary finding was that effective defense relies on breaking chains of vulnerabilities. Often, a low-cost firewall rule can be more effective than an expensive software patch if it blocks a critical bottleneck in an attack path.

Performance and coverage metrics across network scales

As illustrated in Figure 2, the system demonstrated significant robustness:

  • Scalability: The approach successfully analyzed networks with up to 800 hosts (averaging 5 vulnerabilities and 5 fixes per host) within a 30-minute window.
  • Coverage: The algorithm maintained over 50% coverage (the ability to find the optimal defense) even at large scales.
  • Budget Independence: Interestingly, the effectiveness of the defense was often independent of the attacker's budget (Figure 2c), suggesting that well-placed "bottleneck" fixes remain robust against even well-funded adversaries.

However, the research also highlighted the "Defender's Dilemma": while increasing the attacker's budget has a negligible impact on computation time, increasing the defender's budget significantly increases complexity by expanding the combinatorial space of possible fix combinations.

Conclusion and Future Work

While this framework provides a well-founded basis for holistic mitigation, several areas for improvement remain. The current search process relies on heuristics that can become prohibitively enumerative if a good solution isn't found early. Additionally, the reliance on CVSS data can lead to imprecision, as it sometimes fails to distinguish between minor integrity violations and full privilege escalations. Future work will focus on refining privilege escalation models and developing more efficient "move-countermove" heuristic functions to guide the automated planning process.

Summary updated

BibTeX
@misc{backes2017simulated,
  author = {Michael Backes and Jörg Hoffmann and Robert Künnemann and Patrick Speicher and Marcel Steinmetz},
  title = {{Simulated Penetration Testing and Mitigation Analysis}},
  year = {2017},
  eprint = {1705.05088},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.05088},
}
Figure