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

WriteDACL

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


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4670Permissions on an object were changedCriticalWriteDACL abuse modifies the Discretionary Access Control List of AD objects. Review ObjectName and SubjectUserName.
Security5136Directory object modifiedHighAttribute modifications may follow permission changes enabling privilege escalation.
Security4662An operation was performed on an objectHighIndicates LDAP operations modifying security descriptors or ACL entries.
Security4728Member added to security-enabled global groupCriticalAttacker may grant themselves privileges after modifying ACLs.
Security4732Member added to security-enabled local groupHighUsed for privilege escalation after permission modification.
Sysmon1Process creationMediumExecution of PowerView, Impacket, or other LDAP manipulation tools.
Sysmon3Network connectionMediumLDAP communication with domain controllers.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Unexpected ACL changes on privileged objectsChanges affecting Domain Admins, Enterprise Admins, or DC objectsCriticalAttacker granting themselves privileges.
Addition of new ACE entriesNew Access Control Entries granting rights such as GenericAll or WriteDACLCriticalIndicates attacker privilege escalation.
Rapid directory permission modificationsMultiple ACL modifications across objectsMediumPossible automated attack chain.
Group membership changes following ACL modificationPrivilege escalation shortly after DACL modificationCriticalClassic attack sequence.
LDAP modifications from unusual hostDirectory modifications from workstation not normally administering ADHighPossible attacker-controlled system.

Common Tools

ToolUsage
PowerViewModifies object ACLs using WriteDACL privileges.
ImpacketLDAP scripts used to modify directory permissions.
BloodHoundIdentifies attack paths involving WriteDACL rights.
SharpHoundCollects privilege relationship data.
ADSIEditManual modification of AD object permissions.

Relevant Artifacts

  • Domain controller Security logs (4670, 5136, 4662)
  • 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 permission modification events (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 manages directory permissions.
  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 modified DACL to grant themselves 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 DACL Modification
id: writedacl-abuse-detection
status: experimental
description: Detects modification of AD object DACL potentially indicating WriteDACL abuse
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4670
  condition: selection
fields:
  - SubjectUserName
  - ObjectName
falsepositives:
  - Legitimate administrative permission changes
level: medium
tags:
  - attack.privilege_escalation
  - attack.t1098

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Privilege reviewAudit AD ACLs for WriteDACL permissionsCriticalRemoves unnecessary rights enabling privilege escalation.
Least privilegeRestrict who can modify directory permissionsHighReduces abuse opportunities.
MonitoringAlert on ACL modifications to sensitive objectsHighDetects privilege escalation attempts.
AD security reviewRegularly review delegation permissionsHighIdentifies risky configurations.
Change managementRequire approval for permission changesMediumReduces unauthorized modifications.