← Back to SOC feed Coverage →

Suspicious ScreenSave Change by Reg.exe

sigma MEDIUM SigmaHQ
T1546.002
imProcessCreate
persistence
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at SigmaHQ →
Retrieved: 2026-05-18T11:00:00Z · Confidence: medium

Hunt Hypothesis

Adversaries may establish persistence by executing malicious content triggered by user inactivity. Screensavers are programs that execute after a configurable time of user inactivity and consist of Po

Detection Rule

Sigma (Original)

title: Suspicious ScreenSave Change by Reg.exe
id: 0fc35fc3-efe6-4898-8a37-0b233339524f
status: test
description: |
    Adversaries may establish persistence by executing malicious content triggered by user inactivity.
    Screensavers are programs that execute after a configurable time of user inactivity and consist of Portable Executable (PE) files with a .scr file extension
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1546.002/T1546.002.md
    - https://www.welivesecurity.com/wp-content/uploads/2017/08/eset-gazer.pdf
author: frack113
date: 2021-08-19
modified: 2022-06-02
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1546.002
logsource:
    category: process_creation
    product: windows
detection:
    selection_reg:
        Image|endswith: '\reg.exe'
        CommandLine|contains:
            - 'HKEY_CURRENT_USER\Control Panel\Desktop'
            - 'HKCU\Control Panel\Desktop'
    selection_option_1: # /force Active ScreenSaveActive
        CommandLine|contains|all:
            - '/v ScreenSaveActive'
            - '/t REG_SZ'
            - '/d 1'
            - '/f'
    selection_option_2: # /force  set ScreenSaveTimeout
        CommandLine|contains|all:
            - '/v ScreenSaveTimeout'
            - '/t REG_SZ'
            - '/d '
            - '/f'
    selection_option_3: # /force set ScreenSaverIsSecure
        CommandLine|contains|all:
            - '/v ScreenSaverIsSecure'
            - '/t REG_SZ'
            - '/d 0'
            - '/f'
    selection_option_4: # /force set a .scr
        CommandLine|contains|all:
            - '/v SCRNSAVE.EXE'
            - '/t REG_SZ'
            - '/d '
            - '.scr'
            - '/f'
    condition: selection_reg and 1 of selection_option_*
falsepositives:
    - GPO
level: medium

KQL (Azure Sentinel)

imProcessCreate
| where (TargetProcessName endswith "\\reg.exe" and (TargetProcessCommandLine contains "HKEY_CURRENT_USER\\Control Panel\\Desktop" or TargetProcessCommandLine contains "HKCU\\Control Panel\\Desktop")) and ((TargetProcessCommandLine contains "/v ScreenSaveActive" and TargetProcessCommandLine contains "/t REG_SZ" and TargetProcessCommandLine contains "/d 1" and TargetProcessCommandLine contains "/f") or (TargetProcessCommandLine contains "/v ScreenSaveTimeout" and TargetProcessCommandLine contains "/t REG_SZ" and TargetProcessCommandLine contains "/d " and TargetProcessCommandLine contains "/f") or (TargetProcessCommandLine contains "/v ScreenSaverIsSecure" and TargetProcessCommandLine contains "/t REG_SZ" and TargetProcessCommandLine contains "/d 0" and TargetProcessCommandLine contains "/f") or (TargetProcessCommandLine contains "/v SCRNSAVE.EXE" and TargetProcessCommandLine contains "/t REG_SZ" and TargetProcessCommandLine contains "/d " and TargetProcessCommandLine contains ".scr" and TargetProcessCommandLine contains "/f"))

Required Data Sources

Sentinel TableNotes
imProcessCreateEnsure this data connector is enabled

False Positive Guidance

MITRE ATT&CK Context

References

Original source: https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_reg_screensaver.yml