CyberKit

Event IDs

Security event 5139

A directory service object was moved

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

What it records

Generated on an Active Directory domain controller whenever an AD object is moved between containers, provided the destination container has a matching 'Create' auditing entry in its SACL for that object class. Records the requesting Subject, the AD domain, the object's Old DN (pre-move location), New DN (destination container), GUID, and object Class.

Why it matters

Moving an object between OUs changes which Group Policy Objects apply to it and which delegated administrators can manage it. An attacker who compromises a low-privilege OU can move an object with weaker security into a container with looser controls, or move a target account out of a monitored or GPO-restricted OU to evade a control tied to OU placement, comparing Old DN and New DN shows exactly what protection the object gained or lost.

What triggers it

Legitimately: routine AD administration such as reorganizing OU structure or moving a user or computer to a different department's OU during onboarding/offboarding. Maliciously: an attacker relocating an object out of a tightly-audited or GPO-restricted OU into a more permissive one to evade a control tied to its container.

Fields that carry the answer

Key fields
FieldWhat it tells you
Subject > Account NameWho performed the move. Verify it's tied to a known reorg or onboarding change.
Object > Old DNThe object's origin container: what GPOs/delegation applied before the move.
Object > New DNThe object's destination container: check whether it gained looser delegation or escaped a restrictive GPO the origin OU enforced.
Object > ClassThe class of the moved object: a computer or user object moved out of a hardened OU is more notable than a routine group reorganization.

In practice

IT moves the computer object 'WKS-0142' from the default Computers container into a delegated 'Finance-Workstations' OU as part of a departmental reorg; Object > Old DN shows CN=WKS-0142,CN=Computers,DC=corp,DC=example,DC=com and New DN shows CN=WKS-0142,OU=Finance-Workstations,DC=corp,DC=example,DC=com. Routine here, but the same move away from a tightly-restricted OU on an object with no matching change ticket is worth flagging.

Sample record

A directory service object was moved.

Subject:
	Security ID:		S-1-5-21-3623811015-3361044348-30300820-1105
	Account Name:		jdoe
	Account Domain:		CORP
	Logon ID:		0x3E7C29

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

Object:
	Old DN:		CN=WKS-0142,CN=Computers,DC=corp,DC=example,DC=com
	New DN:		CN=WKS-0142,OU=Finance-Workstations,DC=corp,DC=example,DC=com
	GUID:		{06713960-9CC3-4B5D-A594-35883A04F934}
	Class:		computer

Operation:
	Correlation ID:		{67A42C05-A70D-4348-AF19-E883CB1FCA9C}
	Application Correlation ID:	-

Sources

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