Detection rules › Sigma
Forfiles.EXE Child Process Masquerading
Detects the execution of "forfiles" from a non-default location, in order to potentially spawn a custom "cmd.exe" from the current working directory.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Defense Evasion | T1036 Masquerading |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
Stages and Predicates
Stage 1: selection
or:
ParentCommandLine|endswith: .exe
ParentCommandLine|endswith: '.exe"'
CommandLine|startswith: '/c echo "'
Image|endswith: '\cmd.exe'
Stage 2: not 1 of filter_main_parent_not_sys
or:
Image|contains: ':\Windows\SysWOW64\'
Image|contains: ':\Windows\System32\'
or:
ParentImage|contains: ':\Windows\SysWOW64\'
ParentImage|contains: ':\Windows\System32\'
Image|endswith: '\cmd.exe'
ParentImage|endswith: '\forfiles.exe'
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 | starts_with |
|
Image | ends_with |
|
Image | match |
|
ParentCommandLine | ends_with |
|
ParentImage | ends_with |
|
ParentImage | match |
|