Introduction
Active Directory (AD) serves as the foundational identity management system for the vast majority of Windows-based enterprise networks. Because it controls access to critical resources, it is frequently the primary target for sophisticated cyberattacks. Attackers typically employ "identity snowball attacks," where they compromise a low-privilege account and move laterally through the network—exploiting permissions and sessions—to eventually achieve Domain Admin (DA) status.
Defending these networks involves strategically blocking specific attack paths (edges) to minimize the probability of an attacker reaching high-value targets. However, determining the optimal set of edges to block is a computationally daunting task. This paper demonstrates that the optimal defense problem in AD environments is #P-hard, a complexity class significantly more difficult than NP-hard. To address this, the authors introduce a novel framework that combines Neural Networks (NN) with Evolutionary Diversity Optimisation (EDO) to approximate optimal defense strategies in large-scale networks.
The Complexity of AD Defense
The interaction between a defender and an attacker is modeled as a Stackelberg game. In this model, the defender first commits to a defense plan (blocking edges), and the attacker then chooses an optimal response. The challenge lies in the state space: with thousands of nodes and edges, the number of possible configurations grows exponentially ($3^{|Edges|}$), making exact mathematical solutions impossible for real-world networks.
The NNDP-EDO Framework
To overcome the computational bottleneck, the authors propose a multi-stage synergistic approach:
1. Graph Kernelization
Before applying complex algorithms, the framework shrinks the massive AD attack graph into a "condensed graph" using Non-Splitting Paths (NSP). This process preserves the strategic essence of the network while significantly reducing the number of decision points the defender must consider.
2. Neural Network Dynamic Program (NNDP)
The attacker’s decision-making is modeled as a Markov Decision Process (MDP). Since calculating the exact value of every state is intractable, the authors train a Neural Network to approximate the "Value Function." This NN predicts the attacker's success probability from any given state, effectively serving as a computationally efficient surrogate for the full dynamic program.
3. Evolutionary Diversity Optimisation (EDO)
Rather than searching for a single "best" defense plan, the framework utilizes EDO to maintain a diverse population of high-quality blocking strategies. This diversity is crucial; it ensures that the system explores a wide range of potential attacker behaviors rather than over-optimizing for a single path.
4. The Synergistic Loop
The core innovation is the feedback loop between the NN and the EDO. The NN acts as the fitness function for the evolutionary algorithm, evaluating the effectiveness of proposed defenses. Conversely, the diverse solutions generated by the EDO provide a rich and varied dataset for training the NN. This prevents the model from getting stuck in local optima and ensures the NN remains accurate across the entire network topology.
Experimental Evaluation
The framework was tested using synthetic AD attack graphs generated by DBCREATOR, which mimics real-world organizational structures. The researchers evaluated three scales of networks:
- R500: ~1,500 nodes, 3,400 edges.
- R1000: ~3,000 nodes, 8,800 edges.
- R2000: ~6,000 nodes, 18,800 edges.
Unlike simpler models that assume attackers follow a fixed path, this study assumes a strategic attacker. If an attacker fails to exploit a specific edge, they can retreat to a known checkpoint and attempt an alternative route, making the defense task significantly harder.
Key Results
- Near-Optimality: In the R500 scenario—where exact solutions can still be calculated for comparison—the NNDP-EDO method achieved results within 1% of the theoretical optimal defense.
- Scalability: On larger graphs where exact solvers fail, the proposed method significantly outperformed standard greedy baselines. For the R1000 graph, NNDP-EDO limited the attacker's success rate to approximately 42%, compared to 52% for the greedy approach.
- Robustness: The framework proved effective across various edge distributions, including scenarios where edge failure and detection rates were positively or negatively correlated.
Limitations and Future Work
While highly effective, the approach is computationally intensive, requiring approximately 141 days of total CPU time (parallelized) for the full experimental suite. Additionally, the current model assumes a static AD graph. Real-world networks are dynamic, with users logging in and out and permissions shifting over time. Future research will focus on adapting these defense strategies to evolving network topologies and improving the convergence rate of the Neural Network training process, which failed to converge in roughly 3% of the largest-scale trials.
Conclusion
By combining the predictive power of Neural Networks with the exploratory capabilities of Evolutionary Diversity Optimisation, this research provides a viable path forward for securing complex Active Directory environments. The ability to approximate solutions to #P-hard problems allows defenders to move beyond simple heuristics toward mathematically grounded, near-optimal security postures.
Summary updated