cscli scenarios install sigmahq/proc_creation_win_powershell_amsi_init_failed_bypass1type: trigger2name: sigmahq/proc_creation_win_powershell_amsi_init_failed_bypass3description: |4 Detects Request to "amsiInitFailed" that can be used to disable AMSI Scanning5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && (evt.Parsed.CommandLine contains 'System.Management.Automation.AmsiUtils' && evt.Parsed.CommandLine contains 'amsiInitFailed' || evt.Parsed.CommandLine contains '[Ref].Assembly.GetType' && evt.Parsed.CommandLine contains 'SetValue($null,$true)' && evt.Parsed.CommandLine contains 'NonPublic,Static')7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t1562.0011516 label: "Potential AMSI Bypass Via .NET Reflection"17 behavior : "windows:audit"18 remediation: false1920scope:21 type: ParentProcessId22 expression: evt.Parsed.ParentProcessId2324