cscli scenarios install sigmahq/proc_creation_win_powershell_iex_patterns
1type: trigger2name: sigmahq/proc_creation_win_powershell_iex_patterns3description: |4 Detects suspicious ways to run Invoke-Execution using IEX alias5filter: |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 ' | iex;' || evt.Parsed.CommandLine contains ' | iex ' || evt.Parsed.CommandLine contains ' | iex}' || evt.Parsed.CommandLine contains ' | IEX ;' || evt.Parsed.CommandLine contains ' | IEX -Error' || evt.Parsed.CommandLine contains ' | IEX (new' || evt.Parsed.CommandLine contains ');IEX ') && (evt.Parsed.CommandLine contains '::FromBase64String' || evt.Parsed.CommandLine contains '.GetString([System.Convert]::') || evt.Parsed.CommandLine contains ')|iex;$' || evt.Parsed.CommandLine contains ');iex($' || evt.Parsed.CommandLine contains ');iex $' || evt.Parsed.CommandLine contains ' | IEX | ' || evt.Parsed.CommandLine contains ' | iex\\"')7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t1059.0011516 label: "Suspicious PowerShell IEX Execution Patterns"17 behavior : "windows:audit"18 remediation: false1920scope:21 type: ParentProcessId22 expression: evt.Parsed.ParentProcessId2324