Malicious Whole-Drive Defender Exclusion via Add-MpPreference (via ps_script)

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

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 a PowerShell command adding the entire C drive as a Microsoft Defender exclusion path via Add-MpPreference, the defense-evasion step used by the D3F@ck MaaS loader before dropping payloads. Excluding the whole system drive from scanning is never a legitimate administrative action and effectively blinds Defender. This precedes RegAsm.exe injection of Raccoon Stealer.

Related detections9 linkedT1685 — drag to rearrange
Suspicious Microsoft Defender Exclusion Added via PowerShell Add-MpPreference (via process_creation)
Suspicious NodeLoader Disabling Malicious Software Removal Tool Updates (via registry_set)
Suspicious NodeLoader Defender Exclusion for ProgramData via PowerShell (via process_creation)
Suspicious SELinux Enforcement Disabled via setenforce on Ivanti Appliance
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)
Malicious Whole-Drive Defender Exclusion via Add-MpPreference (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.