← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Windows DCShadow Rogue Domain Controller Registration Dataset

This hunt uses a simulated Active Directory replication dataset (windows_dcshadow_2022-08-04T230000.json) capturing T1207: Rogue Domain Controller, where an attacker with domain admin rights temporarily registers a compromised machine as a domain controller to inject malicious directory changes (e.g., SIDHistory, backdoor group memberships) via legitimate replication, bypassing standard audit logging on the real DCs.

Step 1: Hypothesis Formation

Hypothesis: A non-domain-controller machine registers itself as a replication endpoint by writing to the Configuration partition (CN=Configuration,CN=Sites) and briefly appears as a source in inbound replication traffic, followed by a directory object change that lacks the normal 4662/5136 audit trail on that object from a real DC. Indicators:

Null Hypothesis: A legitimate DC promotion/demotion or an authorized replication topology change (e.g., new read-only DC staging) is in progress. Invalidate by checking the AD change-control calendar and confirming the object was never formally promoted via dcpromo.

Rationale: DCShadow is designed specifically to evade standard AD change auditing by injecting changes through replication rather than direct writes; this hunt validates DRSUAPI-source and Configuration-partition-registration monitoring as a detection layer independent of object-level audit logs.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (6 shown) confirm SRV-APP-071 briefly registered as a replication partner and pushed a SIDHistory modification to a low-privilege account, with no corresponding 5136 event on any legitimate DC.

Timestamp (UTC)SourceEventDetailIOC/Why Suspicious?
2022-08-04 23:00:11SRV-APP-0714662 - nTDSDSA object created under Configuration partitionObject registered by svc-backup-adminRegistration IOC: a non-DC server registering an NTDS-DSA object is the hallmark first step of DCShadow.
2022-08-04 23:01:05SRV-APP-071 → DC01DRSUAPI DsReplicaAdd/DsReplicaSyncInbound replication call sourced from a non-DC IPProtocol IOC: legitimate replication only ever originates from registered domain controllers; SRV-APP-071 is a member server.
2022-08-04 23:01:40SRV-APP-071Directory object changesIDHistory attribute added to user "j.arnold" containing a Domain Admins SIDPayload IOC: this is the actual privilege-escalation backdoor DCShadow was used to plant.
2022-08-04 23:02:00-(audit gap check)No 5136 event exists on DC01 or DC02 for this changeEvasion confirmed: the change bypassed native DC-side auditing, the defining characteristic of DCShadow vs. a normal AD write.
2022-08-04 23:03:15SRV-APP-071nTDSDSA object deletedRogue "DC" de-registers itself within 3 minutes of useCleanup IOC: transient registration matching Mimikatz lsadump::dcshadow push-then-remove behavior.
--(account context)svc-backup-admin holds "Replicating Directory Changes All" via a delegated ACL added 2 days priorConfirms the attacker pre-staged replication rights before executing the attack.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - an attacker with stolen replication rights used a rogue domain controller registration to plant a SIDHistory backdoor while evading standard directory-change auditing!