Threat Hunting: Lateral Movement - PsExec remote command execution

Where in the Cyber Kill Chain?


CyberKill-CommandControl__1_

IDENTIFYING

Command Execution

COMPONENT

Remarks

TACTIC

PsExec.exe remote command execution

TECHNIQUE

Identify the use of the PsExec utility to run a command on a remote system via the -e switch. A legitimate administrator usage of the PsExec utility produces false positives. It is suggested to use filtering by user, computer group, and the Skip unique / make stackable option.

PROCEDURE

Trace Executed Processes

  1. Open the TaaS Tanium console.

  2. Use either the Question Builder or Question Bar, proceed to Trace Executed Processes

  3. Treat inputs as Regular Expressions: Disabled

  4. Skip Unique / Make Stackable: Enabled

  5. Process Path: psexec.exe

  6. Command-Line: -e

Get Trace Executed Processes[3 days,1630440063402|1630443662402,0,0,1,1,psexec.exe,"",-e,"","",""] from all machines

See Trace Executed Processes in the Trace Sensor Reference (TRC login required).

Technique effective against the following adversary TTPs

  • Lateral Movement