Sdiagnhost Calling Suspicious Child Process
A Sigma rule for process creation on Windows, by Nextron Systems, @Kostastsale.
high 2 ATT&CK techniques 12 programs it names
What it looks for
detection:
filter_main_cmd_bits:
CommandLine|contains: 'bits'
Image|endswith: '\cmd.exe'
filter_main_powershell_noprofile:
CommandLine|endswith:
- '-noprofile -'
- '-noprofile'
Image|endswith: '\powershell.exe'
selection:
Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
- '\cmd.exe'
- '\mshta.exe'
- '\cscript.exe'
- '\wscript.exe'
- '\taskkill.exe'
- '\regsvr32.exe'
- '\rundll32.exe'
- '\calc.exe'
ParentImage|endswith: '\sdiagnhost.exe'
condition: selection and not 1 of filter_main_*
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 Nextron Systems, @Kostastsale, 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.
None of the everyday examples and documented commands on CmdID’s program pages trips it. To see whether a command line does, paste it into CmdID.