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_img:
- Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
- '\reg.exe'
- OriginalFileName:
- 'powershell.exe'
- 'pwsh.dll'
- 'reg.exe'
selection_cli_action:
CommandLine|contains:
- ' add ' # reg.exe add subcommand
- 'New-ItemProperty'
- 'Set-ItemProperty'
- 'sp ' # PowerShell alias for Set-ItemProperty
selection_cli_key:
CommandLine|contains:
- '\Lxss\MSI'
- '/Lxss/MSI' # forward-slash variant sometimes used with PowerShell paths
selection_cli_value:
CommandLine|contains: 'InstallLocation'
condition: all of selection_*
falsepositives:
- Unlikely