title: Replication Of Secret Domain Data By Non-Machine Account - DCSync
id: 2b8c918e-67f1-4865-8264-be9d7b8b4935
related:
    - id: 17d619c1-e020-4347-957e-1d1207455c93
      type: similar
status: experimental
description: |
    Detects use of the DS-Replication-Get-Changes-All extended right, the one that lets a
    replication client receive secret attributes such as password hashes, by an account
    that is neither a machine account nor SYSTEM. One event per DCSync in the OTRF datasets,
    where DS-Replication-Get-Changes alone shows up three times per DCSync and also comes
    from the DC itself and from DirSync-based tools.
references:
    - https://learn.microsoft.com/en-us/windows/win32/adschema/r-ds-replication-get-changes-all
    - https://github.com/OTRF/Security-Datasets
author: PurpleLog
date: 2026-10-17
tags:
    - attack.credential-access
    - attack.t1003.006
logsource:
    product: windows
    service: security
    definition: 'Requirements: Audit Directory Service Access (Success) and a SACL on the domain root covering the replication extended rights'
detection:
    selection:
        EventID: 4662
        Properties|contains: '1131f6ad-9c07-11d1-f79f-00c04fc2dcd2'
    filter_main_machine_account:
        SubjectUserName|endswith: '$'
    filter_main_system:
        SubjectUserSid: 'S-1-5-18'
    filter_optional_entra_connect:
        SubjectUserName|startswith: 'MSOL_'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Entra Connect AD DS connector accounts created with a custom name (password hash sync needs this right)
    - Any other account deliberately granted Replicating Directory Changes All
level: high
