Windows AD Domain Root ACL Deletion
The analytic detects ACL deletion on the domain root object in Active Directory by monitoring Windows Event Log Security event ID 5136, identifying significant AD changes with potentially high impact.
This analytic focuses on detecting the deletion of Access Control Lists (ACLs) performed on the domain root object within Active Directory. Such modifications represent a significant change with potentially high impact, as they can lead to privilege escalation and unauthorized access. This detection leverages Windows Event Log Security event ID 5136 to identify these changes, specifically focusing on domainDNS objects. The goal is to identify instances where ACL rights have been removed from the domain root, which could indicate malicious activity aimed at compromising the integrity and security of the Active Directory environment. Regular monitoring and review of changes at this level are critical to maintaining a secure AD infrastructure.
Attack Chain
- An attacker gains initial access to a privileged account or compromises an existing account with sufficient privileges to modify Active Directory objects.
- The attacker uses native Windows tools like
dsacls.exeor PowerShell cmdlets to modify the ACL of the domain root object. - The attacker removes specific ACEs (Access Control Entries) that grant permissions to critical groups or users, effectively restricting their access or modifying their permissions. This generates Event ID 5136 with Operation Type “%%14675” (Attribute Deletion) and potentially “%%14674” (Attribute Addition) to replace the deleted ACEs with modified versions.
- The event logs record the changes, including the ObjectClass as
domainDNS, the ObjectDN representing the distinguished name of the domain root, and the SubjectLogonId identifying the user who made the changes. - The
old_valuefield in the event log contains the ACE string representing the deleted permission, including the aceType, aceFlags, aceAccessRights, aceObjectGuid, and aceSid. - The attacker may repeat this process for multiple ACEs, targeting different groups or users to achieve their desired level of access control modification.
- The attacker leverages the modified ACLs to escalate privileges, gain unauthorized access to resources, or establish persistence within the Active Directory environment.
- The attacker maintains covert access to the domain, potentially compromising critical systems or exfiltrating sensitive data.
Impact
Successful deletion of ACLs on the domain root object can have severe consequences, including unauthorized privilege escalation, data breaches, and complete domain compromise. Attackers can leverage these changes to gain control over critical resources, disrupt services, and establish persistent access to the environment. While the exact number of victims may vary, organizations across various sectors that rely on Active Directory for authentication and access control are vulnerable. If this attack succeeds, it can lead to significant financial losses, reputational damage, and regulatory penalties.
Recommendation
- Enable and monitor Windows Event Log Security event ID 5136 for changes to Active Directory objects, particularly the domain root (ObjectClass=domainDNS), to activate detections (data_source).
- Implement the provided Sigma rule
Detect AD Domain Root ACL Deletionto identify suspicious ACL deletions on the domain root object (rules). - Investigate any identified instances of ACL deletion, focusing on the
src_userandSubjectLogonIdto determine the source of the change and the potential impact (rules, search). - Ensure that the
wineventlog_securitymacro is correctly configured with appropriate indexes and lookups for SID resolution to enrich event data (search, how_to_implement). - Review and validate any ACL changes on the domain root object to ensure they align with organizational security policies and business requirements (description).
Detection coverage 2
Detect AD Domain Root ACL Deletion
highDetects deletion of ACLs on the Active Directory domain root object, indicative of potential privilege escalation or persistence attempts.
Detect AD Domain Root ACL Deletion - PowerShell
mediumDetects deletion of ACLs on the Active Directory domain root object using PowerShell cmdlets.
Detection queries are available on the platform. Get full rules →