Windows Security: Detect WRITE_DAC on AD DS objects (Event ID 4662)
Flags AD DS Security Event 4662 activity indicating WRITE_DAC permission changes on domain objects.
- Product
- windows
- Service
- security
- Author
- Roberto Rodriguez @Cyb3rWard0g (SigmaHQ), DRL 1.1
- Published
- 2019-09-12
- Updated
- 2026-07-31
ATT&CK techniques
Defense EvasionRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule identifies Active Directory Domain Services object access events where an account granted WRITE_DAC rights (AccessMask 0x40000) to an object in the DS object server. Modifying discretionary access control lists can enable attackers to change who has permissions, facilitating defense impairment or persistence. Detection relies on Windows Security audit event 4662 telemetry with ObjectServer=DS and specific ObjectType GUIDs for the affected AD DS objects.
Reporting behind it
- threathunterplaybook.comhttps://threathunterplaybook.com/hunts/windows/180815-ADObjectAccessReplication/notebook.html
- threathunterplaybook.comhttps://threathunterplaybook.com/library/windows/active_directory_replication.html
- threathunterplaybook.comhttps://threathunterplaybook.com/hunts/windows/190101-ADModDirectoryReplication/notebook.html
- github.comhttps://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/security/win_security_ad_object_writedac_access.yml
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: "Windows Security: Detect WRITE_DAC on AD DS objects (Event ID 4662)"
id: 9191952c-2416-4237-a8e2-708cafee0c16
status: test
description: This rule identifies Active Directory Domain Services object access events where an account granted WRITE_DAC rights (AccessMask 0x40000) to an object in the DS object server. Modifying discretionary access control lists can enable attackers to change who has permissions, facilitating defense impairment or persistence. Detection relies on Windows Security audit event 4662 telemetry with ObjectServer=DS and specific ObjectType GUIDs for the affected AD DS objects.
references:
- https://threathunterplaybook.com/hunts/windows/180815-ADObjectAccessReplication/notebook.html
- https://threathunterplaybook.com/library/windows/active_directory_replication.html
- https://threathunterplaybook.com/hunts/windows/190101-ADModDirectoryReplication/notebook.html
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/security/win_security_ad_object_writedac_access.yml
author: Roberto Rodriguez @Cyb3rWard0g, Huntrule Team
date: 2019-09-12
modified: 2021-11-27
tags:
- attack.defense-impairment
- attack.t1222.001
logsource:
product: windows
service: security
detection:
selection:
EventID: 4662
ObjectServer: DS
AccessMask: "0x40000"
ObjectType:
- 19195a5b-6da0-11d0-afd3-00c04fd930c9
- domainDNS
condition: selection
falsepositives:
- Unknown
level: critical
license: DRL-1.1
related:
- id: 028c7842-4243-41cd-be6f-12f3cf1a26c7
type: derived