SeBackupPrivilege Abuse for Privilege Escalation
SeBackupPrivilege allows reading any file on the system regardless of ACLs — it is designed for backup software. With this privilege you can copy the SAM and SYSTEM registry hives even though they are locked and protected. Extract local account NTLM hashes from those files and either crack them or use them directly for pass-the-hash authentication.
Prerequisites Check
SeBackupPrivilege must show Enabled. If it shows Disabled, enable it:
Or use the SeBackupPrivilegeCmdlets:
Step 1 — Copy SAM and SYSTEM Hives
The SAM and SYSTEM files are locked by the OS. Use reg save to create unlocked copies — SeBackupPrivilege allows this even as a non-admin:
If reg save is blocked, use the backup API directly via PowerShell:
Or use robocopy with backup mode:
Step 2 — Transfer to Attack Box
Step 3 — Extract Hashes
Administrator:500:aad3b435b51404eeaad3b435b51404ee:NTHASH:::
Step 4 — Use the Hashes
Pass-the-hash to get a shell:
Crack the hash offline:
For the full password attack workflow see https://hackindex.io/platforms/windows/privilege-escalation/windows-password-attacks.
Reading NTDS.dit (Domain Controller)
If the target is a Domain Controller, SeBackupPrivilege allows copying NTDS.dit — the AD database containing all domain account hashes:
Create the shadow script file first:
Extract hashes:
References
-
Windows Privilege Constantsdocs.microsoft.com/en-us/windows/win32/secauthz/privilege-constants (opens in new tab)
Microsoft Docs SeBackupPrivilege definition and access rights granted.
-
SeBackupPrivilegegithub.com/giuliano108/SeBackupPrivilege (opens in new tab)
CmdLets PowerShell module for enabling and using backup semantics file copy.
Was this helpful?
Your feedback helps improve this page.