Adaptive Wizard for Removing Cross-Tier Misconfigurations in Active Directory

Huy Quang Ngo, Mingyu Guo, Hung X. Nguyen

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.

The iterative workflow of the Adaptive Wizard: the software proposes an attack path, and the IT admin selects an edge to remove.

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.

Performance comparison across synthetic (G1-G9) and real-world (ORG) AD graphs. DPR consistently achieves the lowest average rank in minimizing administrative queries.

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

Abstract

Security vulnerabilities in Windows Active Directory (AD) systems are typically modeled using an attack graph and hardening AD systems involves an iterative workflow: security teams propose an edge to remove, and IT operations teams manually review these fixes before implementing the removal. As verification requires significant manual effort, we formulate an Adaptive Path Removal Problem to minimize the number of steps in this iterative removal process. In our model, a wizard proposes an attack path in each step and presents it as a set of multiple-choice options to the IT admin. The IT admin then selects one edge from the proposed set to remove. This process continues until the target t is disconnected from source s or the number of proposed paths reaches B. The model aims to optimize the human effort by minimizing the expected number of interactions between the IT admin and the security wizard. We first prove that the problem is #P-hard. We then propose a set of solutions including an exact algorithm, an approximate algorithm, and several scalable heuristics. Our best heuristic, called DPR, can operate effectively on larger-scale graphs compared to the exact algorithm and consistently outperforms the approximate algorithm across all graphs. We verify the effectiveness of our algorithms on several synthetic AD graphs and an AD attack graph collected from a real organization.
BibTeX
@inproceedings{ngo2025adaptive,
  author = {Huy Quang Ngo and Mingyu Guo and Hung X. Nguyen},
  title = {{Adaptive Wizard for Removing Cross-Tier Misconfigurations in Active Directory}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=WB0WJBWGIe},
}

Loading related content...

Figure