Indirect Command Execution From Script File Via Bash.EXE
Description
Detects execution of Microsoft bash launcher without any flags to execute the content of a bash script directly. This can be used to potentially bypass defenses and execute Linux or Windows-based binaries directly via bash.
Query · sigma
selection: - Image|endswith: - :\Windows\System32\bash.exe - :\Windows\SysWOW64\bash.exe - OriginalFileName: Bash.exe filter_main_cli_flag: CommandLine|contains: - bash.exe - - bash - filter_main_no_cli: CommandLine: null filter_main_empty: CommandLine: '' filter_main_no_flag: CommandLine: - bash.exe - bash condition: selection and not 1 of filter_main_*
Known false positives
- Unknown