{"id":"fd877b94-9bb5-4191-bb25-d79cbd93c167","title":"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.","author":"Teymur Kheirkhabarov, Endgame, JHasenbusch, Daniil Yugoslavskiy, oscd.community, frack113","status":"test","level":"high","date":"2019-10-22","modified":"2023-12-13","tags":["attack.credential-access","attack.t1003.002","attack.t1003.004","attack.t1003.005","car.2013-07-001"],"technique_ids":["T1003.002","T1003.004","T1003.005"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Dumping hives for legitimate purpouse i.e. backup or forensic investigation"],"references":["https://www.slideshare.net/heirhabarov/hunting-for-credentials-dumping-in-windows-environment","https://eqllib.readthedocs.io/en/latest/analytics/aed95fc6-5e3f-49dc-8b35-06508613f979.html","https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1003/T1003.md","https://www.wietzebeukema.nl/blog/windows-command-line-obfuscation","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"],"source_path":"rules/windows/process_creation/proc_creation_win_reg_dumping_sensitive_hives.yml","source_sha256":"4a02952fc56acdd448e416ac0e8d0ff57a9c4193a21b860e256a0c150fea3cd7","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_reg_dumping_sensitive_hives.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Dumping of Sensitive Hives Via Reg.EXE\nid: fd877b94-9bb5-4191-bb25-d79cbd93c167\nrelated:\n    - id: 038cd51c-3ad8-41c5-ba8f-5d1c92f3cc1e\n      type: obsolete\n    - id: 4d6c9da1-318b-4edf-bcea-b6c93fa98fd0\n      type: obsolete\nstatus: test\ndescription: Detects the usage of \"reg.exe\" in order to dump sensitive registry hives. This includes SAM, SYSTEM and SECURITY hives.\nreferences:\n    - https://www.slideshare.net/heirhabarov/hunting-for-credentials-dumping-in-windows-environment\n    - https://eqllib.readthedocs.io/en/latest/analytics/aed95fc6-5e3f-49dc-8b35-06508613f979.html\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1003/T1003.md\n    - https://www.wietzebeukema.nl/blog/windows-command-line-obfuscation\n    - 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\nauthor: Teymur Kheirkhabarov, Endgame, JHasenbusch, Daniil Yugoslavskiy, oscd.community, frack113\ndate: 2019-10-22\nmodified: 2023-12-13\ntags:\n    - attack.credential-access\n    - attack.t1003.002\n    - attack.t1003.004\n    - attack.t1003.005\n    - car.2013-07-001\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\reg.exe'\n        - OriginalFileName: 'reg.exe'\n    selection_cli_flag:\n        CommandLine|contains:\n            - ' save '\n            - ' export '\n            - ' ˢave '\n            - ' eˣport '\n    selection_cli_hklm:\n        CommandLine|contains:\n            - 'hklm'\n            - 'hk˪m'\n            - 'hkey_local_machine'\n            - 'hkey_˪ocal_machine'\n            - 'hkey_loca˪_machine'\n            - 'hkey_˪oca˪_machine'\n    selection_cli_hive:\n        CommandLine|contains:\n            - '\\system'\n            - '\\sam'\n            - '\\security'\n            - '\\ˢystem'\n            - '\\syˢtem'\n            - '\\ˢyˢtem'\n            - '\\ˢam'\n            - '\\ˢecurity'\n    condition: all of selection_*\nfalsepositives:\n    - Dumping hives for legitimate purpouse i.e. backup or forensic investigation\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1003.002","id":"T1003.002","name":"Security Account Manager","page":"techniques/enterprise/T1003.002/"},{"key":"enterprise/T1003.004","id":"T1003.004","name":"LSA Secrets","page":"techniques/enterprise/T1003.004/"},{"key":"enterprise/T1003.005","id":"T1003.005","name":"Cached Domain Credentials","page":"techniques/enterprise/T1003.005/"}],"data_path":"data/detection-rules/fd877b94-9bb5-4191-bb25-d79cbd93c167.json","kind":"sigma"}
