Event ID 5136: A directory service object was modified
Event ID 5136, "A directory service object was modified", is written to a domain controller's Security log when an audited attribute of an Active Directory object changes, recording who changed it, the object, the attribute, the value and whether the value was added or removed.
What event 5136 records
Where 4738 and the group events summarise changes to users and groups, 5136 shows the raw change to any directory object: the distinguished name, the attribute's LDAP name and the value itself. It requires "Audit Directory Service Changes" on the domain controllers and a SACL on the objects that audits writes; Microsoft notes the SACL needs Write auditing for the specific attributes.
A single change usually produces two events: Operation Type "Value Deleted" with the old value, then "Value Added" with the new one. Both share a Correlation ID, as do all modifications made in the same LDAP operation, so group by Correlation ID to see one change as one row.
Changes that reveal attacks
| Attribute (object) | What the change does | Attack |
|---|---|---|
| gPCFileSysPath, versionNumber, gPCMachineExtensionNames (groupPolicyContainer) | A Group Policy Object was edited | Pushing scheduled tasks, scripts or local admin rights to many machines (T1484.001) |
| nTSecurityDescriptor (domain, AdminSDHolder, GPOs, privileged users) | Permissions changed | Granting replication rights for DCSync, or control over privileged objects (T1222.001) |
| servicePrincipalName (user) | An SPN added to a user account | Targeted Kerberoasting of that account (T1558.003) |
| msDS-AllowedToActOnBehalfOfOtherIdentity (computer) | Resource-based constrained delegation configured | Impersonating users to that computer (T1134) |
| msDS-KeyCredentialLink (user or computer) | A key credential added | Shadow credentials: authenticating as the account with a certificate (T1556) |
| member (group) | Group membership changed | Same as 4728, 4732 and 4756, with the distinguished names |
| userAccountControl (user or computer) | Account flags changed | Disabling pre-authentication, enabling delegation (T1558.004) |
Most of these attributes change rarely in a stable domain. A short list of watched attributes, reviewed whenever they change, catches a large share of Active Directory privilege escalation.
Reading Group Policy changes
A GPO edit shows as 5136 events on the groupPolicyContainer object (CN={GUID},CN=Policies,CN=System,...), typically a versionNumber change and sometimes new extension names. The event says that the policy changed and who changed it, not what the policy now does: the settings live in the policy's folder in SYSVOL. Compare the GPO's files from a collection against a known-good copy, and look at what changed on the machines it applies to (scheduled tasks, services, local group membership) after their next policy refresh.
Event 5136 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 made the change. | user_name, event_log_logon_id |
| Object DN, GUID, Class | The object changed, by distinguished name, GUID and class. | $objectdn, $objectguid, $objectclass |
| Attribute LDAP Display Name, Syntax, Value | The attribute and the value added or removed. | $attributeldapdisplayname, $attributevalue |
| Operation Type | Value Added or Value Deleted. | $operationtype |
| Correlation ID, Application Correlation ID | Ties together the events of one LDAP operation. | $opcorrelationid |
What event 5136 proves, and what it does not
It shows
- That this account added or removed this value of this attribute on this object at this time.
It does not show
- Changes to attributes or objects without a write-auditing SACL.
- What a changed GPO now does; read the policy files in SYSVOL.
- Whether the change was used; follow it to the logons, tickets or policy refreshes it enabled.
Attacker activity it reveals
Malicious Group Policy
With rights over a GPO linked to many computers, an attacker adds an immediate scheduled task or a startup script, deploying code or ransomware domain-wide. MITRE ATT&CK T1484.001
Preparing DCSync
Adding replication rights for an ordinary account to the domain object's permissions, later used for DCSync (4662). MITRE ATT&CK T1222.001
Shadow credentials and RBCD
Writing msDS-KeyCredentialLink or msDS-AllowedToActOnBehalfOfOtherIdentity to take over an account or computer without its password. MITRE ATT&CK T1556
Finding event 5136 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 == "5136"
derive {by = user_name, obj = $objectdn, attr = $attributeldapdisplayname, val = $attributevalue, op = $operationtype}
filter attr ~= "(?i)^(ntSecurityDescriptor|servicePrincipalName|msDS-KeyCredentialLink|msDS-AllowedToActOnBehalfOfOtherIdentity|gPCFileSysPath|versionNumber)$"
select {timestamp, by, op, obj, attr, val}
sort {timestamp} Changes to the attributes most often abused for Active Directory privilege escalation, in time order.
Or ask in plain English, for example "show event 5136 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 4662: Directory object operation (DCSync)
- Event ID 4738: User account changed
- Event ID 4728: Added to a global group
- Event ID 4732: Added to local group
- Event ID 4769: Kerberos service ticket
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 5136 mean?
An attribute of an Active Directory object was changed. The domain controller records who changed it, the object, the attribute, the value and whether the value was added or deleted.
Why does one change produce two 5136 events?
Because replacing a value is recorded as the old value deleted and the new value added. Both events share a Correlation ID.
How do I detect Group Policy changes?
Enable Audit Directory Service Changes with a SACL on the Policies container, and look for 5136 on groupPolicyContainer objects, usually a versionNumber change. Then read the policy files in SYSVOL to see what changed.
What is the difference between event 5136 and 4662?
5136 records the new value of a changed attribute. 4662 records that an operation, including reads and the use of extended rights such as replication, was performed, without the value.
Sources
- Microsoft Learn: 5136(S) A directory service object was modified; Audit Directory Service Changes
- MITRE ATT&CK: T1484.001 Group Policy Modification; T1222.001; T1558.003 Kerberoasting; T1556 Modify Authentication Process
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 5136 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