DCSync
DCSync is a technique used to extract credentials from the Domain Controllers.
DC-Sync
To perform DCSync attack we need the following rights on the Domain Object:
Replicating Directory Changes (DS-Replication-Get-Changes)
Replicating Directory Changes All (DS-Replication-Get-Changes-All)
Replicating Directory Changes In Filtered Set (DS-Replication-Get-Changes-In-Filtered-Set) (this one isn’t always needed but we can add it just in case)
By default Administrators, Domain Admins, Enterprise Admins, and Domain Controllers groups have the required privileges.
The DCSync attack attempts to mimic the Domain Controller so that the hashes can be retrieved. The attack leverages the Directory Replication Service (DRS) Remote Protocol to request replication of user credentials from a DC.
To check who has the privileges to request user credentials from a DC:
Example Scenarios to exploit DCSync:
We assume that we have User account hash that is the member of Domain Admins group. Since we have the user account in DA group, we can dump hashes of the user, perform O-PassTheHash via Mimikatz to perform DCSync by requesting credentials of KRBTGT from DC.
We assume that we have User credentials that has WriteDACL rights on the Domain Object Since the user has WriteDACL privileges, we can use this to grant DCSync rights any user that we own. Once the owned user has DCSync rights, we can Invoke-Mimikatz and perform DCSync attack to retrieve KRBTGT hashes from the owned user shell.
Exploit Locally
To use the DCSync feature for getting krbtgt hash execute the below command with DA privileges for us domain:
Exploit Remotely
Last updated