Work 01
ADG, Access Directory Graph
Access governance
Sep–Oct 2026
ADG reads identity, group-membership, SMB share and NTFS permission facts reported by collectors and answers one question with its evidence: why can this person reach this folder? It is read-only, and a failed or incomplete collection is reported as such, never as a clean result.
01 Overview
ADG is a system for answering access questions about Windows file shares. To say why someone can open a folder, it combines directory identities, nested group membership, the share ACL and the NTFS ACL. Each comes from a different collector, at a different time, and any of them can be missing, stale or contradictory.
The application consists of native Windows collectors (PowerShell 7 and .NET), a Python and FastAPI backend that owns all authorization semantics, a PostgreSQL store, and a Next.js web application that renders what the API returns and computes no permissions itself.
02 The problem
The repository README frames the problem this way: “The easy way to build such a tool is to treat missing evidence as absence and print a confident answer. ADG deliberately does not. It keeps the uncertainty in the answer.”
Four behaviours follow from that and are documented as design decisions. Known rights are reported as a lower bound when unseen evidence could widen them. An ambiguous identity mapping is reported as not determined, never as no access. A failed or unreachable collector is never shown as checked, found nothing. A comparison that cannot finish in time says so and presents nothing it did not finish.
03 Architecture
The access logic lives in pure functions with no I/O. An access token is built for one declared access path, both ACLs are evaluated in DACL order, and the results are intersected, which mirrors how Windows performs an access check. Each causal path carries the measured effect of removing it, so a claim such as “removing this changes nothing” is computed rather than inferred.
Uncertainty has a direction. Every gap is a typed finding that may overstate or understate the answer, and the findings fold into one of four certainties: certain, at_least, at_most or uncertain. They are never averaged into a score. Collection coverage is tracked per scope as two separate facts: what the latest scan did (collected, partial, unavailable, failed, running) and how fresh the held evidence is (current, stale, none).
The same engine, API and database serve the demo and a production deployment. Demo Mode is a deployment setting, not a switch in the interface: it replaces the collectors with a synthetic provider that posts through the real ingestion routes, and the application refuses to start its development authentication mode in a production environment.
04 Implementation
A risk evaluation applies eleven deterministic rules, among them broad access granted to Everyone or Domain Users, unresolved SIDs on an ACL, broken inheritance, deep group nesting and redundant access paths. Each finding names the rule and the records it matched. Risk totals are read in the context of the collection they were computed over, so a later failed scan does not erase or uncount existing findings.
Point-in-time comparisons are bounded in size and time and end in one of four typed outcomes: complete, incomplete, timed_out or cancelled. A timed-out comparison presents nothing and offers a narrower request, which the demo shows completing and marking as recovered. There is no background job system; bounds rely on in-process checkpoints.
The demo runs on Genesee Press, a deterministic synthetic company with 1,800 people, 205 groups, 33 file servers and three scans.
05 Testing and evaluation
The README documents the full suites as about 6,000 backend unit tests, 1,270 PostgreSQL tests and 1,360 frontend tests, and lists representative tests chosen to demonstrate each claim, for example that SYSTEM over a share is answered “not determined” and never “no grant”, and that a comparison past its window presents no partial list.
A documented evaluation of the NTFS access check compared it with Windows’ own AuthzAccessCheck on generated NTFS trees on a real Windows volume, and reports it verified on 5,626 of 5,628 cases. The repository’s demo reports record each demonstration scenario, its evidence and its limitations.
06 Known limitations
The repository’s release documentation is explicit that the Active Directory collector has never been run against a domain controller and the SMB collector has never read a share ACL from a real file server; their tests run against fixtures. The NTFS collector is the exception. ADG is not presented as production-ready.
Two modelled gaps change verdicts in opposite directions. Privileges such as SeBackupPrivilege, which bypass the DACL, are not modelled, so a backup operator with no ACE is reported as having no access. Deny-only SIDs in a filtered administrator token are treated as enabled, so access can be over-reported for members of a local administrators group. Access-based enumeration is recorded but not evaluated.