On-premises Active Directory
Bring an Active Directory forest into AuditGraph in one of two ways: run the read-only collector, or upload a report from an assessment tool you already use. You can use either one, or both.
- Type
- Source (read-only collection)
- Who
- An Admin (for the collector, an Admin of the whole organization)
- Access granted
- Read-only. The collector sends LDAP search requests only and never writes to Active Directory.
- Where in AuditGraph
- Identity Security › Active Directory
| The collector | Report import | |
|---|---|---|
| What it is | A Windows service you run on a member server. It reads AD continuously over LDAP. | You run an established AD assessment tool yourself and upload its export. |
| Freshness | Continuous, with change polling between full reads. | A point-in-time snapshot, as old as the report. |
| Maturity | Alpha | Alpha |
| Plans | Enterprise | All plans |
| Who sets it up | An Admin of the whole organization | An Admin |
| Where in AuditGraph | Identity Security › Active Directory | Identity Security › Active Directory |
Before you begin
Section titled “Before you begin”Before either option, your AuditGraph contact binds your forest to your organization by its domain SID. After that, the collector’s enrollment code and the upload appear on the Active Directory page. Until then, the page reads No Active Directory forest is bound to this organization.
The collector
Section titled “The collector”How it works
Section titled “How it works”- Read-only. The collector only sends LDAP search requests. It never writes to Active Directory.
- No stored credential. It runs as a group managed service account (gMSA), so no password exists or is stored. It authenticates to the domain controller with the gMSA’s Kerberos identity. AuditGraph never holds a credential for your directory.
- Outbound only. The collector opens HTTPS connections to AuditGraph using mutual TLS. Nothing connects into your network.
- Signed data. Every page of data is signed with a device key created on the server: in the TPM where one exists, otherwise as a non-exportable Windows key. The private key never leaves the server. You approve the key’s fingerprint before AuditGraph accepts any data.
- Least privilege, checked before every run. Before each run, the collector checks that its own account holds no privileged rights: no membership of privileged groups such as Domain Admins, Enterprise Admins or Administrators, and no replication rights such as DS-Replication-Get-Changes(-All), GenericAll, WriteDACL or WriteOwner on the domain. If any is found, the run is refused, and the collector lists exactly what to remove.
- Never read. Passwords, LAPS passwords, BitLocker recovery keys, gMSA passwords and other key material are never requested. If a server returns one anyway, it is dropped and counted.
- What it reads. Users, groups and memberships, computers, managed service accounts, domain trusts, and the owner and permissions (DACL) of the domain object, AdminSDHolder, protected groups and the GPOs linked to the Domain Controllers OU.
Prerequisites
Section titled “Prerequisites”- A Windows member server joined to the domain. Not a domain controller.
- Windows PowerShell 5.1 or later, and local administrator rights to run the installer.
- A gMSA that the server is allowed to retrieve, for example
CONTOSO\gmsa-agcoll$. An ordinary domain account, with no added rights, is enough for LDAP reads. - Outbound HTTPS from the server to the AuditGraph collector address. A proxy is supported.
- From your AuditGraph contact: the installation package, its SHA-256 hash, the ingress URL, and the pinned certificate value(s).
-
Verify the package.
The package is not code-signed yet. Before you install it, check its SHA-256 against the value your AuditGraph contact gave you:
Terminal window Get-FileHash .\<package>.zip -Algorithm SHA256Do not install it if the hash differs.
-
Create an enrollment code.
In AuditGraph, go to Identity Security › Active Directory › your forest › Create enrollment code. The code is single-use, expires one hour after it is created, and is shown once. AuditGraph stores only a keyed hash of it. Save it to a file on the server, for example
C:\Temp\enrollment-code.txt. -
Install the service.
Unzip the package, then run this from an elevated PowerShell in the unzipped folder:
Terminal window .\Install-Collector.ps1 `-IngressBaseUrl 'https://<ingress host>' `-IngressFqdn '<ingress host>' `-PinnedIssuerSpkiSha256 '<64 lower-case hex characters>' `-EnrollmentCodeFile 'C:\Temp\enrollment-code.txt' `-ServiceAccount 'CONTOSO\gmsa-agcoll$'Optional parameters:
-LdapServer <dc fqdn>pins one domain controller (by default the service finds one itself), and-ProxyUrl <url>sends traffic through a proxy.The code is never passed on the command line. The script moves the code file into a protected state folder and deletes your copy, and the service deletes the code after it enrolls. Running the script again upgrades the installation.
-
Approve the device key.
The collector shows its device key fingerprint, a SHA-256 of its public key. In AuditGraph the collector appears as Waiting for your approval. Select it, type the 64-character fingerprint the collector shows (spaces and colons are ignored), and approve. If the fingerprints differ, select Reject this collector.
-
Let it run.
After approval, the collector does its first full read.
Result: the Active Directory page shows each run’s state (Received — waiting to be published, Being published, then published) and the coverage of every capability.
Test the collector
Section titled “Test the collector”| Check | Where | Expected result |
|---|---|---|
| Service running | Get-Service AuditGraphCollector on the server |
Running, starting automatically (delayed). |
| Key approved | Active Directory › your forest | The collector is active, with its key protection shown (TPM-protected key or Non-exportable key (Windows CNG)). |
| Least-privilege check passed | The collector’s last check on the same page | Passed. A refusal lists the groups or rights to remove from the gMSA. |
| Data published | Active Directory › coverage | Each capability is Complete. A capability marked Partial publishes nothing for that data, so it is never shown as empty. |
| Spot-check | Search for a member of Domain Admins | They appear as an AD identity with that group and its tier. |
If the collector stops reporting, AuditGraph keeps showing the last published state, with its age and collector not reporting since …. Nothing is closed or shown as resolved until it reports again.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
| Run refused by the least-privilege check | The gMSA is in a privileged group or holds replication or other powerful rights on the domain. | Remove what the refusal lists. The collector needs no rights beyond an ordinary domain account’s read access. |
| The fingerprint does not match this collector’s device key | You typed a fingerprint from another server, or something is impersonating the collector. | Compare it with the fingerprint on the collector itself. If they really differ, reject the collector. |
| Enrollment code rejected | The code was used already, or more than an hour has passed. | Create a new code and run the installer again. |
| No connection to the ingress | Outbound HTTPS is blocked, or the pinned value is wrong. | Allow outbound HTTPS to the ingress host, or set -ProxyUrl. Check the pin value with your AuditGraph contact. |
Remove the collector
Section titled “Remove the collector”-
Revoke the collector in AuditGraph.
Go to Active Directory › the collector › Revoke this collector, and give a reason. Its certificate is refused from its next request. If it was the directory’s last active collector, the connection is disconnected.
-
Uninstall the service.
On the server, run
.\Uninstall-Collector.ps1from the package folder (elevated). -
Delete the gMSA if nothing else uses it.
Report import
Section titled “Report import”Upload the export of an Active Directory assessment tool you already run. AuditGraph maps its objects, memberships and the tool’s own findings into the identity graph. It links AD users to the Microsoft Entra users they are synchronized to, by SID. Linked accounts are not merged.
Supported reports
Section titled “Supported reports”| Tool | What to upload | How to produce it |
|---|---|---|
| PingCastle | The healthcheck XML, ad_hc_<domain>.xml |
On a domain-joined workstation, run PingCastle’s healthcheck for your domain. Upload the .xml file (the HTML report is not needed). |
| Purple Knight (Semperis) | The scan results as CSV: one .csv file, or a .zip of the CSV files |
Run Purple Knight on a domain-joined workstation, select the AD environment, run the scan, and save the results as CSV. |
| SharpHound (BloodHound Community Edition) | The output .zip (or its users, groups, computers and domains .json files) |
Get SharpHound from your BloodHound CE instance (Download Collectors), and run it with the collection method DCOnly. |
Follow each vendor’s own documentation for running the tool. Each tool reports different data, and the page says what is missing and which other tool’s export would cover it. AuditGraph maps each tool’s own severity to its NIST SP 800-30 levels.
What report import does not include: ACL paths (the tools’ own reports show them; the collector reads the critical ones), Group Policy contents (the tools’ findings about GPOs are imported), and logged-on sessions.
Upload
Section titled “Upload”-
Open the upload.
Go to Identity Security › Active Directory › your forest › Or upload a report.
-
Choose the file.
The limit is 100 MB per upload.
Result: the upload appears under Uploaded reports and is published like any other collection.
Test the import
Section titled “Test the import”| Check | Expected result |
|---|---|
| The report appears in Uploaded reports | Its state is published. Failed — upload it again means the file could not be read. |
| Report age | Current up to 30 days after the report was generated, Aging from 30 to 90 days, Stale after 90. Re-run the tool and upload again to refresh it. |
| Coverage | Items the tool does not export read Not collected — no imported report contains it. They are never shown as 0. |
Remove imported data
Section titled “Remove imported data”Uploaded reports belong to the forest’s connection. Disconnecting the forest removes them under the normal retention rules. See Disconnecting and data retention.