CyberKit

Event IDs

Security event 5136

A directory service object was modified

Channel: Security. Category: DS Access (Audit Directory Service Changes).

What it records

Generated every time an audited attribute of an Active Directory object is modified, provided the object's SACL has a 'Write' auditing entry for that attribute. A single change typically produces two 5136 events sharing the same Correlation ID, one 'Value Deleted' (the prior value) and one 'Value Added' (the new value), plus the object's DN, GUID, class, and the specific LDAP attribute name changed.

Why it matters

This is the most granular AD change-auditing event available: because it records the actual attribute name and old/new value, it's the event that catches GPO link changes, delegation-attribute changes, userAccountControl flips, and (critically) modifications to an object's own nTSecurityDescriptor (its ACL), which is exactly how an AdminSDHolder or other privileged-object ACL backdoor shows up in the log. Microsoft explicitly recommends monitoring all modifications to CN=AdminSDHolder,CN=System for this reason.

What triggers it

Legitimately: routine AD administration (group membership changes, GPO edits, attribute updates via ADUC or PowerShell). Maliciously: an attacker with sufficient rights modifying a privileged object's ACL (AdminSDHolder, a Domain Admins-linked GPO) to grant themselves standing access, or tampering with a delegation attribute to enable constrained-delegation abuse.

Fields that carry the answer

Key fields
FieldWhat it tells you
Object DN / ClassWhich AD object was modified and its class (user, group, groupPolicyContainer, container, etc.). Watch for known-sensitive DNs like AdminSDHolder or a privileged GPO.
Attribute LDAP Display NameThe specific attribute changed. NTSecurityDescriptor (an ACL change), msDS-AllowedToDelegateTo (delegation abuse), or userAccountControl (account-flag tampering) are the highest-value values to alert on.
Value / Operation TypeThe value added or deleted. Pair the 'Value Added' event with the matching 'Value Deleted' event on the same Correlation ID to see the full before/after change.
Correlation IDTies together every 5136 (and any accompanying 5137/5139) event that's part of the same underlying LDAP operation.

In practice

CN=AdminSDHolder,CN=System,DC=corp,DC=example,DC=local shows a 5136 with Attribute LDAP Display Name nTSecurityDescriptor and Operation Type Value Added, requested by CORP\jsmith: an account with no delegated rights over that object. A permissions change to AdminSDHolder outside a planned hardening change is high-value to alert on, since it propagates to every protected privileged account and group on the next SDProp cycle.

Sample record

Log Name:	Security
Source:	Microsoft-Windows-Security-Auditing
Event ID:	5136
Task Category:	Directory Service Changes
Level:	Information
Keywords:	Audit Success
User:	N/A
Computer:	DC01.corp.example.local
Description:
A directory service object was modified.

Subject:
	Security ID:		CORP\jsmith
	Account Name:		jsmith
	Account Domain:		CORP
	Logon ID:		0x32004

Directory Service:
	Name:		corp.example.local
	Type:		Active Directory Domain Services

Object:
	DN:		CN=AdminSDHolder,CN=System,DC=corp,DC=example,DC=local
	GUID:		{4FE80A66-5F93-4F73-B215-68678058E613}
	Class:		container

Attribute:
	LDAP Display Name:	nTSecurityDescriptor
	Syntax (OID):		2.5.5.15
	Value:		O:BAG:DAD:PAI(A;;RPWPCRLCLOCCRCWOWDSDDTSW;;;CORP\jsmith)

Operation:
	Type:		Value Added
	Correlation ID:	{02647639-8626-43CE-AFE6-7AA1AD657739}
	Application Correlation ID:	-

ATT&CK techniques

Sources

Paste a record into Event XML or open a log in EVTX Reader.