Detect DCSync in IBM QRadar
Adversaries abuse the Windows Directory Replication Service (DRSUAPI) API to simulate replication from a domain controller and extract password data without direct access to the NTDS.dit file. Members of Administrators, Domain Admins, or Enterprise Admins groups can call IDL_DRSGetNCChanges to pull NTLM hashes and historical hashes for accounts including krbtgt. Mimikatz implements this as 'lsadump::dcsync'. Used by Mimikatz, Cobalt Strike, Earth Lusca, Mustang Panda, Storm-0501, and LAPSUS$. Enables Golden Ticket creation via krbtgt hash extraction.
MITRE ATT&CK
- Tactic
- Credential Access
- Technique
- T1003 OS Credential Dumping
- Sub-technique
- T1003.006 DCSync
- Canonical reference
- https://attack.mitre.org/techniques/T1003/006/
QRadar Detection Query
SELECT
DATEFORMAT(starttime, 'yyyy-MM-dd HH:mm:ss') AS event_time,
LOGSOURCENAME(logsourceid) AS log_source,
username AS subject_account,
"Account Domain" AS subject_domain,
"Object Name" AS object_name,
"Object Type" AS object_type,
"Properties" AS properties,
"Access Mask" AS access_mask,
CASE
WHEN "Properties" ILIKE '%1131f6aa-9c07-11d1-f79f-00c04fc2dcd2%' THEN 'DS-Replication-Get-Changes'
WHEN "Properties" ILIKE '%1131f6ad-9c07-11d1-f79f-00c04fc2dcd2%' THEN 'DS-Replication-Get-Changes-All'
ELSE 'Replication-Access-0x100'
END AS replication_right
FROM events
WHERE
LOGSOURCETYPEID = 12
AND "EventID" = '4662'
AND (
"Object Type" ILIKE 'domainDNS'
OR "Object Type" ILIKE 'domain'
)
AND (
"Properties" ILIKE '%1131f6aa-9c07-11d1-f79f-00c04fc2dcd2%'
OR "Properties" ILIKE '%1131f6ad-9c07-11d1-f79f-00c04fc2dcd2%'
OR "Access Mask" = '0x100'
)
AND username NOT LIKE '%$'
AND starttime > CURRENT_TIMESTAMP - 86400000
ORDER BY starttime DESC
LIMIT 1000 Detects DCSync attacks in IBM QRadar by querying Windows Security Event ID 4662 from Microsoft Windows Security Event Log sources (LOGSOURCETYPEID=12). Filters for DRSUAPI replication GUIDs in the Properties field on domainDNS and domain object types, excludes machine accounts, and classifies the specific replication right for analyst triage.
Data Sources
Required Tables
False Positives & Tuning
- Azure AD Connect or Microsoft Directory Synchronization service accounts performing scheduled replication cycles — these will generate Event 4662 with the replication GUIDs on a predictable schedule aligned with sync intervals
- On-premises Active Directory replication health monitoring tools that use service accounts with DS-Replication-Get-Changes rights to validate replication topology and detect replication failures
- Privileged access management (PAM) solutions that perform just-in-time group membership checks or access reviews against domain objects using delegated replication permissions
Other platforms for T1003.006
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1DCSync via Mimikatz lsadump::dcsync (krbtgt)
Expected signal: Security EventID 4662 on DC: DS-Replication-Get-Changes and DS-Replication-Get-Changes-All access from the running user's account. Sysmon EventID 1 on workstation: process creation for mimikatz.exe with lsadump::dcsync in CommandLine. Network traffic on DRSUAPI RPC ports from workstation to DC.
- Test 2DCSync via Impacket secretsdump (Remote)
Expected signal: Security EventID 4662 on DC with DS-Replication-Get-Changes-All access from the provided account. Network connection from attacker IP to DC on port 445 and DRSUAPI RPC ports. SMB authentication events (EventID 4624) on DC from attacker IP.
- Test 3Check Account for Replication Rights (Reconnaissance)
Expected signal: PowerShell ScriptBlock Log EventID 4104 with Get-ADDomain and Get-Acl commands. Security EventID 4662 for domain object read access. Network connection to DC for LDAP query.
References (6)
- https://attack.mitre.org/techniques/T1003/006/
- https://adsecurity.org/?p=1729
- https://msdn.microsoft.com/library/cc228086.aspx
- https://github.com/gentilkiwi/mimikatz/wiki/module-~-lsadump
- https://blog.harmj0y.net/redteaming/mimikatz-and-dcsync-and-extrasids-oh-my/
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.006/T1003.006.md
Unlock Pro Content
Get the full detection package for T1003.006 including response playbook, investigation guide, and atomic red team tests.