☼
⌃
☰

PingCastle

Table of Contents

Active Directory security assessment tool. Runs a broad set of read-only checks against a domain and produces a single risk score (0–100, lower is better) split across four categories, plus a maturity level. Primarily a defensive/audit tool, but useful in a pentest context as a fast way to surface AD misconfigurations worth chasing manually — it points at weaknesses, it doesn't exploit them.

Related: Active Directory Bloodhound Kerberoasting Penetration Testing Methodology

Running a Scan

Requires only a standard authenticated domain user — no elevated privileges needed for the default health check.

SHELL
# Interactive menu (prompts for domain/server)
PingCastle.exe

# Direct health check against a specific domain
PingCastle.exe --healthcheck --server DOMAIN.LOCAL

# Health check using current domain context
PingCastle.exe --healthcheck

Output is an HTML report named `adhc_<domain>.html` in the working directory — open it directly, no separate viewer required.

Risk Categories

Letter Category Covers
S Stale Objects Inactive accounts/computers, old passwords
P Privileged Accounts Excessive group membership, admin count anomalies
T Trusts Insecure or unnecessary domain trust relationships
A Anomalies Misconfigurations: unconstrained delegation, ACL issues, weak GPO settings

Each category scores independently; the overall score is the highest of the four, not an average — one severe category alone can flag the whole domain as high risk.

Targeted Scanners

For faster, more focused checks instead of the full health check:

SHELL
# Find shares readable by Everyone/Authenticated Users
PingCastle.exe --scanner smb_share --server DOMAIN.LOCAL

# Find Kerberoastable accounts (SPN set on user accounts)
PingCastle.exe --scanner spn --server DOMAIN.LOCAL

# Check LAPS/BitLocker deployment coverage
PingCastle.exe --scanner laps_bitlocker --server DOMAIN.LOCAL

Reading the Report

  • Executive summary at the top gives the overall score and maturity level (1–5, based on the ANSSI maturity model — lower is worse)
  • Each risk category expands into individual rule violations with a point value; higher point values are the findings worth prioritising in a manual follow-up
  • Anomalies (A) is usually the most pentest-actionable category — unconstrained delegation and dangerous ACLs found here translate directly into BloodHound-style attack paths worth verifying manually

Tips

  • Run this early in AD enumeration — it's fast, low-noise (read- only, standard user context), and gives a prioritised list of what's worth digging into manually rather than enumerating blind
  • Cross-reference Anomalies findings against BloodHound — PingCastle tells you a dangerous ACL or delegation setting exists, BloodHound shows you the actual attack path through it
  • The HTML report is self-contained (no external assets) — easy to transfer off an isolated engagement network for offline review
  • Requires .NET Framework on the host running it — usually run from an attacker-controlled Windows box or jump host, not the target DC itself