Group Membership Exploitation
With AddMember, GenericWrite, or GenericAll rights on a privileged group, you can add yourself or a controlled account directly to Domain Admins or other high-value groups. This is the most direct path from a misconfigured ACL to full domain control: one command, immediate impact.
High-value groups to target:
- Domain Admins: full control over the domain
- Enterprise Admins: forest-wide administrative access
- Backup Operators: can read any file and dump SAM/NTDS
- DNSAdmins: can load arbitrary DLLs as SYSTEM via DNS service
- Account Operators: can manage most non-admin AD accounts
Confirm the right exists before making any changes. Use ACL Enumeration to identify writable groups first.
Add account to privileged group
Group membership changes take effect on next logon: your current session token does not update immediately. Start a new session or request a new TGT to get a token with the updated group memberships.
SMB 10.10.10.10 445 DC01 [+] corp.local\jsmith:Password123! (Pwn3d!)
DNSAdmins privilege escalation
Members of DNSAdmins can configure the DNS server to load a plugin DLL. Since the DNS service runs as SYSTEM, loading a malicious DLL gives immediate code execution as SYSTEM on the domain controller.
Machine account creation
When Machine Account Quota is above 0 (default is 10), any domain user can create computer accounts. Machine accounts are useful as controlled principals for RBCD, Kerberos abuse, and as clean identities that blend in with legitimate computer objects.
A newly created machine account has no special rights on its own. Its value comes from combining it with RBCD setup (see ACL Abuse Privilege Escalation) or NTLM relay (see LDAP Relay and Signing Abuse).
References
-
add groupMember, add computer, remove computer reference