Dumping of Sensitive Hives Via Reg.EXE
Detects the usage of "reg.exe" in order to dump sensitive registry hives. This includes SAM, SYSTEM and SECURITY hives.
Sigma rule (View on GitHub)
1title: Dumping of Sensitive Hives Via Reg.EXE
2id: fd877b94-9bb5-4191-bb25-d79cbd93c167
3related:
4 - id: 038cd51c-3ad8-41c5-ba8f-5d1c92f3cc1e
5 type: obsolete
6 - id: 4d6c9da1-318b-4edf-bcea-b6c93fa98fd0
7 type: obsolete
8status: test
9description: Detects the usage of "reg.exe" in order to dump sensitive registry hives. This includes SAM, SYSTEM and SECURITY hives.
10references:
11 - https://www.slideshare.net/heirhabarov/hunting-for-credentials-dumping-in-windows-environment
12 - https://eqllib.readthedocs.io/en/latest/analytics/aed95fc6-5e3f-49dc-8b35-06508613f979.html
13 - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1003/T1003.md
14 - https://www.wietzebeukema.nl/blog/windows-command-line-obfuscation
15 - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1003.002/T1003.002.md#atomic-test-1---registry-dump-of-sam-creds-and-secrets
16author: Teymur Kheirkhabarov, Endgame, JHasenbusch, Daniil Yugoslavskiy, oscd.community, frack113
17date: 2019-10-22
18modified: 2026-11-13
19tags:
20 - attack.credential-access
21 - attack.t1003.002
22 - attack.t1003.004
23 - attack.t1003.005
24 - car.2013-07-001
25logsource:
26 category: process_creation
27 product: windows
28detection:
29 selection_img:
30 - Image|endswith: '\reg.exe'
31 - OriginalFileName: 'reg.exe'
32 selection_cli_flag:
33 CommandLine|contains:
34 - ' save '
35 - ' export '
36 - ' ˢave '
37 - ' eˣport '
38 selection_cli_hive:
39 # The hive must directly follow the HKLM root. A bare '\system' also matches the reg.exe path itself (C:\Windows\System32\reg.exe) and C:\Windows\SystemTemp.
40 CommandLine|re|i: '(hk[l˪]m|hkey_[l˪]oca[l˪]_machine)"?\\[sˢ](y[sˢ]tem|am|ecurity)(\\|"|\s|$)'
41 condition: all of selection_*
42falsepositives:
43 - Dumping hives for legitimate purpouse i.e. backup or forensic investigation
44level: high
45regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_reg_dumping_sensitive_hives/info.yml
References
Related rules
- HackTool - Mimikatz Execution
- Mimikatz Use
- Cred Dump Tools Dropped Files
- Credential Dumping Tools Service Execution - Security
- Credential Dumping Tools Service Execution - System