Abstract
Securing Windows Active Directory (AD) systems involves a complex iterative workflow between security teams and IT operations. While security teams identify vulnerabilities, IT admins must manually review and approve fixes to avoid disrupting legitimate business operations. This paper formalizes this challenge as the Adaptive Path Removal (APR) Problem, aiming to minimize the human effort required to disconnect critical targets from potential attackers. We propose an "Adaptive Wizard" that presents full attack paths as multiple-choice options to admins. We demonstrate that while the problem is #P-hard, our flagship heuristic, Dynamic Programming with Restriction (DPR), scales to massive real-world networks and consistently outperforms reinforcement learning and approximation-based baselines.
The Challenge: The "Implementable Fixes" Problem
In large organizations, Active Directory is the primary target for privilege escalation. Security tools model these risks using attack graphs, where nodes represent accounts or computers and edges represent permissions. Hardening the system requires removing these edges. However, IT administrators often reject proposed fixes because revoking a permission might break a critical business process.
Existing models typically ask admins binary questions (e.g., "Can we remove this edge?"). If rejected, the process stalls. The APR problem addresses this inefficiency by framing the interaction as a guided, adaptive process where every interaction is guaranteed to eliminate at least one attack path.
Methodology: The Adaptive Path Removal (APR) Problem
We model the interaction between a security "wizard" and an IT admin as a Markov Decision Process (MDP). Instead of suggesting individual edges, the wizard proposes an entire attack path. The admin then selects at least one edge from that path to remove, based on their internal knowledge of what is "safe" to delete.
To predict human behavior, we utilize the Bradley-Terry model, which uses "confidence scores" to estimate the likelihood of an admin choosing a specific edge. The goal of the wizard is to select paths that lead to a complete "cut" (disconnecting the target) with the minimum expected number of queries.
Scalable Solutions
While we developed an exact Dynamic Programming solution (OPT), it is computationally infeasible for large graphs. We introduced DPR (Dynamic Programming with Restriction), which employs lookahead limits and path sampling. This allows the algorithm to maintain the strategic depth of the exact solution while scaling to graphs with millions of edges.
Experimental Results
We evaluated our approach on 13 synthetic AD graphs (ADSynth) and one massive real-world dataset (ORG) containing over 125,000 nodes and 1.1 million edges.
As shown in the performance data, DPR consistently achieved the lowest average rank across all test scenarios. Notably, on the massive ORG dataset, DPR successfully identified hardening strategies where other methods struggled. In head-to-head comparisons against Reinforcement Learning (RL) baselines like PPO and SAC, DPR demonstrated superior planning capabilities. For example, on the G8 graph, DPR successfully found a complete cut in 504 out of 512 trials, whereas previous RL models only succeeded 96 times. This suggests that RL models are often too "myopic," focusing on immediate path removal rather than the long-term goal of a complete network cut.
Conclusion
The Adaptive Wizard framework transforms AD hardening from a frustrating back-and-forth into a streamlined, mathematically optimized process. By focusing on path-based proposals and leveraging the DPR heuristic, organizations can achieve a provably more secure state with significantly less administrative overhead. Future work will focus on refining human behavior models and adapting the wizard to dynamic networks where new edges and vulnerabilities emerge in real-time.
Summary updated