rule: amsi bypass

This commit is contained in:
Florian Roth
2022-11-09 09:44:31 +01:00
parent 0de60f2b9f
commit c9fe367eae
@@ -0,0 +1,29 @@
title: PowerShell AMSI Bypass Pattern
id: 4f927692-68b5-4267-871b-073c45f4f6fe
status: experimental
description: Detects attempts to disable AMSI in the command line. It is possible to bypass AMSI by disabling it before loading the main payload.
author: '@Kostastsale'
references:
- https://www.mdsec.co.uk/2018/06/exploring-powershell-amsi-and-logging-evasion/
date: 2022/11/04
tags:
- attack.defense_evasion
- attack.t1562.001
- attack.execution
logsource:
product: windows
category: process_creation
detection:
selection1:
Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
- '\powershell_ise.exe'
CommandLine|contains|all:
- '[Ref].Assembly.GetType'
- 'SetValue($null,$true)'
- 'NonPublic,Static'
condition: selection1
falsepositives:
- Unknown
level: high