Skip to content
WETNav

Community detections

bash.exe

17 community detection rules look for suspicious bash.exe command lines, most often for Exploit Public-Facing Application (T1190), Indirect Command Execution (T1202), Malicious File (T1204.002). WETNav has no switch-by-switch reference for it yet, so the explainer reads its arguments generically and checks them against these rules.

Rules by level

12 high5 medium

Worst caseHigh
Explain a bash.exe command line

What defenders look for

  • High
    MMC Spawning Windows Shell

    Detects a Windows command line executable started from MMC

    T1021.003by Karneades, Swisscom CSIRT

  • High
    Suspicious Child Process Of Manage Engine ServiceDesk

    Detects suspicious child processes of the "Manage Engine ServiceDesk Plus" Java web service

    T1102by Florian Roth (Nextron Systems)

  • High
    Suspicious Child Process Of SQL Server

    Detects suspicious child processes of the SQLServer process. This could indicate potential RCE or SQL Injection.

    T1505.003T1190by FPT.EagleEye Team, wagga

  • High
    Suspicious Microsoft Office Child Process

    Detects a suspicious process spawning from one of the Microsoft Office suite products (Word, Excel, PowerPoint, Publisher, Visio, etc.)

    T1047T1204.002T1218.010by Florian Roth (Nextron Systems), Markus Neis, FPT.EagleEye Team, Vadim Khrykov, Cyb3rEng, Michael Haag, Christopher Peacock @securepeacock, @scythe_io

  • High
    Suspicious Microsoft OneNote Child Process

    Detects suspicious child processes of the Microsoft OneNote application. This may indicate an attempt to execute malicious embedded objects from a .one file.

    T1566T1566.001by Tim Rauch (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), Elastic (idea)

  • High
    Suspicious MSHTA Child Process

    Detects a suspicious process spawning from an "mshta.exe" process, which could be indicative of a malicious HTA script execution

    T1218.005by Michael Haag

  • High
    Suspicious Outlook Child Process

    Detects a suspicious process spawning from an Outlook process.

    T1204.002by Michael Haag, Florian Roth (Nextron Systems), Markus Neis, Elastic, FPT.EagleEye Team

  • High
    Suspicious Process By Web Server Process

    Detects potentially suspicious processes being spawned by a web server process which could be the result of a successfully placed web shell or exploitation

    T1505.003T1190by Thomas Patzke, Florian Roth (Nextron Systems), Zach Stanford @svch0st, Tim Shelton, Nasreddine Bencherchali (Nextron Systems)

  • High
    Suspicious Processes Spawned by WinRM

    Detects suspicious processes including shells spawnd from WinRM host process

    T1190by Andreas Hunkeler (@Karneades), Markus Neis

  • High
    Suspicious Serv-U Process Pattern

    Detects a suspicious process pattern which could be a sign of an exploited Serv-U service

    T1555by Florian Roth (Nextron Systems)

  • High
    Suspicious ShellExec_RunDLL Call Via Ordinal

    Detects suspicious call to the "ShellExec_RunDLL" exported function of SHELL32.DLL through the ordinal number to launch other commands. Adversary might only use the ordinal number in order to bypass existing detection that alert on usage of ShellExec_RunDLL on CommandLine.

    T1218.011by Swachchhanda Shrawan Poudel

  • High
    Suspicious Shells Spawn by Java Utility Keytool

    Detects suspicious shell spawn from Java utility keytool process (e.g. adselfservice plus exploitation)

    by Andreas Hunkeler (@Karneades)

  • Medium
    Indirect Command Execution From Script File Via Bash.EXE

    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.

    T1202by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Indirect Inline Command Execution Via Bash.EXE

    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.

    T1202by frack113

  • Medium
    Potentially Suspicious Execution Of PDQDeployRunner

    Detects suspicious execution of "PDQDeployRunner" which is part of the PDQDeploy service stack that is responsible for executing commands and packages on a remote machines

    by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Shell Process Spawned by Java.EXE

    Detects shell spawned from Java host process, which could be a sign of exploitation (e.g. log4j exploitation)

    by Andreas Hunkeler (@Karneades), Nasreddine Bencherchali

  • Medium
    Visual Studio Code Tunnel Shell Execution

    Detects the execution of a shell (powershell, bash, wsl...) via Visual Studio Code tunnel. Attackers can abuse this functionality to establish a C2 channel and execute arbitrary commands on the system.

    T1071.001by Nasreddine Bencherchali (Nextron Systems)

Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.

Questions

Is bash.exe malicious?
Not by itself. These rules flag specific ways of running it: 17 rules, 12 rated high or critical. MMC Spawning Windows Shell; Suspicious Child Process Of Manage Engine ServiceDesk; Suspicious Child Process Of SQL Server. Judge a run by its command line, its parent process, the account and the host.
What does bash.exe have to do with ATT&CK?
The rules for it map to Exploit Public-Facing Application (T1190), Indirect Command Execution (T1202), Malicious File (T1204.002), Web Shell (T1505.003).
How do I check a bash.exe command line?
Paste it into the WETNav command explainer. It reads every argument, pulls out indicators and evaluates all 1,192 Sigma process creation rules in your browser, including these.