Detection rules › Sigma

Windows Subsystem for Linux (WSL) package turned on (native)

Status
experimental
Severity
medium
Log source
product windows, service setup
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker enables the WSL to cary out malicious activities in a virtual instance to avoid detection.

MITRE ATT&CK coverage

Rule body yaml

title: Windows Subsystem for Linux (WSL) package turned on (native)
description: Detects scenarios where an attacker enables the WSL to cary out malicious activities in a virtual instance to avoid detection.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0005-Defense%20Evasion/T1564-Hide%20artifacts
- https://learn.microsoft.com/en-us/windows/wsl/install-manual
- https://learn.microsoft.com/en-us/windows/wsl/install
- https://lolbas-project.github.io/lolbas/OtherMSBinaries/Wsl/
- https://blog.f-secure.com/hunting-for-windows-subsystem-for-linux/
- https://blog.lumen.com/no-longer-just-theory-black-lotus-labs-uncovers-linux-executables-deployed-as-stealth-windows-loaders/
tags:
- attack.defense_evasion
- attack.t1564.006 # Hide Artifacts: Run Virtual Instance 
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: setup
detection:
  selection:
    Channel: Setup
    Provider: Microsoft-Windows-Servicing
    EventID: 9 # "Selectable update Microsoft-Windows-Subsystem-Linux of package Microsoft-Windows-Lxss-Optional was successfully turned on."
    UpdateName: 
      - Microsoft-Windows-Subsystem-Linux
      - VirtualMachinePlatform 
  condition: selection
falsepositives:
- developer computer (with Visual Studio Code)
- administrator activity
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  Channel: Setup
  Provider: Microsoft-Windows-Servicing
  EventID: 9
  UpdateName:
    - Microsoft-Windows-Subsystem-Linux
    - VirtualMachinePlatform

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Providereq
  • Microsoft-Windows-Servicing
UpdateNameeq
  • Microsoft-Windows-Subsystem-Linux
  • VirtualMachinePlatform