Detection rules › Sigma
Recon Command Output Piped To Findstr.EXE
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
| Tactic | Techniques |
|---|---|
| Discovery | T1057 Process Discovery |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
| Security-Auditing | 4688 | A 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.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|