Skip to main content
System SecurityAdvanced

DCSync Attack

What is DCSync Attack?

DCSync is a credential theft technique where an account with directory replication rights imitates a domain controller and asks a real one to send password-related secrets.

It targets Active Directory using the normal replication protocol, without running code on the domain controller. The required permissions are powerful and normally limited to domain controllers, certain administrators and approved synchronisation services. Obtained data can include the key of the krbtgt account.

How the attack works

Domain controllers replicate changes through a remote protocol described in Microsoft's MS-DRSR specification. A requester holding the relevant replication permissions on the domain, including access to secret attributes, can ask for account data as a replication partner would. The controller answers because the permissions are valid. Defenders therefore focus on who holds those rights and on replication requests from unexpected accounts or machines.

Example

An auditor lists the replication permissions on a test domain and finds an old backup service account holding them. After confirming it is unused, the team removes the rights and disables the account.

Limitations and common misconceptions

The technique needs high privilege first, so it usually signals serious existing compromise. Endpoint protection on the controller may see no new program. Legitimate synchronisation tools also replicate secrets, so alerts need an accurate list of approved accounts and hosts. Removing rights does not revoke data already taken.

Reducing the risk

Restrict replication permissions to essential principals and review them regularly. Protect synchronisation servers like domain controllers, enable directory access auditing, alert on replication by unapproved sources and limit that traffic at the network. After suspected abuse, run incident response, rotate affected credentials and reset krbtgt in the supported sequence.

Frequently Asked Questions

Is DCSync a vulnerability that a patch removes?
Patching alone will not remove it, because it abuses intended replication behaviour with sufficient permissions. The practical controls are limiting those permissions, protecting the identities that hold them and detecting requests that do not come from legitimate replication partners.
Which Windows event can help detection?
With suitable auditing configured, event 4662 on domain controllers can record use of directory replication rights. Analysts filter for the relevant right identifiers and accounts that are not expected to replicate.

Related terms

Learn and practise

Explore the topic: Linux, Security operations

References

NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a labCodelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us