diff --git a/detections/endpoint/windows_krbrelayup_service_creation.yml b/detections/endpoint/windows_krbrelayup_service_creation.yml new file mode 100644 index 0000000000..0637e545eb --- /dev/null +++ b/detections/endpoint/windows_krbrelayup_service_creation.yml @@ -0,0 +1,58 @@ +name: Windows KrbRelayUp Service Creation +id: e40ef542-8241-4419-9af4-6324582ea60a +version: 1 +date: '2022-05-02' +author: Michael Haag, Splunk +type: TTP +datamodel: +- Endpoint +description: The following analytic identifies the default service name created by KrbRelayUp. +search: '`wineventlog_system` EventCode=7045 Service_Name IN ("KrbSCM") | stats count min(_time) as firstTime max(_time) as lastTime by + EventCode Service_File_Name Service_Name Service_Start_Type Service_Type | `security_content_ctime(firstTime)` + | `security_content_ctime(lastTime)` + | `windows_krbrelayup_service_creation_filter`' +how_to_implement: To successfully implement this search, you need to be ingesting + Windows System Event Logs with 7045 EventCode enabled. The Windows TA is also + required. +known_false_positives: False positives should be limited as this is specific to KrbRelayUp based attack. Filter as needed. +references: +- https://github.com/Dec0ne/KrbRelayUp +tags: + analytic_story: + - Local Privilege Escalation With KrbRelayUp + asset_type: Endpoint + cis20: + - CIS 3 + - CIS 5 + - CIS 16 + confidence: 80 + context: + - Source:Endpoint + dataset: + - https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1558/krbrelayup/krbrelayup.log + impact: 80 + kill_chain_phases: + - Exploitation + message: A service was created on $dest$, related to KrbRelayUp. + mitre_attack_id: + - T1543.003 + nist: + - DE.CM + observable: + - name: dest + type: Endpoint + role: + - Victim + product: + - Splunk Enterprise + - Splunk Enterprise Security + - Splunk Cloud + required_fields: + - _time + - EventCode + - Service_File_Name + - Service_Name + - Service_Start_Type + - Service_Type + risk_score: 64 + security_domain: endpoint diff --git a/tests/endpoint/windows_krbrelayup_service_creation.test.yml b/tests/endpoint/windows_krbrelayup_service_creation.test.yml new file mode 100644 index 0000000000..6bdf3d0ef2 --- /dev/null +++ b/tests/endpoint/windows_krbrelayup_service_creation.test.yml @@ -0,0 +1,12 @@ +name: Windows KrbRelayUp Service Creation Unit Test +tests: +- name: Windows KrbRelayUp Service Creation + file: endpoint/windows_krbrelayup_service_creation.yml + pass_condition: '| stats count | where count > 0' + earliest_time: -24h + latest_time: now + attack_data: + - file_name: windows-system.log + data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1543.003/krbrelayup/windows-system.log + source: WinEventLog:System + sourcetype: WinEventLog