Skip to content

Windows Event ID 5139: A directory service object was moved

Written when an Active Directory object is moved to another location (an OU, etc.). It captures changes to an object’s containment.

Overview

The subcategory is Audit Directory Service Changes. It is generated when an AD object is moved to another OU/container. It includes the location (DN) before and after the move.

How it is triggered

  • Moving a user, computer, group, etc. between OUs.

Security review points

  • An OU move means a change in applied GPOs and delegation. An attacker may move an account to an OU with loose settings or a malicious GPO to achieve defense evasion or privilege gain. Check the OU before and after.
  • Note OU moves of privileged accounts or important machines in particular. Also evaluate the GPOs and delegation applied to the destination OU.

Notes for log review

  • It occurs legitimately during reorganizations and operations. Match the moved object, destination OU, and subject against normal patterns.
  • Note “removal” from a monitored OU or moves to a loose OU.

MITRE ATT&CK mapping

No technique maps directly. A move into an OU where a malicious GPO applies is reviewed alongside Group Policy tampering (T1484.001 Group Policy Modification).

Mapping as of ATT&CK v19.2. To search by technique, see the ATT&CK reverse lookup.

Detection rules

Microsoft Sentinel has 1 public detection rule that uses this event ID as a condition.

RuleTypeSeverity
PROD (TM003.1) - OBJECT - Moved or Recovered a Tier Level AccountSentinel (needs setup)Medium

Rules are collected from SigmaHQ r2026-07-01 and from Azure-Sentinel as of 2026-10-09, limited to those whose conditions include this event ID. Sentinel rules are limited to those that query the SecurityEvent or WindowsEvent table. “Threat-specific” rules target a particular threat group or malware, and “needs setup” rules require values for your environment. Severity is the value each rule’s author assigned.

Key fields

FieldMeaning
Old DN / New DNThe location before and after
Subject\Account NameThe subject that performed the move

References