Sigma rule: Indirect Inline Command Execution Via Bash.EXE
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-ca45b5f88201, updated 2023-08-15T00:00:00.000Z.
Rule
- Title
- Indirect Inline Command Execution Via Bash.EXE
- Status
- test
- Level
- medium
- Author
- frack113
- Date
- 2021-11-24
- Modified
- 2023-08-15
- File
- rules/windows/process_creation/proc_creation_win_bash_command_execution.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects execution of Microsoft bash launcher with the "-c" flag.
This can be used to potentially bypass defenses and execute Linux or Windows-based binaries directly via bash.
Log source
- product
- windows
- category
- process_creation
Detection
selection_img:
- Image|endswith:
- ':\Windows\System32\bash.exe'
- ':\Windows\SysWOW64\bash.exe'
- OriginalFileName: 'Bash.exe'
selection_cli:
CommandLine|contains: ' -c '
condition: all of selection_*False positives (as the rule lists them)
- Unknown
Tags
- attack.stealth
- attack.t1202
MITRE ATT&CK ids this rule names
Related rules
References
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_bash_command_execution.yml
Sources and licences
SigmaHQ
"Indirect Inline Command Execution Via Bash.EXE" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_bash_command_execution.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Indirect Inline Command Execution Via Bash.EXE",
entity page, dataset version ref-ca45b5f88201, updated 2023-08-15T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/5edc2273-c26f-406c-83f3-f4d948e740dd (accessed 2026-11-03).
Underlying source: SigmaHQ rule 5edc2273-c26f-406c-83f3-f4d948e740dd, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.