From 00cb3cd69d9d17d7d536d9b9b9c293085f818dfd Mon Sep 17 00:00:00 2001 From: patel-bhavin Date: Mon, 27 Sep 2021 14:04:21 -0700 Subject: [PATCH] adding default --- .../remcos_client_registry_install_entry.yml | 49 +++++++++++++++++++ ...cos_client_registry_install_entry.test.yml | 12 +++++ 2 files changed, 61 insertions(+) create mode 100644 detections/endpoint/remcos_client_registry_install_entry.yml create mode 100644 tests/endpoint/remcos_client_registry_install_entry.test.yml diff --git a/detections/endpoint/remcos_client_registry_install_entry.yml b/detections/endpoint/remcos_client_registry_install_entry.yml new file mode 100644 index 0000000000..fdb4ca0e23 --- /dev/null +++ b/detections/endpoint/remcos_client_registry_install_entry.yml @@ -0,0 +1,49 @@ +name: Remcos client registry install entry +id: f2a1615a-1d63-11ec-97d2-acde48001122 +version: 1 +date: '2021-09-24' +author: Rod Soto +type: TTP +datamodel: +- Endpoint +description: This search detects registry key license at host where Remcos RAT agent is installed. +search: '| tstats `security_content_summariesonly` count values(Registry.registry_key_name) + as registry_key_name values(Registry.registry_path) as registry_path min(_time) + as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Registry where (Registry.registry_path=*\\Software\\Remcos*)| + `security_content_ctime(lastTime)` | `security_content_ctime(firstTime)` | `drop_dm_object_name(Registry)` | `remcos_client_registry_install_entry_filter`' +how_to_implement: In order to successfully implement this search, you need to be ingesting + logs with the TargetObject registry key, registry Details from your endpoints. + If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. +known_false_positives: unknown +references: +- https://attack.mitre.org/software/S0332/ +tags: + analytic_story: + - Remcos + dataset: + - https://github.com/splunk/attack_data/blob/master/datasets/malware/remcos/remcos_panel_client/agent_license.log + kill_chain_phases: + - Exploitation + mitre_attack_id: + - T1112 + product: + - Splunk Enterprise + - Splunk Enterprise Security + - Splunk Cloud + required_fields: + - _time + - Registry.registry_path + - Registry.registry_key_name + security_domain: endpoint + impact: 90 + confidence: 100 + # (impact * confidence)/100 + risk_score: 90 + context: + message: A registry entry $registry_path$ with registry value $registry_key_name$ + related to Remcos RAT in host $dest$ + observable: + name: dest + type: Hostname + role: + - Victim diff --git a/tests/endpoint/remcos_client_registry_install_entry.test.yml b/tests/endpoint/remcos_client_registry_install_entry.test.yml new file mode 100644 index 0000000000..03b12c0bae --- /dev/null +++ b/tests/endpoint/remcos_client_registry_install_entry.test.yml @@ -0,0 +1,12 @@ +name: Remcos client registry install entry Unit Test +tests: +- name: Remcos client registry install entry + file: endpoint/remcos_client_registry_install_entry.yml + pass_condition: '| stats count | where count > 0' + earliest_time: '-15d' + latest_time: 'now' + attack_data: + - file_name: agent_license.log + data: https://github.com/splunk/attack_data/blob/master/datasets/malware/remcos/remcos_panel_client/agent_license.log + source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational + sourcetype: xmlwineventlog \ No newline at end of file