CyberKit

Event IDs

Security event 5141

A directory service object was deleted

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

What it records

Generated on an Active Directory domain controller whenever an AD object is deleted, provided the object has a matching 'Delete' auditing entry in its SACL. Records the requesting Subject, the AD domain, the deleted object's DN, GUID, and object Class, plus a Tree Delete flag indicating whether the 'Delete Subtree' server control was used to remove an entire branch (e.g. an OU and everything under it) in one operation.

Why it matters

This is the definitive AD-object-deletion event: a domain admin account, GPO, trust object, or entire OU subtree disappearing mid-investigation is one of the highest-value events to alert on. Microsoft specifically recommends monitoring deletion of groupPolicyContainer objects and any other critical objects that shouldn't be removed; Tree Delete = Yes flags a subtree wipe with a far larger blast radius than a single-object delete.

What triggers it

Legitimately: planned decommissioning of a user, computer, group, GPO, or OU as part of routine AD lifecycle management. Maliciously: an attacker deleting a privileged account, a GPO, a trust object, or an entire OU subtree (Tree Delete) as a destructive act or to remove evidence of earlier AD tampering.

Fields that carry the answer

Key fields
FieldWhat it tells you
Object > DNWhat was deleted: flag privileged accounts, GPOs (groupPolicyContainer), or trust objects immediately.
Object > ClassThe object's class: groupPolicyContainer and trustedDomain deletions carry outsized impact and are worth alerting on directly, per Microsoft's own guidance.
Operation > Tree Delete'Yes' means an entire subtree was removed in one 'Delete Subtree' operation: a much larger blast radius than a single-object delete, and worth escalating immediately.
Subject > Account NameWho performed the deletion. Confirm it's tied to a known decommissioning change rather than unexplained privileged activity.

In practice

An attacker with domain admin rights deletes the computer object 'WIN2003' used earlier for staging, to cover their tracks; Object > DN shows CN=WIN2003,CN=Users,DC=corp,DC=example,DC=com, Class shows computer, and Tree Delete shows No: an isolated single-object delete outside any known decommissioning ticket, or the same event with Class groupPolicyContainer or Tree Delete Yes on an OU, warrants immediate escalation.

Sample record

A directory service object was deleted.

Subject:
	Security ID:		S-1-5-21-3623811015-3361044348-30300820-500
	Account Name:		administrator
	Account Domain:		CORP
	Logon ID:		0x3E7F2A1

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

Object:
	DN:		CN=WIN2003,CN=Users,DC=corp,DC=example,DC=com
	GUID:		{CA15B875-AFB1-4E5A-86B2-96E61DE09110}
	Class:		computer

Operation:
	Tree Delete:		No
	Correlation ID:		{C8A9000C-C618-4EE9-87FF-F852C0564F18}
	Application Correlation ID:	-

Sources

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