Detection rules › Sigma

Registry Persistence via Explorer Run Key

Status
test
Severity
high
Log source
category registry_set, product windows
Author
Florian Roth (Nextron Systems), oscd.community
Source
github.com/SigmaHQ/sigma

Detects a possible persistence mechanism using RUN key for Windows Explorer and pointing to a suspicious folder

MITRE ATT&CK coverage

Telemetry coverage

Rule body

title: Registry Persistence via Explorer Run Key
id: b7916c2a-fa2f-4795-9477-32b731f70f11
status: test
description: Detects a possible persistence mechanism using RUN key for Windows Explorer and pointing to a suspicious folder
references:
    - https://researchcenter.paloaltonetworks.com/2018/07/unit42-upatre-continues-evolve-new-anti-analysis-techniques/
author: Florian Roth (Nextron Systems), oscd.community
date: 2018-07-18
modified: 2023-12-11
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547.001
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|endswith: '\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run'
        Details|contains:
            - ':\$Recycle.bin\'
            - ':\ProgramData\'
            - ':\Temp\'
            - ':\Users\Default\'
            - ':\Users\Public\'
            - ':\Windows\Temp\'
            - '\AppData\Local\Temp\'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|endswith: '\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run'
    Details|contains:
        - ':\$Recycle.bin\'
        - ':\ProgramData\'
        - ':\Temp\'
        - ':\Users\Default\'
        - ':\Users\Public\'
        - ':\Windows\Temp\'
        - '\AppData\Local\Temp\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Detailsmatch
  • :\$Recycle.bin\
  • :\ProgramData\ corpus 3 (sigma 3)
  • :\Temp\ corpus 2 (sigma 2)
  • :\Users\Default\
  • :\Users\Public\ corpus 4 (sigma 4)
  • :\Windows\Temp\ corpus 4 (sigma 4)
  • \AppData\Local\Temp\ corpus 8 (sigma 8)
field:"Details" kind:match
TargetObjectends_with
  • \Microsoft\Windows\CurrentVersion\Policies\Explorer\Run
field:"TargetObject" kind:ends_with value:"\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run"