Detection rules › Sigma

Recon Command Output Piped To Findstr.EXE

Severity
medium
Author
Nasreddine Bencherchali (Nextron Systems), frack113
Source
upstream

Detects the execution of a potential recon command where the results are piped to "findstr". This is meant to trigger on inline calls of "cmd.exe" via the "/c" or "/k" for example. Attackers often time use this technique to extract specific information they require in their reconnaissance phase.

MITRE ATT&CK coverage

TacticTechniques
DiscoveryT1057 Process Discovery

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation
Security-Auditing4688A new process has been created.

Stages and Predicates

Stage 1: selection

or:
CommandLine|contains: 'ipconfig*|*find'
CommandLine|contains: 'net*|*find'
CommandLine|contains: 'netstat*|*find'
CommandLine|contains: 'ping*|*find'
CommandLine|contains: 'systeminfo*|*find'
CommandLine|contains: 'tasklist*|*find'
CommandLine|contains: 'whoami*|*find'

Stage 2: not 1 of filter_optional_xampp

CommandLine|contains: 'FIND /I'
CommandLine|contains: '\catalina_start.bat'
CommandLine|contains: '\xampp\'
CommandLine|contains: 'cmd.exe /c TASKLIST /V |'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • FIND /I
  • \catalina_start.bat corpus 2 (sigma 2)
  • \xampp\ corpus 2 (sigma 2)
  • cmd.exe /c TASKLIST /V |
  • ipconfig*|*find
  • net*|*find
  • netstat*|*find
  • ping*|*find
  • systeminfo*|*find
  • tasklist*|*find
  • whoami*|*find