Detectionhightest

Potential AMSI Bypass Via .NET Reflection

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

Open in Detection LabConvert ruleBuild Package
Markus NeisCreated 2018-08-17Updated 2023-02-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
2018-08-17
Modified
2023-02-03
Path
rules/windows/process_creation/proc_creation_win_powershell_amsi_init_failed_bypass.yml
Raw Tags
attack.defense-impairmentattack.t1685
View on GitHub