cscli scenarios install sigmahq/proc_creation_win_powershell_email_exfil
1type: trigger2name: sigmahq/proc_creation_win_powershell_email_exfil3description: |4 Detects email exfiltration via powershell cmdlets5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.Image endsWith '\\powershell.exe' || evt.Parsed.Image endsWith '\\pwsh.exe') && evt.Parsed.CommandLine contains 'Add-PSSnapin' && evt.Parsed.CommandLine contains 'Get-Recipient' && evt.Parsed.CommandLine contains '-ExpandProperty' && evt.Parsed.CommandLine contains 'EmailAddresses' && evt.Parsed.CommandLine contains 'SmtpAddress' && evt.Parsed.CommandLine contains '-hidetableheaders')7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:1415 label: "Email Exifiltration Via Powershell"16 behavior : "windows:audit"17 remediation: false1819scope:20 type: ParentProcessId21 expression: evt.Parsed.ParentProcessId2223