Detection rules › Sigma

Imports Registry Key From a File

Severity
medium
Author
Oddvar Moe, Sander Wiebing, oscd.community
Source
upstream

Detects the import of the specified file to the registry with regedit.exe.

MITRE ATT&CK coverage

TacticTechniques
PersistenceT1112 Modify Registry
Defense EvasionT1112 Modify Registry

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation

Stages and Predicates

Stage 1: all of selection_img

or:
Image|endswith: '\regedit.exe'
OriginalFileName: REGEDIT.EXE

Stage 2: all of selection_cli

or:
CommandLine|contains: ' /i '
CommandLine|contains: ' /s '
CommandLine|contains: .reg

Stage 3: not all of filter_1

or:
CommandLine|contains: ' -a '
CommandLine|contains: ' -c '
CommandLine|contains: ' -e '

Stage 4: not all of filter_2

CommandLine|re: ':[^ \\]'

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
  • -a corpus 4 (sigma 4)
  • -c corpus 11 (sigma 11)
  • -e corpus 5 (sigma 5)
  • /i corpus 2 (sigma 2)
  • /s corpus 3 (sigma 3)
  • .reg corpus 3 (sigma 3)
CommandLineregex_match
  • :[^ \\] corpus 4 (sigma 4)
Imageends_with
  • \regedit.exe corpus 8 (sigma 8)
OriginalFileNameeq
  • REGEDIT.EXE corpus 4 (sigma 4)