Detection of PsExec Service Execution as SYSTEM
Detection of unauthorized remote command execution via PSEXESVC where child processes are spawned with SYSTEM-level privileges.
The Sysinternals PsExec utility is frequently leveraged by threat actors to perform remote command execution and lateral movement. When the utility is used with the -s flag, the associated service, PSEXESVC.exe, executes remote commands with LOCAL SYSTEM privileges rather than those of the authenticated user. While PsExec is a legitimate administration tool, its execution by non-authorized accounts often indicates an ongoing attack where an adversary has already obtained administrative credentials and is escalating to system-level access to disable security software, dump credentials, or establish persistence. Monitoring for child processes of PSEXESVC.exe executing under the SYSTEM user account is a high-fidelity indicator of such activity.
Attack Chain
- Attacker performs credential dumping on an initial entry point to obtain local administrator credentials.
- Attacker uses PsExec to authenticate to a target endpoint using stolen credentials via SMB/RPC.
- The PSEXESVC service binary is dropped into the Admin$ share on the remote target.
- The service is started remotely using the Service Control Manager.
- The PSEXESVC.exe process initializes and creates a process designated by the attacker.
- The child process runs as LOCAL SYSTEM due to the -s flag provided by the attacker.
- Attacker executes malicious payloads, such as backdoors or ransomware components, with elevated privileges.
- Attacker clears logs or modifies system configurations to maintain stealth.
Impact
Successful abuse of PsExec to gain SYSTEM privileges typically leads to full host compromise, including the ability to disable EDR/AV solutions, exfiltrate sensitive data, and perform domain-wide movement. This technique is observed in widespread ransomware deployments and targeted espionage campaigns where administrative lateral movement is a core objective.
Recommendation
- Deploy the provided Sigma rule to monitor for suspicious process creation events originating from PSEXESVC.exe.
- Enable Sysmon process-creation logging to capture the ParentImage and User fields.
- Audit and restrict the use of PsExec across the environment, limiting execution to authorized jump hosts or administrative management workstations.
- Tune the detection to account for legitimate IT management tooling, such as the Microsoft Intune management extension, which may trigger similar alerts.
Immediate actions
Deploy Sigma detection rule to SIEM and monitor for hits
Threat Hunt
Search logs for any execution of PSEXESVC.exe across the fleet
Data: Process creation events
Mitigations
Restrict PSEXESVC.exe usage via AppLocker or EDR block rules
Lateral movement and privilege escalation risk
Detection coverage 1
Detect PSEXESVC Child Process Execution as LOCAL SYSTEM
highDetects suspicious launch of the PSEXESVC service child process run as LOCAL SYSTEM, indicating remote execution with highest privileges.
Detection queries are available on the platform. Get full rules →