Why WSL becomes a security blind spot in the enterprise

From Bashware to Qilin ransomware: real WSL abuse cases, and what defenders can do with Intune and GPO, Hyper-V Firewall, EDR visibility and detection rules.

In this post
  1. Why it is a threat: confirmed facts
  2. Not yet confirmed
  3. Conclusion: turn it off if you can, manage it if you can’t

WSL (Windows Subsystem for Linux) is the Microsoft feature that runs Linux directly on Windows. Developers like it. For a security team, it means one more Linux environment inside a Windows PC, and one that is hard to see. This post uses published cases and Microsoft documentation to lay out how the threat works and what you can do about it.

100+
WSL-based malware samples tracked by Lumen
Fall 2021 to May 2022 [4]
2 / 57
VirusTotal engines that flagged the 2022 cookie-stealing sample
[4]
700+
Organizations hit by Qilin (Agenda), in 62 countries
Since January 2025, Trend Micro [5]
10
Intune settings Microsoft recommends setting to Disabled
[12]

Why it is a threat: confirmed facts

The mechanism: an unseen VM that can still reach Windows files

In November 2023, Microsoft acknowledged that VM-based environments like WSL “can be difficult to manage security for in enterprise business settings” and that “the containerized environment became a blind spot for security teams.” [10]
Because WSL2 is isolated through virtualization, even Microsoft Defender for Endpoint (MDE) needs a separate plug-in to see inside it. The older WSL1 is supported without the plug-in. [13]
Security firm Truesec explains that without the plug-in, the only thing Windows really sees is the wsl.exe process launching a distribution. [30]
Trend Micro also wrote that many Windows EDR (endpoint detection and response) products focus on the behavior of Windows executables (PE files), so they can miss Linux programs running inside WSL. [5][6]

The permission boundary matters too.

Being root inside WSL does not give you Windows administrator rights. But a shell in WSL can reach Windows files with the same level of access as the user who ran wsl.exe would have in PowerShell. [11]
By default, fixed drives are mounted automatically under /mnt (automount), and the ability to launch Windows processes from inside WSL (interop) is turned on. [16]
These settings live in /etc/wsl.conf inside the distribution, which means the distribution’s root user can change them. They do not look like a central control point (this is my reading of the documentation).

In January 2026, Daniel Mayer, a red team researcher at SpecterOps, wrote that “WSL2 is a completely separate VM running in Hyper-V, and is rarely monitored in any way.” He also noted that unprotected SSH keys and credentials in environment variables or config files are common inside WSL. [8]
That is an opinion drawn from red team experience, not a measured statistic.

Real cases: from proof of concept to ransomware

  1. 2017-09
    Check Point publishes the Bashware proof of concept

    Assuming local admin rights, it quietly enabled WSL1 and ran Windows malware through Wine [1]

  2. 2021-09
    Lumen Black Lotus Labs reports a loader abusing WSL

    Reported as the first publicly identified case. VirusTotal detections of one or zero per sample [2][3]

  3. 2022-05
    More than 100 WSL-based samples tracked

    A remote access tool controlled over Telegram stole Chrome and Opera authentication cookies [4]

  4. 2025-10-23
    Trend Micro report on Agenda (Qilin)

    The report describes WSL use as an inference: the attackers 'likely' enabled it [5]

  5. 2025-10-28
    Trend Micro answers BleepingComputer's follow-up

    Says the attackers did in fact run the encryptor through WSL [6]

  6. 2026-01
    SpecterOps releases a red team tool (BOF) targeting WSL2

    [8]

  7. 2026-02
    SANS ISC reports an infostealer script aimed at WSL

    It checks whether it is running inside WSL, then searches /mnt, where Windows drives are mounted, first [9]

Bashware in 2017 was a research demonstration, not a real attack. It used local administrator rights to quietly turn on the WSL components and Developer Mode, and it targeted WSL1, the version available then. [1]
Check Point said the problem was not a design flaw in WSL but the security industry’s lack of awareness of the new technology. It did not name the antivirus products it tested.

The 2021 Lumen samples were loaders written in Python 3 and turned into Linux executables (ELF) with PyInstaller. They injected a payload into a running process through the Windows API. The initial infection vector was not disclosed. [2][3]
Mike Benjamin of Lumen said: “While the use of WSL is generally limited to power users, those users often have escalated privileges in an organization.” [2]

The 2025 Qilin case has to be read in two steps.

