A DCSync attack is one in which an attacker uses an account that holds Active Directory replication rights to ask a domain controller for account secrets, the way one domain controller asks another, and receives password hashes for any account they name, including krbtgt. MITRE ATT&CK tracks it as T1003.006, and joint guidance from six national cyber agencies says a successful DCSync "signifies the complete compromise of an Active Directory domain".
The technique is not new, but how defenders are told to catch it changed this year. The joint guidance from the Australian Signals Directorate, CISA, the NSA and their Canadian, New Zealand and UK counterparts (the Five Eyes guidance below) was revised on 15 September 2026 and now prefers a lower-noise detection based on RPC auditing over the older object-access event. This guide covers how DCSync works, which permissions make it possible and who should hold them, how it shows up in Windows logs, Microsoft Defender for Identity and network monitoring, how to remove the exposure and how a penetration test checks it. It stays at the level a defender needs and includes no attack commands.
Quick answer. DCSync abuses Active Directory's replication protocol. Any account with Replicating Directory Changes and Replicating Directory Changes All on the domain root, or with permissions that can grant them, can request password hashes from a domain controller without running code on it. Legitimate replication comes from domain controllers, the Microsoft Entra Connect server and a few documented products, so a replication request from any other machine is the tell. Detect it with event 5712 or 4662 on domain controllers, Defender for Identity alert 2006 and network monitoring of DRSUAPI traffic, and prevent it by removing every replication grant you cannot justify and treating the rest as Tier 0. Stingrai's Active Directory testing proves which accounts can reach those rights.
DCSync at a glance
Question | Short answer |
|---|---|
What is it? | Requesting account secrets from a domain controller through the directory replication protocol. MITRE ATT&CK: T1003.006, OS Credential Dumping: DCSync, under the Credential Access tactic. |
What does the attacker need? | An account that holds the replication rights on the domain root, or a permission such as GenericAll, AllExtendedRights or the right to change the domain root's permissions. |
Who has those rights by default? | Members of Enterprise Admins, Domain Admins and the Administrators group on domain controllers, and domain controllers themselves. |
What does it return? | Password hashes for the accounts requested, up to every user and computer in the domain, including krbtgt. |
What is the tell? | A replication request from a machine that is not a domain controller or another documented replication source. |
Where does it show up? | Events 5712 and 4662 on the domain controller that answered, Defender for Identity alert 2006, and DRSUAPI traffic on the network. |
What stops it? | Fewer principals with replication rights, Tier 0 protection for the ones that remain, and a review every six months. |
What is a DCSync attack, and how does it work?
Every domain controller keeps a full copy of the directory, and domain controllers keep each other current by replicating changes. They do that over Microsoft's Directory Replication Service Remote Protocol, MS-DRSR. The call that pulls changes is IDL_DRSGetNCChanges, operation number 3 on the RPC interface with the UUID e3514235-4b06-11d1-ab04-00c04fc2dcd2, which Microsoft's specification describes as the method that "replicates updates from an NC replica on the server".
A domain controller answering that call checks the calling account's permissions, not whether the caller is another domain controller. Microsoft's Defender for Identity reference puts it this way: "Given necessary permissions, attackers can initiate a replication request, allowing them to retrieve the data stored in Active Directory, including password hashes." MITRE describes DCSync as abusing that interface "to simulate the replication process from a remote domain controller". The Five Eyes guidance draws it in two steps: with the necessary privileges, the attacker requests replication from the domain controller, and the domain controller "responds with Active Directory information including password hashes".
Three properties make the attack hard to notice and hard to recover from:
No code runs on the domain controller. The attacker works from any machine that can reach a domain controller over RPC. Microsoft's report on Storm-0501 says the technique "is often used to extract credentials without triggering traditional authentication-based alerts".
It is selective. The Five Eyes guidance notes that attackers "may choose to retrieve all user and computer object password hashes or target individual objects, such as the KRBTGT user object".
The result is reusable. The hashes can be cracked or used directly. The krbtgt hash lets the attacker forge Kerberos tickets, which MITRE links to the Golden Ticket technique. The Five Eyes guidance adds a variant: an attacker who can turn on "store passwords using reversible encryption" for an account can, after the next password change, obtain that account's cleartext password through DCSync.
MITRE records that DCSync functionality is included in the lsadump module of Mimikatz, and lists among its users APT29 in the SolarWinds compromise, LAPSUS$ and Storm-0501. Tool names change. The replication request does not, which is why the detections later in this guide watch the protocol and the rights, not the tool.

