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