Attackers Abuse Legitimate Microsoft Defender Exclusions to Conceal Malware

Huntress researchers have detailed an evasion technique in which threat actors avoid disabling Microsoft Defender entirely. Instead, they create targeted exclusions for specific folders or file extensions, allowing malware to operate undetected while the protection status remains apparently active. These exclusions are configured through PowerShell commands, Windows Management Instrumentation, Group Policy, or direct registry modifications, all requiring administrator privileges after initial compromise. A registry key named HideExclusionsFromLocalAdmins can further conceal the list of exclusions from local administrators viewing the interface. The approach has been linked to campaigns involving GootKit in 2019, WhisperGate in 2022 that excluded the entire C: drive, and Muddled Libra in 2024. Defenders are advised to monitor registry changes directly, as this bypasses interface hiding, and to flag exclusions of entire drives or common directories such as temporary and downloads folders.

BoletimSecTranslated from Portuguese

Read at source

Researchers from Huntress have detailed a technique in which attackers do not disable Microsoft Defender. Instead, they create exclusions that open scanning holes around the folders where malware is stored, while the protection status remains apparently active.

Exclusions are a legitimate feature of the product. They can be defined by path, exempting entire directories from scanning, or by extension, exempting files based on suffix. The change can be introduced through several vectors: PowerShell commands, Windows Management Instrumentation, Group Policy, or direct registry writes.

The technique requires administrator privileges, placing it after the initial compromise. It is not used for initial access but for remaining undetected. An additional registry key, HideExclusionsFromLocalAdmins, hides the list of exclusions from local administrators, so queries through the interface show no exempted items.

The behavior is not new. The report connects the practice to GootKit in 2019, to WhisperGate in 2022 that excluded the entire C: drive from scanning, and to Muddled Libra in 2024.

For detection, the recommendation is to monitor the registry, since every modification path ultimately writes there, and to treat exclusions of entire drives or common directories used in attack preparation, such as temporary folders and the downloads directory, as suspicious. Direct registry examination also bypasses the hiding mechanism, because the key remains present even when the interface returns a clean list.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Malware & Botnets

Yoba Campaign Uses Signed ChatGPT and Claude Binaries for DLL Sideloading and XMRig Deployment
uCreator Spyware Infiltrates Modified Telegram, WeChat and GCash Builds on Android
Researchers Deploy Cowrie Honeypot Disguised as NVIDIA H100 Server to Study SSH Botnet Tactics