Skip to main content

Wolfcore Cyber Security

Windows Event ID 5136: Directory Object Modified, Explained

Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 28 November 2026.

Part of the Wolfcore Resources library: Detection and response.

In one sentence: Event 5136 is a Windows security log entry, created on a domain controller, that records every time something in Active Directory is changed, and it shows what the value was and what it became.

What it is

Active Directory is the central directory many businesses use to manage users, computers, groups and policies. When someone edits an item in it, for example a user’s settings or a group policy, a domain controller can record event 5136.

Microsoft’s documentation describes it as generated every time an Active Directory object is modified. It is part of the “Audit Directory Service Changes” setting and only appears on domain controllers. For a change, you normally see two events: “Value Deleted” with the old value, then “Value Added” with the new one. Microsoft recommends watching the “Value Added” event and matching it to the earlier one using the correlation ID.

It does not appear by default. Microsoft says the object must have a System Access Control List (SACL) entry, an audit rule, for the write action. The audit subcategory must also be enabled. Event volume on domain controllers can be high.

How it works

  1. An account, whether an administrator or an attacker using stolen rights, changes an attribute on an Active Directory object.
  2. The domain controller checks whether the object’s audit rule covers that write.
  3. If it does, the controller writes event 5136 to the Security log.
  4. The event records who made the change (the Subject), which object (its distinguished name), its class, the attribute’s LDAP display name, the value and whether it was added or deleted.
  5. A SIEM or an administrator reviews the log.

This is a detection control. It records changes after they happen. It does not block them.

What the event shows, and why attackers care

Attackers who gain high rights in Active Directory often change it to keep access or spread. MITRE ATT&CK technique T1484.001 describes adversaries modifying Group Policy Objects to escalate privileges and to carry out other actions such as scheduled tasks, disabling security tools and creating accounts. Event 5136 is how a change to a GPO or other directory object leaves a record.

Microsoft singles out two examples worth watching: changes to the AdminSDHolder object and to the Domain Admins group object.

The record at a glance

Admin or attacker edits an AD objectDomain controller checks the SACL5136 Value Deleted (old)5136 Value Added (new)Event 5136: a change in Active Directory leaves a before and after record

Who it affects and how badly

Anyone running on-premises Active Directory: accountancy and legal practices, schools, councils, manufacturers, care providers, MSPs managing client domains, and larger regulated businesses.

  • Under 50 staff: usually one or two domain controllers with default auditing. Without 5136, an unauthorised change to a group or policy leaves no trace.
  • 50 to 250 staff: a quiet change to a policy can push software to every PC. Without records you cannot tell what was changed or by whom.
  • Regulated business: auditors and insurers expect directory changes to be logged and reviewed.

Real examples

MITRE ATT&CK describes real adversary behaviour for this technique on its page: https://attack.mitre.org/techniques/T1484/001/

Microsoft’s own event page includes a worked event record showing the Subject, object and attribute fields: https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-5136

We do not cite a named victim, because we did not open a primary source for one.

What we check on a test

  • Whether Audit Directory Service Changes is enabled on every domain controller.
  • Whether sensitive objects (AdminSDHolder, Domain Admins, GPOs, the domain root) have audit rules, so changes would be recorded.
  • Who holds write rights over GPOs and privileged groups, which is how an attacker could make changes.
  • Whether domain controller logs are sent to a place an intruder cannot easily erase.
  • Whether anyone would notice a change, meaning whether an alert exists.

Worked example (illustration only)

A 60-person architecture practice finds a new scheduled task on every PC. Nobody can say who created it. If Audit Directory Service Changes had been on, event 5136 would show a change to a Group Policy object, the account that made it and the time. Without it, the investigation starts from guesswork. The fix is to switch the audit on and send the logs to a central place.

How to detect it

  • Turn on Advanced Audit Policy: Audit Directory Service Changes (Success) on domain controllers, using Group Policy.
  • Add audit rules (SACLs) to the objects you care about, as Microsoft explains.
  • Filter the Security log on event 5136 in Event Viewer, or forward it to your SIEM.
  • Alert on changes to the AdminSDHolder object and the Domain Admins group object, as Microsoft recommends.
  • Alert on writes to GPOs outside your normal change window.
  • Match “Value Deleted” and “Value Added” by correlation ID to see old and new values.
  • Pair with event 4662 for access and 4719 for audit policy changes. If 4719 shows auditing switched off, investigate.

How to fix or prevent it

  1. Enable Audit Directory Service Changes on all domain controllers and confirm it with the auditpol command.
  2. Apply SACLs to AdminSDHolder, Domain Admins, GPOs and the domain root.
  3. Forward domain controller logs to a central SIEM so a local log clear does not hide changes.
  4. Limit who can edit GPOs and privileged groups, using least privilege.
  5. Require approval for GPO changes and compare the audit trail to the approvals.
  6. Alert on event 1102 (audit log cleared) and 4719 (audit policy changed).

Rules and regulators

  • UK, EU and US: this event is a technical control, not a legal requirement in itself. Audit logs help you show a regulator or insurer that you could detect and investigate a change, which supports UK GDPR and EU GDPR security duties and US frameworks such as SOC 2. Check the exact wording of the framework you are held to.

FAQ

Is 5136 on by default? No. Microsoft says the audit subcategory must be on and the object needs an audit rule for the write.

Where does it appear? Only on domain controllers.

Why two events for one change? Microsoft says a change normally logs “Value Deleted” and “Value Added”, with the old and new values.

Related terms

Windows Event ID 4662: what it logs and what to watch, Windows Event ID 4720 (user account created): how to tell a new starter from a backdoor account, Event ID 4732: Member Added to a Local Group Explained, Windows Event ID 4719: Audit Policy Changed, What It Means, DCSync Attack Explained: How It Works and How to Detect It, Golden Ticket Attack: How It Works and How to Contain It

How Wolfcore helps

Wolfcore’s vulnerability management and SOC monitoring keep watch for this after the test is over. See SOC and SIEM monitoring and our penetration testing. Staff are often the first step in an attack, so you can also test them safely with our phishing simulation software or start the Phishy free trial.

Wolfcore

Would your staff click a phishing email?

Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.

Start a free phishing testFree website security scanor book a 30 minute call