Lion Cipher Lab

DCSync: pull domain password hashes through the replication protocol in your own lab — then govern who can

Why it matters

DCSync is how a foothold in Active Directory becomes total ownership of the domain, and it is one of the hardest attacks for defenders to reason about because nothing is 'broken'. Domain controllers keep each other in sync by replicating directory data over a protocol called MS-DRSR; part of that data is account secrets. Windows lets any principal holding the 'Replicating Directory Changes' rights ASK a DC to replicate those secrets -- so an attacker who has compromised an account with those rights can simply request the password hash of any user, up to and including krbtgt, from anywhere on…

What you'll learn

Steps in this lab

  1. First, the shape of the problem — an abuse of replication, not a bug
  2. Set up: give a NON-admin account the replication rights (on purpose)
  3. BEFORE — DCSync a single account, then the whole domain
  4. Why this worked — and why there is no patch
  5. GOVERN — find who can DCSync, and strip the rights, then re-measure
  6. DETECT — turn on the audit event that catches DCSync
  7. RESPOND — reset krbtgt twice, and the honest limits

Open the full interactive lab →