Season 1 Part of Playbook Monday · Episode 08 of 10
View all 10 episodes →
Playbook Monday · Episode 08 · Endpoint Security · EDR · Incident Response · Playbook · May 17, 2027 · 9 min read

Isolating an Infected Endpoint: Contain It Without Destroying the Evidence

Playbook Monday · Ep 08 Endpoint Security EDR Incident Response Playbook · 9 min read
💬 Feedback
Disconnect
Isolate rather than switch off
CISA warns that powering down can destroy evidence held in memory
7 days
Before Defender for Endpoint lifts isolation
Microsoft says isolation is automatically removed after seven days, so plan your next step
3 days
Isolation retried for offline devices
If the device does not reconnect in that time, Microsoft says the action must be reissued

The alert says "Suspicious process on LAPTOP-0427". The user is in a meeting with it open. Do you cut it off now and interrupt their day, or investigate first and risk the infection spreading? Most of the time, the answer is: isolate first, in a way that keeps your ability to investigate.

Isolating an endpoint means cutting it off from the rest of the network so an attacker cannot use it to move to other machines, reach file shares or send data out. It is the most common containment action in incident response and, done well, it buys time without destroying the clues you need to understand what happened.

NIST's incident response guidance, revised in April 2025 as SP 800-61 Revision 3, places containment within the Respond function of its Cybersecurity Framework 2.0. This playbook focuses on the practical steps for a single infected laptop or desktop.

The goal is to stop the machine talking to your network, not to stop you talking to the machine.
At a glance 1. Decide: is isolation justified?
2. Isolate, keeping your security tool connected
3. Collect evidence before changing anything
4. Treat credentials used on it as exposed
5. Hunt for the same activity elsewhere
6. Clean or rebuild, then release only against clear criteria

1. Decide Whether to Isolate

Isolate straight away if any of these are true:

  • There are signs of ransomware, such as mass file changes or a ransom note.
  • There is evidence of an attacker operating the machine: remote access tools, credential dumping, or unusual commands.
  • The machine is talking to known malicious infrastructure.
  • It belongs to someone with privileged access, such as an administrator or a finance user.

For a low-confidence alert on an ordinary user's machine, you may have time to investigate first. But if you are unsure, isolate. Reconnecting a clean machine costs a few minutes of the user's time. Leaving a compromised one connected can cost far more.

2. Isolate It the Right Way

With an EDR tool (preferred). Most endpoint detection and response tools can isolate a device remotely. Microsoft describes Defender for Endpoint's isolation as disconnecting the device from the network while keeping its connection to the Defender service, which continues to monitor it. That means you can still collect evidence, run scans and use live response on the isolated machine.

Microsoft also offers selective isolation on supported Windows versions, which can allow Outlook and Microsoft Teams so you can still contact the user. A few practical notes from Microsoft's documentation:

  • Full-tunnel VPNs can break it. Devices behind a full VPN tunnel may not be able to reach the Defender service after isolation. Microsoft recommends split tunnelling for Defender traffic.
  • Offline devices. If the device is offline, Defender retries the isolation for up to three days. After that, you need to reissue it.
  • It does not last for ever. Isolation is automatically lifted after seven days, so you need a plan to clean or rebuild the device before then.

Without an EDR tool. Unplug the network cable, turn off Wi-Fi and disable the device's switch port or Wi-Fi access if you can. CISA's advice is to power devices down only if you cannot disconnect them from the network, because shutting down can destroy evidence held in memory.

Tell the user, in person or by phone. Ask them not to switch it off, log out, or try to fix anything, and to note anything unusual they saw.

3. Collect Evidence Before Changing Anything

Cleaning a machine before capturing evidence is one of the most common mistakes in incident response. You lose the chance to learn how the attacker got in and what else they touched.

  • Collect an investigation package if your EDR supports it. In Defender for Endpoint, this gathers information about the device's current state to help you understand the tools and techniques used.
  • Capture memory if you have the tools and skills, before any reboot. CISA's ransomware guidance recommends a system image and memory capture of sample affected devices.
  • Export the relevant logs: EDR timeline, Windows event logs, browser history and any alerts.
  • Note the basics: device name, user, IP address, time of first alert and every action you take.

4. Treat Credentials as Exposed

Anything used on an infected machine may have been captured: saved browser passwords, session cookies, tokens and the user's own sign-in. If there are signs of credential theft or an infostealer (see Threat of the Week, Episode 07):

  • Revoke the user's sessions and tokens.
  • Reset their password from a clean device.
  • Rotate any service credentials, API keys or admin passwords used on that machine.
  • If an administrator signed in to it, treat their privileged accounts as at risk too.

5. Look for the Same Thing Elsewhere

One infected machine is often not the only one. Take the indicators from the first device, such as file hashes, file names, domains, IP addresses and unusual commands, and search for them across all endpoints, email and network logs. Check whether the same user, or the same malicious email or download, reached other people.

6. Clean, Rebuild and Release

For anything beyond a simple, well-understood detection, rebuilding is safer than cleaning. A full reimage from a known-good build removes anything you did not find.

Release criteria: reconnect only when… Evidence has been collected. You understand how it was infected, or have decided to rebuild regardless. The device has been reimaged or fully scanned clean. Updates and security tools are current. Credentials used on it have been reset. You have searched for the same indicators elsewhere. Someone with authority has signed off.

Prepare Before You Need It

  • Confirm who is allowed to isolate a device, at any hour, without waiting for approval.
  • Test isolation on a spare device, including over your VPN.
  • Keep a known-good build image ready so rebuilding takes hours, not days.
  • Agree how you will contact a user whose laptop is isolated, and lend them a spare device if needed.

Final Thoughts

Isolation is the incident response equivalent of closing the fire doors. Done early and done properly, with your tools still connected and the evidence intact, it stops one infected laptop from becoming a network-wide incident.

Isolate early, keep the evidence, reset what it touched, and only reconnect when you are sure.

Sources and Further Reading

Cyber Insight | Playbook Monday · Season 1

Making cybersecurity easier to understand, one issue at a time.

PS
Poorna Sujampathi Rathnayaka
Writer · Cyber Insight · Digital Literacy

I started Cyber Insight because everywhere online people only talk about cybersecurity in technical terms — and most people are left without a proper understanding of how the digital world works. I work in cybersecurity, but I write here for everyone. No jargon. Just clear, honest explanations.