Free tech learning for everyone, from basics to pro

Network SecurityNetworking SecurityIntermediate

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.

Containing an infected hostDetectalert fromEDR, NDR, IDSDecidescope andimpactIsolateEDR, NAC, VLANor ACLPreservelogs, captures,memoryEradicate andrestorerebuild,return
Figure 1. Isolate quickly, but keep evidence and avoid tipping off an attacker who controls many machines.

Isolating a single device

MethodProsCons
EDR network isolationOne click; device still talks to the EDR console for investigationNeeds a working agent
NAC quarantine (CoA)Moves the device to a quarantine VLAN or dACL wherever it connectsNeeds NAC deployed
Quarantine VLAN on the portDevice can reach only investigation toolsManual; device may move ports or Wi-Fi
Shut down the switch port / block the Wi-Fi clientSimple and certainCuts off remote investigation
ACL blocking the host's IPWorks for servers and remote sitesDHCP 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.
Any three of: EDR isolation, NAC quarantine, quarantine VLAN, shutting the switch port or blocking the Wi-Fi client, ACLs blocking its IP.
Why might isolating one machine too early be a problem?
If an attacker controls many machines, it can warn them and trigger faster or wider damage.
Which network logs should be exported quickly during an incident?
Firewall, proxy, DNS, VPN and NetFlow logs for the relevant period.

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.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

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.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: