Windows Process Creation: Suspicious reg.exe or PowerShell Editing of WSL InstallLocation Registry

Flags reg.exe or PowerShell command lines editing the WSL InstallLocation registry value under Lxss MSI.

FreeReviewedSigma · High · v1
Product
windows
Category
process_creation
Author
Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2026-05-05
Updated
2026-10-03

ATT&CK techniques

Persistence → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Priv Esc

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule identifies command-line use of reg.exe or PowerShell to modify the WSL InstallLocation registry value under the Lxss MSI path. Attackers may leverage this to redirect how WSL executes, enabling stealthy persistence or defense-impairment by pointing WSL to attacker-controlled binaries. It relies on Windows process creation telemetry capturing the Image/OriginalFileName and the presence of specific command-line arguments indicating registry modification actions targeting InstallLocation.

Related detections9 linkedT1112 — drag to rearrange
WSL InstallLocation Registry Key Modification on Windows
Malicious Restricted Admin Mode Enabled for Pass-the-Hash RDP
Malicious Windows Defender Service Disable via Registry
Suspicious RDP Enablement via fDenyTSConnections Registry Modification
LanmanServer MaxMpxCt Registry Modification for Lateral Movement Preparation
Malicious WDigest UseLogonCredential Enablement for Cleartext Credentials
Suspicious RDP Enablement via fDenyTSConnections Registry Modification [Huntress] #2
Suspicious File Download via certutil urlcache
Suspicious Reconnaissance Spawned by wuauclt
Windows Process Creation: Suspicious reg.exe or PowerShell Editing of WSL InstallLocation Registry
Pivot detection · T1112 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.