Potentially Suspicious PowerShell Child Processes
Description
Detects potentially suspicious child processes spawned by PowerShell. Use this rule to hunt for potential anomalies initiating from PowerShell scripts and commands.
Query · sigma
selection: ParentImage|endswith: - \powershell_ise.exe - \powershell.exe - \pwsh.exe Image|endswith: - \bash.exe - \bitsadmin.exe - \certutil.exe - \cscript.exe - \forfiles.exe - \hh.exe - \mshta.exe - \regsvr32.exe - \rundll32.exe - \schtasks.exe - \scrcons.exe - \scriptrunner.exe - \sh.exe - \wmic.exe - \wscript.exe filter_optional_amazon: ParentCommandLine|contains: \Program Files\Amazon\WorkspacesConfig\Scripts\ CommandLine|contains: \Program Files\Amazon\WorkspacesConfig\Scripts\ filter_main_certutil_verify_store: Image|endswith: \certutil.exe CommandLine|contains: '-verifystore ' filter_main_wmic: Image|endswith: \wmic.exe CommandLine|contains: - qfe list - 'diskdrive ' - 'csproduct ' - 'computersystem ' - ' os ' - '' condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
Known false positives
- False positives are to be expected from PowerShell scripts that might make use of additional binaries such as "mshta", "bitsadmin", etc. Apply additional filters for those scripts.