EXPLORE
← Back to Explore
sigmahighHunting

AMSI Bypass Pattern Assembly GetType

Detects code fragments found in small and obfuscated AMSI bypass PowerShell scripts

MITRE ATT&CK

defense-evasionexecution

Detection Query

selection:
  ScriptBlockText|contains|all:
    - "[Ref].Assembly.GetType"
    - SetValue($null,$true)
    - NonPublic,Static
condition: selection

Author

Florian Roth (Nextron Systems)

Created

2022-11-09

Data Sources

windowsps_script

Platforms

windows

Tags

attack.defense-evasionattack.t1562.001attack.execution
Raw Content
title: AMSI Bypass Pattern Assembly GetType
id: e0d6c087-2d1c-47fd-8799-3904103c5a98
status: test
description: Detects code fragments found in small and obfuscated AMSI bypass PowerShell scripts
references:
    - https://www.mdsec.co.uk/2018/06/exploring-powershell-amsi-and-logging-evasion/
    - https://twitter.com/cyb3rops/status/1588574518057979905?s=20&t=A7hh93ONM7ni1Rj1jO5OaA
author: Florian Roth (Nextron Systems)
date: 2022-11-09
tags:
    - attack.defense-evasion
    - attack.t1562.001
    - attack.execution
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains|all:
            - '[Ref].Assembly.GetType'
            - 'SetValue($null,$true)'
            - 'NonPublic,Static'
    condition: selection
falsepositives:
    - Unknown
level: high