mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
66 lines
2.3 KiB
YAML
66 lines
2.3 KiB
YAML
name: Delete ShadowCopy With PowerShell
|
|
id: 5ee2bcd0-b2ff-11eb-bb34-acde48001122
|
|
version: 2
|
|
date: '2022-05-02'
|
|
author: Teoderick Contreras, Splunk
|
|
status: production
|
|
type: TTP
|
|
description: This following analytic detects PowerShell command to delete shadow copy
|
|
using the WMIC PowerShell module. This technique was seen used by a recent adversary
|
|
to deploy DarkSide Ransomware where it executed a child process of PowerShell to
|
|
execute a hex encoded command to delete shadow copy. This hex encoded command was
|
|
able to be decrypted by PowerShell log.
|
|
data_source:
|
|
- Powershell 4104
|
|
search: '`powershell` EventCode=4104 ScriptBlockText= "*ShadowCopy*" (ScriptBlockText
|
|
= "*Delete*" OR ScriptBlockText = "*Remove*") | stats count min(_time) as firstTime
|
|
max(_time) as lastTime by Opcode Computer UserID EventCode ScriptBlockText | `security_content_ctime(firstTime)`
|
|
| `security_content_ctime(lastTime)` | `delete_shadowcopy_with_powershell_filter`'
|
|
how_to_implement: To successfully implement this search, you need to be ingesting
|
|
logs with the powershell logs from your endpoints. make sure you enable needed
|
|
registry to monitor this event.
|
|
known_false_positives: unknown
|
|
references:
|
|
- https://www.mandiant.com/resources/shining-a-light-on-darkside-ransomware-operations
|
|
- https://www.techtarget.com/searchwindowsserver/tutorial/Set-up-PowerShell-script-block-logging-for-added-security
|
|
tags:
|
|
analytic_story:
|
|
- DarkSide Ransomware
|
|
- Ransomware
|
|
- Revil Ransomware
|
|
asset_type: Endpoint
|
|
confidence: 90
|
|
impact: 90
|
|
message: An attempt to delete ShadowCopy was performed using PowerShell on $Computer$
|
|
by $User$.
|
|
mitre_attack_id:
|
|
- T1490
|
|
observable:
|
|
- name: UserID
|
|
type: User
|
|
role:
|
|
- Victim
|
|
- name: Computer
|
|
type: Hostname
|
|
role:
|
|
- Victim
|
|
product:
|
|
- Splunk Enterprise
|
|
- Splunk Enterprise Security
|
|
- Splunk Cloud
|
|
required_fields:
|
|
- _time
|
|
- ScriptBlockText
|
|
- Opcode
|
|
- Computer
|
|
- UserID
|
|
- EventCode
|
|
risk_score: 81
|
|
security_domain: endpoint
|
|
tests:
|
|
- name: True Positive Test
|
|
attack_data:
|
|
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.001/powershell_script_block_logging/sbl_xml.log
|
|
source: XmlWinEventLog:Microsoft-Windows-PowerShell/Operational
|
|
sourcetype: xmlwineventlog
|