Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / ACTIVE DIRECTORY / ACL

WriteOwner

This note documents detection patterns related to WriteOwner Abuse within Active Directory environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security5136Directory object modifiedCriticalOwnership changes on Active Directory objects can indicate WriteOwner abuse. Review ObjectDN and attribute changes.
Security4662An operation was performed on an objectCriticalAccess operations modifying object ownership or security descriptors.
Security4670Permissions on an object were changedHighOwnership change often followed by permission modification.
Security4728Member added to security-enabled global groupHighPrivilege escalation may follow ownership takeover.
Security4732Member added to security-enabled local groupHighUsed for privilege escalation after gaining object control.
Sysmon1Process creationMediumExecution of PowerView, Impacket, or other LDAP modification tools.
Sysmon3Network connectionMediumLDAP connections to domain controllers.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Ownership change on privileged objectOwner attribute modified on admin accounts or groupsCriticalAttackers gain full control after becoming owner.
Permission changes after ownership takeoverACL modifications following owner changeCriticalOwnership allows attacker to modify permissions.
Unexpected administrative group membership changesAccount added to privileged groupsHighPrivilege escalation following ACL abuse.
Rapid AD object modificationsMultiple attribute changes across objectsMediumMay indicate automated attack chain.
LDAP modifications from unusual hostDirectory modifications from workstation not normally administering ADHighPossible attacker-controlled system.

Common Tools

ToolUsage
PowerViewChanges object ownership using WriteOwner permission.
ImpacketLDAP scripts used to modify object ownership.
BloodHoundIdentifies attack paths involving WriteOwner privileges.
SharpHoundCollects AD relationship data.
ADSIEditManual modification of directory object ownership.

Relevant Artifacts

  • Domain controller Security logs (5136, 4662, 4670)
  • Active Directory object metadata
  • LDAP modification logs
  • Sysmon logs (1, 3)
  • EDR telemetry identifying AD manipulation tools
  • Directory replication metadata
  • Prefetch artifacts showing execution of PowerView or Impacket tools

MITRE ATT&CK References

  • T1098 Account Manipulation
  • T1484 Domain Policy Modification
  • T1078 Valid Accounts

Decision Tree

  1. Is the suspicious event present?
    • Identify ownership modification events (5136 / 4670).
  2. What host generated the event?
    • Determine workstation performing LDAP modification.
  3. Is the account expected to perform this action?
    • Investigate whether account normally administers AD objects.
  4. Pivot:
    • Source host → inspect execution of PowerView or Impacket tools.
    • Account → review privileges and group memberships.
    • Network → analyze LDAP traffic patterns.
  5. Confirm exploitation
    • Determine whether attacker changed object ownership and escalated privileges.

Example Detection Templates

KQL

SecurityEvent
| where EventID == 4670
| project TimeGenerated, SubjectUserName, ObjectName
SecurityEvent
| where EventID == 5136
| project TimeGenerated, SubjectUserName, ObjectDN

EQL

any where event.code == "4670"

Sigma

title: Suspicious Active Directory Ownership Modification
id: writeowner-abuse-detection
status: experimental
description: Detects modification of AD object ownership potentially indicating WriteOwner abuse
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4670
  condition: selection
fields:
  - SubjectUserName
  - ObjectName
falsepositives:
  - Legitimate administrative modifications
level: medium
tags:
  - attack.privilege_escalation
  - attack.t1098

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Privilege reviewAudit AD ACLs for WriteOwner permissionsCriticalRemoves unnecessary ownership privileges.
Least privilegeRestrict directory ownership modification rightsHighReduces privilege escalation paths.
MonitoringAlert on ownership changes for sensitive objectsHighDetects early abuse attempts.
AD security reviewRegularly review delegation permissionsHighIdentifies risky configurations.
Change managementRequire approval for ownership changesMediumReduces unauthorized modifications.