hackweb
notes on hacking and technology
IT EN
main menu
user menu
you are not logged in

DCSync: asking the domain controller for the hashes

May 14, 2025 · 1 min read · #active-directory #kerberos #credential-theft

Domain controllers replicate credentials via the MS-DRSR protocol. Whoever has replication rights can request those hashes by impersonating a DC.

The attack

With DS-Replication-Get-Changes permissions (Domain Admins have them, but misconfigured ACLs grant them to normal users too), you extract any account's hash, including krbtgt (the golden-ticket key):

mimikatz lsadump::dcsync /user:krbtgt
impacket-secretsdump -just-dc dom/admin@dc

No code on the DC is needed: it is legitimate replication traffic, hence stealthy.

Defence

Audit who has replication rights on the domain (often granted by mistake). Monitor DRSR requests from non-DC hosts. Admin tiering. After a suspected krbtgt DCSync, rotate it twice.


« back to home

latest posts
 
your IP address:
216.73.216.108
visitor #0
MOTD:
Every abstraction leaks somewhere.
Here we look at where.
topics