Event ID 5136: A directory service object was modified
A directory service object was modified.
- Channel
- Security
- Logged by default
- No
- Written on
- Domain controller
- Volume
- Moderate
- Audit subcategory
- Directory Service Changes
- Needs a SACL
- Yes
To have this event
- Enable Directory Service Changes:
auditpol /set /subcategory:"Directory Service Changes" /success:enable /failure:enable
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| SubjectUserName | Account that modified the AD object |
| SubjectDomainName | Domain of the account |
| SubjectLogonId | Logon ID for correlation |
| DSName | Directory service name |
| DSType | Directory service type |
| ObjectDN | Distinguished name of the modified object |
| ObjectGUID | GUID of the object |
| ObjectClass | Class of the object (user, group, computer, etc.) |
| AttributeLDAPDisplayName | LDAP display name of the modified attribute |
| AttributeValue | New value of the attribute |
| OperationType | Type of operation (Value Added, Value Deleted) |
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'Security' -FilterXPath "*[System[(EventID=5136)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
Where it shows up
Investigations, attack signals and lateral movement techniques that rely on this event.
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Also relevant, depending on field values
Common questions
- What does Windows event ID 5136 mean?
- A directory service object was modified. It is written to the Windows Security log (Security).
- Is event 5136 logged by default?
- No. It must be enabled before it is recorded. It is controlled by the "Directory Service Changes" Advanced Audit Policy subcategory (DS Access). It also requires a SACL on the audited object.
- Where is event 5136 recorded?
- In the Security channel on the domain controller.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderA directory service object was modified. Needs the "Directory Service Changes" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.