LoFP LoFP / dumping hives for legitimate purpouse i.e. backup or forensic investigation

Techniques

Sample rules

Exports Critical Registry Keys To a File

Description

Detects the export of a crital Registry key to a file.

Detection logic

condition: all of selection_*
selection_cli_1:
  CommandLine|contains|windash: ' -E '
selection_cli_2:
  CommandLine|contains:
  - hklm
  - hkey_local_machine
selection_cli_3:
  CommandLine|endswith:
  - \system
  - \sam
  - \security
selection_img:
- Image|endswith: \regedit.exe
- OriginalFileName: REGEDIT.EXE

Dumping of Sensitive Hives Via Reg.EXE

Description

Detects the usage of “reg.exe” in order to dump sensitive registry hives. This includes SAM, SYSTEM and SECURITY hives.

Detection logic

condition: all of selection_*
selection_cli_flag:
  CommandLine|contains:
  - ' save '
  - ' export '
  - " \u02E2ave "
  - " e\u02E3port "
selection_cli_hive:
  CommandLine|re|i: "(hk[l\u02EA]m|hkey_[l\u02EA]oca[l\u02EA]_machine)\"?\\\\[s\u02E2\
    ](y[s\u02E2]tem|am|ecurity)(\\\\|\"|\\s|$)"
selection_img:
- Image|endswith: \reg.exe
- OriginalFileName: reg.exe