Suspicious Tasklist Discovery Command
A Sigma rule for process creation on Windows, from SigmaHQ’s threat hunting rules, by frack113.
informational 1 ATT&CK technique 2 programs it names 11 everyday examples trip it
What it looks for
detection:
selection:
- CommandLine|contains: 'tasklist'
- Image|endswith: '\tasklist.exe'
- OriginalFileName: 'tasklist.exe'
condition: selection
The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by frack113, under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.
Command lines that trip it
To list all tasks with a process ID greater than 1000, and display them in csv format, type on the page for tasklist
tasklist /v /fi "PID gt 1000" /fo csvIdentifyTo list the system processes that are currently running, type on the page for tasklist
tasklist /fi "USERNAME ne NT AUTHORITY\SYSTEM" /fi "STATUS eq running"IdentifyTo list detailed information for all processes that are currently running, type on the page for tasklist
tasklist /v /fi "STATUS eq running"IdentifyTo list all the service information for processes on the remote computer srvmain, which has a DLL name beginning with ntdll, type on the page for tasklist
tasklist /s srvmain /svc /fi "MODULES eq ntdll*"IdentifyTo list the processes on the remote computer srvmain, using the credentials of your currently logged-on user account, type on the page for tasklist
tasklist /s srvmainIdentifyTo list the processes on the remote computer srvmain, using the credentials of the user account Hiropln, type on the page for tasklist
tasklist /s srvmain /u maindom\hiropln /p p@ssW23IdentifyDisplay running processes in a specified output format on the page for tasklist
tasklist /fo tableIdentifyDisplay running processes using the specified .exe or .dll file name on the page for tasklist
tasklist /m module_patternIdentify