In its October 23 report, Trend Micro wrote that the attackers moved a Linux encryptor onto the machine with WinSCP and ran it through Splashtop’s management service (SRManager.exe). WSL use was stated as an inference: the attackers “likely enabled Windows Subsystem for Linux (WSL).” [5]
When BleepingComputer followed up, Trend Micro said the attackers had in fact run the encryptor through WSL. [6]
The same attacks also used BYOVD (bring your own vulnerable driver), loading a vulnerable signed driver to disable security products. [5]
For comparison, Cisco Talos published its own Qilin report around the same time. It does not mention WSL, and Talos said the group posted more than 40 victims a month in the second half of 2025. [7]

WSL vulnerabilities keep coming

CVE Published Type CVSS Fix
CVE-2025-53788 [20] 2025-08-12 Elevation of privilege (TOCTOU race condition, CWE-367) 7.0 WSL 2.5.10 or later
CVE-2026-21237 [21] 2026-02-10 Elevation of privilege (race condition, CWE-362), SYSTEM rights if exploited 7.0 See the MSRC advisory
CVE-2026-57968 [22] 2026-07-14 WSL2 kernel elevation of privilege (buffer over-read, CWE-126) 7.8 WSL 2.7.8 or later
CVSS scores of WSL-related CVEs
CVE-2025-537887
CVE-2026-212377
CVE-2026-579687.8
Source: CVE.org, MSRC CSAF [20][21][22]
Both MSRC advisories stated that no exploitation was known at the time of publication. [21][22]

ATT&CK mapping: only one technique where MITRE names WSL

T1202 (Indirect Command Execution) is the only MITRE ATT&CK technique whose description names WSL directly. Sigma rules map to T1218 and T1202, and LOLBAS maps to T1202, T1218 and T1105. [23][25][26][27][28]
Technique Basis for mapping Notes
T1202 Indirect Command Execution MITRE text names WSL and wsl.exe [23] MITRE says it “cannot be easily mitigated with preventive controls”
T1218 System Binary Proxy Execution Sigma rules [26][27], LOLBAS [25] Community mapping
T1105 Ingress Tool Transfer LOLBAS [25] Community mapping
T1564.006 Run Virtual Instance Arguably related (my interpretation) [24] MITRE text does not mention WSL. Mitigation M1042 is to disable unneeded virtualization such as Hyper-V

EDR visibility into WSL: a comparison based on public documents

Seeing inside WSL2 takes support from the EDR product. The table below covers only what public documents confirm. MDE has extensive official public documentation and CrowdStrike does not, so the difference in filled cells reflects how much is publicly documented, not which product is better.

Item Microsoft Defender for Endpoint CrowdStrike Falcon
Public basis Official Microsoft documentation [13][14] Reseller partner notices and release notes [31][32]
Approach Install the WSL plug-in (MSI) [13] Windows sensor plug-in plus the “WSL 2 Visibility” prevention policy setting [31]
Minimum version WSL 2.0.7.0 or later; 2.9.12 or later for WSL containers [13] Introduced with Windows sensor 7.26.19809 (released 2025-06-17) [31]
Required subscription MDE Plan 2 [13] Cannot be confirmed from public sources
Visible events File, process and network events from inside WSL appear on the timeline [13] Cannot be confirmed from public sources
Detection and alerts Alerts and incidents are generated [13] Cannot be confirmed from public sources
Limitations No ARM64 or multi-session support; no antimalware, vulnerability management or response commands (isolate, terminate) on the WSL device; onboarding can take up to 30 minutes [13] WSL service must be restarted after a sensor upgrade or downgrade (known issue) [32]
Once the MDE plug-in is installed, a WSL instance shows up as a device tagged WSL2, and it links to its Windows host through HostDeviceId in the advanced hunting DeviceInfo table. Microsoft does not guarantee visibility when a custom kernel and custom kernel command line are in use, and recommends blocking those configurations with Intune. [13]
In September 2026, the plug-in’s coverage expanded to WSL containers (WSLc). [14]

Macnica, a CrowdStrike reseller partner, wrote that with Windows sensor 7.26.19809 (2025-06-17), “By enabling the Falcon sensor plugin, we gained a high level of visibility into Windows Subsystem for Linux 2 (WSL 2) distributions.” [31]
The 7.31 release notes posted by a partner say that “Customers with the WSL2 Visibility prevention policy enabled will need to restart the Windows Subsystem for Linux (WSL) service” after a sensor upgrade or downgrade. [32]
That is as far as public sources go. Which events it records, whether it detects or blocks activity, and which subscription it requires cannot be confirmed from public documents. Check directly with the vendor before you rely on it.

