Detection rules › Sigma

Potential Persistence Attempt Via Run Keys Using Reg.EXE

Severity
medium
Author
Florian Roth (Nextron Systems), Swachchhanda Shrawan Poudel (Nextron Systems)
Source
upstream

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

MITRE ATT&CK coverage

TacticTechniques
PersistenceT1547.001 Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder
Privilege EscalationT1547.001 Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation
Security-Auditing4688A new process has been created.

Stages and Predicates

Stage 1: selection

or:
CommandLine|contains: 'Software\Microsoft\Windows\CurrentVersion\Run'
CommandLine|contains: '\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run'
CommandLine|contains: '\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run'
CommandLine|contains: ' add '
CommandLine|contains: reg
Image|endswith: '\reg.exe'

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
  • add corpus 11 (sigma 11)
  • Software\Microsoft\Windows\CurrentVersion\Run
  • \Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run corpus 2 (sigma 2)
  • \Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run corpus 2 (sigma 2)
  • reg corpus 4 (sigma 4)
Imageends_with
  • \reg.exe corpus 46 (sigma 46)