Sigma rule: Potentially Suspicious Desktop Background Change Using Reg.EXE

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-adf2fc228aaf, updated 2023-12-21T00:00:00.000Z.

Rule

Title
Potentially Suspicious Desktop Background Change Using Reg.EXE
Status
test
Level
medium
Author
Stephen Lincoln @slincoln-aiq (AttackIQ)
Date
2023-12-21
File
rules/windows/process_creation/proc_creation_win_reg_desktop_background_change.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the execution of "reg.exe" to alter registry keys that would replace the user's desktop background.
This is a common technique used by malware to change the desktop background to a ransom note or other image.

Log source

product
windows
category
process_creation

Detection

# TODO: Improve this to also focus on variation using PowerShell and other CLI tools
selection_reg_img:
    - Image|endswith: '\reg.exe'
    - OriginalFileName: 'reg.exe'
selection_reg_flag:
    CommandLine|contains: 'add'
selection_keys:
    CommandLine|contains:
        - 'Control Panel\Desktop'
        - 'CurrentVersion\Policies\ActiveDesktop'
        - 'CurrentVersion\Policies\System'
selection_cli_reg_1:
    CommandLine|contains|all:
        - '/v NoChangingWallpaper'
        - '/d 1' # Prevent changing desktop background
selection_cli_reg_2:
    CommandLine|contains|all:
        - '/v Wallpaper'
        - '/t REG_SZ'
selection_cli_reg_3:
    CommandLine|contains|all:
        - '/v WallpaperStyle'
        - '/d 2' # Stretch
condition: all of selection_reg_* and selection_keys and 1 of selection_cli_reg_*

False positives (as the rule lists them)

  • Administrative scripts that change the desktop background to a company logo or other image.

Tags

  • attack.persistence
  • attack.impact
  • attack.defense-impairment
  • attack.t1112
  • attack.t1491.001

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_reg_desktop_background_change.yml

Sources and licences

  • SigmaHQ

    "Potentially Suspicious Desktop Background Change Using Reg.EXE" by Stephen Lincoln @slincoln-aiq (AttackIQ) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_reg_desktop_background_change.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Potentially Suspicious Desktop Background Change Using Reg.EXE",
entity page, dataset version ref-adf2fc228aaf, updated 2023-12-21T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/8cbc9475-8d05-4e27-9c32-df960716c701 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 8cbc9475-8d05-4e27-9c32-df960716c701, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.