DCSync Attack: How It Works and How to Detect It
DCSync abuses AD replication to pull password hashes. The 4662 GUIDs to alert on, a KQL query for SecurityEvent, network signs and the false positives.
18 min read

On this page
- How this guide was checked
- How a DCSync attack works
- The three replication rights and their GUIDs
- Who holds the rights
- The tools: mimikatz and secretsdump
- DCSync detection with event 4662
- First, make sure the event can exist
- The fields that matter
- KQL for SecurityEvent
- SPL
- The common mistake: excluding every account that ends in $
- DCSync detection on the network
- False positives
- Worked example: a backup account replicating from a workstation
- DCSync vs DCShadow
- Response and mitigation
A DCSync attack is a way to steal password hashes from Active Directory without touching the domain controller's disk. An account with replication rights asks a domain controller, over the Directory Replication Service protocol, to replicate secrets to it, and gets the hashes of any account it names, krbtgt included. You detect it with event 4662 and network telemetry.
Event 4662 is the right place to look, but a rule on it needs four more things: the three GUIDs that identify a replication request, an auditing entry (SACL) on the domain object without which the event is never written, a way to tell a real domain controller from an attacker borrowing one's identity, and a list of the accounts that replicate legitimately. This guide covers each of those, with a KQL query for the Sentinel SecurityEvent table, an SPL version, a Wireshark filter for the network side and a worked example on simulated telemetry.
How this guide was checked
The rights, their GUIDs and the event fields come from Microsoft Learn: the DS-Replication-Get-Changes, DS-Replication-Get-Changes-All and DS-Replication-Get-Changes-In-Filtered-Set schema pages and the event 4662 reference. The technique description is from MITRE ATT&CK T1003.006, version 1.1, last modified November 4, 2026.
The KQL queries were parsed and type-checked with Microsoft's own Kusto language service (Kusto.Language, from the npm package @kusto/language-service-next 12.4.1) against the column list of the SecurityEvent table reference, with a misspelled column as a control that has to fail. They were not run against a live workspace. The SPL, the PowerShell and the Wireshark filter were written against their documentation and not executed. Treat every block as a starting point to test in your own environment.
How a DCSync attack works
Domain controllers keep each other in sync with the Directory Replication Service Remote Protocol, MS-DRSR. The RPC interface is called DRSUAPI, and the method that does the work is IDL_DRSGetNCChanges (opnum 3), which Microsoft's spec describes as replicating "updates from an NC replica on the server". A naming context is a partition of the directory; the domain partition is the one that holds user objects and their password hashes.
The domain controller does not check whether the caller is a domain controller. It checks whether the caller's account holds the replication rights on the domain object. If it does, the DC replicates the requested objects, secrets included. DCSync is that request made from somewhere that is not a domain controller. MITRE files it as OS Credential Dumping, sub-technique T1003.006.
One request returns the krbtgt hash, which is enough to forge Kerberos tickets (Steal or Forge Kerberos Tickets, the golden ticket case), and the NTLM hash of any user, which works for pass-the-hash wherever NTLM is still accepted. Our NTLM vs Kerberos guide covers how to read both protocols in your logs, pass-the-hash included.
The three replication rights and their GUIDs
These are extended rights (control access rights) on the domain object. In the raw 4662 event they appear by GUID, so a rule that only searches for "Replicating Directory Changes" can miss them.
| Right (CN) | Display name | Rights-GUID | What it means for detection |
|---|---|---|---|
| DS-Replication-Get-Changes | Replicating Directory Changes | 1131f6aa-9c07-11d1-f79f-00c04fc2dcd2 | The base replication right. Secret data needs the -All right on top |
| DS-Replication-Get-Changes-All | Replicating Directory Changes All | 1131f6ad-9c07-11d1-f79f-00c04fc2dcd2 | "Allows the replication of secret domain data" (Microsoft). Your highest-severity signal |
| DS-Replication-Get-Changes-In-Filtered-Set | Replicating Directory Changes In Filtered Set | 89e95b76-444d-4c62-991a-0facbeda640c | Include it in the match list; Microsoft's Sentinel rule and SigmaHQ both do |
The object the request is checked against is the domain itself. Its class is domainDNS, schema GUID 19195a5b-6da0-11d0-afd3-00c04fd930c9 per the domainDNS class page. You will see that GUID in the 4662 as the object type.
Who holds the rights
Per MITRE, members of Administrators, Domain Admins and Enterprise Admins, and the computer accounts of domain controllers, can run DCSync. So can anyone those groups have delegated the rights to, and those delegations are what you need to audit. The Entra Connect accounts reference states that the AD DS connector account gets Replicate Directory Changes and Replicate Directory Changes All for password hash sync, and that in express settings its name starts with MSOL_.
Attackers also add the rights themselves when they already control the domain, so they can come back later with an account nobody watches. That is account manipulation (T1098), and the SigmaHQ rule for it looks for event 5136 changes to ntSecurityDescriptor that contain the replication GUIDs.
The tools: mimikatz and secretsdump
You will meet two tools in incident reports. The mimikatz lsadump module has a dcsync command that, in its author's words, "uses DRSR protocol to ask a domain controller to synchronize a specified entry. It's the same protocol that domain controllers are using between them." Impacket's secretsdump.py does the same from Python: its header says it gets domain users' hashes and Kerberos keys "using [MS-DRDS] DRSGetNCChanges()".
Neither needs to run anything on the domain controller. secretsdump runs from Linux or Windows and mimikatz from Windows, on any machine that can reach a DC, and both leave the same traces: a network logon to the DC, a DRSUAPI bind from the attacker's host and, if auditing is set up, 4662 events with the replication GUIDs. Renaming mimikatz changes nothing in the DC's logs, so write the rule on the request.
DCSync detection with event 4662
First, make sure the event can exist
Microsoft's 4662 page says the event "generates only if appropriate SACL was set for Active Directory object and performed operation meets this SACL." Two things have to be true on every domain controller:
- Audit policy. The advanced audit subcategory Audit Directory Service Access (under DS Access) logs successes.
- SACL on the domain object. The domain naming context root (
DC=corp,DC=example) has an auditing entry for the replication rights. The SigmaHQ rule documents one: principal Everyone, type Success, applies to this object only, rights DS-Replication-Get-Changes and DS-Replication-Get-Changes-All. Splunk's detection asks for a broader entry that also covers Domain Computers and Domain Controllers and the Filtered Set right.
If either is missing, a DCSync produces no 4662 at all, and a detection rule built on it stays green forever. Check the SACL on the domain head (ADSI Edit, Properties, Security, Advanced, Auditing) instead of assuming it, and prove the path in a lab: have an approved test account request replication and confirm the event reaches your SIEM. Then keep that test in your detection regression suite and rerun it whenever a DC is added or rebuilt.
The fields that matter
| Field in 4662 | Value you want | Why |
|---|---|---|
ObjectServer | DS | Directory service access, not file or registry |
AccessMask | 0x100 | Control Access, the access type for extended rights (Microsoft's access mask table) |
Properties | One of the three GUIDs | Which right was exercised |
ObjectType | domainDNS or 19195a5b-6da0-11d0-afd3-00c04fd930c9 | The domain object |
SubjectUserName / SubjectDomainName | Not a DC, not an approved replicator | Who asked |
SubjectLogonId | Join key | Leads to the source IP in 4624 |
The event that answers "from where?" is the 4624 on the same DC. Its TargetLogonId equals the 4662's SubjectLogonId, and for a remote request the logon type is 3, network. If logon types are fuzzy, our Windows logon types guide walks through each value.
KQL for SecurityEvent
This query is built on the shape of Microsoft's own Non Domain Controller Active Directory Replication Sentinel rule, with two changes. It does not drop machine accounts wholesale (see the next section), and it treats a known replicator as normal only when the request also comes from that replicator's address: a DC account from a DC, the Entra Connect account from the Entra Connect server.
let DCAccounts = dynamic(["HQ-DC01$", "HQ-DC02$"]); // sAMAccountName of each DC, with the $
let DCAddresses = dynamic(["10.40.0.11", "10.40.0.12"]); // every IP your DCs replicate from
let SyncAccounts = dynamic(["MSOL_5d1c7e20a9b3"]); // Entra Connect AD DS connector account
let SyncAddresses = dynamic(["10.40.2.30"]); // the Entra Connect server it runs on
let LocalAddresses = dynamic(["-", "::1", "127.0.0.1"]);
let ReplicationRights = dynamic([
"1131f6aa-9c07-11d1-f79f-00c04fc2dcd2", // DS-Replication-Get-Changes
"1131f6ad-9c07-11d1-f79f-00c04fc2dcd2", // DS-Replication-Get-Changes-All
"89e95b76-444d-4c62-991a-0facbeda640c" // DS-Replication-Get-Changes-In-Filtered-Set
]);
SecurityEvent
| where TimeGenerated > ago(1d)
| where EventID == 4662 and ObjectServer == "DS" and AccessMask == "0x100"
| where Properties has_any (ReplicationRights)
| project TimeGenerated, Computer, SubjectDomainName, SubjectUserName, SubjectLogonId, Properties
| join kind=leftouter (
SecurityEvent
| where TimeGenerated > ago(7d)
| where EventID == 4624 and LogonType == 3
| project Computer, TargetLogonId, IpAddress, WorkstationName
) on $left.Computer == $right.Computer, $left.SubjectLogonId == $right.TargetLogonId
| extend IsDCAccount = SubjectUserName in~ (DCAccounts),
FromDC = isempty(IpAddress) or IpAddress in (DCAddresses) or IpAddress in (LocalAddresses)
| extend IsSyncAccount = SubjectUserName in~ (SyncAccounts),
FromSyncServer = IpAddress in (SyncAddresses)
| where not(IsDCAccount and FromDC) and not(IsSyncAccount and FromSyncServer)
| summarize FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), Events = count(),
GetChangesAll = countif(Properties has "1131f6ad-9c07-11d1-f79f-00c04fc2dcd2")
by Computer, SubjectDomainName, SubjectUserName, SubjectLogonId, IpAddress, WorkstationName
| order by GetChangesAll desc, FirstSeen ascNotes on running it:
- The
projectbefore the join is load-bearing. Without it, the left side keeps its own emptyIpAddressandWorkstationNamecolumns and the join renames the 4624 values toIpAddress1andWorkstationName1. Every row would then look like it came from a DC. - The 4624 window is wider on purpose. The logon that carries the replication request can start well before it, so the join looks back 7 days while the 4662 side looks at 1. Microsoft's rule also uses a 7-day query period.
- A DC account with no matching logon is dropped. That keeps the DC's own local activity out. The price is that a DC identity whose logon fell outside the window slips through; if your DCs are few, run the same query without that exception as a weekly hunt.
- Keep the lists in a watchlist, not hard-coded, so that promoting a new DC is a one-line change. Rows with
GetChangesAllabove zero go to the top: those are the requests that return secrets.
If KQL is new to you, our Kusto Query Language tutorial explains join, has_any and summarize with SOC examples.
SPL
The same logic for Splunk with the Windows add-on. Field names depend on your add-on and on whether you ingest XML or rendered events, and with rendered events Properties can hold the right's display name instead of its GUID. Splunk's own rule matches both forms for that reason, and this version does too for the right that matters most. It correlates the 4662 and the 4624 with stats ... by host logon_id instead of join, which avoids the subsearch row limit a join hits on a busy DC. Give the search a time range wide enough to include the logon, since the session can start well before the replication request.
index=wineventlog ((EventCode=4662 AccessMask="0x100"
(Properties="*1131f6aa-9c07-11d1-f79f-00c04fc2dcd2*"
OR Properties="*1131f6ad-9c07-11d1-f79f-00c04fc2dcd2*"
OR Properties="*89e95b76-444d-4c62-991a-0facbeda640c*"
OR Properties="*Replicating Directory Changes All*"))
OR (EventCode=4624 LogonType=3))
| eval logon_id=lower(if(EventCode=4662, SubjectLogonId, TargetLogonId))
| eval repl_user=if(EventCode=4662, SubjectUserName, null()),
repl_domain=if(EventCode=4662, SubjectDomainName, null()),
src_ip=if(EventCode=4624, IpAddress, null()),
src_ws=if(EventCode=4624, WorkstationName, null()),
get_all=if(EventCode=4662 AND match(Properties, "(?i)1131f6ad-9c07-11d1-f79f-00c04fc2dcd2|Replicating Directory Changes All"), 1, 0)
| stats values(repl_user) AS user values(repl_domain) AS domain values(src_ip) AS src_ip values(src_ws) AS src_ws
count(repl_user) AS repl_events max(get_all) AS get_changes_all min(_time) AS first_seen max(_time) AS last_seen
BY host logon_id
| where repl_events > 0
| eval is_dc_account=if(in(lower(user), "hq-dc01$", "hq-dc02$"), 1, 0)
| eval from_dc=if(isnull(src_ip) OR in(src_ip, "10.40.0.11", "10.40.0.12", "-", "::1", "127.0.0.1"), 1, 0)
| eval is_sync=if(lower(user)="msol_5d1c7e20a9b3" AND src_ip="10.40.2.30", 1, 0)
| where NOT (is_dc_account=1 AND from_dc=1) AND is_sync=0
| sort - get_changes_all first_seenSigma users can start from the two SigmaHQ rules linked in this guide and add the source-address condition after conversion; our Sigma rules guide covers the conversion step.
The common mistake: excluding every account that ends in $
Both Microsoft's Sentinel rule (AccountType != 'Machine') and the SigmaHQ non-machine-account rule (SubjectUserName|endswith: '$') remove every computer account from the results. The reasoning is sound for noise: domain controllers replicate all day under their own computer accounts. The side effect is that any computer account at all becomes invisible, and attackers do get computer account credentials. A server whose computer account was delegated replication rights years ago and forgotten, or a domain controller's identity obtained through a certificate or relay attack and used from a workstation, both arrive as an account ending in $.
SigmaHQ keeps a sibling rule, Suspicious Machine Account Replication, that looks only at accounts ending in $. If you deploy only the first one, the second case has no coverage. The query above avoids the split by naming the DC accounts you expect and requiring that their requests also come from DC addresses. A domain controller identity requesting replication from a finance workstation is about as clear a finding as Active Directory gives you.
DCSync detection on the network
Network data does not depend on SACLs, so it covers the audit gap above. MITRE's detection strategy for this sub-technique (DET0594) describes the behavior as replication requests made "from non-DC endpoints". On the wire, that is a DRSUAPI conversation that starts on a host that is not a domain controller.
The interface UUID for DRSUAPI is e3514235-4b06-11d1-ab04-00c04fc2dcd2 (Zeek's protocol constants map it to drsuapi). The client names it in the RPC bind, so in a capture from a DC's switch port or a span in front of your DCs, this Wireshark display filter shows binds to the replication interface from anything that is not a DC:
dcerpc.cn_bind_to_uuid == e3514235-4b06-11d1-ab04-00c04fc2dcd2 && !(ip.src in {10.40.0.11, 10.40.0.12})When Wireshark can dissect the call itself, drsuapi.opnum == 3 marks the GetNCChanges requests. Do not count on reading what they asked for. The MS-DRSR security provider section says a client must request packet privacy, which means the RPC messages are encrypted, so the bind, the endpoints and the timing are usually all you get. The interface also uses dynamic endpoints, so expect a call to the endpoint mapper on TCP 135 followed by a connection to a high port. Both fields are listed in Wireshark's DCE/RPC and DRSUAPI display filter references through version 4.6.9. For the rest of a capture review, our Wireshark display filters cheat sheet groups filters by the question you are asking, including the SMB filters for named pipes and admin shares.
In a Zeek deployment the same signal lives in dce_rpc.log: Zeek's DCE/RPC constants name the interface drsuapi and opnum 3 DRSGetNCChanges. Alert on that endpoint and operation from a source outside your DC list. If you run Defender for Identity, its DCSync alert fires "when a replication request is initiated from a computer that isn't a domain controller". Microsoft adds that DCs without its sensor are not covered, and that a newly deployed DC may not be identified as one straight away.
False positives
| Source | Looks like | How to handle it |
|---|---|---|
| Other domain controllers | DC computer account, source IP of a DC | Expected. Allowlist by account and address together |
| Entra Connect (Azure AD Connect) | MSOL_ account from the sync server, on every sync cycle | Allowlist the account and the sync server's IP. Alert if that account replicates from anywhere else |
| New domain controller being promoted | New DC account before you update the list | Tie DC promotion to a change ticket that updates the watchlist |
dcdiag /Test:Replications | An admin account from an admin host | Listed by Splunk as a known false positive. Confirm with the admin, then tune by host, not by account |
| Identity backup and auditing products | A service account from a known server | Ask the vendor which rights the product needs, record it, and allowlist by account plus server |
Allowlist a pair (account plus source), never an account alone. If an attacker steals the Entra Connect account (Defender for Identity has a separate alert for suspicious authentication by it), an account-only allowlist lets them DCSync from any host without a single alert.
Worked example: a backup account replicating from a workstation
Note
Simulated example generated by SOCSimulator Research. Domain, hosts, accounts and addresses are fictional and use private ranges. Events are shown as the SecurityEvent columns the KQL query reads; all six were logged by HQ-DC01.
| TimeGenerated (UTC) | EventID | Account (TargetUserName in 4624, SubjectUserName in 4662) | Logon ID | IpAddress / WorkstationName | Properties (GUIDs) |
|---|---|---|---|---|---|
| 2026-11-03 21:14:07 | 4624 (type 3) | svc-backupmon | 0x5a3f21c | 10.40.18.57 / FIN-WS-0412 | |
| 2026-11-03 21:14:08 | 4662 | svc-backupmon | 0x5a3f21c | 1131f6aa-..., 1131f6ad-... | |
| 2026-11-03 21:14:30 | 4624 (type 3) | HQ-DC02$ | 0x1e7a9b0 | 10.40.0.12 / HQ-DC02 | |
| 2026-11-03 21:14:31 | 4662 | HQ-DC02$ | 0x1e7a9b0 | 1131f6aa-... | |
| 2026-11-03 21:16:01 | 4624 (type 3) | MSOL_5d1c7e20a9b3 | 0x3c01d4e | 10.40.2.30 / SYNC01 | |
| 2026-11-03 21:16:02 | 4662 | MSOL_5d1c7e20a9b3 | 0x3c01d4e | 1131f6aa-..., 1131f6ad-... |
Each 4662 joins to the 4624 with the same logon ID. The KQL query returns one row: Computer HQ-DC01, SubjectUserName svc-backupmon, SubjectLogonId 0x5a3f21c, IpAddress 10.40.18.57, WorkstationName FIN-WS-0412, Events 1, GetChangesAll 1. HQ-DC02$ is a DC account whose logon came from a DC address (10.40.0.12), and the MSOL_ account logged on from the Entra Connect server it is paired with (10.40.2.30), so both drop out. How to work it:
- Confirm the right.
1131f6adis Get-Changes-All. The request asked for secrets, so treat it as a successful credential dump until you can show otherwise. There is no "attempted" DCSync once the event says access was granted. - Identify the source. FIN-WS-0412 is a finance workstation, not a server the backup tooling runs from. Pull its EDR process tree for 21:13 to 21:15 and look for whatever opened the connection to HQ-DC01: a Python interpreter, an unsigned binary, a PowerShell host.
- Find out why the account can do this. A backup monitoring account has no business holding replication rights. Check the ACL on the domain head (PowerShell below) and the 5136 history for when the rights were granted and by whom. That grant is the earlier compromise.
- Scope by logon session. Every action under logon
0x5a3f21cbelongs to the same session. Search for other 4662 events, other DCs contacted from 10.40.18.57, and any later logons by accounts whose hashes were in reach.
The Hide Your RDP operation in SOCSimulator (a Pro operation) has a task built on this moment: an account with no business doing so asks the domain controller for replication data, and you have to find where that event was recorded.
DCSync vs DCShadow
They sound alike and both abuse replication, but they run in opposite directions. DCSync pulls data out of a domain controller. DCShadow pushes changes in: the attacker temporarily registers a machine as a domain controller and replicates attacker-chosen changes to the real ones. MITRE warns this may bypass SIEM monitoring, since actions taken on a rogue DC may not be reported to those sensors. MITRE tracks it as Rogue Domain Controller (T1207) and notes that registering the rogue DC requires administrator privileges (domain, or local to the DC) or the krbtgt hash. So it tends to appear once the attacker already holds domain-level access, often after a DCSync.
The detection is different because the evidence is different. DCShadow has to make the rogue machine look like a DC for a few seconds, so it adds replication service principal names (one starting with the DRSUAPI GUID E3514235-4B06-11D1-AB04-00C04FC2DCD2, and a GC/ one) to its computer account and creates server objects in the Configuration partition, then removes them. MITRE's T1207 page lists those SPNs among its detection signals. On the DC:
- Event 4742 (a computer account was changed) shows the new SPN list in its Service Principal Names field, according to Microsoft's 4742 reference. A workstation that suddenly lists a DRSUAPI SPN is the tell.
- Event 5136 (a directory service object was modified) records the same attribute changes as "Value Added" and "Value Deleted" pairs, but only if the object has a SACL for those writes (5136 reference). The add and delete arriving within seconds is the DCShadow rhythm.
A minimal 4742 check for SecurityEvent, where the SPN list sits in EventData because the table has no dedicated column for it:
let DCAccounts = dynamic(["HQ-DC01$", "HQ-DC02$"]);
SecurityEvent
| where TimeGenerated > ago(1d)
| where EventID == 4742
| where EventData has "E3514235-4B06-11D1-AB04-00C04FC2DCD2"
| where TargetUserName !in~ (DCAccounts)
| project TimeGenerated, Computer, SubjectUserName, SubjectLogonId, TargetUserNameThe T1207 page has the fuller detection set, including the short-lived server object.
Response and mitigation
If you confirm a DCSync, assume every hash in the domain is known to the attacker, starting with krbtgt. Microsoft's guidance is to reset the krbtgt password twice and to wait 10 hours between the two resets, the default maximum ticket lifetime, so that tickets issued under the old key expire before the second reset removes it from history. Reset the account that made the request, the privileged accounts, and service accounts whose hashes give access to something that matters, and remove the replication rights from whatever account should not have had them. Contain the source host before you rotate anything: rotating while the attacker still has a foothold just hands them the new secrets.
Before it happens, audit who holds the rights. MITRE's mitigation (M1015) is to manage the ACL for Replicating Directory Changes and the related permissions. This PowerShell lists the allow entries on the domain head that name one of the three rights by GUID, entries that grant ExtendedRight with an empty object type (All Extended Rights in the ACL editor, which covers the replication rights too), and entries with GenericAll or WriteDacl. GenericAll includes read and write with an extended right, per Microsoft's access mask table on the 4662 page, and WriteDacl lets an account grant itself the rights at any time.
Import-Module ActiveDirectory
$domainDN = (Get-ADDomain).DistinguishedName
$rights = @{
'1131f6aa-9c07-11d1-f79f-00c04fc2dcd2' = 'DS-Replication-Get-Changes'
'1131f6ad-9c07-11d1-f79f-00c04fc2dcd2' = 'DS-Replication-Get-Changes-All'
'89e95b76-444d-4c62-991a-0facbeda640c' = 'DS-Replication-Get-Changes-In-Filtered-Set'
}
(Get-Acl -Path "AD:\$domainDN").Access |
Where-Object {
$_.AccessControlType -eq 'Allow' -and (
$rights.ContainsKey($_.ObjectType.ToString()) -or
($_.ObjectType -eq [guid]::Empty -and $_.ActiveDirectoryRights -match 'ExtendedRight') -or
$_.ActiveDirectoryRights -match 'GenericAll|WriteDacl'
)
} |
Select-Object IdentityReference, ActiveDirectoryRights, IsInherited,
@{ Name = 'Right'; Expression = { if ($_.ObjectType -eq [guid]::Empty) { 'All' } else { $rights[$_.ObjectType.ToString()] } } } |
Sort-Object IdentityReferenceExpect the groups MITRE names (Administrators, Domain Admins, Enterprise Admins), the groups that hold your domain controllers' computer accounts, and your Entra Connect account. Everything else needs an owner and a reason. Run it on a schedule, diff the output, and alert on additions. It costs one scheduled task, and it applies least privilege to the one permission set where a mistake costs the whole domain.
Practice Active Directory investigations on realistic telemetry
Work authentication records, process trees and perimeter traffic across SIEM, XDR and Firewall consoles, and get scored on every call. The free tier includes all three.
Frequently asked questions
What is a DCSync attack?
A DCSync attack is a credential theft technique (MITRE ATT&CK T1003.006) in which an account that holds Active Directory replication rights asks a domain controller to replicate password data to it, as if it were another domain controller. The domain controller answers with the NTLM hashes and Kerberos keys of the accounts requested, krbtgt included. Nothing runs on the domain controller itself, so endpoint tools on the DC see very little.
How do you detect a DCSync attack?
On the domain controller, alert on event 4662 with ObjectServer DS, AccessMask 0x100 and a Properties field containing 1131f6ad-9c07-11d1-f79f-00c04fc2dcd2 (DS-Replication-Get-Changes-All), raised by an account that is not a domain controller or an approved sync account. Join it to the 4624 network logon with the same logon ID to get the source IP. On the network, look for DRSUAPI binds from hosts that are not domain controllers. Event 4662 only exists if Audit Directory Service Access is on and the domain object has a matching SACL.
What permissions are needed for DCSync?
Two extended rights on the domain object: Replicating Directory Changes (DS-Replication-Get-Changes) and Replicating Directory Changes All (DS-Replication-Get-Changes-All). The second is the one Microsoft describes as allowing replication of secret domain data. By default, per MITRE, members of Administrators, Domain Admins and Enterprise Admins and the domain controllers' computer accounts can do it. The Entra Connect AD DS connector account also gets both rights when password hash sync is enabled.
What event ID shows a DCSync attack?
Event 4662, "An operation was performed on an object", logged on the domain controller that served the request. The replication rights appear as GUIDs in its Properties field. Event 4624 with logon type 3 and the same logon ID gives you the source address. Defender for Identity raises its own alert, Suspected DCSync attack (replication of directory services), if the DC runs its sensor.
Does DCSync require code execution on the domain controller?
No. Impacket's secretsdump.py runs from Linux or Windows and mimikatz lsadump::dcsync from Windows, on any machine that can reach a domain controller over RPC, using an account that holds the replication rights. That is why process and file telemetry on the DC rarely shows it, and why the useful evidence is the 4662 event on the DC and the replication traffic coming from a machine that is not a domain controller.
Nerea writes SOCSimulator's guides for people starting or growing a career in security operations: how Windows authentication shows up in the logs (NTLM vs Kerberos), and which tools a T1, T2 or T3 analyst opens first. Each guide is built around the questions a new analyst actually has on shift, with real event IDs and queries to practice on.


