Threat Hunting: Lateral Movement - Scheduled Task creation on remote host via the AT.exe file

Where in the Cyber Kill Chain?


CyberKill-Exploitation__1_

IDENTIFYING

On remote host via the AT.exe file

COMPONENT

Remarks

TACTIC

Scheduled task creation on remote host via the AT.exe file.

TECHNIQUE

Identify the creation of scheduled tasks on a remote system by means of the command syntax at \\ [target]. This may result in false positives depending on the extent of legitimate use of the AT command for system administration tasks, in batch scripts, etc. Legitimate administrator usage and automated scripts may all create remote tasks with high frequency and broad scale. This may require additional filtering either by user, computer group, or some combination thereof.

PROCEDURE

Trace Executed Processes

  1. Open the TaaS Tanium console.

  2. Use either the Question Builder or Question Bar, proceed to Trace Registry Keys or Values

  3. Configure the sensor with the following settings:

    1. Treat Inputs as Regular Expressions: Enabled

    2. Make Stackable/Skip Unique: Enabled (unless targeting small # of systems)

    3. Command Line: (?i).*at\.exe.*:

    Get Trace Executed Processes[1 week,1691686395796|1691689994796,0,0,10,1,\at.exe,"","","","",""] from all machines

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

Technique effective against the following adversary TTPs

  • Lateral Movement