Detection logic
Original SigmaHQ detection and related fields from the pinned file. The source file includes its full metadata.
logsource:
category: process_creation
product: windows
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_*
falsepositives:
- Unlikely