Skip to content
WETNav

Community detections

wsl.exe

9 community detection rules look for suspicious wsl.exe command lines, most often for Match Legitimate Name or Location (T1036.005), Exploit Public-Facing Application (T1190), System Binary Proxy Execution (T1218). 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

1 critical6 high2 medium

Worst caseCritical
Explain a wsl.exe command line

What defenders look for

  • Critical
    Suspicious Child Process Of Veeam Dabatase

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

    by Nasreddine Bencherchali (Nextron Systems)

  • High
    Installation of WSL Kali-Linux

    Detects installation of Kali Linux distribution through Windows Subsystem for Linux (WSL). Attackers may use Kali Linux WSL to leverage its penetration testing tools and capabilities for malicious purposes.

    T1059by Swachchhanda Shrawan Poudel (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 Processes Spawned by WinRM

    Detects suspicious processes including shells spawnd from WinRM host process

    T1190by Andreas Hunkeler (@Karneades), Markus Neis

  • High
    Suspicious WSL Binary Hijack via Proxy Execution

    Detects C:\Windows\System32\wsl.exe spawning a child wsl.exe process from outside the legitimate WSL install locations. When WSL or bash is invoked, the System32 stub (wsl.exe) looks up the InstallLocation registry key and executes the wsl.exe found there.

    T1036.005T1218by Swachchhanda Shrawan Poudel (Nextron Systems)

  • High
    Suspicious WSL Binary Masquerading

    Detects execution of masqueraded wsl.exe binary. Attackers can rename a malicious payload to wsl.exe to masquerade as the legitimate Windows Subsystem for Linux binary, bypassing detection based on image name alone and abusing user trust in the WSL process name.

    T1036.005T1218by Swachchhanda Shrawan Poudel (Nextron Systems)

  • High
    System File Execution Location Anomaly

    Detects the execution of a Windows system binary that is usually located in the system folder from an uncommon location.

    T1036by Florian Roth (Nextron Systems), Patrick Bareiss, Anton Kutepov, oscd.community, Nasreddine Bencherchali (Nextron Systems)

  • 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
    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 wsl.exe malicious?
Not by itself. These rules flag specific ways of running it: 9 rules, 7 rated high or critical. Suspicious Child Process Of Veeam Dabatase; Installation of WSL Kali-Linux; Suspicious Child Process Of SQL Server. Judge a run by its command line, its parent process, the account and the host.
What does wsl.exe have to do with ATT&CK?
The rules for it map to Match Legitimate Name or Location (T1036.005), Exploit Public-Facing Application (T1190), System Binary Proxy Execution (T1218), Masquerading (T1036).
How do I check a wsl.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.