Windows Registry Run Key Entries Containing PowerShell Execution Strings

Alerts when registry Run key value data contains PowerShell launch or encoded download/execution strings on Windows.

FreeReviewedSigma · Medium · v1
Product
windows
Category
registry_set
Author
frack113, Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-03-17
Updated
2026-07-30

ATT&CK techniques

Persistence → Priv Esc
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Defense Evasion

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule flags Windows registry entries in common auto-start Run locations when the value data contains PowerShell-related execution patterns (e.g., powershell/pwsh, encoded command usage, hidden/no-profile execution, web download and in-memory execution indicators, and ExecutionPolicy Bypass). Attackers often abuse Run keys to persist after login by storing commands or scripts that launch PowerShell on startup. The detection relies on registry_set telemetry capturing the TargetObject path and the value Details text to match these PowerShell indicators.

Related detections9 linkedT1547.001 — drag to rearrange
Suspicious Autorun Registry Persistence via sausageLoop Run Key
Malicious BabyLockerKZ Run Key Persistence
Suspicious Run Key Persistence Pointing To User-Writable Path
Malicious Ctrlpanel Run Key Autostart Persistence (via registry_set)
Persistence Run Key Pointing to svchost.exe in AppData Roaming
URL Shortcut File Created in Startup Folder for Persistence
Suspicious Run Key Persistence via UpdateCheck Value in Operation TrueChaos
Suspicious Run Key Persistence Pointing to AppData Local Copy
Malicious WezRat Persistence via Chrome Updater Run Key
Windows Registry Run Key Entries Containing PowerShell Execution Strings
Pivot detection · T1547.001 · 9 related

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