Tools / Event IDs / Event ID 5136

Event ID 5136: directory object modified

What Event ID 5136 (directory object modified) means, the fields to check, what is normal and what is suspicious, with PowerShell and KQL queries to find it.

Log: Security · Severity: Low · MITRE ATT&CK T1484.001 · Updated 2026-11-03

Event ID 5136 records a change to an attribute of an Active Directory object, with the attribute name and the new value. Group membership has its own events, but many of the quieter persistence techniques only show up here: SPNs added for targeted Kerberoasting, shadow credentials, delegation for RBCD, and changes to AdminSDHolder or Group Policy objects.

The fields that matter

FieldWhat it tells you
Subject > Account NameWho made the change.
Object > DN / ClassThe object changed.
Attribute > LDAP Display NameThe attribute, for example servicePrincipalName or msDS-KeyCredentialLink.
Attribute > ValueThe value added or removed.
Operation > TypeValue Added or Value Deleted; a change shows as a delete then an add.
Correlation IDGroups the deletes and adds that belong to one change.

What is normal

Changes by identity management systems, admins editing users, and Group Policy edits by the GPO owners.

When Event ID 5136 is suspicious

Common false positive: Windows Hello for Business writes msDS-KeyCredentialLink during enrolment, and HR-driven identity tools change many attributes. Know the service accounts behind both.

Find Event ID 5136 with PowerShell

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=5136; StartTime=(Get-Date).AddDays(-7)} -MaxEvents 50 |
  ForEach-Object {
    $d = [ordered]@{ Time = $_.TimeCreated; Computer = $_.MachineName }
    ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }
    [pscustomobject]$d
  } | Format-List

Microsoft Sentinel (KQL)

SecurityEvent
| where TimeGenerated > ago(7d) and EventID == 5136
| project TimeGenerated, Computer, Account, Activity, EventData
| order by TimeGenerated desc

Related events

For a full walk-through, read Kerberoasting detection with Event ID 4769.

FAQ

Why don't I see 5136 events?

Audit Directory Service Changes must be enabled on domain controllers, and the objects need SACLs that audit writes. The defaults cover much of the domain, but check the OUs that matter.