Detection examples (as published)

Even when the inside of the WSL2 VM is invisible, traces remain on the Windows side.

According to Mayer, Microsoft’s WslLaunch API also ends up just spawning a wsl.exe process, so watching for wsl.exe launches is still a useful lead. [8]

MDE advanced hunting (KQL), finding curl and wget runs on WSL devices [13]:

let wsl_endpoints = DeviceInfo
| where OSPlatform == "Linux" and isnotempty(HostDeviceId)
| distinct DeviceId;
DeviceProcessEvents
| where FileName == "curl" or FileName == "wget"
| where DeviceId in (wsl_endpoints)
| sort by Timestamp desc

Elastic EQL, Windows processes whose parent is wsl.exe or wslhost.exe (excerpt, exclusions omitted, based on the Elastic 8.19 docs) [28]:

process where host.os.type == "windows" and event.type : "start" and process.command_line != null and
 process.parent.name : ("wsl.exe", "wslhost.exe") and
 not process.executable : ( ... )
Rule What it looks for Level
Sigma “WSL Child Process Anomaly” [26] cmd, powershell, mshta, rundll32 and similar with wsl.exe/wslhost.exe as parent, or child processes in Temp, Downloads or Public paths medium (status: test)
Sigma “Arbitrary Command Execution Using WSL” (April 2023 revision) [27] wsl.exe command lines with -e, --exec, -u root, --user root, --debug-shell, /mnt/c and similar medium
Qualys indicators (2022) [29] wsl.exe and bash.exe on the command line, enabling WSL through DISM or PowerShell, the LxssManager service —

The Elastic rule supports Defender, SentinelOne, CrowdStrike and Sysmon logs as data sources. [28]
It catches Windows processes launched from WSL. That is a separate problem from visibility into Linux processes inside the VM.

Not yet confirmed

Awaiting confirmation · Source: No public CrowdStrike documentation
Public sources do not show which events CrowdStrike’s “WSL 2 Visibility” covers (process, file, network or others), or whether it detects or blocks activity inside WSL. There is no public evidence either for “it only tracks lifecycle” or for “it detects malicious behavior.”
Unconfirmed claim · Source: Search snippet (original not checked)
Search results suggest SentinelOne has also published a blog post about WSL, but the original could not be checked for this post.
Conflicting reports
The documents disagree on the supported Windows 10 version for the MDE plug-in. The plug-in documentation says “version 2004 (build 19044 and later),” while the enterprise WSL documentation recommends Windows 10 22H2 or later [11][13]. This post uses 22H2 as the baseline.

Conclusion: turn it off if you can, manage it if you can’t

What to do now
  1. Turn it off if you don't need it

    Setting 'Allow the Windows Subsystem For Linux' to Disabled in the Intune settings catalog or the WSL ADMX (GPO) blocks WSL for every user on the device [12]. This setting is an option, not part of the recommended list. For a stronger block, use the App Control recommended block list to stop wsl.exe, bash.exe, wslhost.exe and related binaries [18].

  2. If you use it, lock it down with Intune or GPO

    Microsoft recommends setting 10 items to Disabled: Inbox WSL, WSL1, debug shell, custom kernel, custom kernel command line, custom system distro, custom networking, firewall configuration, nested virtualization and kernel debugging. Eight of them apply only to Store WSL [12].

  3. Set a version baseline

    The recommended enterprise minimum is Windows 10 or 11 22H2 with WSL 2.0.9 [11]. Given the CVEs above, keep WSL at 2.7.8 or later [22].

  4. Network: Hyper-V Firewall and mirrored networking

    On Windows 11 22H2 or later with WSL 2.0.9 or later, Hyper-V Firewall is on by default and Windows Firewall rules apply to WSL as well [15][17]. It cannot be configured through GPO; use PowerShell or the Firewall CSP (Intune) [17]. Consider mirrored networking, DNS tunneling and autoProxy on Windows 11 22H2 or later [11][15].

  5. Check EDR visibility

    If you use MDE, confirm the WSL plug-in requirements: Plan 2, WSL 2.0.7.0 or later, x64, single session [13]. For other EDR products, check the vendor documentation for how much they see inside WSL2.

  6. Deploy detection rules

    Watch for processes whose parent is wsl.exe or wslhost.exe, wsl.exe arguments such as -e, -u root and --debug-shell, and WSL being enabled through DISM or PowerShell [26][27][29].

  7. Manage distributions and credentials

    Distribute approved images with wsl --export/--import, and patch packages inside the distribution with Linux configuration management tools [11]. Also audit SSH keys and secrets in config files inside WSL [8].

