Containing security incidents on the network: isolating hosts, blocking traffic and preserving evidence
In short: When an incident starts, the network team can quickly limit damage. Options range from EDR isolation and NAC quarantine to shutting a switch port, moving a device to a quarantine VLAN or applying ACLs between zones. At the same time, block attacker addresses and domains, preserve logs and captures, and coordinate with the incident lead, ideally using playbooks prepared in advance.
The network team's role
Incident response is led by a security team or incident manager, but many of the fastest containment actions are in the network team's hands. Knowing them in advance, and having agreed when to use them, can turn a potential company-wide ransomware outbreak into a single rebuilt laptop.
Isolating a single device
| Method | Pros | Cons |
|---|---|---|
| EDR network isolation | One click; device still talks to the EDR console for investigation | Needs a working agent |
| NAC quarantine (CoA) | Moves the device to a quarantine VLAN or dACL wherever it connects | Needs NAC deployed |
| Quarantine VLAN on the port | Device can reach only investigation tools | Manual; device may move ports or Wi-Fi |
| Shut down the switch port / block the Wi-Fi client | Simple and certain | Cuts off remote investigation |
| ACL blocking the host's IP | Works for servers and remote sites | DHCP addresses change; must apply in the right places |
Before isolating, agree with the incident lead. If an attacker controls many machines, isolating one too early can warn them and trigger faster damage. In a fast-moving ransomware case, however, speed usually wins.
Containing wider spread
- Block lateral protocols between user VLANs and servers temporarily: SMB, RDP, WinRM, WMI and SSH from user networks, allowing only admin jump hosts.
- Isolate whole segments: cut a compromised site or VLAN off from the data centre while keeping essential services.
- Protect backups: block all access to backup systems except from the backup server itself.
- Block attacker infrastructure at the firewall, proxy and DNS: IP addresses, domains and URLs from the investigation.
- Disable compromised accounts on VPN and remote access (with the identity team).
Preserve evidence
- Do not wipe or reboot devices unless told to; memory contains evidence.
- Export firewall, proxy, DNS, VPN and NetFlow logs for the relevant period before they roll over.
- Start packet captures on key links if the attack is ongoing.
- Record every action you take, with the time, in the incident log.
Prepare before it happens
- Write playbooks: how to isolate a host, a VLAN or a site, who can approve it, and the exact commands or tool steps.
- Pre-build a quarantine VLAN and ACLs ready to apply.
- Agree an emergency change process so containment is not delayed by paperwork.
- Check that log retention is long enough (at least 90 days for key logs) and that NetFlow is collected.
- Practise in tabletop exercises with the security team.
Real-world example: stopping the spread
At 9:40 one morning, EDR alerts showed ransomware encrypting files on two finance PCs. The network team followed its playbook: NAC moved both PCs to the quarantine VLAN, a pre-built ACL blocked SMB and RDP from all user VLANs to servers, and backup servers were cut off from everything except the backup network. Encryption stopped at the two PCs and one file share, which was restored from backup that afternoon.
Practice
Name three ways to isolate an infected laptop on the network.
Why might isolating one machine too early be a problem?
Which network logs should be exported quickly during an incident?
Key takeaways
- The network team can contain incidents fast with isolation and blocks.
- Choose the isolation method by speed, certainty and need for remote investigation.
- Block lateral protocols, protect backups and block attacker infrastructure.
- Preserve logs and evidence, and prepare playbooks and quarantine VLANs in advance.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.