Suspicious Indirect Inline Command Execution Through Bash.EXE (via process_creation)
This rule detects execution of Microsoft bash launcher with the "-c" flag. This can be leveraged to potentially bypass defenses and execute Linux or Windows-based binaries directly via bash.
SigmamediumWindowsv1
sigma
suspicious-indirect-inline-command-execution-through-bash-exe-via-process-creation
title: Suspicious Indirect Inline Command Execution Through Bash.EXE (via process_creation)
id: b6754d43-8129-54e9-a85b-1355089a43f6
status: stable
description: This rule detects execution of Microsoft bash launcher with the "-c" flag. This can be leveraged to potentially bypass defenses and execute Linux or Windows-based binaries directly via bash.
references:
- https://attack.mitre.org/techniques/T1202/
- https://lolbas-project.github.io/lolbas/Binaries/Bash/
author: Huntrule Team
date: 2026-01-10
tags:
- attack.stealth
- attack.t1202
logsource:
category: process_creation
product: windows
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_*
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.