Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

DCSync

Direct 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.

When to use this

Use this when detecting or preventing DCSync attacks that pull password hashes.

First 30 seconds

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.

Operational verification

account with replication rights → DRSUAPI → hashes

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Identity, authentication and access control
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformIdentity, authentication and access control
Scope / prerequisiteUse this when detecting or preventing DCSync attacks that pull password hashes.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • DCSync uses replication rights, not malware on the DC.
  • Only DCs should replicate.
  • krbtgt hash theft enables golden tickets.
Key checks
  • Get-ADDomain | % { Get-Acl "AD:$($_.DistinguishedName)" } | % Access | ? {$_.ObjectType -match '1131f6a' } — replication rights holders
  • Get-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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docIdentity, authentication and access control current

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%
Confirmation

Confirm action

Continue?