Listvero
PingCastle Review: Active Directory Security Health Checks — PingCastle review for Windows domain administrators

Updated · 8 min read

PingCastle Review: Active Directory Security Health Checks

PingCastle audits AD security posture, privilege paths, and stale objects from a jump host—ideal for quarterly domain reviews and audit evidence.

nettitude/PingCastle · GPL-3.0

What it does

PingCastle is an Active Directory security assessment tool maintained in the nettitude/PingCastle GitHub project. It queries LDAP and related interfaces to highlight excessive privileges, trust issues, protocol weaknesses, and GPO risks.

Reports include scoring that helps security and identity teams prioritize remediation before pen tests or acquisitions.

It is widely used in global enterprises as a lightweight alternative to always-on AD analytics suites.

Requirements and permissions needed in an AD domain

Reachability to domain controllers on LDAP (389) or LDAPS (636) with an account that can read directory security descriptors.

Prefer running from a privileged access workstation rather than everyday IT laptops.

Corporate Active Directory forests are rarely homogeneous. Acquisitions bring legacy trusts, conflicting GPO precedence, and service accounts that outlast the vendors who created them. Before any assessment or automation tool touches production, document the target naming contexts, site topology, and which domain controllers are writable for your region. Change advisory boards appreciate a one-page scope: forest name, OU list, maintenance window, and rollback contacts.

Tiered administration matters when you run security utilities. Domain controllers and certificate authorities sit in tier zero; jump servers for administration sit in tier one; general member servers and workstations sit lower. Tools that query LDAP should execute from tier-one privileged access workstations with credential guard enabled where possible. Avoid storing reusable passwords in scheduled tasks; managed service accounts or gMSAs are preferable when the vendor supports Kerberos authentication to SQL or SMB backends.

Replication health influences every directory-linked report. If SYSVOL is inconsistent or the USN stamp is suspect after improper restore, pause broad audits until repadmin and dcdiag show convergence. DNS SRV records must resolve to live hosts; stale records produce false negatives in inventory and security tools alike. Time synchronization within five minutes of UTC prevents Kerberos skew that looks like sporadic authentication failure.

Installation and deployment

Download the latest release ZIP from GitHub, verify hash, and extract to a secured admin tools directory.

Optional: distribute the folder through SCCM/Intune to tier-one admin workstations only.

Package the tool through the same supply chain you use for other admin utilities: verify checksums, store binaries on a read-only tools share, and reference versions in CMDB. If you deploy via Intune Win32 packages, test detection rules on a pilot ring before broad assignment. Software restriction policies or AppLocker should allow signed paths explicitly.

Group Policy can distribute preferences—environment variables pointing to install roots, shortcuts on admin workstations—but avoid publishing powerful audit tools to every desktop. Limit exposure to privileged access workspaces. Document uninstall steps in the same ticket as install so quarterly access reviews stay accurate.

Logging complements point-in-time assessments. Enable advanced audit policy via GPO for directory service changes, account logon, and privileged use categories your SIEM expects. Forward events with agents or Windows Event Forwarding before you claim a tool replaces monitoring. Assessors often ask for sample exports proving who ran an audit utility and where reports were stored.

Delegation models should align with least privilege. Helpdesk teams receive password reset rights on specific OUs, not forest-wide read access to privileged groups. Security teams may receive read-only rights to security descriptors without reset rights. When a GitHub tool requests Domain Admin in its readme, treat that as documentation laziness—design a narrower role and test whether the vendor supports it.

Invoke-WebRequest -Uri "https://github.com/nettitude/PingCastle/releases/latest/download/PingCastle_3.2.1.zip" -OutFile "$env:TEMP\PingCastle.zip"
Expand-Archive "$env:TEMP\PingCastle.zip" -DestinationPath "C:\Tools\PingCastle"

Hands-on usage

Run a health check against a well-known DC and archive the HTML export to your GRC share.

Assign each critical finding to identity engineering with a due date before re-scan.

Tiered administration matters when you run security utilities. Domain controllers and certificate authorities sit in tier zero; jump servers for administration sit in tier one; general member servers and workstations sit lower. Tools that query LDAP should execute from tier-one privileged access workstations with credential guard enabled where possible. Avoid storing reusable passwords in scheduled tasks; managed service accounts or gMSAs are preferable when the vendor supports Kerberos authentication to SQL or SMB backends.

Replication health influences every directory-linked report. If SYSVOL is inconsistent or the USN stamp is suspect after improper restore, pause broad audits until repadmin and dcdiag show convergence. DNS SRV records must resolve to live hosts; stale records produce false negatives in inventory and security tools alike. Time synchronization within five minutes of UTC prevents Kerberos skew that looks like sporadic authentication failure.

