Skip to content

Commit 082368e

Browse files
committed
update reg analytics
1 parent 4f16cb3 commit 082368e

5 files changed

+33
-20
lines changed

detections/endpoint/attempted_credential_dump_from_registry_via_reg_exe.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: Attempted Credential Dump From Registry via Reg exe
22
id: e9fb4a59-c5fb-440a-9f24-191fbc6b2911
3-
version: '11'
4-
date: '2024-11-28'
3+
version: 12
4+
date: '2025-01-15'
55
author: Patrick Bareiss, Splunk
6-
status: production
6+
status: deprecated
77
type: TTP
8-
description: The following analytic detects the execution of reg.exe with parameters
8+
description: The following analytic has been deprecated in favour of "8bbb7d58-b360-11eb-ba21-acde48001122".
9+
The following analytic detects the execution of reg.exe with parameters
910
that export registry keys containing hashed credentials. It leverages data from
1011
Endpoint Detection and Response (EDR) agents, focusing on command-line executions
1112
involving reg.exe or cmd.exe with specific registry paths. This activity is significant

detections/endpoint/windows_query_registry_reg_save.yml renamed to detections/endpoint/windows_registry_entries_exported_via_reg.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: Windows Query Registry Reg Save
1+
name: Windows Registry Entries Exported Via Reg
22
id: cbee60c1-b776-456f-83c2-faa56bdbe6c6
33
version: 3
44
date: '2024-10-17'
55
author: Teoderick Contreras, Splunk
66
status: production
77
type: Hunting
8-
description: The following analytic detects the execution of the reg.exe process with the "save" parameter. This detection leverages data from Endpoint Detection and Response (EDR) agents, focusing on process execution logs and command-line arguments. This activity is significant because threat actors often use the "reg save" command to dump credentials or test registry modification capabilities on compromised hosts. If confirmed malicious, this behavior could allow attackers to escalate privileges, persist in the environment, or access sensitive information stored in the registry.
8+
description: The following analytic detects the execution of the reg.exe process with either the "save" or "export" parameters. This detection leverages data from Endpoint Detection and Response (EDR) agents, focusing on process execution logs and command-line arguments. This activity is significant because threat actors often use the "reg save" or "reg export" command to dump credentials or test registry modification capabilities on compromised hosts. If confirmed malicious, this behavior could allow attackers to escalate privileges, persist in the environment, or access sensitive information stored in the registry.
99
data_source:
1010
- Sysmon EventID 1
1111
- Windows Event Log Security 4688
1212
- CrowdStrike ProcessRollup2
13-
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where `process_reg` AND Processes.process = "* save *" by Processes.process_name Processes.original_file_name Processes.process Processes.process_id Processes.process_guid Processes.parent_process_name Processes.parent_process Processes.parent_process_guid Processes.dest Processes.user | `drop_dm_object_name(Processes)` | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `windows_query_registry_reg_save_filter`'
13+
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where `process_reg` AND Processes.process IN ("* save *", "* export *") by Processes.process_name Processes.original_file_name Processes.process Processes.process_id Processes.process_guid Processes.parent_process_name Processes.parent_process Processes.parent_process_guid Processes.dest Processes.user | `drop_dm_object_name(Processes)` | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `windows_registry_entries_exported_via_reg_filter`'
1414
how_to_implement: The detection is based on data that originates from Endpoint Detection and Response (EDR) agents. These agents are designed to provide security-related telemetry from the endpoints where the agent is installed. To implement this search, you must ingest logs that contain the process GUID, process name, and parent process. Additionally, you must ingest complete command-line executions. These logs must be processed using the appropriate Splunk Technology Add-ons that are specific to the EDR product. The logs must also be mapped to the `Processes` node of the `Endpoint` data model. Use the Splunk Common Information Model (CIM) to normalize the field names and speed up the data modeling process.
1515
known_false_positives: network administrator can use this command tool to backup registry before updates or modifying critical registries.
1616
references:

detections/endpoint/windows_modify_registry_reg_restore.yml renamed to detections/endpoint/windows_registry_entries_restored_via_reg.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: Windows Modify Registry Reg Restore
1+
name: Windows Registry Entries Restored Via Reg
22
id: d0072bd2-6d73-4c1b-bc77-ded6d2da3a4e
3-
version: 3
4-
date: '2024-10-17'
3+
version: 4
4+
date: '2025-01-14'
55
author: Teoderick Contreras, Splunk
66
status: production
77
type: Hunting
@@ -10,7 +10,7 @@ data_source:
1010
- Sysmon EventID 1
1111
- Windows Event Log Security 4688
1212
- CrowdStrike ProcessRollup2
13-
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where `process_reg` AND Processes.process = "* restore *" by Processes.process_name Processes.original_file_name Processes.process Processes.process_id Processes.process_guid Processes.parent_process_name Processes.parent_process Processes.parent_process_guid Processes.dest Processes.user | `drop_dm_object_name(Processes)` | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `windows_modify_registry_reg_restore_filter`'
13+
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where `process_reg` AND Processes.process = "* restore *" by Processes.process_name Processes.original_file_name Processes.process Processes.process_id Processes.process_guid Processes.parent_process_name Processes.parent_process Processes.parent_process_guid Processes.dest Processes.user | `drop_dm_object_name(Processes)` | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `windows_registry_entries_restored_via_reg_filter`'
1414
how_to_implement: The detection is based on data that originates from Endpoint Detection and Response (EDR) agents. These agents are designed to provide security-related telemetry from the endpoints where the agent is installed. To implement this search, you must ingest logs that contain the process GUID, process name, and parent process. Additionally, you must ingest complete command-line executions. These logs must be processed using the appropriate Splunk Technology Add-ons that are specific to the EDR product. The logs must also be mapped to the `Processes` node of the `Endpoint` data model. Use the Splunk Common Information Model (CIM) to normalize the field names and speed up the data modeling process.
1515
known_false_positives: network administrator can use this command tool to backup registry before updates or modifying critical registries.
1616
references:

