Deployment - SCCM
Application Deployment
SCCM is a solution from Microsoft to enhance administration in a scalable way across an organisation.
- PowerSCCM - PowerShell module to interact with SCCM deployments
-
MalSCCM - Abuse local or remote SCCM servers to deploy malicious applications to hosts they manage
-
Using SharpSCCM
- Compromise client, use locate to find management server
- Enumerate over WMI as an administrator of the Distribution Point
- Compromise management server, use locate to find primary server
- Use
inspect
on primary server to view who you can target -
Create a new device group for the machines you want to laterally move too
-
Add your targets into the new group
-
Create an application pointing to a malicious EXE on a world readable share :
SCCMContentLib$
-
Deploy the application to the target group
-
Force the target group to checkin for updates
-
Cleanup the application, deployment and group
Network Access Accounts
If you can escalate on a host that is an SCCM client, you can retrieve plaintext domain credentials.
On the machine
- Find SCCM blob
- Using GhostPack/SharpDPAPI or Mayyhem/SharpSCCM for SCCM retrieval and decryption
- Check ACL for the CIM repository located at
C:\Windows\System32\wbem\Repository\OBJECTS.DATA
:
From a remote machine. * Using garrettfoster13/sccmhunter
python3 ./sccmhunter.py http -u "administrator" -p "P@ssw0rd" -d internal.lab -dc-ip 10.10.10.10. -auto
SCCM Shares
Find interesting files stored on (System Center) Configuration Manager (SCCM/CM) SMB shares
References
- Network Access Accounts are evil… - ROGER ZANDER - 13 SEP 2015
- The Phantom Credentials of SCCM: Why the NAA Won’t Die - Duane Michael - Jun 28
- Introducing MalSCCM - Phil Keeble -May 4, 2022
- Exploiting RBCD Using a Normal User Account - tiraniddo.dev - Friday, 13 May 2022
- Exploring SCCM by Unobfuscating Network Access Accounts - @xpn - Posted on 2022-07-09
- Relaying NTLM Authentication from SCCM Clients - Chris Thompson - Jun 30, 2022