Malicious AMSI and ETW Bypass via In-Memory Patching (via ps_script)

PremiumReviewedSigma · High · v1
Product
windows
Category
ps_script
Author
HuntRule
Published
2026-09-19
Updated
2026-09-19

ATT&CK techniques

  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Exfiltration

  14. Impact

What it detects

This rule detects PowerShell in-memory tampering with AMSI and ETW to blind endpoint defenses, used by the MIMICRAT loader. Observed in Elastic Security Labs analysis where amsiInitFailed forcing, EventProvider m_enabled zeroing, and ScanContent Marshal.Copy patching disable scanning and telemetry before staging the RAT.

Related detections9 linkedT1685 — drag to rearrange
Malicious ETW Disabling via COMPlus_ETWEnabled Environment Variable
Suspicious CrazyHunter BYOVD Driver Drop in Public Directory
Suspicious Execution of cfmon.exe Masquerading as ctfmon via CharmingCypress
Suspicious SELinux Enforcement Disabled via Setenforce Command Line (via process_creation)
Suspicious SELinux and Firewall Disabling on Linux by Cryptominer (via process_creation)
Suspicious Windows Defender Exclusion of User Profile via PowerShell (via process_creation)
Malicious Vulnerable Driver Service Creation for BYOVD (via process_creation)
Malicious Microsoft Defender Disabled via Registry DisableAntiSpyware (via process_creation)
Suspicious Termination of Defender Tray Process via Taskkill
Malicious AMSI and ETW Bypass via In-Memory Patching (via ps_script)
Pivot detection · T1685 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.