Windows SeRestorePrivilege Can Enable Three Paths to SYSTEM on a Domain Controller

· Original article ↗

Summary

A lab walkthrough shows how Server Operators membership grants SeRestorePrivilege and SeBackupPrivilege, enabling hash extraction, service hijacking, or Utilman.exe replacement to reach SYSTEM on a Windows Server 2019 Domain Controller.

Key points

  • The isolated lab uses a low-privileged domain account added to Server Operators, which receives SeRestorePrivilege and SeBackupPrivilege.
  • Using SeBackupPrivilege, the account saves and exfiltrates the SAM and SYSTEM registry hives, then extracts an Administrator NTLM hash for Pass-the-Hash access.
  • The walkthrough reconfigures the VMTools service to run a reverse shell as SYSTEM.
  • SeRestorePrivilege is used to replace Utilman.exe with cmd.exe, enabling a SYSTEM command prompt from the unauthenticated RDP login screen.
  • Recommended defenses include minimizing Server Operators membership, restricting WinRM, monitoring sensitive hive access and privilege use, and applying application control to protect system binaries.

Article Details

Topic
Windows privilege escalation through SeRestorePrivilege, including registry hive access, service binary hijacking, and replacement of an accessibility binary.

Indicators of compromise

TypeIndicatorContext
IPV4192[.]168[.]1[.]12Attacker-controlled lab host used to receive the reverse shell callback.

MITRE ATT&CK

Products

Tools

Related Articles