Event ID 4662: Active Directory object operations and DCSync detection
Event ID 4662, "An operation was performed on an object", is written to a domain controller's Security log when an account performs an audited operation on an Active Directory object, recording the account, the object, the kind of access and the GUIDs of the properties or extended rights involved; it is the main log source for detecting DCSync.
What event 4662 records
Active Directory objects (users, computers, groups, the domain itself) carry a system access control list (SACL) that says which operations to audit. When "Audit Directory Service Access" is enabled on the domain controllers and an operation matches an entry in that SACL, the controller writes a 4662. Microsoft documents that the event is generated only if an appropriate SACL is set on the object, so the same operation can be logged in one domain and invisible in another.
The event is not easy to read. Object Type and the Properties field contain GUIDs rather than names: the first identifies the class of object (for example the domain object), and the Properties field lists the access type and a tree of GUIDs for the property sets, properties or extended rights used. Access Mask gives the kind of access as a number.
| Access Mask | Accesses | Meaning |
|---|---|---|
| 0x10 | Read Property | An attribute was read |
| 0x20 | Write Property | An attribute was written |
| 0x100 | Control Access | An extended right was used, such as replicating directory changes |
Detecting DCSync with 4662
DCSync is an attack in which a tool (Mimikatz, Impacket's secretsdump and others) pretends to be a domain controller and asks a real one to replicate account secrets, including password hashes for every user and the KRBTGT account. It needs no code on the domain controller, only an account with replication rights. On the domain controller, the request appears as a 4662 on the domain object with Control Access (0x100) and one or more of these extended right GUIDs in Properties:
| GUID | Extended right |
|---|---|
| 1131f6aa-9c07-11d1-f79f-00c04fc2dcd2 | DS-Replication-Get-Changes |
| 1131f6ad-9c07-11d1-f79f-00c04fc2dcd2 | DS-Replication-Get-Changes-All (needed for secrets) |
| 89e95b76-444d-4c62-991a-0facbeda640c | DS-Replication-Get-Changes-In-Filtered-Set |
Domain controllers replicate with each other constantly, so these GUIDs are normal when the Subject is a domain controller's computer account (a name ending in $ that belongs to a DC). A user account, or any computer account that is not a domain controller, using Get-Changes-All is DCSync until proven otherwise. Some legitimate products (Azure AD Connect, now Microsoft Entra Connect, and some identity tools) also replicate; list their service accounts and exclude only those.
Check the logging before relying on it: Audit Directory Service Access must be enabled for success on the domain controllers, and the domain object's SACL must audit the use of these extended rights. Many domains have neither by default.
Other uses of 4662
- LAPS password reads. Reading the local administrator password stored by LAPS (the ms-Mcs-AdmPwd attribute, or msLAPS-Password with Windows LAPS) can be audited with a SACL; a 4662 with Read Property on that attribute shows who read which computer's password.
- Reads of confidential attributes. Any attribute an organisation decides is sensitive, with a SACL entry for reads.
- Changes to permissions on sensitive objects such as AdminSDHolder, alongside 5136, which records the new value.
To translate other GUIDs, look them up in the schema (the schemaIDGUID of attributes and classes, and the rightsGuid of extended rights); Microsoft describes an LDP search for this.
Event 4662 fields
The fields an investigator reads first, what they mean, and where Arcsentry stores them.
| Field | Meaning | Arcsentry field |
|---|---|---|
| Subject: Account Name, Account Domain, Logon ID | The account that performed the operation. | user_name, event_log_logon_id |
| Object Server, Object Type, Object Name | DS, the class GUID of the object, and the object's GUID or name. | $objecttype, $objectname |
| Operation Type, Accesses, Access Mask | The kind of access: Read Property, Write Property, Control Access. | $operationtype, $accesslist, $accessmask |
| Properties | The access type and GUIDs of the property sets, properties or extended rights used. | $properties |
What event 4662 proves, and what it does not
It shows
- That this account performed this kind of operation on this directory object at this time.
- For replication GUIDs from a non-DC account, that a DCSync-style replication request was made.
It does not show
- Anything when the object has no matching SACL, or Directory Service Access auditing is off.
- Which secrets a DCSync returned; assume all requested accounts' hashes are exposed.
- Where the request came from on the network; join the Logon ID to the 4624 on the same domain controller for the source address.
Attacker activity it reveals
DCSync
An account with replication rights pulls password hashes, including KRBTGT's, which enables golden tickets. Every domain account must then be treated as compromised. MITRE ATT&CK T1003.006
Granting replication rights
Attackers with enough privilege give an ordinary account the replication rights so it can DCSync later; the permission change shows as 5136 on the domain object. MITRE ATT&CK T1098
Reading LAPS passwords
An account that can read LAPS attributes gets the local administrator password of each computer it reads. MITRE ATT&CK T1555
Finding event 4662 in Arcsentry
Arcsentry parses every channel in Windows\System32\winevt\Logs, whether it comes from an Arcsentry Collector archive, a KAPE or Velociraptor collection, or a disk image. Security log records are the event type evtx_security. In Hunt, with that event type selected:
filter event_code == "4662"
derive {by = user_name, props = $properties, mask = $accessmask}
filter props ~= "(?i)1131f6ad-9c07-11d1-f79f-00c04fc2dcd2|89e95b76-444d-4c62-991a-0facbeda640c" && !(by ~= "\\$$")
select {timestamp, by, mask, props}
sort {timestamp} Replication requests for secrets by accounts that are not computer accounts. Add any legitimate replication service accounts to the exclusion, and review computer accounts that are not domain controllers separately.
Or ask in plain English, for example "show event 4662 on every host, oldest first", and Arcsentry shows the AQL it wrote before it runs. The AQL reference lists the operators used here, and the AI investigator reads the same events, citing each one by its event ID when it reports a finding.
Related event IDs
- Event ID 5136: Directory object modified
- Event ID 4624: Successful logon
- Event ID 4769: Kerberos service ticket
- Event ID 4728: Added to a global group
- Event ID 4738: User account changed
All events by investigation question: Windows security event IDs for incident response. Logon types in full: Windows logon types. The log files themselves: Windows event logs.
Frequently asked
What does event ID 4662 mean?
An audited operation was performed on an Active Directory object. It records the account, the object, the access type and the GUIDs of the properties or extended rights used. It is logged only when the object's SACL asks for it.
How do I detect DCSync with event 4662?
Look for 4662 on domain controllers with Control Access and the GUID 1131f6ad-9c07-11d1-f79f-00c04fc2dcd2 (DS-Replication-Get-Changes-All) or 89e95b76-444d-4c62-991a-0facbeda640c, from an account that is not a domain controller or a known replication service.
Why don't I see event 4662?
Because it needs both "Audit Directory Service Access" enabled on the domain controllers and a SACL on the object that audits the operation. Either can be missing by default.
How do I translate the GUIDs in event 4662?
Match them against the schemaIDGUID of classes and attributes and the rightsGuid of extended rights in the Active Directory schema and configuration partition. Common ones, such as the replication rights, are well documented.
Sources
- Microsoft Learn: 4662(S, F) An operation was performed on an object; Audit Directory Service Access
- Microsoft Learn: Control access rights (DS-Replication-Get-Changes, DS-Replication-Get-Changes-All)
- MITRE ATT&CK: T1003.006 DCSync
Checked 2 December 2026 by Venema Labs against Microsoft's audit documentation and, where an example is shown, the named lab case. Field availability varies by Windows version.
Find event 4662 across every host in minutes.
Load your collections, ask what happened, and check every finding against the event behind it. Free for 7 days.
Request a trial