DCSync
Cheat sheet · https://pcornel.dk/topic.php?topic=4527
Answer
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.
Remember
- DCSync uses replication rights, not malware on the DC.
- Only DCs should replicate.
- krbtgt hash theft enables golden tickets.
First checks
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
Verify in this order
account with replication rights → DRSUAPI → hashes
Where it usually breaks
First mismatch in identity lifecycle → authenticator/credential → IdP/federation/session → authorization policy → target resource → audit trail; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4527