Skip to content
WETNav

Community detections

sh.exe

12 community detection rules look for suspicious sh.exe command lines, most often for Exploit Public-Facing Application (T1190), Malicious File (T1204.002), Web Shell (T1505.003). 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 high

Worst caseHigh
Explain a sh.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 Java.EXE

    Detects suspicious processes spawned from a Java host process which could indicate a sign of exploitation (e.g. log4j)

    by Andreas Hunkeler (@Karneades), Florian Roth

  • 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 Shells Spawn by Java Utility Keytool

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

    by Andreas Hunkeler (@Karneades)

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 sh.exe malicious?
Not by itself. These rules flag specific ways of running it: 12 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 sh.exe have to do with ATT&CK?
The rules for it map to Exploit Public-Facing Application (T1190), Malicious File (T1204.002), Web Shell (T1505.003), Distributed Component Object Model (T1021.003).
How do I check a sh.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.