Areas with no official control

Microsoft lists “Controlling which distributions users in your Enterprise can access” and “Controlling root access for users” as currently unsupported. [11]
The Intune “Allowlist for WSL container registries” is a container policy, not a distribution allowlist [12].

Questions to consider
  • Which teams and PCs in your organization actually use WSL, and does a ban or managed use fit better?
  • Have you checked your EDR vendor's documentation for what it sees inside WSL2?
  • When WSL devices have no isolate or terminate commands, as with the MDE plug-in, is your incident response process ready to act at the host level?

What do you think?

Sources
  1. Beware of the "Bashware": A New Method for Any Malware to Bypass Security Solutions — Check Point Research, 2017-09-11
  2. Yes, of course there's now malware for Windows Subsystem for Linux — The Register, 2021-09-17
  3. Attackers Use Linux Binaries as Loaders for Windows Malware — SecurityWeek, 2021-09-20
  4. New Windows Subsystem for Linux malware steals browser auth cookies — BleepingComputer, 2022-05-28
  5. Agenda Ransomware Deploys Linux Variant on Windows Systems Through Remote Management Tools and BYOVD Techniques — Trend Micro Research, 2025-10-23
  6. Qilin ransomware abuses WSL to run Linux encryptors in Windows — BleepingComputer, 2025-10-28
  7. Uncovering Qilin attack methods exposed through multiple cases — Cisco Talos, 2025-10-26
  8. One WSL BOF to Rule Them All — SpecterOps, 2026-01-16
  9. WSL in the Malware Ecosystem — SANS ISC, 2026-02-11
  10. New enterprise-grade security controls for the Windows Subsystem for Linux — Microsoft DevBlogs, 2023-11-15
  11. Set up Windows Subsystem for Linux for your company — Microsoft Learn, 2026-06-02
  12. Intune settings for WSL — Microsoft Learn, 2026-10-30
  13. Microsoft Defender for Endpoint plug-in for Windows Subsystem for Linux (WSL) — Microsoft Learn, 2026-12-03
  14. What's new in Microsoft Defender for Endpoint — Microsoft Learn, 2026-12-03
  15. Accessing network applications with WSL — Microsoft Learn, 2026-06-02
  16. Advanced settings configuration in WSL — Microsoft Learn, 2026-10-16
  17. Hyper-V Firewall — Microsoft Learn, 2026-10-08
  18. Applications that can bypass App Control and how to block them — Microsoft Learn
  19. The Windows Subsystem for Linux is now open source — Windows Developer Blog, 2025-05-19
  20. CVE-2025-53788 (CVE record) — CVE.org, 2025-08-12
  21. CVE-2026-21237 Windows Subsystem for Linux Elevation of Privilege Vulnerability (CSAF) — MSRC, 2026-02-10
  22. CVE-2026-57968 Windows Subsystem for Linux (WSL2) Kernel Elevation of Privilege Vulnerability (CSAF) — MSRC, 2026-07-14
  23. T1202 Indirect Command Execution — MITRE ATT&CK, 2026-05-12
  24. T1564.006 Run Virtual Instance — MITRE ATT&CK, 2026-05-12
  25. Wsl.exe — LOLBAS Project
  26. WSL Child Process Anomaly (Sigma rule) — SigmaHQ, 2023-08-15
  27. Arbitrary Command Execution Using WSL (Sigma rule, as of commit 683b63f) — SigmaHQ, 2023-04-12
  28. Execution via Windows Subsystem for Linux (prebuilt rule, 8.19 docs) — Elastic
  29. Implications of Windows Subsystem for Linux for Adversaries & Defenders (Part 2) — Qualys, 2022
  30. Closing the Visibility Gap with Microsoft Defender for Endpoint — Truesec, 2026-03-12
  31. CrowdStrike June 2025 Update Information — Macnica (CrowdStrike reseller partner), 2025-06
  32. Release Notes: Falcon Sensor for Windows 7.31.20308 (partner-posted copy) — ENDPOINT.VN (CrowdStrike reseller partner), 2025-11-13

Information in this post is current as of December 4, 2026. Things may have changed since.

Read this post in Korean →