detections/endpoint/extraction_of_registry_hives.yml renamed to detections/endpoint/windows_sensitive_registry_hive_dump_via_commandline.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: Extraction of Registry Hives
1+
name: Windows Sensitive Registry Hive Dump Via CommandLine
22
id: 8bbb7d58-b360-11eb-ba21-acde48001122
3-
version: 4
4-
date: '2024-09-30'
5-
author: Michael Haag, Splunk
3+
version: 5
4+
date: '2025-01-15'
5+
author: Michael Haag, Patrick Bareiss, Nasreddine Bencherchali, Splunk
66
status: production
77
type: TTP
88
description: The following analytic detects the use of `reg.exe` to export Windows Registry hives, which may contain sensitive credentials. This detection leverages data from Endpoint Detection and Response (EDR) agents, focusing on command-line executions involving `save` or `export` actions targeting the `sam`, `system`, or `security` hives. This activity is significant as it indicates potential offline credential access attacks, often executed from untrusted processes or scripts. If confirmed malicious, attackers could gain access to credential data, enabling further compromise and lateral movement within the network.
99
data_source:
1010
- Sysmon EventID 1
1111
- Windows Event Log Security 4688
1212
- CrowdStrike ProcessRollup2
13-
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where `process_reg` (Processes.process=*save* OR Processes.process=*export*) AND (Processes.process="*\sam *" OR Processes.process="*\system *" OR Processes.process="*\security *") by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.parent_process_name Processes.process Processes.process_id Processes.parent_process_id | `drop_dm_object_name(Processes)` | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `extraction_of_registry_hives_filter`'
13+
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where ((`process_reg` AND (Processes.process=*save* OR Processes.process=*export*)) OR (`process_regedit` Processes.process IN ("*/E *", "*-E *"))) AND (Processes.process="*HKEY_LOCAL_MACHINE*" OR Processes.process="*HKLM*") AND (Processes.process="*\sam*" OR Processes.process="*\system*" OR Processes.process="*\security*") by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.parent_process_name Processes.process Processes.process_id Processes.parent_process_id | `drop_dm_object_name(Processes)` | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `windows_sensitive_registry_hive_dump_via_commandline_filter`'
1414
how_to_implement: The detection is based on data that originates from Endpoint Detection and Response (EDR) agents. These agents are designed to provide security-related telemetry from the endpoints where the agent is installed. To implement this search, you must ingest logs that contain the process GUID, process name, and parent process. Additionally, you must ingest complete command-line executions. These logs must be processed using the appropriate Splunk Technology Add-ons that are specific to the EDR product. The logs must also be mapped to the `Processes` node of the `Endpoint` data model. Use the Splunk Common Information Model (CIM) to normalize the field names and speed up the data modeling process.
1515
known_false_positives: It is possible some agent based products will generate false positives. Filter as needed.
1616
references:
@@ -28,15 +28,19 @@ drilldown_searches:
2828
latest_offset: $info_max_time$
2929
tags:
3030
analytic_story:
31-
- Volt Typhoon
32-
- Credential Dumping
31+
- CISA AA22-257A
3332
- CISA AA23-347A
33+
- Compromised Windows Host
34+
- Credential Dumping
3435
- DarkSide Ransomware
35-
- CISA AA22-257A
36+
- Data Destruction
37+
- Industroyer2
38+
- Volt Typhoon
39+
- Windows Registry Abuse
3640
asset_type: Endpoint
3741
confidence: 70
3842
impact: 80
39-
message: Suspicious use of `reg.exe` exporting Windows Registry hives containing credentials executed on $dest$ by user $user$, with a parent process of $parent_process_id$
43+
message: Suspicious use of `reg.exe` or `regedit.exe` to export sensitive registry hives that could potentially contain credentials, executed on $dest$ by user $user$, with a parent process of $parent_process_name$
4044
mitre_attack_id:
4145
- T1003.002
4246
- T1003
@@ -78,3 +82,8 @@ tests:
7882
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.002/atomic_red_team/windows-sysmon.log
7983
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
8084
sourcetype: XmlWinEventLog
85+
- name: True Positive Test
86+
attack_data:
87+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.002/atomic_red_team/crowdstrike_falcon.log
88+
source: crowdstrike
89+
sourcetype: crowdstrike:events:sensor

macros/process_regedit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
definition: (Processes.process_name=regedit.exe OR Processes.original_file_name=REGEDIT.exe)
2+
description: Matches the process with its original file name, data for this macro came from https://strontic.github.io/
3+
name: process_regedit

0 commit comments

Comments
 (0)