Sigma rule: Suspicious WSL Binary Hijack via Proxy Execution

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-4fcda8b5ada8, updated 2026-05-05T00:00:00.000Z.

Rule

Title
Suspicious WSL Binary Hijack via Proxy Execution
Status
experimental
Level
high
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Date
2026-05-05
File
rules/windows/process_creation/proc_creation_win_wsl_binary_hijack_execution.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

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.
An attacker who modifies InstallLocation to a controlled path causes the stub to transparently proxy execution to a malicious payload,
which then appears as a wsl.exe child of the legitimate System32 stub.

Log source

product
windows
category
process_creation

Detection

selection:
    ParentImage: 'C:\Windows\System32\wsl.exe'
    Image|endswith: '\wsl.exe'
filter_main_legit_paths_1:
    Image:
        - 'C:\Windows\System32\wsl.exe'
        - 'C:\Program Files\WSL\wsl.exe'
filter_main_legit_paths_2:
    Image|startswith:
        - 'C:\Windows\WinSxS\amd64_microsoft-windows-lxss-wsl_'
        - 'C:\Windows\WinSxS\arm64_microsoft-windows-lxss-wsl_'
        - 'C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux'
filter_main_legit_paths_3:
    Image|startswith: 'C:\Users\'
    Image|contains: '\AppData\Local\Microsoft\WindowsApps\'
condition: selection and not 1 of filter_main_*

False positives (as the rule lists them)

  • Unlikely

Tags

  • attack.stealth
  • attack.t1036.005
  • attack.t1218

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_wsl_binary_hijack_execution.yml

Sources and licences

  • SigmaHQ

    "Suspicious WSL Binary Hijack via Proxy Execution" by Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_wsl_binary_hijack_execution.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Suspicious WSL Binary Hijack via Proxy Execution",
entity page, dataset version ref-4fcda8b5ada8, updated 2026-05-05T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/88d306e9-8e2d-4025-9768-28757d2732db (accessed 2026-11-03).
Underlying source: SigmaHQ rule 88d306e9-8e2d-4025-9768-28757d2732db, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.