cscli scenarios install sigmahq/proc_creation_win_powershell_sam_access
1type: trigger2name: sigmahq/proc_creation_win_powershell_sam_access3description: |4 Detects suspicious PowerShell scripts accessing SAM hives5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && (evt.Parsed.CommandLine contains '\\HarddiskVolumeShadowCopy' && evt.Parsed.CommandLine contains 'System32\\config\\sam' && (evt.Parsed.CommandLine contains 'Copy-Item' || evt.Parsed.CommandLine contains 'cp $_.' || evt.Parsed.CommandLine contains 'cpi $_.' || evt.Parsed.CommandLine contains 'copy $_.' || evt.Parsed.CommandLine contains '.File]::Copy('))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t1003.0021516 label: "PowerShell SAM Copy"17 behavior : "windows:audit"18 remediation: false1920scope:21 type: ParentProcessId22 expression: evt.Parsed.ParentProcessId2324