Detectionhightest

Potential AMSI Bypass Via .NET Reflection

Detects Request to "amsiInitFailed" that can be used to disable AMSI Scanning

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Markus NeisCreated Fri Aug 17Updated Fri Feb 0330edb182-aa75-42c0-b0a9-e998bb29067cwindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic1 selector
detection:
    selection:
        - CommandLine|contains|all:
              - 'System.Management.Automation.AmsiUtils'
              - 'amsiInitFailed'
        - CommandLine|contains|all:
              - '[Ref].Assembly.GetType'
              - 'SetValue($null,$true)'
              - 'NonPublic,Static'
    condition: selection
False Positives
Unlikely

False positives are unlikely for most environments. High confidence detection.

Related Rules
Similar

4f927692-68b5-4267-871b-073c45f4f6fe

Rule not found
Rule Metadata
Rule ID
30edb182-aa75-42c0-b0a9-e998bb29067c
Status
test
Level
high
Type
Detection
Created
Fri Aug 17
Modified
Fri Feb 03
Path
rules/windows/process_creation/proc_creation_win_powershell_amsi_init_failed_bypass.yml
Raw Tags
attack.defense-evasionattack.t1562.001
View on GitHub