Skip to content
LessIT

Defender for Endpoint

Configure Isolation Exclusions in Defender for Endpoint

Define global isolation exclusion rules, apply selective isolation from the portal or the API, and confirm that critical services keep working while a compromised device stays contained.

Intermediate 45 min 7 steps

Where it fits: lab 2 of 3

Respond to endpoint threats and coexist with other antivirus. Investigate a ransomware attack, isolate devices without breaking management tools, and run Defender next to a third-party antivirus.

  1. Investigate a Simulated Ransomware Attack 120 min
  2. Configure Isolation Exclusions in Defender for Endpoint 45 min
  3. Defender AV Modes, MDA Integration & Third-Party AV Coexistence 3 h

What this lab covers

Isolation exclusions in Microsoft Defender for Endpoint allow you to exempt specific processes, IP addresses, URLs, or services from network isolation when a device is isolated using the selective isolation response action. This lab guides you through understanding isolation modes, enabling the isolation exclusions feature, building exclusion rules, applying selective isolation to a device, and verifying that excluded communications function while broader network access remains blocked.

The enterprise scenario

During an incident response, a SOC analyst isolates a compromised endpoint to prevent lateral movement. However, the remote remediation tool (e.g., a third-party EDR agent or SCCM) must remain connected to push cleanup scripts, and the SIEM agent must continue forwarding logs. Without exclusions, isolating the device breaks these tools, forcing analysts to physically access the machine or release full isolation prematurely - both increasing risk and slowing response.

By configuring isolation exclusions, the organization can maintain critical management and monitoring connections while keeping the device contained. This ensures continuous telemetry, remote remediation capability, and compliance with audit requirements - all without exposing the network to further risk from the compromised device.

What you will learn

  • Understand the difference between full isolation and selective isolation modes
  • Enable the Isolation Exclusion feature in Defender for Endpoint settings
  • Define global exclusion rules with process paths, service names, remote IPs, and directions
  • Apply selective isolation with exclusions to a specific device via the portal
  • Apply selective isolation via the Isolate Machine API with the Selective isolation type
  • Understand AND-based exclusion logic and how multiple rules interact
  • Validate that excluded communications work while general network access is blocked

Before you start

  • Microsoft Defender for Endpoint Plan 1 or Plan 2 license
  • Security Admin or Manage Security settings permissions in the Microsoft Defender portal
  • At least one onboarded device running Windows 11, Windows 10 version 1703+, Windows Server 2016+, Windows Server 2012 R2, macOS, or Azure Stack HCI OS version 23H2+
  • Test device (non-production) to safely practice isolation and verify connectivity
  • Access to the Microsoft Defender portal at security.microsoft.com

The 7 steps

  1. Understand Isolation Modes
  2. Enable the Isolation Exclusion Feature
  3. Define Global Exclusion Rules
  4. Understand the Exclusion Logic
  5. Apply Selective Isolation via the Portal
  6. Apply Selective Isolation via the API
  7. Validate and Test Exclusions

Related labs