Skip to content
SIEMBench
100% Client-Side Tool • Inputs Never Sent to Our Servers

Event ID 4662

Event ID 4662: Directory Object Operation

An operation was performed on an object

Log source
Security
How to enable it
DS Access > Audit Directory Service Access (Success), plus a SACL on the directory object
Category
Privilege Escalation
Priority
High
Typical volume
Very high
MITRE ATT&CK

What Event ID 4662 means

4662 is written on a domain controller when an object in Active Directory is accessed in a way that its audit list (SACL) covers. Without the right SACL nothing is logged, and with too broad a one the log is flooded, so its value depends on preparation.

Its best-known use is detecting DCSync. Replication rights are controlled by extended rights on the domain object, and using them leaves their GUIDs in the Properties field. When the subject is anything other than a domain controller or an approved synchronization account, somebody is copying password hashes out of the directory.

The same event can watch confidential attributes, such as local administrator passwords stored by LAPS, and bulk enumeration by discovery tools. Object types and properties are shown as GUIDs, which have to be translated with the schema.

Key fields to inspect

FieldMeaningSuspicious when
SubjectUserName Account that performed the operation. A user, or a computer that is not a domain controller.
SubjectLogonId Session that performed it. Match it to 4624 to find the source address, since this event has none.
ObjectName Object, as a GUID or distinguished name. The domain root, AdminSDHolder, or krbtgt.
ObjectType Class of the object, as a GUID. 19195a5b-6da0-11d0-afd3-00c04fd930c9, which is the domain object.
AccessMask Access that was used. 0x100 is an extended right. 0x100 on the domain object.
Properties GUIDs of the rights and attributes involved. The replication GUIDs listed below.

GUIDs to watch in Properties

GUIDRight or classMeaning
1131f6aa-9c07-11d1-f79f-00c04fc2dcd2DS-Replication-Get-ChangesNeeded for DCSync
1131f6ad-9c07-11d1-f79f-00c04fc2dcd2DS-Replication-Get-Changes-AllIncludes password hashes
89e95b76-444d-4c62-991a-0facbeda640cDS-Replication-Get-Changes-In-Filtered-SetIncludes confidential attributes
19195a5b-6da0-11d0-afd3-00c04fd930c9Domain-DNS classThe domain object itself

Detection queries

Detect replication rights used by anything other than a computer account, then review computers against your list of domain controllers. Adjust names and thresholds to your environment. About these queries.

Splunk SPL

index=windows source="XmlWinEventLog:Security" EventCode=4662
AccessMask="0x100" (Properties="*1131f6aa-9c07-11d1-f79f-00c04fc2dcd2*" OR Properties="*1131f6ad-9c07-11d1-f79f-00c04fc2dcd2*" OR Properties="*89e95b76-444d-4c62-991a-0facbeda640c*")
| where NOT match(SubjectUserName, "\$$") AND NOT match(SubjectUserName, "^MSOL_")
| table _time Computer SubjectUserName SubjectLogonId ObjectName

Microsoft Sentinel KQL

SecurityEvent
| where EventID == 4662
| where AccessMask == "0x100"
| where Properties has_any ("1131f6aa-9c07-11d1-f79f-00c04fc2dcd2", "1131f6ad-9c07-11d1-f79f-00c04fc2dcd2", "89e95b76-444d-4c62-991a-0facbeda640c")
| where SubjectUserName !endswith "$" and SubjectUserName !startswith "MSOL_"
| project TimeGenerated, Computer, SubjectUserName, SubjectLogonId, ObjectName

PowerShell

Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 4662; StartTime = (Get-Date).AddDays(-1) } |
  ForEach-Object { $d = @{ Time = $_.TimeCreated }; ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }; [pscustomobject]$d } |
  Where-Object { $_.Properties -match '1131f6a[ad]-9c07-11d1-f79f-00c04fc2dcd2' -and $_.SubjectUserName -notlike '*$' } |
  Select-Object Time, SubjectUserName, SubjectLogonId, AccessMask, Properties | Format-List

Attack scenarios

DCSync

Mimikatz or secretsdump impersonates a domain controller and requests replication of one account or all of them. The event shows the replication GUIDs with the attacker's account as subject, and a network logon with the same identifier gives the address.

Reading LAPS passwords

With a SACL on computer objects, reading the password attribute produces 4662 with the attribute's GUID. One user who reads many computers is preparing lateral movement.

Directory enumeration

Collectors such as SharpHound read a large part of the directory. A decoy object with a SACL that no person or system should read turns that into a precise alert.

Investigation checklist

  1. Match SubjectLogonId to 4624 on the same controller to get the source address.
  2. Compare that address with the list of domain controllers and synchronization servers.
  3. If DCSync is confirmed, treat every password in the domain, including krbtgt, as stolen.
  4. Find out how the account obtained replication rights, and remove them.
  5. Check that the SACL is present on the domain object for Everyone with these rights.

Common benign causes

Event ID 4662 FAQ

How do I detect DCSync with event 4662?

Alert on the replication GUIDs in Properties with AccessMask 0x100, where the subject is not a domain controller or an approved synchronization account. Add the source address from the matching 4624 to confirm.

Why do I see no 4662 events on my domain controllers?

Either the Directory Service Access subcategory is off, or the object has no SACL that covers the operation. Both are needed. Check the auditing tab of the domain object.

Can an attacker DCSync with a computer account?

Yes, if it has replication rights or if they control a domain controller's account. A filter that ignores every name ending in $ would miss that, so compare computer accounts with your actual list of controllers.

Techniques follow MITRE ATT&CK® v20.1. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation (license). Field names were checked against Microsoft documentation and provider schemas.