Detectionmediumtest

Potential Persistence Attempt Via Run Keys Using Reg.EXE

Detects suspicious command line reg.exe tool adding key to RUN key in Registry

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Florian Roth (Nextron Systems), Swachchhanda Shrawan Poudel (Nextron Systems)Created Mon Jun 28Updated Mon Feb 17de587dce-915e-4218-aac4-835ca6af6f70windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic1 selector
detection:
    selection:
        Image|endswith: '\reg.exe'
        CommandLine|contains|all:
            - 'reg'
            - ' add '
        CommandLine|contains:
            - 'Software\Microsoft\Windows\CurrentVersion\Run'
            - '\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run'
            - '\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run'
    condition: selection
False Positives

Legitimate software automatically (mostly, during installation) sets up autorun keys for legitimate reasons.

Legitimate administrator sets up autorun keys for legitimate reasons.

Discord

Testing & Validation

Regression Tests

by SigmaHQ Team
Positive Detection Test1 matchevtx

Microsoft-Windows-Sysmon

Rule Metadata
Rule ID
de587dce-915e-4218-aac4-835ca6af6f70
Status
test
Level
medium
Type
Detection
Created
Mon Jun 28
Modified
Mon Feb 17
Path
rules/windows/process_creation/proc_creation_win_reg_add_run_key.yml
Raw Tags
attack.privilege-escalationattack.persistenceattack.t1547.001
View on GitHub