For graph and advanced features, download the full Intel Codex Vault and open it in Obsidian.
Active Directory Pentesting SOP (Authorized)
Authorized environments only. This SOP covers defensive assessment of Active Directory environments.
Table of Contents
- Active Directory Pentesting SOP (Authorized)
- Table of Contents
- Pre-Engagement & Authorization
- 1. Engagement Setup
- 2. Domain Enumeration (Read-Only)
- 3. BloodHound Analysis
- 4. Privilege Escalation Paths
- 5. ACL Abuse & Dangerous Permissions
- 6. Group Policy Object (GPO) Review
- 7. Password Policy & Account Security
- 8. Service Accounts & Credentials
- 9. Monitoring & Detection Review
- 10. Attack Simulation (Controlled Testing)
- 11. Common Misconfigurations Checklist
- 12. Evidence Collection
- 13. Reporting
- 14. Safety & Legal
- 15. Tools Reference
- 16. Reference Resources
- 17. Common Pitfalls
- Legal & Ethical Considerations
- Related SOPs
Pre-Engagement & Authorization
Active Directory testing reaches the highest-trust assets in the environment (Domain Controllers, replication APIs, the KDC's krbtgt key). Without explicit, written authorization for each privileged path you intend to walk, a single mis-scoped Kerberoast or DCSync rehearsal becomes a CFAA / Computer Misuse Act / Cybercrime Directive matter — see Legal & Ethics for the canonical legal framework. Engagement-time logistics (time windows, blackout schedule, rollback verification) are captured separately in §1; this section is the authorization gate that must close before §1 begins.
Authorization Checklist
- Signed Rules of Engagement enumerates which privilege tiers are in-scope: workstation / server admin, Domain Admin, Enterprise Admin, Schema Admin,
krbtgtkey (Golden Ticket simulation). Anything not listed is out of scope. - Sacrificial accounts and a sacrificial host pool are identified in writing — testing uses these, not real users or live workstations.
- Hash-extraction techniques explicitly authorized or denied: DCSync (
DRSUAPIreplication),NTDS.dit+SYSTEMhive offline export, LSASS dump on member servers, DPAPI master-key extraction. - Kerberos delegation testing scope set: Kerberoasting volume cap, AS-REP roasting opt-in list, S4U2Self / S4U2Proxy abuse on which hosts, RBCD write attempts on which OUs.
- Lateral movement boundaries: which forests, trusts, and child domains are reachable; which are off-limits. Cross-forest or cross-tenant pivots require separate written authorization.
- Blue-team coordination confirmed with whoever runs Microsoft Defender for Identity (MDI; formerly Azure ATP, and the replacement for the on-premises ATA, whose extended support ended in January 2026), Defender XDR, the SIEM, and the SOC bridge. Names plus 24/7 contacts captured. Emergency-stop signal agreed.
- Expected MDI alerts agreed per rehearsed technique, and "raised / not raised" recorded for each. MDI added AD alerts in 2026 for RBCD attribute change and RBCD authentication (March), DCSync and Entra Connect account authentication (June). Sensor v3.0.8 and later enables RPC auditing on DCs, and from October 2026 automatic sensor v3.x activation and Windows auditing configuration are being switched on by default in a gradual rollout, so audit coverage can change mid-engagement [verify 2026-11-05].
- Recovery preconditions met: tested DC system-state backup, AD Recycle Bin enabled, replication healthy (
repadmin /replsummary), and a documentedkrbtgtreset procedure if Golden Ticket simulation is in scope.
Lab Environment Requirements
- Standalone AD lab forest matching the target's domain and forest functional level and DC OS builds, which affect Kerberos encryption types, claims and PAC behavior. Current functional levels are Windows Server 2012 R2, 2016 and 2025; DCs on Windows Server 2019 and 2022 use the 2016 level [verify 2026-11-05]. Do not rehearse against the target's DCs.
- If the target runs Windows Server 2025 DCs, build them in the lab too. The 2025 level is DomainLevel / ForestLevel 10, and the KDC no longer issues RC4 TGTs. New WS2025 deployments require LDAP signing and set LDAP channel binding to When supported; an in-place upgrade keeps an existing signing policy. Credential Guard is on by default on domain-joined Windows Server 2025 members that meet its requirements, but not on DCs: Microsoft says enabling it on DCs "isn't recommended" because it "doesn't provide any added security to domain controllers" (Credential Guard) [verify 2026-11-05].
- Sacrificial DC with at least one replication partner, so high-impact primitives (DCSync, AdminSDHolder ACL changes,
krbtgtrotation) and their replication effects can be observed without risking the only DC. - BloodHound CE collector (github.com/SpecterOps/BloodHound; legacy BloodHound 4.x, now
SpecterOps/BloodHound-Legacyand formerlyBloodHoundAD/BloodHound, is deprecated and unmaintained since 2023 [verify 2026-11-05]) run end-to-end against the lab first to confirm collector version, ingest schema, and SharpHound options match the target's PowerShell / .NET tolerance. - Coercion primitives (PetitPotam /
MS-EFSR, PrinterBug /MS-RPRN, DFSCoerce /MS-DFSNM; Coercer wraps them) verified against a lab target exposing the same RPC interfaces, with a lab capture host, before being pointed at production. Treat each call against a production service as a change-window action. - Golden Ticket, Silver Ticket, and Diamond / Sapphire Ticket forging tested in the lab against a sacrificial
krbtgt; never extract or forge against a productionkrbtgtwithout dedicated written approval and akrbtgt-rotation runbook. - AD Certificate Services abuse (ESC1–ESC17 as of Certipy 5.1.0 [verify 2026-11-05]) rehearsed against a lab CA — Certipy /
certutilenrollment requests on production CAs are loud and may issue real certificates that need revocation.
Disclosure-Ready Posture
Stand up the evidence pipeline before the first ticket request, not after the report deadline. Capture every SPN read, ACL diff (Get-DomainObjectAcl before/after), GPO-version delta, AdminSDHolder modification, and SACL change at the moment it happens — chain-of-custody per Collection Log (UTC timestamps, source IP, operator handle, SHA-256 of each artifact). Kerberos ticket exports (.kirbi, ccache) hold replayable credentials: encrypt at rest, store separately from the report deliverable, and schedule destruction in the engagement letter — OPSEC framing per OPSEC. Password-spraying attempts get logged with timestamp, source IP, and targeted sAMAccountName so the blue team can correlate against 4625 / 4771 events. Coordinate a SACL-preservation request with the SOC up front — 4662 (DS-Replication-Get-Changes), 4768 / 4769 (TGT / TGS), 4624 Type 3, and Defender for Identity alerts are the primary corroboration. Defang any IOC that ships in the final write-up and route the hand-off through Reporting & Disclosure; tickets and hashes never travel in the same channel as the executive summary.
1. Engagement Setup
Pre-Engagement
- Obtain written authorization (signed Rules of Engagement)
- Define scope: domains, forests, trusts, target OUs/hosts
- Identify test accounts vs production accounts
- Set time windows and blackout periods (avoid business-critical hours)
- Establish emergency contacts (IT, security team, change management)
- Confirm rollback procedures exist
- Determine if testing lab environment or limited production scope
Objectives (Examples)
- Identify misconfigurations enabling lateral movement and privilege escalation
- Validate detection/monitoring efficacy for AD attack paths
- Test privileged group memberships and delegation
- Review tiering model implementation (method: Tier Zero Review)
- Review hybrid identity servers as Tier 0. Microsoft says the Entra Connect server "must be treated as a Tier 0 component"; for AD FS, only AD admins and AD FS admins should hold admin rights. Microsoft's AD DS tier model lists AD FS, AD CS and Entra Connect in Tier 0 (tier model). Check who administers each server, and confirm AD FS carries the fix for CVE-2026-56155 (CISA KEV, added 2026-07-14). Since 2026-07-01, Entra ID blocks hard-match takeover of cloud users that hold or are eligible for a privileged Entra role [verify 2026-11-05]. Cloud-side testing needs separate authorization; see Cloud Pentesting.
- Assess Kerberos security (Kerberoasting, AS-REP roasting)
- Evaluate GPO security and deployment
2. Domain Enumeration (Read-Only)
Basic Domain Information
# Domain information
Get-ADDomain
Get-ADForest
# Domain Controllers
Get-ADDomainController -Filter *
# Domain trusts
Get-ADTrust -Filter *
nltest /domain_trusts
# Domains in this forest (trusts, including forest trusts, come from Get-ADTrust above)
Get-ADForest | Select-Object -ExpandProperty Domains
User Enumeration
# All domain users
Get-ADUser -Filter * -Properties *
# Enabled users only
Get-ADUser -Filter {Enabled -eq $true} -Properties *
# Users with AdminCount=1 (protected accounts)
Get-ADUser -Filter {AdminCount -eq 1} -Properties AdminCount
# Users with password not required
Get-ADUser -Filter {PasswordNotRequired -eq $true}
# Users with password never expires
Get-ADUser -Filter {PasswordNeverExpires -eq $true}
# Users with no password expiration and enabled
Get-ADUser -Filter {(PasswordNeverExpires -eq $true) -and (Enabled -eq $true)}
# Service Principal Names (for Kerberoasting)
Get-ADUser -Filter 'ServicePrincipalName -like "*"' -Properties ServicePrincipalName
# Pre-Windows 2000 Compatible Access members (Builtin S-1-5-32-554; grants read access to all users and groups)
Get-ADGroupMember -Identity "S-1-5-32-554"
# User objects whose primary group is Domain Computers (RID 515): non-default, review each
Get-ADUser -Filter * -Properties PrimaryGroupID | Where-Object {$_.PrimaryGroupID -eq 515}
Group Enumeration
# All domain groups
Get-ADGroup -Filter * -Properties *
# Privileged groups
Get-ADGroupMember "Domain Admins"
Get-ADGroupMember "Enterprise Admins"
Get-ADGroupMember "Schema Admins"
Get-ADGroupMember "Administrators"
Get-ADGroupMember "Account Operators"
Get-ADGroupMember "Backup Operators"
Get-ADGroupMember "Print Operators"
Get-ADGroupMember "Server Operators"
# Nested group memberships (recursive)
Get-ADGroupMember "Domain Admins" -Recursive
# Groups with AdminCount=1
Get-ADGroup -Filter {AdminCount -eq 1}
Computer Enumeration
# All domain computers
Get-ADComputer -Filter * -Properties *
# Domain Controllers (516 = writable DCs, 521 = RODCs; Get-ADDomainController -Filter * is authoritative)
Get-ADComputer -Filter 'PrimaryGroupID -eq 516 -or PrimaryGroupID -eq 521' -Properties OperatingSystem,PrimaryGroupID
# Servers
Get-ADComputer -Filter {OperatingSystem -like "*Server*"} -Properties OperatingSystem
# Workstations
Get-ADComputer -Filter {OperatingSystem -like "*Windows 10*" -or OperatingSystem -like "*Windows 11*"}
# Computers with unconstrained delegation
Get-ADComputer -Filter {TrustedForDelegation -eq $true} -Properties TrustedForDelegation
# Computers with constrained delegation
Get-ADComputer -Filter 'msDS-AllowedToDelegateTo -like "*"' -Properties msDS-AllowedToDelegateTo
OU Structure
# List all OUs
Get-ADOrganizationalUnit -Filter * | Select-Object Name,DistinguishedName
# Check GPO links per OU
Get-ADOrganizationalUnit -Filter * | Select-Object Name,LinkedGroupPolicyObjects
3. BloodHound Analysis
Data Collection
Using SharpHound (Windows):
# SharpHound CE collector — pair with the BloodHound CE backend version
# https://github.com/SpecterOps/SharpHound (legacy BloodHound 4.x, SpecterOps/BloodHound-Legacy, is deprecated)
# Run collection (all methods)
.\SharpHound.exe -c All
# Lowest-footprint collection: queries only the domain controller, no connections to other domain-joined hosts
.\SharpHound.exe -c DCOnly
# Session, LocalAdmin, RDP, DCOM and PSRemote connect to domain computers: scope them, or add --Stealth,
# which drops LoggedOn and the local-group and registry methods (adding GPOLocalGroup) and limits session
# collection to likely session hosts; WebClientService, SmbInfo and LdapServices still contact computers
.\SharpHound.exe -c Session --Stealth
# Specify domain
.\SharpHound.exe -c All -d domain.local
# Exclude Domain Controllers from session enumeration (less noisy)
.\SharpHound.exe -c All --ExcludeDCs
Collection-method names above are valid in SharpHound v2.17.1, which also offers CARegistry, DCRegistry, CertServices, Site, WebClientService, LdapServices, SmbInfo, NTLMRegistry and AzureRegistry; check the installed collector's help output, as the set changes between releases [verify 2026-11-05].
Using BloodHound.py (Linux):
# Install the CE build: PyPI `bloodhound-ce` (dirkjanm/BloodHound.py, bloodhound-ce branch) [verify 2026-11-05]
pipx install bloodhound-ce
# Run collection (password from an environment variable, not typed on the command line)
bloodhound-ce-python -u username -p "$BH_PASS" -d domain.local -dc dc01.domain.local -c All --zip
# With NTLM hash
bloodhound-ce-python -u username --hashes :NTLMhash -d domain.local -dc dc01.domain.local -c All --zip
BloodHound.py ships two builds:
bloodhound-ce/bloodhound-ce-pythonfor BloodHound CE, andbloodhound/bloodhound-pythonfor legacy BloodHound 4.2–4.3 only.--ziponly compresses the JSON output into one archive for upload; it does not change the schema [verify 2026-11-05]. Install one build per environment, or isolate them with pipx or a venv.-c DCOnlymakes no computer connections.
Import & Analysis
- Install and start BloodHound CE with the BloodHound CLI, a Docker Compose wrapper that pulls the images (Postgres, Neo4j and the BloodHound app) and writes the compose file. No separate Neo4j install is needed:
wget https://github.com/SpecterOps/bloodhound-cli/releases/latest/download/bloodhound-cli-linux-amd64.tar.gz
tar -xvzf bloodhound-cli-linux-amd64.tar.gz
./bloodhound-cli install # prints a random password for the `admin` user
# Lost the password: ./bloodhound-cli resetpwd
# UI: http://localhost:8080/ui/login (the default compose file binds to 127.0.0.1 only)
- Import collected data: upload the SharpHound CE or
bloodhound-ce-pythonZIP via the BloodHound CE web UI (Quick Upload).
Legacy BloodHound 4.x only (deprecated): standalone Neo4j (
neo4j console, web console on port 7474, defaultneo4j/neo4jchanged at first login), the Electron desktop client (./BloodHound --no-sandboxon Linux), and dragging JSON into that client [verify 2026-11-05].
Pre-Built Queries to Run
BloodHound CE names and groups, as of v9.9.1 [verify 2026-11-05]:
Domain Information:
- All Domain Admins
- Map domain trusts
- Locations of Tier Zero / High Value objects
Dangerous Privileges:
- Principals with DCSync privileges
- Principals with foreign domain group membership
- Computers where Domain Users are local administrators
- Computers where Domain Users can read LAPS passwords
- Workstations where Domain Users can RDP
- Servers where Domain Users can RDP
- Domain Admins logons to non-Domain Controllers
Kerberos Interaction:
- All Kerberoastable users
- Kerberoastable members of Tier Zero / High Value groups
- AS-REP Roastable users (DontReqPreAuth)
Shortest Paths:
- Shortest paths to Domain Admins
- Shortest paths to Tier Zero / High Value targets
- Shortest paths from Owned objects
- Shortest paths to Domain Admins from Kerberoastable users
- Shortest paths to systems trusted for unconstrained delegation
The Active Directory Certificate Services, Active Directory Hygiene, AD Sites and NTLM Relay Attacks groups support §4 AD CS, §7 and the coercion checks. Constrained delegation has no CE pre-built query; use the msDS-AllowedToDelegateTo enumeration in §2 and §4.
Custom Cypher Queries
// BloodHound CE marks Tier Zero with the Tag_Tier_Zero label and owned objects with Tag_Owned [verify 2026-11-05]
// `system_tags CONTAINS 'admin_tier_0'` is a deprecated fallback; legacy 4.x datasets use highvalue / owned properties.
// Users with path to Domain Admins (excluding direct members)
// Replace DOMAIN.LOCAL, or match the RID instead: (g:Group) WHERE g.objectid ENDS WITH '-512'
MATCH (u:User),(g:Group {name:"DOMAIN ADMINS@DOMAIN.LOCAL"}),
p=shortestPath((u)-[*1..]->(g))
WHERE NOT (u)-[:MemberOf]->(g)
RETURN p
// Computers with sessions from Tier Zero group members
MATCH (c:Computer)-[:HasSession]->(u:User)-[:MemberOf*1..]->(g:Group:Tag_Tier_Zero)
RETURN c.name, u.name, g.name
// Users with GenericAll on computers
MATCH (u:User)-[:GenericAll]->(c:Computer)
RETURN u.name, c.name
// Owned users with paths to Tier Zero groups
// Many-to-many shortestPath is expensive; scope to one owned principal where possible
MATCH p=shortestPath((u:User:Tag_Owned)-[*1..]->(g:Group:Tag_Tier_Zero))
WHERE u<>g
RETURN p
LIMIT 1000
Tier Zero Review
Method for the §1 objective "Review tiering model implementation". Microsoft's enterprise access model builds on the AD tier model and widens Tier 0 into the control plane.
- Define Tier 0 in writing before testing: DCs, AD CS CAs, Entra Connect and AD FS servers (all Tier 0 in Microsoft's AD DS tier model; see §1), the accounts and groups that administer them, and every system that can control them. Compare the list with BloodHound's Tier Zero zone (
Tag_Tier_Zero) and record the differences. - AD Sites: BloodHound v9.8.0 (2026-10-07) classifies AD Site objects, and Site Server objects that reference DCs, as Tier Zero, because control of a site lets an attacker compromise its assets, DCs included, through site-linked GPOs. Collect Sites data with SharpHound v2.17.0 or later and review the AD Sites pre-built queries [verify 2026-11-05].
- No control edges into Tier Zero: run "Shortest paths to Tier Zero / High Value targets" and "Paths from Domain Users to Tier Zero / High Value targets". Fail = any non-Tier-0 principal with a path in.
- No Tier 0 credentials on lower tiers: run "Domain Admins logons to non-Domain Controllers" and the session query above. Fail = any Tier 0 session on a non-Tier-0 host.
- Logon restrictions: check whether Tier 0 accounts are confined by authentication policy silos (
Get-ADAuthenticationPolicySilo -Filter * | Format-Table Name, Enforce) or by deny-logon user rights, such as Deny log on locally, on lower-tier hosts. Record the control or its absence.
4. Privilege Escalation Paths
Kerberoasting
Identify targets:
# PowerShell
Get-ADUser -Filter 'ServicePrincipalName -like "*"' -Properties ServicePrincipalName,MemberOf,msDS-SupportedEncryptionTypes
Request service tickets (for offline cracking):
# Using Rubeus (requests the highest encryption type each account supports)
.\Rubeus.exe kerberoast /outfile:kerberoast_hashes.txt
# Using Invoke-Kerberoast (PowerView, legacy: the PowerSploit repo has been archived and read-only since 2020)
Invoke-Kerberoast -OutputFormat Hashcat | fl
Crack with hashcat:
# Pick the mode from the hash prefix (hashcat v8.0.0 module names) [verify 2026-11-05]
# $krb5tgs$23$ (RC4) -> -m 13100 $krb5tgs$17$ (AES128) -> -m 19600 $krb5tgs$18$ (AES256) -> -m 19700
hashcat -m 13100 kerberoast_hashes.txt wordlist.txt
RC4 is no longer the KDC default. With the April 14, 2026 Windows updates (KB5073381, CVE-2026-20833), DCs default to AES-SHA1 (
DefaultDomainSupportedEncTypes0x18) for accounts with no explicitmsDS-SupportedEncryptionTypes, unless a DC hasDefaultDomainSupportedEncTypesset explicitly, which these updates leave in effect (KDCSVC event 205 flags an explicit value that allows RC4), and updates from July 2026 remove theRC4DefaultDisablementPhaserollback value [verify 2026-11-05]. Expect etype 18 hashes, which use PBKDF2 with 4,096 iterations and crack far more slowly than RC4, so rate the finding on password strength. Any RC4 (etype 23) service ticket the KDC still issues is a finding in its own right.
Encryption-type audit:
# Accounts that explicitly allow RC4 (bit 0x4 of msDS-SupportedEncryptionTypes)
Get-ADObject -LDAPFilter '(msDS-SupportedEncryptionTypes:1.2.840.113556.1.4.803:=4)' -Properties msDS-SupportedEncryptionTypes,servicePrincipalName
# RC4 tickets actually issued: Microsoft's Get-KerbEncryptionUsage.ps1 (github.com/microsoft/Kerberos-Crypto),
# run as an administrator on a DC with the DC owners; it reads events 4768/4769
.\Get-KerbEncryptionUsage.ps1 -Encryption RC4 -SearchScope AllKdcs
Pass = no RC4 tickets issued, and every account with the RC4 bit is a documented exception. Read DefaultDomainSupportedEncTypes under HKLM\SYSTEM\CurrentControlSet\Services\Kdc on every DC: an explicit value replaces the AES-only default, and one that includes RC4 (bit 0x4) is a finding. Also collect the KDCSVC System events 201–209 from every DC (KB5073381).
Remediation recommendations:
- Use gMSA, or dMSA where DCs run Windows Server 2025, for service accounts. Where neither is possible, set a randomly generated password of at least 14 characters (Microsoft's minimum; longer is better).
- Keep RC4 out of
msDS-SupportedEncryptionTypeson SPN accounts (KB5073381). - Monitor 4769 for unusual TGS volume and for Ticket Encryption Type 0x17 (RC4).
AS-REP Roasting
Identify targets:
# Users with "Do not require Kerberos preauthentication"
Get-ADUser -Filter {DoesNotRequirePreAuth -eq $true} -Properties DoesNotRequirePreAuth
Request AS-REP hashes:
# Using Rubeus (output defaults to John format)
.\Rubeus.exe asreproast /outfile:asrep_hashes.txt
# Using Impacket (Linux): asks for RC4 first and retries with AES if the KDC refuses RC4
GetNPUsers.py domain.local/ -usersfile users.txt -dc-ip 10.0.0.1
Crack with hashcat:
# $krb5asrep$23$ or Rubeus' John form ($krb5asrep$user...) -> -m 18200
# $krb5asrep$17$ -> -m 32100 $krb5asrep$18$ -> -m 32200
hashcat -m 18200 asrep_hashes.txt wordlist.txt
Remediation:
- Enable Kerberos pre-authentication for all accounts
- Alert on 4768 events with Pre-Authentication Type 0 for accounts outside the documented exception list
Unconstrained Delegation
Find computers/users with unconstrained delegation:
# Computers, excluding writable DCs (516), which are trusted for delegation by default
Get-ADComputer -Filter {TrustedForDelegation -eq $true -and PrimaryGroupID -ne 516} -Properties TrustedForDelegation
# Users
Get-ADUser -Filter {TrustedForDelegation -eq $true} -Properties TrustedForDelegation
Report only non-DC hits, as Defender for Identity does: a DC's default userAccountControl (0x82000) includes trusted-for-delegation.
Risk:
- Any account that authenticates to the host, unless marked "Account is sensitive and cannot be delegated", can be impersonated by it to any service
- If admin connects, attacker can extract TGT and impersonate them
Remediation:
- Remove unconstrained delegation (use constrained instead)
- Protect sensitive accounts with "Account is sensitive and cannot be delegated"
Constrained Delegation
Find accounts with constrained delegation:
Get-ADComputer -Filter 'msDS-AllowedToDelegateTo -like "*"' -Properties msDS-AllowedToDelegateTo
Get-ADUser -Filter 'msDS-AllowedToDelegateTo -like "*"' -Properties msDS-AllowedToDelegateTo
Risk:
- Kerberos only: can act as users who authenticated to it, but only toward the SPNs in
msDS-AllowedToDelegateTo - With protocol transition (
TrustedToAuthForDelegation/ "Use any authentication protocol"), can request tickets on behalf of any user - Any entry that targets the
krbtgtservice is critical (PingCastle 4.1.2.0 ruleP-DelegationKrbtgt): it gives the equivalent of a TGT for any user and surviveskrbtgtpassword rotation
Remediation:
- Prefer Resource-Based Constrained Delegation (RBCD): the resource owner controls who can delegate, expressed via
msDS-AllowedToActOnBehalfOfOtherIdentityon the target account — flipping the trust direction relative to classic Constrained Delegation. - Audit
msDS-AllowedToActOnBehalfOfOtherIdentitywrites for unexpected principals. - Monitor 4769 events whose Transited Services field is populated (constrained delegation / S4U2Proxy), and alert when the delegating account is not an expected one.
Resource-Based Constrained Delegation (RBCD) abuse
# Computers with any RBCD delegator configured: review each principal in the descriptor
Get-ADComputer -Filter * -Properties msDS-AllowedToActOnBehalfOfOtherIdentity |
Where-Object { $_.'msDS-AllowedToActOnBehalfOfOtherIdentity' }
ms-DS-MachineAccountQuota defaults to 10: any authenticated user, through the default Add workstations to domain right on DCs, can create up to 10 computer accounts. A computer account the attacker controls is a common prerequisite for RBCD abuse. Audit the value:
Get-ADDomain | Select-Object -ExpandProperty DistinguishedName |
ForEach-Object { Get-ADObject -Identity $_ -Properties ms-DS-MachineAccountQuota }
The quota is an attribute of the domain head object, not a GPO setting. A GPO can only change the separate Add workstations to domain right (
SeMachineAccountPrivilege), which Authenticated Users hold on DCs by default [verify 2026-11-05]. Pass: quota0(Defender for Identity's recommendation) and computer creation delegated to a named group. Detection: event 4741 for computer accounts created by non-admin principals;ms-DS-CreatorSIDon a computer object records the user who joined it. Mitigation: set the quota to0and restrict Add workstations to domain.
Delegated Managed Service Accounts (dMSA)
Windows Server 2025 adds the delegated Managed Service Account (dMSA), which replaces a legacy service account through a migration; msDS-ManagedAccountPrecededByLink on the dMSA names the account it supersedes. Akamai's "BadSuccessor" research (May 2025) showed that, in any domain with at least one Windows Server 2025 DC, a principal allowed to create a dMSA in any OU could use that link to act with the privileges of any user. Microsoft fixed the direct escalation as CVE-2025-53779 in the August 2025 updates [verify 2026-11-05]. After the fix, a dMSA still lets an attacker take over any account they already have write access to (SpecterOps, October 2025), so dMSA-create rights remain a finding.
- Scope: run this check if any DC runs Windows Server 2025.
- Enumerate non-Tier-0 principals holding CreateChild (all child objects, or
msDS-DelegatedManagedServiceAccount), GenericAll, WriteDACL or WriteOwner on OUs. Akamai'sGet-BadSuccessorOUPermissions.ps1(github.com/akamai/BadSuccessor) needs only domain read rights; it excludes built-in privileged groups and does not expand group membership. NetExec'sbadsuccessorLDAP module (in release v1.5.1) and Impacket'sbadsuccessor.pyin its defaultsearchaction (Impacket 0.13.1) report the same. Use read-only modes only. - Pass: only Tier 0 administrators hold these rights, and every Windows Server 2025 DC has the August 2025 update.
- Detection: SACL auditing for creation of
msDS-DelegatedManagedServiceAccountobjects (event 5137) and for writes tomsDS-ManagedAccountPrecededByLink(event 5136); Directory Service event 2946 when a dMSA authenticates. Microsoft also documents events 307 (dMSA Migration), 308 (dMSA Permission Add) and 309 (dMSA Key Fetch) in theMicrosoft\Windows\Security-Kerberos\Operationallog, which is disabled by default. - Mitigation: remove delegated create-child rights on OUs from non-Tier-0 principals, and treat write access to any account combined with dMSA-create rights as a takeover path.
AD CS Abuse (ESC1–ESCn)
The Certified Pre-Owned paper (SpecterOps, June 2021) introduced ESC1–ESC8. Later research extended the list, and the Certipy wiki documents ESC1–ESC17 as of Certipy 5.1.0 (June 2026) [verify 2026-11-05]. The wiki notes that certipy find does not directly detect ESC5, ESC10, ESC12 or ESC14; review those by hand. Treat any AD CS environment as in-scope for an authorized AD assessment.
Enumerate templates and CAs (Certipy):
# Reference: https://github.com/ly4k/Certipy
# Find vulnerable templates / misconfigured CAs (password from an environment variable)
certipy find -u user@domain.local -p "$CERTIPY_PASS" -dc-ip 10.0.0.1 -vulnerable
# Common ESC findings (paraphrased — confirm exact ESC IDs against current Certipy output):
# ESC1 — Subject in request, EnrolleeSuppliesSubject + Client Auth EKU
# ESC2 — Any Purpose EKU
# ESC3 — Enrollment Agent EKU
# ESC4 — Vulnerable template ACL (write to template)
# ESC6 — EDITF_ATTRIBUTESUBJECTALTNAME2 on the CA; still flagged by Certipy 5.1.0. Not enough on its own
# where issued certs carry the SID security extension; exploitable together with ESC9 or ESC16
# ESC7 — Vulnerable CA ACL (ManageCA / ManageCertificates)
# ESC8 — NTLM relay to AD CS web enrollment (HTTP/HTTPS)
# ESC9–ESC17 — see the Certipy wiki's Privilege Escalation page for the current set [verify 2026-11-05]
# ESC16 — CA omits the SID security extension (OID 1.3.6.1.4.1.311.25.2) from every certificate
# ESC17 — Enrollee-supplied subject + Server Authentication EKU (server impersonation, e.g. WSUS)
Patching context: KB5014754 (May 10, 2022 updates) introduced certificate strong mapping in Compatibility mode. DCs moved to Full Enforcement with the February 2025 security update. The option to roll back to Compatibility mode ended with the September 9, 2025 update, after which the StrongCertificateBindingEnforcement registry key is no longer supported [verify 2026-11-05]. A fully patched DC denies certificate authentication it cannot strongly map, so a weak-mapping finding today means a missing update or a missing SID extension (ESC9 / ESC16), not a rollout window.
Remediation pointers:
- Remove
EnrolleeSuppliesSubject+ Client Auth EKU (ESC1) or Server Auth EKU (ESC17) combinations on templates not intended for SAN-flexible enrollment. - Clear
EDITF_ATTRIBUTESUBJECTALTNAME2on the CA (ESC6), and keep OID1.3.6.1.4.1.311.25.2out of the CA'spolicy\DisableExtensionList(ESC16). - Lock down
ManageCA/ManageCertificatesto a minimal Tier-0 group. - Disable AD CS web enrollment over HTTP and require Extended Protection for Authentication (EPA) on HTTPS endpoints to block NTLM relay (ESC8).
- Audit certificate issuance with Event ID 4886/4887 on the CA.
Coercion Primitives
NTLM relay attacks against AD CS / LDAP / SMB rely on coerced authentication. Each primitive has a reference proof of concept:
| Primitive | Trigger | Reference PoC |
|---|---|---|
| PetitPotam | MS-EFSR EfsRpcOpenFileRaw (the unauthenticated LSARPC path was blocked by the August 2021 CVE-2021-36942 update) and other EFSRPC methods such as EfsRpcEncryptFileSrv | github.com/topotam/PetitPotam |
| PrinterBug | MS-RPRN RpcRemoteFindFirstPrinterChangeNotificationEx | github.com/leechristensen/SpoolSample |
| DFSCoerce | MS-DFSNM NetrDfsRemoveStdRoot / NetrDfsAddStdRoot | github.com/Wh04m1001/DFSCoerce |
| Coercer (consolidator) | All of the above + auto-detection | github.com/p0dalirius/Coercer |
SpoolSample (last commit 2018), DFSCoerce (2022) and PetitPotam (2024) are unmaintained single-primitive PoCs. Coercer still gets fixes (last commit April 2026) but has had no release since 2.4.3 in 2023 [verify 2026-11-05].
Coercion calls hit production RPC services (Print Spooler, EFSRPC, DFS Namespace). Test in lab against the same patch level before production use; have a rollback contact on standby.
Relay exposure to test:
- SMB signing: a coerced SMB authentication can be relayed unless the receiving server requires signing. Windows 11 24H2 Enterprise, Pro and Education require inbound and outbound signing, but Windows Server 2025 requires only outbound signing, so check every member server [verify 2026-11-05].
- Authentication reflection (CVE-2025-33073, fixed June 2025, in CISA KEV since 2025-10-20): an authenticated attacker coerces a host into SMB authentication and relays it back to that same host, which gives SYSTEM on any host that does not require SMB signing. Synacktiv described the NTLM variant and RedTeam Pentesting a Kerberos variant [verify 2026-11-05]. Confirm the update on every host; requiring SMB signing also blocks it.
- Kerberos relay: Kerberos does not prevent relay by itself; each service must enforce signing or channel binding (Cymulate research on DNS CNAME abuse, 2026). The January 2026 update for CVE-2026-20929 added channel binding support to HTTP.sys, but SMB and other services still rely on their own signing and channel-binding settings.
- Zero-click NTLM leak (CVE-2026-32202, fixed April 2026, in CISA KEV since 2026-04-28): Akamai reported that browsing to a folder was enough to make the victim authenticate to an attacker's SMB server. Confirm the update on workstations and servers.
- Pass: SMB signing required on all hosts, LDAP signing and channel binding enforced on every DC, EPA and HTTPS-only on AD CS web enrollment (KB5005413), Print Spooler disabled on DCs (a Defender for Identity recommendation), and the CVEs above patched. NetExec's
enum_cvemodule (main branch only, not in release v1.5.1) reads the OS build and update revision (UBR) through the remote registry and reports missing fixes for CVE-2025-33073, CVE-2025-53779 and others. It starts the RemoteRegistry service on each target, so it changes target state and is not a read-only check, and it infers patch state from the build revision only, so confirm each finding on the host [verify 2026-11-05].
5. ACL Abuse & Dangerous Permissions
Common ACL Attack Paths
GenericAll:
- Full control over object
- Can reset passwords, modify group membership, etc.
WriteDACL:
- Can modify permissions on object
- Grant yourself GenericAll, then exploit
WriteOwner:
- Can take ownership of object
- Then grant permissions
GenericWrite:
- Can write to most attributes
- For users: modify scriptPath, servicePrincipalName
- For computers: can perform RBCD attack
ForceChangePassword:
- Can reset user password without knowing current password
CreateChild (on OUs):
- Can create new objects in the OU
- Where any DC runs Windows Server 2025, the right to create a dMSA is a takeover path; see Delegated Managed Service Accounts (dMSA)
Find Dangerous ACLs
Using PowerView (legacy): PowerSploit has been archived and read-only since 2020. The cmdlets below still work but are no longer maintained; BloodHound CE (below) covers the same ACL edges.
# https://github.com/PowerShellMafia/PowerSploit/blob/master/Recon/PowerView.ps1
# Resolved ACEs expose ActiveDirectoryRights and ObjectAceType (schema or extended-right CN), not ObjectType
# Find ACLs where non-standard principals have control
Find-InterestingDomainAcl -ResolveGUIDs
# ACLs on a specific object (here: the Domain Admins group)
Get-DomainObjectAcl -Identity "Domain Admins" -ResolveGUIDs
# Find users with WriteDACL on Domain Admins
Get-DomainObjectAcl -Identity "Domain Admins" -ResolveGUIDs | Where-Object {$_.ActiveDirectoryRights -match "WriteDacl"}
Using BloodHound:
- Pre-built queries under "Dangerous Privileges"
- Review edges: GenericAll, WriteDacl, WriteOwner, GenericWrite
DCSync Rights
Find principals with DCSync rights:
# PowerView (legacy): replication rights, GenericAll, and "All extended rights" ACEs (no specific ObjectAceType)
Get-DomainObjectAcl "DC=domain,DC=local" -ResolveGUIDs | Where-Object {
($_.ObjectAceType -match 'DS-Replication-Get-Changes') -or
($_.ActiveDirectoryRights -match 'GenericAll') -or
($_.ActiveDirectoryRights -match 'ExtendedRight' -and $_.ObjectAceType -in @($null, 'All'))
}
DCSync needs both DS-Replication-Get-Changes (1131f6aa-9c07-11d1-f79f-00c04fc2dcd2) and DS-Replication-Get-Changes-All (1131f6ad-9c07-11d1-f79f-00c04fc2dcd2) on the domain head; GenericAll and all-extended-rights ACEs include both. Cross-check with the BloodHound CE pre-built query "Principals with DCSync privileges".
Risk:
- Allows replication of AD data (including password hashes)
- Equivalent to Domain Admin
Remediation:
- Expected holders: Domain Controllers and documented sync accounts, such as the Microsoft Entra Connect AD DS Connector account when password hash sync is enabled. Review every other holder.
- Monitor 4662 from non-DC accounts whose Properties include either replication GUID above. The event needs Audit Directory Service Access and a SACL on the domain head.
6. Group Policy Object (GPO) Review
Enumerate GPOs
# List all GPOs
Get-GPO -All
# GPOs linked to specific OU
Get-GPInheritance -Target "OU=Servers,DC=domain,DC=local"
# Find GPOs with specific settings
Get-GPOReport -All -ReportType HTML -Path C:\GPOReport.html
GPO Security Issues
Check for:
- Authenticated Users with edit rights on GPOs
- GPOs with password/credential settings
- Unrestricted software installation policies
- Weak LAPS configuration
- Disabled security settings (Windows Firewall, Defender)
Find GPOs modifiable by non-admins:
# Using PowerView (legacy)
Get-DomainGPO | Get-DomainObjectAcl -ResolveGUIDs | Where-Object {
$_.ActiveDirectoryRights -match "WriteProperty|GenericAll|GenericWrite|WriteDacl|WriteOwner"
}
# Do not filter by RID: resolve each SecurityIdentifier and flag every principal outside Tier 0,
# including S-1-5-11 (Authenticated Users), S-1-1-0 (Everyone) and <domain SID>-513 (Domain Users)
LAPS (Local Administrator Password Solution)
Two products coexist: Legacy Microsoft LAPS (separate MSI, attribute
ms-Mcs-AdmPwd) is deprecated as of Windows 11 23H2, and newer OS versions block its installer. Windows LAPS is native on Windows 11 23H2 and later and Windows Server 2025 and later, and came with the April 11, 2023 update to Windows 11 22H2 and 21H2, Windows 10, Windows Server 2022 and Windows Server 2019 [verify 2026-11-05]. Its attributes aremsLAPS-Password,msLAPS-EncryptedPasswordandmsLAPS-PasswordExpirationTime. During migration, Windows LAPS can run in legacy Microsoft LAPS emulation mode, honoring legacy LAPS Group Policy, so both attribute sets may be present. Migrate to native Windows LAPS.
Check whether LAPS is deployed (read the expiry attribute: the password attributes are confidential and come back empty for an unprivileged account):
# Windows LAPS
Get-ADComputer -Filter * -Properties msLAPS-PasswordExpirationTime | Where-Object { $_.'msLAPS-PasswordExpirationTime' }
# Legacy LAPS
Get-ADComputer -Filter * -Properties ms-Mcs-AdmPwdExpirationTime | Where-Object { $_.'ms-Mcs-AdmPwdExpirationTime' }
If ms-Mcs-AdmPwd, msLAPS-Password or msLAPS-EncryptedPassword come back populated for an unprivileged test account, record that as a finding.
Check who can read LAPS passwords:
# Windows LAPS module (Microsoft): principals granted read access to LAPS password attributes on an OU
Find-LapsADExtendedRights -Identity "Workstations"
# Legacy LAPS (AdmPwd.PS module): the equivalent cmdlet is Find-AdmPwdExtendedRights
# PowerView (legacy) cross-check. Reading a confidential attribute needs read-property plus control-access:
# GenericAll grants both, and an all-extended-rights ACE supplies the control-access part
Get-DomainComputer | Get-DomainObjectAcl -ResolveGUIDs | Where-Object {
($_.ObjectAceType -match 'ms-Mcs-AdmPwd|ms-LAPS-') -or
($_.ActiveDirectoryRights -match 'GenericAll') -or
($_.ActiveDirectoryRights -match 'ExtendedRight' -and $_.ObjectAceType -in @($null, 'All'))
} | Select-Object ObjectDN,SecurityIdentifier,ActiveDirectoryRights,ObjectAceType
Cross-check with the BloodHound CE pre-built query "Computers where Domain Users can read LAPS passwords".
Record the Windows LAPS configuration (Group Policy or CSP):
- Account management mode: manual (the default) or automatic. Automatic mode, on Windows 11 24H2 and Windows Server 2025 or later, can create the managed account, rename it, randomize its name and disable it, so do not assume the managed account is the built-in Administrator.
PasswordComplexityandPassphraseLength(passphrases need Windows 11 24H2 or Windows Server 2025),ADPasswordEncryptionEnabled,ADPasswordEncryptionPrincipal(who can decrypt), andADBackupDSRMPasswordon DCs.- Image-rollback detection works only for passwords backed up to AD and relies on
msLAPS-CurrentPasswordVersion, which exists only with the Windows Server 2025 forest schema.
7. Password Policy & Account Security
Domain Password Policy
Get-ADDefaultDomainPasswordPolicy
# Fine-Grained Password Policies
Get-ADFineGrainedPasswordPolicy -Filter *
Check for weak policies:
- Minimum password length < 14 characters, the value in Microsoft's Windows 11 v25H2 and Windows Server 2025 v2602 security baselines [verify 2026-11-05]. Also note that NIST SP 800-63B-4 requires at least 15 for passwords used as a single authentication factor.
- Password history < 24
- Lockout threshold not configured (0). Microsoft's security baselines set 10 (Windows 11 v25H2) or 3 (Windows Server 2025 v2602) invalid sign-in attempts, so do not report a threshold in that range as weak [verify 2026-11-05].
- Complexity: do not report a disabled complexity rule as a weakness. NIST SP 800-63B-4 says verifiers SHALL NOT impose composition rules, although Microsoft's baselines still enable complexity [verify 2026-11-05].
- Periodic expiration: report a maximum password age as informational, not as a weakness. NIST SP 800-63B-4 (July 2025) says verifiers SHALL NOT require periodic password changes but SHALL force a change on evidence of compromise [verify 2026-11-05]. Microsoft dropped the password-expiration policies from its security baselines with the Windows 10 v1903 baseline (2019).
Stale Accounts
# Users not logged in for 90+ days
$90days = (Get-Date).AddDays(-90)
Get-ADUser -Filter {LastLogonDate -lt $90days} -Properties LastLogonDate
# Computers not logged in for 90+ days
Get-ADComputer -Filter {LastLogonDate -lt $90days} -Properties LastLogonDate
# Disabled accounts still in privileged groups (nested members included; non-user members skipped)
Get-ADGroupMember "Domain Admins" -Recursive | Where-Object { $_.objectClass -eq 'user' } | Get-ADUser | Where-Object { -not $_.Enabled }
Inactivity checks rely on the replicated
lastLogonTimestamp, which by default lags 9–14 days behind the last logon: fine for a 90-day stale-account threshold, useless for recent activity. Microsoft's built-in equivalent isSearch-ADAccount -AccountInactive -UsersOnly -TimeSpan 90.00:00:00.
8. Service Accounts & Credentials
Service Account Checks
# Accounts with SPNs (service accounts)
Get-ADUser -Filter 'ServicePrincipalName -like "*"' -Properties ServicePrincipalName,PasswordLastSet,PasswordNeverExpires
# Check for old password last set dates
Get-ADUser -Filter 'ServicePrincipalName -like "*"' -Properties PasswordLastSet |
Where-Object {$_.PasswordLastSet -lt (Get-Date).AddYears(-1)}
Red flags:
- Service accounts in Domain Admins
- Service accounts with PasswordNeverExpires whose password is weak or was set before the account moved to AES: Microsoft's Kerberoasting guidance says to change the password after enabling AES
- Service accounts with interactive logon rights
- SPNs on privileged accounts
Credentials in SYSVOL/Scripts
Check for passwords in Group Policy Preferences (cpassword):
# Search SYSVOL for the cpassword attribute in any Group Policy Preferences XML (not only Groups.xml)
findstr /S /I cpassword \\domain.local\sysvol\domain.local\policies\*.xml
MS14-025 (KB2962486, May 2014; CVE-2014-1812, in CISA KEV) removed the ability to set passwords in Group Policy Preferences for drive maps, local users and groups, scheduled tasks, services and data sources, but it does not remove existing ones. An authenticated user can decrypt any
cpasswordvalue found: report each hit as Critical, remove the preference item and rotate the account.
Check scripts for hardcoded credentials:
Get-ChildItem \\domain.local\SYSVOL\domain.local\scripts -Recurse -Include *.ps1,*.bat,*.vbs |
Select-String -Pattern "password","pwd","pass"
9. Monitoring & Detection Review
Event Log Analysis
Check if important events are logged:
# Audit policy
auditpol /get /category:*
# Check for PowerShell logging (Windows PowerShell 5.1 policy keys)
Get-ItemProperty HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging
Get-ItemProperty HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\Transcription
# PowerShell 7 reads its own policy key
Get-ItemProperty HKLM:\SOFTWARE\Policies\Microsoft\PowerShellCore\ScriptBlockLogging
Key events to monitor:
- 4624 (Successful logon)
- 4625 (Failed logon)
- 4672 (Special privileges assigned)
- 4768/4769 (Kerberos TGT/TGS requests)
- 4776 (NTLM authentication)
- 4662 (an operation on a directory object; logged only with Audit Directory Service Access and a SACL on the object). DCSync shows as 4662 on a DC, requested by an account that is not a DC, with a replication GUID from DCSync Rights in its properties. Defender for Identity also alerts on DCSync.
- 4697 (A service was installed; Security log, Audit Security System Extension), or 7045 in the System log
NTLM usage audit: all NTLM versions have been deprecated since June 2024, NTLMv1 is removed in Windows 11 24H2 and Windows Server 2025, and Microsoft plans to disable network NTLM by default in the next major Windows Server release [verify 2026-11-05]. Inventory where NTLM is still used, from 4776 on DCs and Microsoft's enhanced NTLM auditing (Windows Server 2025 and Windows 11 24H2 or later), and report each remaining dependency against that roadmap.
Protected Users Group
# Check if high-value accounts are in Protected Users
Get-ADGroupMember "Protected Users"
DC-side protections (domain functional level Windows Server 2012 R2 or later). Members cannot:
- Authenticate with NTLM
- Use DES or RC4 in Kerberos pre-authentication
- Use unconstrained or constrained delegation
- Renew TGTs beyond the initial four-hour lifetime
Caveats (Microsoft): never add service or computer accounts; members must be able to authenticate with AES; adding every Domain Admin or Enterprise Admin at once can lock those accounts out, so test before adding them.
10. Attack Simulation (Controlled Testing)
Red Team TTPs to Test Detection For
Credential Access (from a low-privilege foothold):
- Password spraying (low-volume, controlled)
- AS-REP roasting
- Kerberoasting
Lateral Movement:
- Pass-the-Hash (in test environment)
- Pass-the-Ticket
- Overpass-the-Hash
Privilege Escalation:
- ACL abuse (WriteDACL → GenericAll)
- Unconstrained delegation exploitation
- GPO modification
Credential Access used for persistence (ticket forging, replication abuse):
- Golden Ticket — test environment only; never forge against a production
krbtgtwithout akrbtgt-rotation runbook (see "krbtgt reset playbook" below) - Silver Ticket — service-account TGS forgery
- Diamond / Sapphire Ticket — start from a legitimately requested ticket, so the KDC logged a matching request, and still need the
krbtgtkey (or the service key for a service ticket). Diamond rewrites the ticket's PAC; Sapphire swaps in a privileged user's real PAC obtained through S4U2self+U2U. Both are harder to spot than a Golden Ticket, whose service requests have no matching TGT request. - DCSync — replication-rights abuse to extract
krbtgtand other secrets; equivalent to DA in impact
Detection blue-team context: the AD-aware monitoring product is Microsoft Defender for Identity (formerly Azure ATP, and the replacement for the on-premises ATA, whose extended support ended in January 2026 [verify 2026-11-05]). Coordinate test windows with whoever runs Defender for Identity and Defender XDR, and record for each rehearsal whether the alerts agreed in the Authorization Checklist were raised.
ATT&CK mapping, pinned to Enterprise ATT&CK v20.0 (2026-10-13); re-check IDs when a new release ships [verify 2026-11-05]. The last column is the ATT&CK detection strategy for that technique.
| TTP | ATT&CK v20.0 technique | Detection strategy |
|---|---|---|
| Domain, trust and GPO enumeration (§2, §3) | T1087.002 Domain Account, T1482 Domain Trust Discovery, T1615 Group Policy Discovery | DET0129, DET0007, DET0055 |
| Password spraying | T1110.003 Password Spraying | DET0487 |
| AS-REP roasting | T1558.004 AS-REP Roasting | DET0113 |
| Kerberoasting | T1558.003 Kerberoasting | DET0157 |
| Pass-the-Hash | T1550.002 Pass the Hash | DET0409 |
| Pass-the-Ticket | T1550.003 Pass the Ticket | DET0352 |
| Overpass-the-Hash | Described under both T1550.002 and T1550.003 | DET0409, DET0352 |
| ACL abuse | No technique covers AD object ACL edits; map the resulting change, e.g. T1098 Account Manipulation | DET0096 |
| Unconstrained delegation exploitation (TGTs cached on the host) | T1558 Steal or Forge Kerberos Tickets | DET0522 |
| GPO modification | T1484.001 Group Policy Modification | DET0305 |
| Golden Ticket | T1558.001 Golden Ticket | DET0144 |
| Silver Ticket | T1558.002 Silver Ticket | DET0241 |
| Diamond / Sapphire Ticket | T1558 Steal or Forge Kerberos Tickets (no sub-technique) | DET0522 |
| DCSync | T1003.006 DCSync | DET0594 |
| Coercion (§4) | T1187 Forced Authentication | DET0022 |
| NTLM relay (§4) | T1557.001 Name Resolution Poisoning and SMB Relay | DET0462 |
| AD CS abuse (§4) | T1649 Steal or Forge Authentication Certificates | DET0240 |
| GPP passwords (§8) | T1552.006 Group Policy Preferences | DET0381 |
krbtgt reset playbook
If Golden Ticket simulation is in scope, make sure the customer has a tested reset twice runbook. Microsoft's forest-recovery guidance (Reset the krbtgt password) is to reset the krbtgt password twice, at least 10 hours apart. Ten hours is the default Maximum lifetime for user ticket and Maximum lifetime for service ticket; if the domain sets a longer lifetime, wait longer than that value. The krbtgt password history holds two passwords, so the second reset clears the old one.
Microsoft's original New-KrbtgtKeys.ps1 is archived (microsoftarchive/New-KrbtgtKeys.ps1) and unmaintained. Its README points to community-maintained versions, such as Reset-KrbTgt-Password-For-RWDCs-And-RODCs.ps1 in github.com/zjorz/Public-AD-Scripts (v4.1, July 2026) [verify 2026-11-05]. Review any script before running it against Tier 0. After a suspected real krbtgt compromise, Microsoft advises engaging professional incident response and treating the reset as part of a wider recovery effort.
Safety:
- Coordinate with SOC/detection team
- Use test accounts and canary systems
- Monitor for alerts during tests
- Document all actions with timestamps
11. Common Misconfigurations Checklist
- Domain/Enterprise Admins with more members than necessary
- Service accounts in privileged groups
- Computers with unconstrained delegation
- Service accounts with "Password never expires" whose password is weak or predates the move to AES (see Service Account Checks); on other accounts the flag alone is informational (see Domain Password Policy)
- Weak password policy: minimum length below 14 (Microsoft baseline; NIST SP 800-63B-4 asks for 15 for single-factor passwords) or no lockout threshold; see Domain Password Policy
- LAPS not deployed or improperly configured
- Authenticated Users can modify GPOs
- No Protected Users group usage for VIPs
- AdminSDHolder not monitored for modifications
- Stale accounts (90+ days inactive) not disabled
- Pre-Windows 2000 Compatible Access group populated
- Service accounts with interactive logon rights
- Credentials in SYSVOL scripts/GPP
- PowerShell logging disabled
- No monitoring for DCSync (4662 with a replication-rights GUID from a non-DC account, or the Defender for Identity DCSync alert)
- Accounts or the domain default still allowing RC4 for Kerberos (KB5073381); see the encryption-type audit under Kerberoasting
- Non-Tier-0 principals able to create dMSAs on any OU, or a Windows Server 2025 DC without the August 2025 update (CVE-2025-53779); see Delegated Managed Service Accounts (dMSA)
- LDAP signing not required, or LDAP channel binding not set to Always, on any DC. Before tightening, find affected clients with events 2887 / 2889 (unsigned binds; 2889 needs the LDAP Interface Events diagnostic level set to 2) and, with channel binding at When supported or Always, events 3074 / 3075 (also diagnostic level 2)
- Relay exposure: SMB signing not required on every host, no EPA on AD CS web enrollment, or the coercion and reflection fixes missing; pass criteria under Coercion Primitives
- Constrained delegation to the
krbtgtservice (see Constrained Delegation) - SPNs containing invisible Unicode characters, or a UPN equal to another account's sAMAccountName. PingCastle 4.1.2.0 flags both and ties them to CVE-2026-25177 (March 2026) and CVE-2026-27912 (April 2026); confirm every DC has those updates [verify 2026-11-05]
- Entra Connect or AD FS servers administered outside Tier 0, or AD FS without the CVE-2026-56155 fix (see Objectives)
- Tier 0 not defined in writing, control paths into Tier 0, or Tier 0 sessions on lower-tier hosts; see Tier Zero Review
12. Evidence Collection
For each finding, document:
- Object path (DN)
- Exact PowerShell/tool command used
- Full output (sanitize if needed)
- Timestamp (UTC)
- Screenshot for BloodHound paths
- Risk level and business impact
File structure:
/Evidence/{engagement_id}/AD/
├── bloodhound/
│ ├── 20251005_bloodhound_data.zip
│ └── screenshots/
├── enumeration/
│ ├── 20251005_domain_admins.txt
│ ├── 20251005_kerberoastable_users.txt
│ └── 20251005_unconstrained_delegation.txt
├── gpo/
│ ├── 20251005_gpo_report.html
│ └── 20251005_sysvol_creds.txt
├── acls/
│ └── 20251005_dangerous_acls.txt
└── hashes/
└── evidence_hashes.csv
Hash all files (run from /Evidence/{engagement_id}/AD/; SHA-256 is the default, stated explicitly to match the Collection Log rule):
Get-ChildItem -Path . -Recurse -File -Include *.txt,*.html,*.zip |
Get-FileHash -Algorithm SHA256 |
Export-Csv -NoTypeInformation -Path .\hashes\evidence_hashes.csv
13. Reporting
Finding Format
Title: Service Accounts with Unconstrained Delegation
Severity: Critical
Affected Objects:
- SQLSVC@domain.local (CN=SQLSVC,OU=Service Accounts,DC=domain,DC=local)
- WEBSVC@domain.local (CN=WEBSVC,OU=Service Accounts,DC=domain,DC=local)
Description:
Service accounts configured with unconstrained delegation can be abused to
impersonate any domain user, including Domain Admins, if they authenticate
to the compromised system.
Impact:
If an attacker compromises the SQL or Web servers, they can extract TGTs
from memory for any user who authenticates, leading to full domain compromise.
Evidence:
Get-ADUser -Filter {TrustedForDelegation -eq $true} -Properties TrustedForDelegation
Output: [screenshot/paste]
Attack Path (BloodHound):
[Screenshot showing path from SQLSVC to Domain Admins]
Remediation:
1. Remove unconstrained delegation from service accounts
2. Implement constrained or resource-based constrained delegation instead
3. Add sensitive user accounts to Protected Users after testing (never service or computer accounts)
4. Enable "Account is sensitive and cannot be delegated" for VIP accounts
Verification:
1. Re-run: Get-ADUser -Filter {TrustedForDelegation -eq $true}
2. Verify no service accounts have TrustedForDelegation=True
3. Confirm Domain/Enterprise Admin user accounts are in Protected Users or marked "Account is sensitive and cannot be delegated", after lockout testing
Remediation Priority
- Critical: Unconstrained delegation, DCSync rights to non-DCs, DA credentials in SYSVOL
- High: Kerberoastable privileged accounts, weak ACLs on admin groups, no LAPS
- Medium: Stale privileged accounts, weak password policy (§7 criteria), missing audit logging, NTLM dependencies with no removal plan (rate against Microsoft's NTLM roadmap in §9)
- Low: Informational findings, hardening recommendations
14. Safety & Legal
Canonical legal/ethics framework lives in Legal & Ethics; OPSEC framework in OPSEC. This section captures only AD-specific operational guardrails — do not re-derive CFAA / Computer Misuse Act / Cybercrime Directive content here.
- Read-only enumeration first: Gather data before testing exploitability
- Coordinate with stakeholders before password attacks or GPO modifications
- Use test accounts for exploitation testing (not production accounts)
- Monitor for impact: Watch for service disruptions, lockouts, replication issues
- Stop immediately if Domain Controllers show instability — replication failures during a test are a stop-the-engagement event, not a "we'll fix it tomorrow" issue
- Document everything for audit trail and legal defensibility (chain-of-custody per Collection Log)
- Respect scope: Do not pivot to out-of-scope domains/forests without approval — cross-forest and cross-tenant pivots require separate written authorization
- Hand off the report through Reporting & Disclosure; never ship Kerberos tickets, NTLM hashes, or
NTDS.ditextracts in the same channel as the executive summary
15. Tools Reference
| Tool | Purpose | Link |
|---|---|---|
| BloodHound CE | AD relationship mapping (SpecterOps Community Edition; replaces the deprecated BloodHound Legacy 4.x, now SpecterOps/BloodHound-Legacy) | github.com/SpecterOps/BloodHound |
| SharpHound (CE) | BloodHound CE data collector (Windows) | github.com/SpecterOps/SharpHound |
| BloodHound.py | Python collector (Linux). PyPI bloodhound-ce (bloodhound-ce-python) for BloodHound CE; bloodhound (bloodhound-python) supports legacy 4.2–4.3 only | github.com/dirkjanm/BloodHound.py [verify 2026-11-05] |
| PowerView (PowerSploit) | AD enumeration (PowerShell, legacy). Repository archived; README: "This project is no longer supported" | github.com/PowerShellMafia/PowerSploit |
| PowerView.py | Python re-implementation of PowerView (cross-platform) | github.com/aniqfakhrul/powerview.py [verify 2026-11-05] |
| pywerview | Partial Python rewrite of PowerView | github.com/the-useless-one/pywerview |
| ldeep | Python LDAP enumeration utility | github.com/franc-pentest/ldeep |
| DSInternals | PowerShell module and .NET framework: offline ntds.dit access and AD password-quality auditing | github.com/MichaelGrafnetter/DSInternals |
| Rubeus | Kerberos abuse toolkit | github.com/GhostPack/Rubeus |
| Impacket | Python AD toolkit (now under Fortra) | github.com/fortra/impacket |
| NetExec (nxc) | Successor to deprecated CrackMapExec; SMB/LDAP/WinRM/MSSQL sweeps | github.com/Pennyw0rth/NetExec |
| Certipy | AD CS (ESC1–ESC17 as of Certipy 5.1.0) enumeration & abuse | github.com/ly4k/Certipy |
| Coercer | Authentication-coercion scanner across MS-RPRN, MS-EFSR, MS-FSRVP, MS-DFSNM and MS-EVEN (PrinterBug, PetitPotam, ShadowCoerce, DFSCoerce, CheeseOunce) | github.com/p0dalirius/Coercer |
| ADRecon | AD data aggregation into a report (low activity: last commit 2024-10) | github.com/adrecon/ADRecon |
| PingCastle | AD security audit (Netwrix since 2024; source at netwrix/pingcastle) | pingcastle.com |
| Purple Knight | AD security assessment (Semperis; free Community edition) | semperis.com/purple-knight |
16. Reference Resources
Comprehensive Knowledge Bases
- The Hacker Recipes - thehacker.recipes
- Excellent AD attack techniques, Kerberos exploitation, ACL abuse
- Well-documented attack paths with defensive recommendations
- HackTricks - Active Directory - hacktricks.wiki/en/windows-hardening/active-directory-methodology (moved from
book.hacktricks.xyz, thenbook.hacktricks.wiki; both now redirect tohacktricks.wiki) [verify 2026-11-05]- Comprehensive AD pentesting methodology
- Covers enumeration, lateral movement, privilege escalation
- LOLAD Project - lolad-project.github.io
- Living Off the Land in Active Directory
- Built-in Windows tools and commands for AD exploitation
- Attacking Active Directory: 0 to 0.9 (Zer1t0) - zer1t0.gitlab.io/posts/attacking_ad
- In-depth technical AD attack techniques
- MITRE ATT&CK - Windows - attack.mitre.org/matrices/enterprise/windows
- Adversary tactics and techniques mapped to AD environments
Attack Technique Deep Dives
- adsecurity.org - adsecurity.org
- Sean Metcalf's research on AD security and Kerberos
- Golden Ticket, Silver Ticket, DCSync attacks
- InternalAllTheThings - Active Directory - github.com/swisskyrepo/InternalAllTheThings
- Swissky's AD and internal-pentest cheatsheets; the AD content of PayloadsAllTheThings moved here
- SpecterOps Blog - specterops.io/blog
- Research from the team behind BloodHound
- Advanced attack paths and tooling
Defense & Hardening
- Microsoft AD Security Best Practices - learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/security-best-practices/best-practices-for-securing-active-directory
- Microsoft Enterprise Access Model (builds on the legacy AD tier model) - learn.microsoft.com/en-us/security/privileged-access-workstations/privileged-access-access-model [verify 2026-11-05]
- Microsoft Defender for Identity (formerly Azure ATP; replaces the on-premises ATA) - learn.microsoft.com/en-us/defender-for-identity/
- Windows LAPS - learn.microsoft.com/en-us/windows-server/identity/laps/laps-overview
Cheat Sheets & Quick References
- Wadcoms - AD Commands - wadcoms.github.io
- Interactive WAD (Windows/AD) command reference
- AD Pentesting Cheatsheet by S1ckB0y1337 - github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet
- Orange Cyberdefense AD mindmap - orange-cyberdefense.github.io/ocd-mindmaps
- AD pentest mindmap (latest revision March 2025)
17. Common Pitfalls
- ❌ Running SharpHound
-c Allor session / local-group collection in production without SOC coordination: those methods connect to every domain-joined host, while-c DCOnlyqueries only the domain controller - ❌ Not coordinating with SOC before testing (causes alert fatigue)
- ❌ Using production admin accounts for testing (contaminates evidence)
- ❌ Requesting too many Kerberos tickets at once (triggers detections)
- ❌ Not checking scope before enumerating trusts (cross-domain pivots)
- ❌ Forgetting to sanitize credentials in reports/screenshots
- ❌ Relying only on BloodHound (manual validation is critical)
- ❌ Not testing detection coverage (pentest should validate monitoring)
Legal & Ethical Considerations
AD pentesting reaches the highest-trust assets in the environment. The canonical legal framework is in Legal & Ethics; this section names only the AD-specific exposures.
- Authorization scope is per-tier. A signed RoE that authorizes "internal pentest" without naming Domain Admin / Enterprise Admin /
krbtgtsimulation does not implicitly authorize Golden Ticket forging or DCSync against production. Get each privileged path in writing. - Hash and ticket material is live credential material. Treat
NTDS.ditextracts, LSASS dumps, and.kirbi/ ccache exports as the most sensitive engagement data: encrypt at rest, restrict access, schedule destruction in the engagement letter. Data-protection obligations for the account data they contain: see Legal & Ethics. - Coercion and relay primitives can disrupt production. They call production RPC services (Print Spooler, EFSRPC, DFS Namespace), so treat each call as potentially disruptive. Test against the same patch level in lab first; have a rollback contact on standby.
- AD CS misuse can issue real certificates. Certipy enrollment requests against a production CA produce live, trusted certificates that need explicit revocation. Lab-rehearse first; coordinate revocation with the customer's PKI team.
krbtgtis uniquely sensitive. Never extract or forge against a productionkrbtgtwithout a tested rotation runbook. After a suspected realkrbtgtcompromise, treat the double reset as part of a wider incident-response effort (Microsoft advises engaging professional incident response).- Cross-domain / cross-forest / cross-tenant pivots require separate written authorization. Trust enumeration that reads trust objects is generally in scope; traversing the trust to query objects in the other forest is usually not.
OPSEC framework (operator isolation, compartmentation): OPSEC. The AD-specific items (sacrificial accounts and hosts, IOC defang in the report) are defined in this SOP's Pre-Engagement & Authorization section.
Related SOPs
Analysis:
- Reverse Engineering - Binary analysis of Windows tooling (disassembly, decompilation, debugging)
- Cryptography Analysis - Password cracking (hashcat / John, incl. NTLM and NetNTLM modes) and crypto review
- Malware Analysis - Analyzing malicious tools found in AD environment
Pentesting & Security:
- Linux Pentesting - Linux host enumeration and privilege escalation
- Web Application Security - Web application testing, including LDAP injection
- Vulnerability Research - Fuzzing, crash triage, exploitability assessment and CVE disclosure
- Detection Evasion Testing - Purple-team validation of AV / EDR / IDS / SIEM detection coverage
- Forensics Investigation - Disk and memory forensics, artifact recovery and timelines
- Bug Bounty Hunting - Bug bounty methodology and report writing
Engagement governance:
- Legal & Ethics - Canonical CFAA / CMA / Cybercrime Directive framework
- OPSEC - Operator isolation and operational-security planning (OSINT-focused; adapt for engagements)
- Collection Log - Chain of custody and SHA-256 evidence hashing
- Reporting & Disclosure - Report structure, evidence packaging and disclosure
Version: 1.1
Last Updated: 2026-11-05
Review Frequency: Quarterly (Fast tier in .omc/watchlist.md: fast-rotating attacker tradecraft)