the_open_door
coffee
ESEN
← Back to index

SCCM Abuse

ATT&CKT1072

SCCM (now Microsoft Configuration Manager) deploys software and patches to every machine in the domain. To do that it needs credentials with broad reach and a channel to talk to each client, and both are abusable. A compromised SCCM server usually means the domain.

Mechanism. Two abuses depend on no vulnerability at all, only on how it is configured:

Enumeration runs from any managed machine or against the directory, because SCCM publishes its management points in LDAP:


sccmhunter find -u <user> -p <pass> -d <domain> -dc-ip <dc>

SharpSCCM.exe local site-info                 # which server this client reports to
SharpSCCM.exe local secrets                   # credentials the client has stored

Requirements. For the Network Access Account, being a local administrator of a managed machine. For the client push abuse, being able to create a computer account (MachineAccountQuota) and a listener for the incoming authentication.

How to detect it. Reading the client secrets leaves access to the root\ccm WMI namespace and to the SMS_* classes from a process that is not the agent, a very unusual query and easy to alert on. For client push, the indicator is a 4624 from the installation account against a freshly created machine, correlated with a recent 4741; if the authentication is NTLM and lands on a host other than the one that triggered it, that is relay. Logons by the Network Access Account outside the distribution servers are worth watching.

Defence. Remove the Network Access Account and use anonymous access to distribution shares, which is what Microsoft has recommended for years; if it must exist, make it an unprivileged account with no interactive logon. Disable client push or, if it is needed, force it to use Kerberos only. And treat SCCM servers as Tier 0: whoever administers them administers the domain.