
Active Directory ACL Analyzer
FreeIdentify dangerous ACL misconfigurations in Active Directory.
Free · Opens the source repo
What Active Directory ACL Analyzer does
The Active Directory ACL Analyzer skill is designed to help security professionals detect and analyze dangerous Access Control List (ACL) misconfigurations in Active Directory environments. Using the ldap3 library, this skill connects to a Domain Controller and queries objects to inspect their security descriptors. Misconfigured ACLs can grant excessive permissions to non-privileged users, creating potential attack vectors that can be exploited by malicious actors. This skill focuses on identifying specific permissions such as GenericAll, WriteDACL, and WriteOwner that could lead to privilege escalation or unauthorized access.
The process begins with establishing a secure LDAP connection to the Domain Controller, where the skill queries for objects and retrieves their nTSecurityDescriptor attributes. These binary security descriptors are then parsed into a more readable SDDL format, allowing for detailed examination of Access Control Entries (ACEs). The skill identifies which non-administrative users or groups have been granted dangerous permissions, enabling security analysts to pinpoint vulnerabilities that could be exploited in an attack.
In addition to identifying misconfigurations, the skill generates a JSON report detailing the findings, including the severity of each issue and recommended remediation steps. This structured output is invaluable for security operations center (SOC) analysts and incident responders who need to document their findings and take corrective action. By providing a clear overview of potential attack paths, the Active Directory ACL Analyzer skill supports proactive security measures in enterprise environments.
This skill is particularly useful for organizations that rely heavily on Active Directory for user and resource management, as well as for those looking to enhance their security posture by implementing regular audits of their ACL configurations.
When to use it
Use this skill when investigating security incidents related to Active Directory or when building detection rules for threat hunting.
When not to use it
This skill is not suitable for environments without Active Directory or for users without sufficient permissions to query AD objects.
What you can build with it
Incident Investigation
Use this skill to analyze ACLs during a security incident investigation to identify misconfigurations.
Security Audits
Employ the skill for regular security audits of Active Directory to ensure ACLs are correctly configured.
Threat Hunting
Integrate this skill into threat hunting workflows to proactively identify potential privilege escalation paths.
How to install Active Directory ACL Analyzer
View source1. Install with the skills CLI
npx skills add mukul975/anthropic-cybersecurity-skills/analyzing-active-directory-acl-abuse --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by mukul975Analyzing Active Directory ACL Abuse
Overview
Active Directory Access Control Lists (ACLs) define permissions on AD objects through Discretionary Access Control Lists (DACLs) containing Access Control Entries (ACEs). Misconfigured ACEs can grant non-privileged users dangerous permissions such as GenericAll (full control), WriteDACL (modify permissions), WriteOwner (take ownership), and GenericWrite (modify attributes) on sensitive objects like Domain Admins groups, domain controllers, or GPOs.
This skill uses the ldap3 Python library to connect to a Domain Controller, query objects with their nTSecurityDescriptor attribute, parse the binary security descriptor into SDDL (Security Descriptor Definition Language) format, and identify ACEs that grant dangerous permissions to non-administrative principals. These misconfigurations are the basis for ACL-based attack paths discovered by tools like BloodHound.
When to Use
- When investigating security incidents that require analyzing active directory acl abuse
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- Python 3.9 or later with ldap3 library (
pip install ldap3) - Domain user credentials with read access to AD objects
- Network connectivity to Domain Controller on port 389 (LDAP) or 636 (LDAPS)
- Understanding of Active Directory security model and SDDL format
Steps
-
Connect to Domain Controller: Establish an LDAP connection using ldap3 with NTLM or simple authentication. Use LDAPS (port 636) for encrypted connections in production.
-
Query target objects: Search the target OU or entire domain for objects including users, groups, computers, and OUs. Request the
nTSecurityDescriptor,distinguishedName,objectClass, andsAMAccountNameattributes. -
Parse security descriptors: Convert the binary nTSecurityDescriptor into its SDDL string representation. Parse each ACE in the DACL to extract the trustee SID, access mask, and ACE type (allow/deny).
-
Resolve SIDs to principals: Map security identifiers (SIDs) to human-readable account names using LDAP lookups against the domain. Identify well-known SIDs for built-in groups.
-
Check for dangerous permissions: Compare each ACE's access mask against dangerous permission bitmasks: GenericAll (0x10000000), WriteDACL (0x00040000), WriteOwner (0x00080000), GenericWrite (0x40000000), and WriteProperty for specific extended rights.
-
Filter non-admin trustees: Exclude expected administrative trustees (Domain Admins, Enterprise Admins, SYSTEM, Administrators) and flag ACEs where non-privileged users or groups hold dangerous permissions.
-
Map attack paths: For each finding, document the potential attack chain (e.g., GenericAll on user allows password reset, WriteDACL on group allows adding self to group).
-
Generate remediation report: Output a JSON report with all dangerous ACEs, affected objects, non-admin trustees, and recommended remediation steps.
Expected Output
{
"domain": "corp.example.com",
"objects_scanned": 1247,
"dangerous_aces_found": 8,
"findings": [
{
"severity": "critical",
"target_object": "CN=Domain Admins,CN=Users,DC=corp,DC=example,DC=com",
"target_type": "group",
"trustee": "CORP\\helpdesk-team",
"permission": "GenericAll",
"access_mask": "0x10000000",
"ace_type": "ACCESS_ALLOWED",
"attack_path": "GenericAll on Domain Admins group allows adding arbitrary members",
"remediation": "Remove GenericAll ACE for helpdesk-team on Domain Admins"
}
]
}
Frequently asked questions about Active Directory ACL Analyzer
Similar skills
Asset Criticality Scoring for Vulns
Prioritize vulnerabilities based on asset criticality.
Performing Alert Triage with Elastic SIEM
Streamline alert triage processes in Elastic Security.
Active Directory Vulnerability Assessment
Secure your Active Directory with comprehensive assessments.
Active Directory Investigation
Streamline your Active Directory compromise investigations.
Parsing Artifacts with Eric Zimmerman Tools
Efficiently parse Windows forensic artifacts for analysis.
Operationalizing MISP Threat Feeds
Enhance threat detection with curated MISP feeds.
