Join our Newsletter — 33% off our NHI Course

Windows Defender Exclusions

Windows Defender Exclusions are files, folders, processes, or extensions excluded from Microsoft Defender scanning. Attackers try to add exclusions to hide malware, tools, or staging locations from detection. Defenders should tightly restrict who can change exclusions and review them regularly for unauthorised additions or suspicious paths.

What Windows Defender exclusions change

Windows Defender exclusions create explicit blind spots in Microsoft Defender scanning. That can be necessary for rare compatibility cases, but it also weakens one of the few controls that should continuously inspect files, folders, processes, and script locations.

Because exclusions affect inspection rather than access, the security consequence is often indirect at first: malicious payloads, droppers, staging directories, or living-off-the-land tooling can remain present without triggering the same scrutiny as they would in a fully covered path.

Why attackers target exclusion lists

Exclusions are attractive because they can reduce visibility without immediately breaking the system. If an attacker can add a path, process, or extension to an exclusion list, they may be able to hide malware or supporting tooling from routine scanning and some alerting workflows.

The most dangerous cases are those that protect common attacker locations, such as user-writable directories, archive or script extensions, and paths used for staging, unpacking, or persistence. The control failure is not the exclusion itself, but the fact that it can quietly create a trusted area inside an otherwise defended endpoint.

NHIMG’s EDR Evasion and Defence Guide is useful here because it covers exclusion abuse alongside other ways attackers blind security tooling.

How organisations assess exposure

Exposure checks start with inventory: which endpoints have Defender exclusions, who can change them, and whether those exclusions were created centrally or locally. Organisations should also confirm whether the excluded location is internet-reachable, user-writable, or commonly used by scripts and installers.

Reviewing vendor guidance matters because some exclusions are legitimate for performance or compatibility, yet they should still be narrowly scoped and documented. A path that once supported an application exception can become dangerous later if it begins to host tools, archives, or renamed binaries.

NHIMG’s Windows Endpoint Hardening Guide is a good companion for understanding how Defender exclusions fit into broader Windows hardening, including tamper protection and baseline controls.

Safer use, detection, and post-change review

Exclusions should be tightly controlled, regularly reviewed, and treated as a change-management item rather than a convenience setting. A mature review process looks for unusual paths, broad wildcards, newly excluded executables, and changes made outside approved admin workflows.

Detection should focus on both the exclusion change itself and the consequences of that change. If suspicious activity appears on an endpoint with recent exclusion edits, review whether files were dropped into the excluded path, whether scans were suppressed, and whether the change coincided with persistence or credential theft.

After any suspected abuse, defenders should also inspect adjacent systems and credentials that may have been exposed during the blind spot. If a host was used to stage tooling or harvest secrets, the response is not complete until the relevant accounts, tokens, or service credentials are checked and, where needed, rotated.

NHIMG’s Application Allowlisting Guide helps place exclusions in context, because allowlisting and exclusion management are both about narrowing what code can run or evade scrutiny.

Risk and Threat Considerations

Defender exclusions can become a durable foothold for attacker tradecraft when they are added for convenience, copied too broadly, or left in place after an application exception is no longer needed. The risk is not just missed detections, but the creation of an intentionally uninspected zone that can shelter malware, staging, or maintenance tools abused by an intruder.

Failure mechanism: An attacker with local or administrative change capability adds or modifies an exclusion, then places payloads, scripts, or persistence components in the exempted path so Defender is less likely to inspect them.

Impact: The endpoint can retain malicious tooling longer, emit fewer detections, and provide a quieter path for follow-on actions such as lateral movement, data theft, or defence impairment.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack surface, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, and ISO/IEC 27001:2022 defines the regulatory obligations.

Framework Control / Reference Relevance
NIST SP 800-53 Rev 5 SI-3 — Malicious Code Protection Defender exclusions directly affect malware scanning and inspection coverage.
CM-5 — Access Restrictions for Change Changing exclusions is a privileged configuration change that must be restricted.
AU-6 — Audit Record Review, Analysis, and Reporting Exclusion edits and suspicious endpoint events need review and correlation.
Recommendation — Limit exclusions and preserve malware inspection coverage for all untrusted paths. Restrict who can modify Defender exclusions and record each change. Review exclusion changes and correlate them with suspicious endpoint activity.
CIS Controls v8 CIS-10 — Malware Defenses Exclusions weaken endpoint malware defenses and need careful control.
CIS-5 — Account Management Only appropriately governed administrators should be able to alter exclusions.
Recommendation — Harden malware defenses by minimizing exclusions and monitoring their use. Limit exclusion changes to approved administrative accounts and review usage.
ISO/IEC 27001:2022 A.8.7 — Protection Against Malware Exclusions are a direct control consideration for anti-malware protection on endpoints.
Recommendation — Keep anti-malware protections effective by tightly governing all exclusions.
MITRE ATT&CK T1562.001 — Impair Defenses: Disable or Modify Tools Modifying Defender exclusions is a common way to impair defensive tools.
T1112 — Modify Registry On Windows, exclusion changes can be implemented through registry-based configuration abuse.
Recommendation — Map exclusion abuse to defence impairment techniques and hunt for tampering activity. Monitor registry and policy changes that alter Defender exclusion settings.
OWASP Non-Human Identity Top 10 NHI-05 — Overprivileged NHI If service or automation identities can alter exclusions, they may hold excessive privilege.
NHI-01 — Improper Offboarding Stale administrative or automation access can leave exclusion-change paths open.
Recommendation — Remove unnecessary privileges from identities that can change Defender exclusions. Revoke stale accounts and automation credentials that can still modify exclusions.

Practitioner Guidance

Why practitioners should care: Exclusions are sometimes necessary, but every exception should be a deliberate risk acceptance decision, not a default convenience setting. The more endpoints that allow local or loosely governed edits, the easier it is for an attacker or careless admin action to create blind spots.

What to watch for: Prioritise review of exclusions that target user-writable locations, common staging directories, script or archive extensions, and any process-based exclusions that can be abused to protect adversary tooling. Keep the review linked to change control so that unexpected additions stand out quickly.