Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / ACTIVE DIRECTORY / DC REPLICATION

DCSync

This note documents detection patterns related to DCSync within Active Directory environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4662Directory object operationCriticalKey indicator of DCSync. Look for access to replication-related permissions such as DS-Replication-Get-Changes, DS-Replication-Get-Changes-All, and DS-Replication-Get-Changes-In-Filtered-Set. Review SubjectUserName and ObjectType.
Security4624Successful logonHighOften precedes DCSync when attacker authenticates to a DC using compromised credentials. Review LogonType, WorkstationName, and IpAddress.
Security4672Special privileges assignedHighIndicates privileged session such as Domain Admin which may perform replication operations.
Security4688Process creationMediumMay reveal execution of tools performing DCSync operations such as mimikatz.
Sysmon1Process creationHighLook for mimikatz execution or other credential extraction utilities.
Sysmon3Network connectionHighConnections from unusual hosts directly communicating with domain controllers using RPC replication protocols.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Replication from non-DC hostDirectory replication requests originating from workstation or server not designated as a domain controllerCriticalStrong signal of DCSync activity.
Unusual privileged account usageAccounts not normally performing directory replication requesting replication privilegesHighInvestigate service accounts or compromised admin accounts.
Abnormal LDAP/RPC trafficIncreased replication traffic between host and domain controllerHighOften observed when attacker pulls full credential database.
Credential theft follow-onAuthentication attempts using domain admin or high privilege accountsCriticalIndicates attacker successfully extracted credentials.
Properties 1131f6aa-9c07-11d1-f79f-00c04fc2dcd2 or 1131f6ad-9c07-11d1-f79f-00c04fc2dcd2 present in the eventReplicating Directory Changes and Replicating Directory Changes AllCriticalThese rights appear in Security Event 4662 when an object is accessed with replication privileges

Common Tools

ToolUsage
MimikatzUses lsadump::dcsync to replicate password hashes from domain controllers.
Impacket secretsdump.pyPerforms DCSync remotely to retrieve domain credential hashes.
Cobalt StrikeProvides modules to execute DCSync using compromised admin privileges.
SharpHoundUsed to discover accounts with replication permissions.

Relevant Artifacts

  • Windows Security logs (4662, 4624, 4672, 4688)
  • Domain controller directory service logs
  • Sysmon logs (1, 3)
  • Network telemetry showing RPC replication traffic
  • EDR telemetry identifying suspicious credential extraction tools
  • PowerShell logs if replication commands executed via scripts
  • Account privilege change logs (4728, 4732)
  • Authentication logs indicating compromised admin accounts

MITRE ATT&CK References

  • T1003.006 DCSync
  • T1003 OS Credential Dumping
  • T1078 Valid Accounts
  • T1552 Unsecured Credentials

Decision Tree

  1. Is the suspicious event present?
    • Look for Security Event 4662 indicating replication permission usage.
  2. What host generated the event?
    • Determine if replication request originated from a non-domain-controller host.
  3. Is the account expected to perform this action?
    • Only domain controllers normally perform replication operations.
  4. Pivot:
    • Source host → analyze processes executing credential extraction tools.
    • Account → verify privileges and recent group membership changes.
    • Network → inspect RPC traffic between hosts and domain controllers.
  5. Confirm exploitation
    • Determine whether extracted credentials were used for lateral movement or persistence.

Example Detection Templates

KQL

SecurityEvent
| where EventID == 4662
| where Properties contains "Replicating Directory Changes"
| project TimeGenerated, Computer, SubjectUserName, ObjectType
SecurityEvent
| where EventID == 4662
| where SubjectUserName !contains "$"
| project TimeGenerated, SubjectUserName, Computer, ObjectType

EQL

any where event.code == "4662" and winlog.event_data.Properties like "*Replicating Directory Changes*"

Sigma

title: Possible DCSync Activity
id: dcsync-detection
status: experimental
description: Detects potential DCSync attempts by monitoring directory replication permission usage
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4662
    Properties|contains:
      - "Replicating Directory Changes"
  condition: selection
fields:
  - SubjectUserName
  - ObjectType
falsepositives:
  - Legitimate domain controller replication
  - Authorized directory synchronization services
level: critical
tags:
  - attack.credential_access
  - attack.t1003.006

Splunk

index=main earliest=1690544278 latest=1690544280 EventCode=4662 Message="*Replicating Directory Changes*" | rex field=Message "(?P<property>Replicating Directory Changes.*)" | table _time, user, object_file_name, Object_Server, property

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Replication permissionsRestrict accounts with DS-Replication-Get-Changes privilegesHighPrevents unauthorized replication requests.
Privileged account monitoringAlert on replication events executed by non-DC accountsHighDetects compromised admin accounts.
Network monitoringMonitor RPC replication traffic from non-DC hostsMediumHelps identify suspicious replication activity.
Least privilegeLimit domain admin membershipHighReduces attack surface for credential dumping.
Security auditingEnable directory service auditingHighProvides visibility into replication operations.