PowerShell ScriptBlock Winlogon Registry Modification via CurrentVersion\Winlogon

Detects PowerShell script blocks that modify Winlogon helper registry keys via Set-ItemProperty or New-Item on Windows.

FreeReviewedSigma · Medium · v2
Product
windows
Category
ps_script
Author
Timur Zinniatullin, oscd.community (SigmaHQ), DRL 1.1
Published
2019-10-21
Updated
2026-07-31

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 identifies PowerShell activity where script block text references the Winlogon registry path under CurrentVersion\Winlogon. It also requires the script to include common registry modification commands (Set-ItemProperty and New-Item) and the creation of new items (New-Item). Because Winlogon helper settings can influence what programs Winlogon loads, malicious use of these paths may enable persistence or privilege impact. The detection relies on PowerShell Script Block Logging telemetry capturing the script block content.

Related detections7 linkedT1547.004 — drag to rearrange
Malicious Winlogon Shell or Userinit Persistence Modification (via registry_set)
Suspicious Command Prompt Spawned by Winlogon
Suspicious Winlogon Loading Keyboard Layout DLL kbdus1.dll
Malicious Winlogon Shell Persistence Modification (via registry_set)
Linux File Creation Indicators for TanStack Runner and Persistence Components
Windows Winlogon Notify Registry Key DLL Persistence (logon)
Zeek DCE-RPC spoolss and IRemoteWinspool Calls Indicating Windows Print-Related Persistence
PowerShell ScriptBlock Winlogon Registry Modification via CurrentVersion\Winlogon
Pivot detection · T1547.004 · 7 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

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