🔨DCSync Attack
Description
A DCSync attack is where an adversary impersonates a Domain Controller (DC) and requests replication changes from a specific DC. The DC in turn returns replication data to the adversary, which includes account hashes.
By default the following groups have permissions to perform this action:
Administrators
Domain Admins
Enterprise Admins
Domain Controllers
However, in an incorrectly configured environment it may be possible to hunt down users who have the required individual permissions without being in any of the aforementioned groups. These individual permissions are:
Replicating Directory Changes
Replicating Directory Changes All
Replicating Directory Changes In Filtered Set
Enumeration
The following commands can be used with PowerView
to enumerate for users with the required rights.
We can take the individual SID's and attempt to identify the related User Principal Names (UPN's).
Using PowerView
Using Wmic
Exploitation
Mimikatz
can be used to pull hashes from account.
Mimikatz needs to be run as an account that can perform replication.
Secretsdump.py
Impacket's secretsdumpy.py can be used to dump all domain hashes, providing the hash or password is known for an account with permission to perform replication.
Persistence
PowerView
can be used to give a user object the DCSync rights for future exploitation.
References: https://www.exploit-db.com/docs/48298
Last updated