Skip to content
WETNav

Discovery · Windows

tasklist.exe

Tasklist

Lists running processes, services and loaded modules, locally or on a remote host. Often used to look for security tools or to find the LSASS process ID.

Legitimate use

Used to check what is running and which services share a process.

Worst caseMedium

Switches

/svc

Shows the services hosted in each process.

Low
/v

Verbose output, including the user that owns each process.

Low
/m

Shows the DLLs loaded by each process, or the processes that load a given DLL.

Low
/fi<value>

Filters the output, for example by image name or PID.

Low
/s<value>

Queries a remote computer.

Medium
/u<value>

Account for the remote query.

Medium
/p<value>

Password for the remote query, in clear text.

Medium

Command lines to worry about

  • Medium

    Looking up the LSASS process

    Finds the LSASS process ID. Often comes just before an LSASS memory dump. Check what ran next from the same session.

    Detection regextasklist(\.exe)?\s+.*\/fi\s+"?imagename\s+eq\s+lsass

    T1057T1003.001

Where it is recorded

  • Security4688Process creation with the full command line, when command-line auditing is enabled.
  • Sysmon1Process creation with command line, hashes and parent process.

Community detections

4 SigmaHQ rules for tasklist.exe. The explainer checks every pasted command line against all of them.

  • Critical
    Suspicious Child Process Of Veeam Dabatase

    Detects suspicious child processes of the Veeam service process. This could indicate potential RCE or SQL Injection.

    by Nasreddine Bencherchali (Nextron Systems)

  • High
    Suspicious Child Process Of SQL Server

    Detects suspicious child processes of the SQLServer process. This could indicate potential RCE or SQL Injection.

    T1505.003T1190by FPT.EagleEye Team, wagga

  • High
    Webshell Detection With Command Line Keywords

    Detects certain command line parameters often used during reconnaissance activity via web shells

    T1505.003T1018T1033T1087by Florian Roth (Nextron Systems), Jonhnathan Ribeiro, Anton Kutepov, oscd.community, Chad Hudson, Matt Anderson

  • Medium
    Loaded Module Enumeration Via Tasklist.EXE

    Detects the enumeration of a specific DLL or EXE being used by a binary via "tasklist.exe". This is often used by attackers in order to find the specific process identifier (PID) that is using the DLL in question. In order to dump the process memory or perform other nefarious actions.

    T1003by Swachchhanda Shrawan Poudel

Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.