Figure 1: Who sends replication requests to a domain controller, and where DCSync shows up, 2026. Sources: Five Eyes guidance, Microsoft Defender for Identity, MITRE ATT&CK DET0594.
Which permissions allow DCSync?
Replication is controlled by extended rights on the domain root object, the object at the top of the domain naming context. Microsoft's schema reference lists three.
Right (display name) | Internal name | Rights-GUID | What Microsoft says it does |
|---|---|---|---|
Replicating Directory Changes | DS-Replication-Get-Changes | 1131f6aa-9c07-11d1-f79f-00c04fc2dcd2 | "Extended right needed to replicate changes from a given NC." |
Replicating Directory Changes All | DS-Replication-Get-Changes-All | 1131f6ad-9c07-11d1-f79f-00c04fc2dcd2 | "Control access right that allows the replication of secret domain data." |
Replicating Directory Changes In Filtered Set | DS-Replication-Get-Changes-In-Filtered-Set | 89e95b76-444d-4c62-991a-0facbeda640c | Listed in the schema reference without a description. |
Sources: Microsoft's schema pages for Get-Changes, Get-Changes-All and Get-Changes-In-Filtered-Set.
The "All" right is the one that matters most, because it covers secret data. The first right on its own is what some directory sync products ask for: SharePoint Server's profile synchronization planning guide says its sync account needs Replicate Directory Changes and that "this permission doesn't allow an account to make any changes in the directory". The Five Eyes guidance treats all three as DCSync privileges, and so should an access review.
Permissions that amount to DCSync
The extended rights are not the only route. The Five Eyes guidance says DCSync also works with "either 'GenericAll' or 'AllExtendedRights' permissions" on the domain root. A principal that can change the domain root's permissions can grant itself the replication rights, which is why the same guidance lists the domain object's WRITE_DAC access as something that "may indicate an attempt to modify permissions on the domain object to enable replication access".
The chain can also start further away. In CISA's August 2026 red team advisory, cleartext credentials for a domain service account turned up in an XML file on an SCCM distribution point. The account had AllExtendedRights over a domain controller, which, in CISA's words, "enabled the team to conduct a resource-based constrained delegation attack, granting them DCSync privileges". CISA's lesson from it: "AllExtendedRights enables malicious cyber actors to perform DCsync attacks and potentially impersonate any account in the domain, leading to full domain compromise."
That is why a DCSync review is a review of the domain root's access control list and of every path that leads to it, not only a list of who holds two named rights.
Why a successful DCSync means the whole domain
The Five Eyes guidance is blunt about the consequence. Losing every account hash and the krbtgt hash "can be difficult to recover from as it requires resetting all user and computer object password hashes in the domain, as well as resetting the KRBTGT password twice in a coordinated manner", and "for many organisations, these recovery activities are significant, costly and disruptive".
The krbtgt reset has to happen twice because, as the same guidance explains in its Golden Ticket section, "both the new and old KRBTGT passwords are stored by Domain Controllers", so one reset leaves the stolen key valid. It also recommends changing the krbtgt password every six months as routine, with enough time between the two resets for the new password to replicate.
DCSync is also where many attack paths end. The Five Eyes guidance asks that accounts with a service principal name never hold DCSync permissions, to reduce the risk of one being cracked through Kerberoasting "and then being used by malicious actors to execute DCSync". Stingrai's Kerberoasting guide covers that first step.
Evidence: DCSync in recent intrusions and red team reports
Date | Source | What it reported |
|---|---|---|
21 November 2024 | CISA red team assessment of a critical infrastructure organization | With a domain controller's ticket, the team used DCSync through Linux tunnels to get the hashes of several privileged accounts and of krbtgt. Defenders "failed to detect and respond to the red team's S4U2Self, asktgs, dcsync, and golden ticket activity". |
27 August 2025 | The ransomware actor compromised an Entra Connect Sync server, which Microsoft assesses served as a pivot point, and "also performed a DCSync attack", which let it request password hashes for any user in the domain. | |
25 August 2026 | A service account with AllExtendedRights over a domain controller led to DCSync privileges. The team then used DCSync to obtain a user's AES256 hash, and re-enabled a disabled, AD-synced account that owned an application able to read and send every user's email, then took its credentials through DCSync. | |
30 October 2026 | An agentic offensive framework observed in incident response engagements, "following an offline cracking pause", ran DCSync scripts "to steal the domain krbtgt key, cloud AD-sync credentials, and domain Controller machine hashes". |
Two patterns run through these reports. The first is hybrid identity: Storm-0501 and the August 2026 CISA team both moved from on-premises Active Directory into Entra ID in the same intrusion, and the CISA team used credentials taken through DCSync to do it. The second is detection: after defenders in the November 2024 assessment missed the activity, CISA recommended creating alerts for "Windows event log authentication codes, especially for the domain controllers", because they "could help detect some of the pass-the-ticket, DCSync, and other techniques described in this report".
Who should hold replication rights, and what to remove
This is the table to work from. It combines what Microsoft and the Five Eyes guidance say each principal needs with Stingrai's guidance on what to do about it; no standard defines it as a list.
Principal | Why it holds the rights | Keep or remove | What to do |
|---|---|---|---|
Domain controllers | Replication is their job. | Keep | Nothing to remove. Use them as the allowlist for every detection below. |
Enterprise Admins, Domain Admins, Administrators | Granted by default, per the Five Eyes guidance. | Keep the grant, shrink the membership | Minimise membership, keep members off lower-tier machines, review every six months. |
Microsoft Entra Connect AD DS connector account (MSOL_ prefix in express installs) | Microsoft grants Replicate Directory Changes and Replicate Directory Changes All for password hash sync. | Keep if you use password hash sync | Treat the server and account as Tier 0, restrict the account's own permissions, and alert on its use from anywhere but the sync server. |
Other sync, identity or privileged access management products | The Five Eyes guidance notes such systems "may also legitimately replicate directory information". | Keep only where the vendor documents the need | Record each one, its owner and its source host, and treat that host as Tier 0. |
SharePoint user profile sync and older identity management connectors | Their documentation asked for Replicate Directory Changes. | Usually remove | Check whether the product is still running. Microsoft's identity support team documented a registry setting that lets the FIM Active Directory management agent use ordinary directory permissions instead. |
Exchange servers and groups under the shared permissions model | Under the default shared permissions model, Exchange holds rights at the domain root, including Write DACL entries. Microsoft does not tie these to DCSync, but write access to permissions is a route to the rights. | Reduce | Apply the cumulative update in Microsoft's KB4490059 and run its domain preparation in every domain. |
Accounts with a service principal name | Usually a leftover or a shortcut. | Remove | The Five Eyes guidance says SPN accounts must not hold DCSync permissions. |
Any other user, group or computer with the rights, GenericAll, AllExtendedRights or write access to the domain root's permissions | Migrations, old projects, someone's test. | Remove | Investigate how the grant got there before removing it; a grant with no owner may be an attacker's persistence. |
Microsoft Entra Connect deserves its own line
Microsoft says the Entra Connect server "must be treated as a Tier 0 component". The Five Eyes guidance explains why in DCSync terms: with password hash sync, the Active Directory MSOL account "has permissions to replicate information, including password hashes from Domain Controllers, which are the same permissions required for DCSync", and an attacker with administrative access to the Entra Connect server can extract that account's cleartext password.
Three controls follow from Microsoft's own documentation:
Restrict the connector account's own permissions. Microsoft's ADSyncConfig module includes a cmdlet that disables inheritance on the account and removes its access control entries, keeping the account's own SELF entries, and leaving full control to SYSTEM, Enterprise Admins, Domain Admins and Administrators and read access to Enterprise Domain Controllers and Authenticated Users.
Grant replication only for password hash sync. Microsoft lists the two replication rights against password hash sync alone, and says that if none of the optional features are enabled, "the default Domain User permissions are sufficient".
Watch where it signs in. Defender for Identity's XDR alert "Suspicious Entra Connect account authentication" fires when the account's activity is "suspected to originate from a non-Entra Connect server", which Microsoft says might indicate the account is being used "for attacks such as DCSync".
Exchange: the old grant at the domain root
Microsoft's KB4490059 explains that under the shared permissions model, the default, "Exchange Server grants rights to servers that are running Exchange Server at the root of the domain", including the ability to modify access control lists, and that "this gives Exchange Server an elevated level of directory permission". The reduction shipped in Exchange Server 2019 Cumulative Update 1, Exchange Server 2016 Cumulative Update 12 and Exchange Server 2013 Cumulative Update 22, and requires running the update's /PrepareAD, and /PrepareDomain in every other domain in the forest. It adds the Inherit Only flag to the Write DACL entries that the Exchange Windows Permissions group holds at the domain root for user and InetOrgPerson objects, and from Exchange Server 2016 it removes an Exchange Trusted Subsystem entry from AdminSDHolder. Exchange Server 2010 gets a manual fix. Microsoft's article does not mention DCSync, but its advisory for CVE-2019-0724, which points to this KB as the fix, says an attacker "could gain the same rights as a Domain Administrator". Because the reduction applies only once the prepare steps have run, Stingrai's guidance is to check the entries at the domain root rather than the installed Exchange version.
How does DCSync show up in Windows security logs?
All the Windows evidence lives on the domain controller that answered the request. Nothing is written on the attacker's machine that you can count on. There are two ways to see the request itself and one way to see the rights being granted.
Event 5712: RPC auditing (the preferred method)
The Five Eyes guidance now calls RPC-based detection "the preferred technique as it generates lower telemetry volume and provides a higher signal-to-noise ratio". It requires every domain controller to run Windows Server 2019 or later with Microsoft's October 2025 cumulative update or later. The setup, as the guidance describes it:
Enable Audit RPC Events (Success) in Advanced Audit Policy Configuration on every domain controller.
Add a Windows Firewall RPC filter rule on each domain controller that permits and audits calls to the MS-DRSR interface (e3514235-4b06-11d1-ab04-00c04fc2dcd2) at operation number 3. The guidance warns that the action must be permit: a deny "will block replication activity on the Domain Controller".
Collect event 5712 from the Security log. It records the account that started the replication, its logon ID, the remote IP address, and the interface ID and operation number.
Alert when the remote IP address is not a domain controller or another approved replication source, or when the account is not one you expect. Where replication runs over SMB in a non-default configuration, the remote IP can be missing; the guidance says to match the event's subject logon ID to the target logon ID in event 4624 to find the source.
One caution: Microsoft's own older reference page for event 5712 still says "it appears that this event never occurs". The Five Eyes guidance says that once its requirements are met, Windows Server 2019 or later with the October 2025 update and the firewall audit rule in place, directory replication activity "will generate Event ID 5712". Test it in your environment before relying on it.
Event 4662: Directory Service Access (the older method)
Event 4662, "An operation was performed on an object", is written when an operation matches a system access control list (SACL) on an Active Directory object. For DCSync, three things have to be true:
The Audit Directory Service Access subcategory is enabled for Success on domain controllers. Microsoft's baseline recommendation for domain controllers is Failure only, so a domain built to that baseline will not log the event.
A SACL on the domain root audits use of the replication rights. The Sigma project's DCSync rules state this requirement in their log source definition.
The events are collected. Microsoft rates the subcategory's volume as "High on servers running AD DS role services".
In the event, look for a Properties field containing one of the three replication GUIDs above. Use of an extended right is recorded as Control Access, 0x100 in Microsoft's access table, which defines it as "the right to perform an operation controlled by an extended access right". The Five Eyes guidance lists the Get-Changes-All and Get-Changes-In-Filtered-Set GUIDs as the values associated with replication; the Sigma rules add the plain Get-Changes GUID and the DS-Replication-Synchronize GUID. The account in the event is the one that requested replication. The guidance puts the test this way: "If this event is not generated by a Domain Controller, it may indicate a DCSync has occurred." In practice, that means checking whether the account in the event belongs to a domain controller or an approved replication source.
Event 5136: the rights being granted
A DCSync that starts with a permission change leaves a second trace. With Audit Directory Service Changes enabled and a SACL on the domain root, event 5136 records a change to the root's security descriptor. A Sigma rule looks for 5136 events where the changed attribute is ntSecurityDescriptor and the new value contains any of the three replication GUIDs, filtering out DNS objects. The rule lists one expected false positive: a new domain controller's computer account. Anything else is worth an incident ticket, because a replication grant is also a quiet way to keep access after a password reset.
How to detect DCSync: the detection table
Source | What to collect | Alert when | Expected noise |
|---|---|---|---|
Event 5712 (RPC auditing) | Security log on every domain controller, with the MS-DRSR firewall audit rule | Interface e3514235-4b06-11d1-ab04-00c04fc2dcd2, operation 3, from a remote IP that is not an approved replication source | Low once domain controllers and documented sync servers are allowlisted |
Event 4662 (Directory Service Access) | Success auditing plus a SACL on the domain root | A replication GUID in Properties requested by an account that is not a domain controller account or an approved sync account | Higher volume; needs the allowlist and source checks |
Event 5136 (Directory Service Changes) | SACL on the domain root | The domain root's security descriptor changes to include a replication GUID | Rare; new domain controllers only |
Microsoft Defender for Identity | Sensors on every domain controller | Alert 2006, "Suspected DCSync attack (replication of directory services)", High severity | Microsoft says the alert has no learning period |
Defender for Identity, XDR format | Same sensors | "DCSync attack (replication of directory services)", and "Suspicious Entra Connect account authentication" for the sync account | As above |
Network sensor | DCE/RPC traffic to domain controllers | DRSUAPI traffic to a domain controller from an address that is not a replication partner | Depends on how well replication partners are listed |
Canary objects | A decoy object with a deny-read ACE and failure auditing | Any 4662 failure on the canary | Catches broad enumeration before DCSync, not a targeted request |
Microsoft Defender for Identity
Defender for Identity's classic alert, external ID 2006, is the built-in detection most Microsoft shops will see first. Microsoft's alert reference says "an alert is triggered when a replication request is initiated from a computer that isn't a domain controller". It also states the coverage limit plainly: domain controllers without a sensor "aren't covered", and "it's highly recommended to install the Defender for Identity sensor on every domain controller to get full coverage". In the newer XDR-format alerts, the same detection appears as "DCSync attack (replication of directory services)", which reports the source IP address and account.
Defender for Identity also has a posture check for the exposure itself. Its account assessment "Remove non-admin accounts with DCSync permissions" lists accounts that are not domain admins but hold Replicating Directory Changes or Replicating Directory Changes All, because "accounts with the DCSync permission can initiate domain replication".
Network monitoring
MITRE's detection strategy for DCSync, DET0594, lists three log sources: event 4662, event 4929 and network traffic content described as "traffic on RPC DRSUAPI". Its analytic looks for replication operations "from non-DC endpoints" and leaves three values to tune: a time window that links unusual account access to DRSUAPI traffic, the accounts known to replicate legitimately, and the source addresses of the domain controllers that replication is expected to come from. A network sensor that decodes DCE/RPC can flag connections to the MS-DRSR interface UUID from addresses outside the domain controller list. It does not need a log setting on the domain controller to work, which makes it a useful second source where audit policy is uncertain.
Logic that holds up, and where rules go blind
Allowlist by source as well as account. The Sigma project's 4662 rule for user accounts filters out accounts whose names start with "MSOL_" to avoid alerting on Entra Connect. That also means a stolen sync account used from a workstation passes the rule. Pair account filters with a source address check, or with Defender for Identity's Entra Connect alert.
Do not ignore computer accounts. The same rule excludes names ending in "$". The Sigma project keeps a separate rule for machine accounts that request replication without being domain controllers.
Baseline first. The Five Eyes guidance says organisations should "establish and maintain a baseline of normal directory replication activity". Write down every legitimate source before switching any rule to alert.
Correlate with the path in. A replication request is often the last step. The rights grant (5136), a new logon by a sync account from an unusual host, or a Kerberoasting burst earlier the same day are the context that turns an alert into an incident.
Detection is the second line. In the ARTEX activity Google describes, DCSync came after a pause for offline cracking: by the time the replication request is made, the attacker already controls an account with the rights, and an alert can only start the recovery. Removing the rights is what stops it.
How do you prevent DCSync?
The Five Eyes guidance says "it is not possible to completely eliminate the risk of DCSync", because domain controllers and administrators need the rights. The work is to make the list of principals as short as possible and protect what is left. In priority order:
Step | What it does | Source |
|---|---|---|
1. Inventory every principal with replication rights, GenericAll, AllExtendedRights or write access to the domain root's permissions | Shows the real exposure, including paths through nested groups | Five Eyes guidance; MITRE mitigation M1015: "Manage the access control list for 'Replicating Directory Changes' and other permissions associated with domain controller replication." |
2. Remove every grant that is not a domain controller, a default admin group or a documented sync product | Shrinks the target list | Defender for Identity assessment "Remove non-admin accounts with DCSync permissions" |
3. Remove the rights from any account with a service principal name | Closes the Kerberoasting-to-DCSync path | Five Eyes guidance |
4. Reduce Exchange's domain root permissions | Removes a broad legacy grant | Microsoft KB4490059 |
5. Treat the Entra Connect server and connector account as Tier 0 and restrict the account's permissions | Protects the one non-DC account that legitimately replicates in most hybrid estates | Microsoft Entra Connect prerequisites and ADSyncConfig documentation |
6. Keep accounts with the rights off workstations and internet-facing servers | Stops their credentials being exposed where attackers land first | Five Eyes guidance: they should not "log on to unprivileged operating environments" |
7. Review the list every six months | Catches drift and new grants | Five Eyes guidance |
8. Disable NTLMv1 and stop storing LM hashes | Removes legacy protocols and hash formats the guidance says can be brute forced or quickly cracked | Five Eyes guidance (the DCSync mitigation list) |
9. Change the krbtgt password every six months, twice in a coordinated way | Limits how long a stolen krbtgt hash stays useful | Five Eyes guidance (Golden Ticket section) |
Stingrai's guidance adds one check that no standard spells out: list accounts with "store passwords using reversible encryption" turned on, because the Five Eyes guidance shows how that setting turns a DCSync into cleartext passwords.
If you find evidence of a DCSync
Treat it as the domain's secrets being gone, not as one compromised account. The recovery the Five Eyes guidance describes, resetting every user and computer password and resetting krbtgt twice in a coordinated way, is a planned project. Before it, remove the access that made the request possible, or the attacker repeats it the day after the resets.
How does a penetration test check for DCSync?
An Active Directory security assessment treats DCSync as a question about permissions and paths: who can replicate today, who can get there, and would anyone notice. The method below is what to expect from a competent tester. It leaves out the commands on purpose.
Start from an ordinary account. The tester works from one or two standard domain accounts, the position a phished employee gives away, and maps the domain's permissions from there.
List every principal that can replicate, directly or by one change. That means the three replication rights, GenericAll, AllExtendedRights and write access to the domain root's permissions, expanded through nested groups. Each one is matched against the table above: domain controller, default admin group, documented sync product, or something nobody can explain.
Find the paths to those principals. The useful finding is rarely "this account has replication rights". It is "this ordinary user can reach an account that has them", through a service account password in a file share, a Kerberoastable account, a delegation setting or an access control entry on a group. The CISA case above, cleartext credentials on an SCCM distribution point leading to AllExtendedRights over a domain controller, is the shape to look for.
Prove it within agreed limits. Where the rules of engagement allow it, the tester demonstrates replication against one agreed account rather than the whole domain, handles any secret under the engagement's data rules and does not print it in the report. Agree in advance whether a full proof is wanted, because a successful DCSync means recovery work for you if the data is mishandled.
Check Entra Connect and Exchange. Who administers the Entra Connect server, how the connector account is restricted, and whether the Exchange entries at the domain root were ever reduced.
Test the detection. Whether the security operations team saw a replication request from a workstation is one of the most useful results the test can produce. Decide beforehand whether they are told.
The output should be a table your team can act on: one row per principal that can replicate or reach replication, with how it gets there, whether it is legitimate, whether detection fired and the recommended fix.
Stingrai's StingAD walkthrough shows a complete chain in a lab domain built to be vulnerable, ending in DCSync against krbtgt. The Active Directory security checklist covers the surrounding controls, and the lateral movement guide covers how attackers reach the accounts that hold these rights.
Which engagement answers which question
Engagement | What it tells you about DCSync |
|---|---|
Whether a path from a foothold to replication rights exists and works. DCSync is one item among many. | |
Active Directory security assessment | Every principal that can replicate or reach replication, the Entra Connect and Exchange configuration, and every path those principals open. |
Whether events 5712 or 4662, Defender for Identity and network monitoring fire on a controlled replication request, and how fast the team responds. | |
Whether a full intrusion reaches DCSync without being stopped, as in the CISA assessments above. |
Questions worth putting to any provider before the work starts:
Will the report list every principal with replication rights or equivalent permissions, or only the path that was used?
Will the test cover Entra Connect, Exchange and other sync products at the domain root?
How will replicated secrets be stored, reported and destroyed?
Is detection in scope, and will the security operations team be told beforehand?
Is a retest of the removed grants included?
Where Stingrai fits
Stingrai is a CREST-accredited penetration testing company offering fully human-led and hybrid (human penetration testers plus AI agents) penetration tests, delivered by experienced penetration testers who are also world-class security researchers and bug bounty hunters. It was founded in Toronto, Canada in 2021 and works with companies from startups to enterprises.
Active Directory work is human-led. In Active Directory penetration testing, Stingrai's penetration testers start from the position of an ordinary domain user and attempt to reach control of the directory, then report every path they proved with the specific object and attribute behind each hop. Coverage includes Kerberos attacks such as Kerberoasting and AS-REP Roasting, ACL and delegation abuse, coerced authentication, Active Directory Certificate Services, Group Policy, domain and forest trusts, credential exposure and the Tier 0 boundary, with data collected through PingCastle and BloodHound and validated manually. Replication rights on the domain root are part of that ACL and Tier 0 review.
Who does the work: two named penetration testers from a team holding OSCE³, OSEP, CRTE, CRTO and CREST CRT certifications, with 18 published CVEs across the team. The team maintains its own open-source Active Directory toolkit, StingAD, which includes DCSync among its commands.
How findings arrive: each confirmed finding is posted to the PTaaS platform as it is confirmed, with remediation guidance, so an unexplained replication grant does not wait for the final report.
What happens after: a reassessment confirms the removed grants and closed paths, every engagement comes with an attestation letter, and the report gives your auditors penetration testing evidence for SOC 2, ISO 27001 and PCI DSS programs.
Engagements run as one-time annual tests or as continuous programs. Active Directory, network and red team work is scoped per engagement.
DCSync defender checklist
List every principal with Replicating Directory Changes, Replicating Directory Changes All or Replicating Directory Changes In Filtered Set on each domain root, expanded through nested groups.
Add every principal with GenericAll, AllExtendedRights or write access to the domain root's permissions.
Mark each one: domain controller, default admin group, documented sync product, or remove.
Remove the rights from any account with a service principal name.
Confirm Exchange's domain root entries were reduced as described in KB4490059, in every domain.
Treat the Entra Connect server and its connector account as Tier 0, restrict the account's permissions and alert on its use from any other host.
Keep every account with the rights off workstations and internet-facing servers.
On Windows Server 2019 or later with the October 2025 update, enable Audit RPC Events and the MS-DRSR firewall audit rule, and collect event 5712.
Where that is not possible, enable Directory Service Access Success auditing with a SACL on the domain root and collect event 4662.
Audit changes to the domain root's security descriptor (event 5136).
Install a Defender for Identity sensor on every domain controller if you use it, and review alert 2006 and the DCSync permissions assessment.
Write down every legitimate replication source and alert on all others, by address as well as account.
Review the list every six months and change the krbtgt password on the same cadence.
Have the result checked in your next Active Directory or internal network test, detection included.
Frequently Asked Questions
What is a DCSync attack?
A DCSync attack is one in which an attacker uses an account holding Active Directory replication rights to request password hashes from a domain controller through the directory replication protocol, as if they were another domain controller. No code runs on the domain controller. MITRE ATT&CK tracks it as T1003.006, and joint Five Eyes guidance says a successful DCSync signifies the complete compromise of the domain.
How does a DCSync attack work?
The attacker gets control of an account that holds the replication rights on the domain root, or one that can grant them. From any machine that can reach a domain controller, they call the replication method IDL_DRSGetNCChanges on the MS-DRSR interface. The domain controller checks the account's rights, not whether the caller is a domain controller, and returns the requested secrets, such as the krbtgt hash or every account's hash.
What permissions are needed for DCSync?
Replicating Directory Changes and Replicating Directory Changes All on the domain root object, and the Five Eyes guidance also lists Replicating Directory Changes In Filtered Set. GenericAll or AllExtendedRights on the domain root are enough, and write access to the root's permissions lets an account grant itself the rights. By default, Enterprise Admins, Domain Admins, the Administrators group and domain controllers hold them.
How do you detect a DCSync attack?
Look for replication requests that do not come from a domain controller or another approved source. The Five Eyes guidance prefers event 5712 from RPC auditing on domain controllers running Windows Server 2019 or later with the October 2025 update, filtered on the MS-DRSR interface and operation 3. Event 4662 with replication GUIDs, event 5136 for rights being granted, Defender for Identity alert 2006 and network monitoring of DRSUAPI traffic add coverage.
Which event ID detects DCSync?
Event 5712, "A Remote Procedure Call (RPC) was attempted", once RPC auditing and the MS-DRSR firewall audit rule are configured, and event 4662, "An operation was performed on an object", once Directory Service Access Success auditing and a SACL on the domain root are in place. Both are written on the domain controller that answered. Event 5136 shows the replication rights being added to the domain root.
Does Microsoft Defender for Identity detect DCSync?
Yes. Its classic alert "Suspected DCSync attack (replication of directory services)", external ID 2006 and High severity, triggers when a replication request comes from a computer that is not a domain controller. Microsoft says domain controllers without a sensor are not covered. It also raises "Suspicious Entra Connect account authentication" when the sync account is used from somewhere other than the Entra Connect server.
Why does Microsoft Entra Connect have DCSync rights?
With password hash synchronization, its AD DS connector account needs Replicate Directory Changes and Replicate Directory Changes All to read password hashes, the same permissions DCSync uses. That is legitimate, which is why Microsoft says the Entra Connect server must be treated as a Tier 0 component. Restrict the connector account's own permissions and alert on its use from any other host.
How do you prevent DCSync?
List every principal with replication rights or equivalent permissions on the domain root, remove everything that is not a domain controller, a default administrator group or a documented sync product, and remove the rights from any account with a service principal name. Treat the remaining accounts and the Entra Connect server as Tier 0, keep them off workstations, and review the list every six months.
Does a penetration test check for DCSync?
An internal penetration test usually checks whether a path from a foothold to replication rights exists. An Active Directory security assessment goes further: it lists every principal that can replicate or reach replication, checks Entra Connect and Exchange at the domain root, and proves the riskiest path within agreed limits. A purple team exercise tests whether your events and alerts fire on a controlled replication request.
Related reading
Kerberoasting Explained: How the Attack Works, Detection and Fixes (2026)
NTLM Relay Attack Explained: How It Works, Detection and Fixes (2026)
Lateral Movement Explained: Attack Paths, Detection and Testing (2026)
Active Directory Security Checklist (2026): Penetration Testers' First Checks, With Fixes
Active Directory Certificate Services Security Assessment (2026): A Buyer Scope
Pass the Hash Attack Explained: How It Works, Detection and Fixes (2026)
Golden Ticket Attack Explained: Silver Tickets, Detection and Fixes (2026)
Active Directory Penetration Testing Services (2026): Scope, Attack Paths and Cost
Active Directory Security Assessment: What It Covers, What It Finds, What It Costs
Hybrid Active Directory and Entra ID Red-Team Exercise: Buyer Scope and Evidence (2026)
ARTEX and Agentic Offensive Frameworks: What Google Observed and What to Test (2026)
Internal Penetration Testing (2026): Scope, Delivery, Cost Drivers and Requirements
Talk to Stingrai
Want to know which accounts can replicate your domain, who can reach them, and whether anyone would notice? Stingrai scopes Active Directory security assessments and internal network tests with a reassessment, as a one-time annual engagement or a continuous program. Get a quote.


