Windows PowerShell Wallpaper Replacement via Registry and SystemParametersInfo

Identifies PowerShell script blocks that modify the HKCU Desktop\WallPaper setting to replace a user’s wallpaper.

FreeReviewedSigma · Low · v2
Product
windows
Category
ps_script
Author
frack113 (SigmaHQ), DRL 1.1
Published
2021-12-26
Updated
2026-07-31

ATT&CK techniques

Impact
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Exfiltration

What it detects

This rule identifies PowerShell script activity that reads the current user desktop wallpaper from the registry and calls the Windows API function SystemParametersInfo with parameters consistent with changing the desktop wallpaper. Defacement tactics like this can intimidate or mislead users and may be used to visually persist an attacker’s message on compromised endpoints. It relies on Script Block Logging telemetry capturing PowerShell ScriptBlockText containing the relevant registry keys/values and the SystemParametersInfo(20,0,*,3) call pattern.

Related detections3 linkedT1491.001 — drag to rearrange
Windows Registry Change to Desktop Wallpaper Policy or Settings
Windows reg.exe Changes Desktop Background Policy Values
Windows Registry Ransom Note Keyword Changes in LegalNoticeCaption/Text
Windows PowerShell Wallpaper Replacement via Registry and SystemParametersInfo
Pivot detection · T1491.001 · 3 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.