Sigma rule: Potential WSL Binary Modification from Installed Location

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

Rule

Title
Potential WSL Binary Modification from Installed Location
Status
experimental
Level
medium
Author
Liran Ravich, Swachchhanda Shrawan Poudel (Nextron Systems)
Date
2026-05-05
File
rules/windows/file/file_event/file_event_win_wsl_binary_modification.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the modification of the wsl.exe binary from its installed location.
Attackers can replace the legitimate wsl.exe binary with a malicious payload in its place, which is then executed when the user runs WSL, acting as a proxy execution and defense evasion technique.

Log source

product
windows
category
file_event

Detection

selection_wsl_exe:
    TargetFilename|endswith: '\wsl.exe'
selection_wsl_folder:
    - TargetFilename|contains:
          - ':\Program files\wsl\'
          - ':\Program files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_'
    - TargetFilename|contains|all:
          - ':\Users\'
          - '\AppData\Local\Microsoft\WindowsApps\'
filter_main_msiexec:
    Image:
        - 'C:\Windows\System32\msiexec.exe'
        - 'C:\Windows\SysWOW64\msiexec.exe'
filter_main_svchost:
    Image: 'C:\Windows\System32\svchost.exe'
    TargetFilename|contains: '\WindowsApps\'
condition: all of 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/file/file_event/file_event_win_wsl_binary_modification.yml

Sources and licences

  • SigmaHQ

    "Potential WSL Binary Modification from Installed Location" by Liran Ravich, Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/file/file_event/file_event_win_wsl_binary_modification.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: Potential WSL Binary Modification from Installed Location",
entity page, dataset version ref-5d86ed9b887c, updated 2026-05-05T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/2f400434-01e1-416b-b52c-bb5bfbb9eb78 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 2f400434-01e1-416b-b52c-bb5bfbb9eb78, 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.