Use this when detecting or preventing DCSync attacks that pull password hashes.
DCSync
DCSync abuses directory replication rights to ask a DC for password hashes, including krbtgt, as if the attacker were another DC. Limit replication permissions and alert on replication requests from non-DCs.
1. DCSync abuses replication rights to pull password hashes from DCs.
2. Only DCs and specific accounts should have Replicating Directory Changes (All).
3. Audit ACLs.
4. Detect 4662 with replication GUIDs from non-DC accounts.
5. Network detection of DRSUAPI from non-DCs.
account with replication rights → DRSUAPI → hashes
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Replication rights granted to non-DC accounts.
- No alert on 4662 replication events from non-DCs.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- DCSync uses replication rights, not malware on the DC.
- Only DCs should replicate.
- krbtgt hash theft enables golden tickets.
Get-ADDomain | % { Get-Acl "AD:$($_.DistinguishedName)" } | % Access | ? {$_.ObjectType -match '1131f6a' }— replication rights holdersGet-WinEvent -FilterHashtable @{LogName='Security';Id=4662} | ? Message -match '1131f6ad'— replication requests- DC replication traffic from non-DCs — network detection
ReferenceWhy it matters1 section · depth on demand
Mitigations and detection
- Only DCs should hold "Replicating Directory Changes" and "Replicating Directory Changes All". Audit who else has them (often old Microsoft Entra Connect, formerly Azure AD Connect, or backup accounts).
- Detect: event 4662 with the replication GUIDs from a non-DC account or IP, or replication traffic from non-DC hosts.
- After DCSync, assume all password hashes, including krbtgt, are compromised.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
DCSync abuses the directory replication protocol: an account with replication rights asks a domain controller to replicate password data, as another DC would, and receives password hashes for any account — including krbtgt. No code runs on the DC.
Who can do it: accounts with "Replicating Directory Changes" and "Replicating Directory Changes All" on the domain object — by default Domain Admins, Enterprise Admins, Administrators and DCs.
Defence:
1. Audit who holds replication rights and remove unnecessary grants (some tools add them).
2. Protect the few accounts that legitimately hold them.
3. Detect: replication requests (event 4662 with the replication GUIDs, or network detection of DRSUAPI GetNCChanges) originating from non-DC IP addresses.
(Get-Acl "AD:\DC=corp,DC=example,DC=com").Access | Where-Object { $_.ObjectType -in '1131f6aa-9c07-11d1-f79f-00c04fc2dcd2','1131f6ad-9c07-11d1-f79f-00c04fc2dcd2' } | Select-Object IdentityReference
Who can DCSync
The rights Replicating Directory Changes and Replicating Directory Changes All on the domain object allow DCSync. By default only DCs, Domain Admins, Enterprise Admins and Administrators have them. Check for others:
(Get-Acl "AD:\$((Get-ADDomain).DistinguishedName)").Access |
Where-Object { $_.ObjectType -in '1131f6aa-9c07-11d1-f79f-00c04fc2dcd2','1131f6ad-9c07-11d1-f79f-00c04fc2dcd2' }
The sync account of Microsoft Entra Connect (formerly Azure AD Connect) legitimately has these rights; protect it as Tier 0.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Active Directory Security → DCSync. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/security/ · confidence 94%