Logging complements point-in-time assessments. Enable advanced audit policy via GPO for directory service changes, account logon, and privileged use categories your SIEM expects. Forward events with agents or Windows Event Forwarding before you claim a tool replaces monitoring. Assessors often ask for sample exports proving who ran an audit utility and where reports were stored.

Set-Location "C:\Tools\PingCastle"
.\PingCastle.exe --healthcheck --server dc01.corp.example.com

Security considerations

Exports list privileged users—store on encrypted shares with strict ACLs.

Do not run under personal Domain Admin accounts tied to engineers.

Reports and databases generated by admin tools often exceed the sensitivity of normal file shares. Encrypt data at rest, restrict NTFS permissions to role groups, and integrate DLP scanning if exports contain account lists. Consider watermarking HTML reports with runner identity and timestamp for leak tracing.

Attackers hunt for security tooling on compromised admin hosts. Protect install directories with tamper-resistant monitoring and alert on unexpected new scheduled tasks. Rotate service account passwords after contractor engagements end.

Delegation models should align with least privilege. Helpdesk teams receive password reset rights on specific OUs, not forest-wide read access to privileged groups. Security teams may receive read-only rights to security descriptors without reset rights. When a GitHub tool requests Domain Admin in its readme, treat that as documentation laziness—design a narrower role and test whether the vendor supports it.

Segmented networks challenge installers that assume flat RFC1918 routing. If domain controllers are reachable only through management VLANs, run utilities from jump hosts in that VLAN rather than developer laptops on guest Wi-Fi. Document firewall rules needed for LDAP, LDAPS, SMB, RPC, and any application-specific ports before the first production run.

How to roll back or uninstall

Delete binaries and scheduled tasks; remove temporary audit accounts created for the engagement.

Group Policy can distribute preferences—environment variables pointing to install roots, shortcuts on admin workstations—but avoid publishing powerful audit tools to every desktop. Limit exposure to privileged access workspaces. Document uninstall steps in the same ticket as install so quarterly access reviews stay accurate.

Segmented networks challenge installers that assume flat RFC1918 routing. If domain controllers are reachable only through management VLANs, run utilities from jump hosts in that VLAN rather than developer laptops on guest Wi-Fi. Document firewall rules needed for LDAP, LDAPS, SMB, RPC, and any application-specific ports before the first production run.

Corporate Active Directory forests are rarely homogeneous. Acquisitions bring legacy trusts, conflicting GPO precedence, and service accounts that outlast the vendors who created them. Before any assessment or automation tool touches production, document the target naming contexts, site topology, and which domain controllers are writable for your region. Change advisory boards appreciate a one-page scope: forest name, OU list, maintenance window, and rollback contacts.

Pros and cons

Pros: Executive-friendly HTML reports; No permanent DC agent; Mature misconfiguration catalog; Easy pilot on one DC.

Cons: GPL-3.0 compliance review; Point-in-time only; LDAP-heavy checks need skilled triage.

Replication health influences every directory-linked report. If SYSVOL is inconsistent or the USN stamp is suspect after improper restore, pause broad audits until repadmin and dcdiag show convergence. DNS SRV records must resolve to live hosts; stale records produce false negatives in inventory and security tools alike. Time synchronization within five minutes of UTC prevents Kerberos skew that looks like sporadic authentication failure.

Alternatives

ToolBest forTrade-off
BloodHound CEAttack path analysisGraph DB required
HardeningKittyEndpoint benchmarksNot full AD audit

FAQ

Does PingCastle write to AD?

No for standard health checks—they are read-only.

Which OS hosts can run it?

Windows client or server with .NET support per release notes.

Can auditors accept exports?

Many teams attach HTML reports to SOX or ISO evidence with change tickets.

Replication health influences every directory-linked report. If SYSVOL is inconsistent or the USN stamp is suspect after improper restore, pause broad audits until repadmin and dcdiag show convergence. DNS SRV records must resolve to live hosts; stale records produce false negatives in inventory and security tools alike. Time synchronization within five minutes of UTC prevents Kerberos skew that looks like sporadic authentication failure.

Segmented networks challenge installers that assume flat RFC1918 routing. If domain controllers are reachable only through management VLANs, run utilities from jump hosts in that VLAN rather than developer laptops on guest Wi-Fi. Document firewall rules needed for LDAP, LDAPS, SMB, RPC, and any application-specific ports before the first production run.