diff --git a/detections/endpoint/windows_diskshadow_proxy_execution.yml b/detections/endpoint/windows_diskshadow_proxy_execution.yml new file mode 100644 index 0000000000..68d5772672 --- /dev/null +++ b/detections/endpoint/windows_diskshadow_proxy_execution.yml @@ -0,0 +1,54 @@ +name: Windows Diskshadow Proxy Execution +id: 58adae9e-8ea3-11ec-90f6-acde48001122 +version: 1 +date: '2022-02-15' +author: Lou Stella, Splunk +type: TTP +datamodel: +- Endpoint +description: DiskShadow.exe is a Microsoft Signed binary present on Windows Server. It has a scripting mode intended for complex scripted backup operations. This feature also allows for execution of arbitrary unsigned code. This analytic looks for the usage of the scripting mode flags in executions of DiskShadow. During triage, compare to known backup behavior in your environment and then review the scripts called by diskshadow. +search: "| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where `process_diskshadow` (Processes.process=*-s* OR Processes.process=*/s*) by Processes.dest Processes.user Processes.parent_process Processes.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_diskshadow_proxy_execution_filter`" +how_to_implement: To successfully implement this search you need to be ingesting information on processes that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. In addition,confirm the latest CIM App 4.20 or higher is installed and the latest TA for the endpoint product. +known_false_positives: Administrators using the DiskShadow tool in their infrastructure as a main backup tool with scripts will cause false positives that can be filtered with `windows_diskshadow_proxy_execution_filter` +references: +- https://bohops.com/2018/03/26/diskshadow-the-return-of-vss-evasion-persistence-and-active-directory-database-extraction/ +tags: + analytic_story: + - Living Off The Land + dataset: + - https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218/diskshadow/windows-sysmon.log + kill_chain_phases: + - Exploitation + mitre_attack_id: + - T1218 + product: + - Splunk Enterprise + - Splunk Enterprise Security + - Splunk Cloud + required_fields: + - _time + - Processes.process + - Porcesses.dest + - Processes.user + - Processes.parent_process + - Processes.process_name + - Processes.process_id + - Processes.parent_process_id + - Processes.original_file_name + security_domain: endpoint + impact: 70 + confidence: 70 + risk_score: 49 + context: + - Source:Endpoint + - Stage:Execution + message: Possible Signed Binary Proxy Execution on $dest$ + observable: + - name: dest + type: Hostname + role: + - Victim + nist: + - DE.CM + cis20: + - CIS 8 \ No newline at end of file diff --git a/macros/process_diskshadow.yml b/macros/process_diskshadow.yml new file mode 100644 index 0000000000..2d32b5e476 --- /dev/null +++ b/macros/process_diskshadow.yml @@ -0,0 +1,3 @@ +definition: (Processes.process_name=diskshadow.exe OR Processes.original_file_name=diskshadow.exe) +description: Matches the process with its original file name, data for this macro came from https://strontic.github.io/ +name: process_diskshadow \ No newline at end of file diff --git a/stories/living_off_the_land.yml b/stories/living_off_the_land.yml new file mode 100644 index 0000000000..5051fc4c45 --- /dev/null +++ b/stories/living_off_the_land.yml @@ -0,0 +1,22 @@ +name: Living Off The Land +id: 6f7982e2-900b-11ec-a54a-acde48001122 +version: 1 +date: '2022-02-17' +author: Lou Stella, Splunk +description: Leverage searches that allow you to search for the presence of an attacker leveraging existing tooling within your environment. +narrative: Living Off The Land refers to an attacker methodology of using software already installed on their target host to achieve their goals. Many utilities that ship with Windows can be used to achieve various goals, with reduced chances of detection by an antivirus software. +references: +- https://lolbas-project.github.io/ +tags: + analytic_story: + - Living Off The Land + category: + - Adversary Tactics + - Unauthorized Software + - Lateral Movement + - Privilege Escalation + product: + - Splunk Enterprise + - Splunk Enterprise Security + - Splunk Cloud + usecase: Security Monitoring \ No newline at end of file diff --git a/tests/endpoint/windows_diskshadow_proxy_execution.test.yml b/tests/endpoint/windows_diskshadow_proxy_execution.test.yml new file mode 100644 index 0000000000..03f7c1bb61 --- /dev/null +++ b/tests/endpoint/windows_diskshadow_proxy_execution.test.yml @@ -0,0 +1,12 @@ +name: Windows Diskshadow proxy execution Unit Test +tests: +- name: Windows Diskshadow proxy execution + file: endpoint/windows_diskshadow_proxy_execution.yml + pass_condition: '| stats count | where count > 0' + earliest_time: '-24h' + latest_time: 'now' + attack_data: + - file_name: windows-sysmon.log + data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218/diskshadow/windows-sysmon.log + source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational + sourcetype: xmlwineventlog \ No newline at end of file