Adaptive Wizard for Removing Cross-Tier Misconfigurations in Active Directory

Huy Quang Ngo, Mingyu Guo, Hung X. Nguyen · OpenReview

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 $\mathcal{\#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.

Introduction

Hardening a Windows Active Directory (AD) environment is often a tug-of-war between security teams and IT operations. Security teams identify "attack paths"—sequences of permissions and vulnerabilities that let an attacker escalate privileges—and demand they be closed. IT operations, however, are often wary of breaking critical business processes by revoking the wrong permission.

Existing tools like BloodHound suggest fixes, but they often fail in practice because not every edge can be safely removed without causing a massive outage, and IT admins must manually review every change. Previous models treated this as a binary "yes/no" for single edges, which is tedious and doesn't guarantee the final graph will be secure if the admin says "no" too often.

The iterative workflow between the security wizard and the IT administrator.

The Adaptive Path Removal (APR) Problem

The authors tackle the Adaptive Path Removal Problem: How can a system propose a sequence of fixes that minimizes the number of times an admin has to intervene, while ensuring the target is eventually disconnected?

The problem is framed as a Markov Decision Process (MDP). Instead of asking about one edge at a time, the "Wizard" proposes an entire attack path. The IT admin then selects exactly one edge from that path to remove based on their internal knowledge of what is "safe" to delete. The authors prove the APR problem is #P-hard by showing a reduction from the $(s, t)$-network reliability problem.

Methodology

Key technical contributions include several algorithms designed to solve the APR problem:

  • APP (Adaptive Submodular Strategy): A greedy algorithm that selects paths yielding the highest "marginal benefit" (removing the most potential future paths). It provides a theoretical approximation bound.
  • DPR (Dynamic Programming with Restriction): This is the flagship algorithm. Since exact Dynamic Programming (OPT) doesn't scale, DPR restricts the search space by using a limited "lookahead" budget and sampling only a subset of candidate paths at each step.
  • Bradley-Terry Model: Used to simulate the IT admin’s choice, where edges with higher "confidence scores" (likelihood of being a misconfiguration) are more likely to be picked for removal.
Algorithm 1: Adaptive Submodular Strategy (APP).

Evaluation and Results

The researchers evaluated their algorithms on two fronts: ADSynth (synthetic AD graphs up to ~48k edges) and a Real-World ORG Graph (over 1.1 million edges).

Key findings include:

  • Superior Efficiency: In experiments across all synthetic graphs, DPR achieved the lowest average number of queries (human interactions).
  • Scalability: DPR successfully operated on the million-edge real-world graph, whereas the exact OPT algorithm was limited to tiny graphs of about 17 nodes.
  • Performance vs. RL: Standard Reinforcement Learning agents (PPO and SAC) struggled on the real-world graph, likely due to being too "myopic" compared to the lookahead capabilities of DPR.
  • Manageable Complexity: The average length of the paths proposed by the wizard remained small (typically 2-3 edges), ensuring the task for the admin was never overwhelming.

Conclusion

The path-based approach is more effective than edge-based models because it provides a "cut-guarantee"—the admin must pick an edge to break the proposed path. While the model relies on pre-assigned confidence scores, the DPR heuristic demonstrates that a human-in-the-loop "wizard" can effectively secure massive enterprise networks with minimal manual intervention.

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 $\mathcal{\#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