cscli scenarios install sigmahq/proc_creation_win_powershell_shadowcopy_deletion1type: trigger2name: sigmahq/proc_creation_win_powershell_shadowcopy_deletion3description: |4 Detects deletion of Windows Volume Shadow Copies with PowerShell code and Get-WMIObject. This technique is used by numerous ransomware families such as Sodinokibi/REvil5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.CommandLine contains 'Get-WmiObject' || evt.Parsed.CommandLine contains 'gwmi' || evt.Parsed.CommandLine contains 'Get-CimInstance' || evt.Parsed.CommandLine contains 'gcim') && evt.Parsed.CommandLine contains 'Win32_ShadowCopy' && (evt.Parsed.CommandLine contains '.Delete()' || evt.Parsed.CommandLine contains 'Remove-WmiObject' || evt.Parsed.CommandLine contains 'rwmi' || evt.Parsed.CommandLine contains 'Remove-CimInstance' || evt.Parsed.CommandLine contains 'rcim'))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t14901516 label: "Deletion of Volume Shadow Copies via WMI with PowerShell"17 behavior : "windows:audit"18 remediation: false1920scope:21 type: ParentProcessId22 expression: evt.Parsed.ParentProcessId2324