Detection rules › Sigma

Suspicious Shell Open Command Registry Modification

Status
experimental
Severity
medium
Log source
product windows, category registry_set
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects modifications to shell open registry keys that point to suspicious locations typically used by malware for persistence. Generally, modifications to the *\shell\open\command registry key can indicate an attempt to change the default action for opening files, and various UAC bypass or persistence techniques involve modifying these keys to execute malicious scripts or binaries.

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 13RegistryEvent (Value Set)

Rule body yaml

title: Suspicious Shell Open Command Registry Modification
id: 9e8894c0-0ae0-11ef-9d85-1f2942bec57c
status: experimental
description: |
    Detects modifications to shell open registry keys that point to suspicious locations typically used by malware for persistence.
    Generally, modifications to the `*\shell\open\command` registry key can indicate an attempt to change the default action for opening files,
    and various UAC bypass or persistence techniques involve modifying these keys to execute malicious scripts or binaries.
references:
    - https://www.trendmicro.com/en_us/research/25/f/water-curse.html
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2026-01-24
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1548.002
    - attack.t1546.001
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\shell\open\command\'
        Details|contains:
            - '\$Recycle.Bin\'
            - '\AppData\Local\Temp\'
            - '\Contacts\'
            - '\Music\'
            - '\PerfLogs\'
            - '\Photos\'
            - '\Pictures\'
            - '\Users\Public\'
            - '\Videos\'
            - '\Windows\Temp\'
            - '%AppData%'
            - '%LocalAppData%'
            - '%Temp%'
            - '%tmp%'
    condition: selection
falsepositives:
    - Legitimate software installations or updates that modify the shell open command registry keys to these locations.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains: '\shell\open\command\'
    Details|contains:
        - '\$Recycle.Bin\'
        - '\AppData\Local\Temp\'
        - '\Contacts\'
        - '\Music\'
        - '\PerfLogs\'
        - '\Photos\'
        - '\Pictures\'
        - '\Users\Public\'
        - '\Videos\'
        - '\Windows\Temp\'
        - '%AppData%'
        - '%LocalAppData%'
        - '%Temp%'
        - '%tmp%'

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
Detailsmatch
  • %AppData% corpus 4 (sigma 3, chronicle 1)
  • %LocalAppData%
  • %Temp% corpus 5 (sigma 4, chronicle 1)
  • %tmp% corpus 5 (sigma 4, chronicle 1)
  • \$Recycle.Bin\
  • \AppData\Local\Temp\ corpus 8 (sigma 8)
  • \Contacts\ corpus 4 (sigma 4)
  • \Music\
  • \PerfLogs\ corpus 3 (sigma 3)
  • \Photos\
  • \Pictures\ corpus 3 (sigma 3)
  • \Users\Public\ corpus 5 (sigma 5)
  • \Videos\
  • \Windows\Temp\ corpus 5 (sigma 5)
TargetObjectmatch
  • \shell\open\command\