Defending Active Directory by Combining Neural Network based Dynamic Program and Evolutionary Diversity Optimisation

Diksha Goel, Max Ward, Aneta Neumann, Frank Neumann, Hung Nguyen, Mingyu Guo · DOI

This paper, titled "Defending Active Directory by Combining Neural Network based Dynamic Program and Evolutionary Diversity Optimisation," presents a novel hybrid approach to a critical cybersecurity challenge: protecting Microsoft Active Directory (AD) environments from sophisticated attackers.

TL;DR

The authors tackle the #P-hard problem of finding the best edges to block in an Active Directory attack graph to minimize an attacker's success. They combine a Neural Network (NN) that approximates a massive Dynamic Program with Evolutionary Diversity Optimisation (EDO), creating a feedback loop where diverse defensive plans improve the NN's accuracy, ultimately achieving near-optimal security configurations.

What Problem Does This Paper Address?

Active Directory is the backbone of identity management for most organizations, making it a prime target for "snowball" identity attacks. Attackers use tools like BLOODHOUND to map out paths from a low-privileged account to the "Holy Grail": the Domain Admin (DA).

Figure 1: Example of BLOODHOUND snowball identity attack.

Defenders want to block a limited number of edges (e.g., by removing permissions or patching vulnerabilities) to stop these attacks. However, the math is daunting. The authors model this as a Stackelberg game: the defender moves first by blocking edges, and a strategic attacker responds by choosing the path that maximizes their success probability, accounting for both detection and failure rates at every step.

The authors prove that calculating the optimal defense is #P-hard, meaning it is computationally intractable for large, real-world networks using traditional exact methods.

Methods

To overcome this complexity, the authors propose a three-part strategy:

  1. Fixed-Parameter Tractable Kernelization: They reduce the massive original AD graph into a "condensed" graph. They focus on Non-Splitting Paths (NSPs)—sequences of nodes where the attacker has no choice but to continue to the next node. This significantly shrinks the state space.

    Figure 2: Example of attack graph.
  2. Neural Network based Dynamic Program (NNDP): The attacker’s optimal policy is modeled as a Markov Decision Process (MDP). Since the state space is exponential ($3^{|Edges|}$), they train a Neural Network to approximate the value function of the Dynamic Program. The NN learns to predict the attacker's success probability for any given defensive configuration.

  3. Evolutionary Diversity Optimisation (EDO): Instead of a standard genetic algorithm that searches for a single "best" solution, EDO maintains a population of diverse defensive plans.

The "Aha!" Loop: The EDO and NN work together. The EDO generates a diverse set of high-quality defensive plans, which serves as rich training data for the NN. In turn, the trained NN acts as a fast, efficient "fitness function" that tells the EDO how effective a new defensive plan is. They go back and forth between training the NN and evolving the defense.

Figure 3: Example of state transition process.

Datasets

The researchers evaluated their approach using synthetic AD attack graphs generated by DBCREATOR, which mimics real-world network structures.

  • R500: 1,493 nodes, 3,456 edges.
  • R1000: 2,996 nodes, 8,814 edges.
  • R2000: 5,997 nodes, 18,795 edges.

These graphs include common AD relationship types like HasSession, AdminTo, and MemberOf.

Key Insights and Ideas

  • Diversity as a Training Tool: The most striking insight is using EDO not just for the final result, but to prevent the Neural Network from getting stuck in local optima. By forcing the population of defenses to be diverse, the NN is exposed to a much broader range of the state space during training.
  • Strategic Failure vs. Detection: The model distinguishes between being detected (attack ends) and failing to traverse an edge (attacker can try a different path). This makes the model much more realistic for modern "low and slow" attacks.
  • Kernelization is Essential: By condensing the graph into NSPs, the authors make a #P-hard problem manageable enough for a Neural Network to learn effectively.

Key Results

  • Near-Optimality: On the R500 graph (where the exact solution could still be calculated for comparison), the proposed EDO-based defense was less than 1% away from the theoretical optimum.
  • Scalability: For larger graphs (R1000 and R2000), the hybrid NNDP-EDO approach consistently outperformed greedy baselines and standard evolutionary algorithms.
  • Robustness: The method remained effective across different edge probability distributions (independent, positively correlated, and negatively correlated detection/failure rates).

Limitations and Future Work

  • Static vs. Dynamic: The current model assumes a static graph. In reality, AD environments change as users log in and out. Future work could incorporate temporal dynamics.
  • Uniform Edge Costs: The model assumes every edge costs the same to "block." In practice, removing a MemberOf relationship might be much easier than patching a legacy system.
  • Computational Intensity: While the final model is fast, the initial training is heavy. The experiments required over 141 days of total CPU time (though this was parallelized to finish in one day).

This research provides a powerful framework for automated network defense, proving that even "intractable" security problems can be tamed by combining the strengths of deep learning and evolutionary computation.

Summary updated

BibTeX
@inproceedings{goel2022defending,
  author = {Diksha Goel and Max Ward and Aneta Neumann and Frank Neumann and Hung Nguyen and Mingyu Guo},
  title = {{Defending Active Directory by Combining Neural Network based Dynamic Program and Evolutionary Diversity Optimisation}},
  booktitle = {GECCO},
  year = {2022},
  url = {https://openreview.net/forum?id=hav6HEH79hv},
}
Figure