Skip to main content

DCSync and DCShadow Attacks Detection

Detect and investigate DCSync and DCShadow, the two attacks that impersonate a Domain Controller.

Task 1: Introduction

Task 2: DCSync and DCShadow from an Adversary Perspective

Task 3: Can Your Domain Even See This?

Task 4: DCSync Detection

Task 5: DCShadow Detection

Task 6: Hands-On Investigation

Task 7: Containment, Prevention and Mitigation

Task 8: Conclusion

Back to all walkthroughs
Room Icon

DCSync and DCShadow Attacks Detection

Max room.

Detect and investigate DCSync and DCShadow, the two attacks that impersonate a Domain Controller.

hard

75 min

18

User profile photo.
User profile photo.

To access material, start machines and answer questions login.

Active Directory is built on a simple assumption: that anything speaking to a Domain Controller as a Domain Controller really is one. This room covers the two attacks that break that assumption, and how you detect each one.

Meme of a child in a marching band uniform, captioned: they told me I could be anything I wanted, so I became a Domain Controller

Image created with imgflip.

impersonates a Domain Controller to ask for the domain's password hashes. DCShadow impersonates one to write changes into the directory that the directory never records. You will work through how each attack is carried out, what evidence it leaves, and how to investigate it as the responding analyst.

Everything you do here is defensive. You will read logs, query the directory, and reconstruct what happened, but you will not run either attack yourself.

Learning objectives

After completing this room, you will be able to:

  • Explain how DCSync pulls password hashes out of Active Directory, and how DCShadow pushes changes back in, using the same replication protocol in opposite directions.
  • Verify whether a domain is even capable of recording either attack, and recognize the audit settings that are off by default.
  • Detect DCSync from event 4662 and trace it back to the host that made the request.
  • Detect DCShadow from the rogue Domain Controller the attacker had to build.
  • Contain and remediate a replication rights compromise, and apply controls that reduce who can perform either attack.

Prerequisites

Before starting, you should be comfortable with:

  • Active Directory fundamentals.
  • authentication and ticket structure (the Attacking Kerberos room)
  • Credential dumping concepts, particularly NTDS.dit, hashes, and the account
Answer the questions below

Read the above and click Check.