Detection rules › Sigma

Suspicious Powercfg Execution To Change Lock Screen Timeout

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
frack113
Source
github.com/SigmaHQ/sigma

Detects suspicious execution of 'Powercfg.exe' to change lock screen timeout

MITRE ATT&CK coverage

TacticTechniques
StealthNo specific technique

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Suspicious Powercfg Execution To Change Lock Screen Timeout
id: f8d6a15e-4bc8-4c27-8e5d-2b10f0b73e5b
status: test
description: Detects suspicious execution of 'Powercfg.exe' to change lock screen timeout
references:
    - https://blogs.vmware.com/security/2022/11/batloader-the-evasive-downloader-malware.html
    - https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/powercfg-command-line-options
author: frack113
date: 2022-11-18
tags:
    - attack.stealth
logsource:
    category: process_creation
    product: windows
detection:
    selection_power:
        - Image|endswith: '\powercfg.exe'
        - OriginalFileName: 'PowerCfg.exe'
    selection_standby:
        # powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK
        - CommandLine|contains|all:
              - '/setacvalueindex '
              - 'SCHEME_CURRENT'
              - 'SUB_VIDEO'
              - 'VIDEOCONLOCK'
        # powercfg -change -standby-timeout-dc 3000
        # powercfg -change -standby-timeout-ac 3000
        - CommandLine|contains|all:
              - '-change '
              - '-standby-timeout-'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_power

selection_power:
    - Image|endswith: '\powercfg.exe'
    - OriginalFileName: 'PowerCfg.exe'

Stage 2: selection_standby

selection_standby:
    - CommandLine|contains|all:
          - '/setacvalueindex '
          - 'SCHEME_CURRENT'
          - 'SUB_VIDEO'
          - 'VIDEOCONLOCK'
    - CommandLine|contains|all:
          - '-change '
          - '-standby-timeout-'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • -change
  • -standby-timeout-
  • /setacvalueindex
  • SCHEME_CURRENT
  • SUB_VIDEO
  • VIDEOCONLOCK
Imageends_with
  • \powercfg.exe
OriginalFileNameeq
  • PowerCfg.exe