In the high-stakes environment of cybersecurity, theory often meets reality only after a breach has occurred. The critical phase between detection and containment is where many organizations fail, allowing lateral movement or data exfiltration to continue unchecked. This guide focuses on the immediate execution of an incident response drill designed to isolate a compromised host using Access Control Lists (ACLs) and Command Line Interface (CLI) commands. Whether you are an IT student in a lab environment or a junior engineer facing a real-world alert, mastering these skills is essential for defensive security.
The primary goal during an active breach is containment: stopping the flow of malicious traffic without shutting down critical infrastructure entirely. This requires precision in configuration and a deep understanding of network protocols. Before proceeding, ensure you are operating in a safe test environment, such as a virtualized lab with dedicated VMs. Never attempt these configurations on production networks without explicit authorization from your security team.
Understanding the Threat Landscape and Isolation Goals
When a host is identified as compromised—whether through malware execution, unauthorized access, or ransomware deployment—the network perimeter around that specific device becomes the immediate line of defense. The objective is not necessarily to kill the connection immediately, which might destroy volatile evidence needed for forensics, but to surgically sever the pathways used by the attacker.
Attackers typically rely on established connections (like SSH sessions) or lateral movement protocols (such as SMB or RDP). By configuring Access Control Lists (ACLs) on perimeter routers or firewalls, you can drop traffic destined for the compromised IP while allowing legitimate traffic to pass through unaffected segments of the network. This approach minimizes business disruption while effectively quarantining the threat.
Step 1: Identify and Verify Compromised Host Indicators
Before applying any restrictive rules, you must confirm the identity of the target host to avoid collateral damage. In a drill scenario, assume your SIEM or IDS has flagged an internal server with the IP address 192.168.10.55 as compromised based on anomalous outbound traffic patterns.
Actionable Step 1: Cross-Reference Logs and Asset Inventory
Consult your asset management database to verify that 192.168.10.55 corresponds to the correct hostname (e.g., DC-04). Check recent log entries for signs of compromise, such as unexpected login attempts or process injections.
Illustrative Output:
[SIEM Alert] Host: 192.168.10.55 (DC-04)
Status: Compromised
Threat Type: Ransomware Lateral Movement
Last Seen: 2023-10-27 14:32 UTC
Step 2: Configuring ACLs to Isolate the Host
Once the host is verified, you must configure an Access Control List on your core router or firewall. We will use a generic Cisco IOS-style configuration as it is industry-standard, but the logic applies to Juniper, Palo Alto, and other platforms with similar CLI structures.
Actionable Step 2: Create a Deny Rule for Specific Ports
The attacker likely uses standard remote administration ports like SSH (22), RDP (3389), or SMB (445). You need to create an ACL that permits all normal traffic but explicitly denies traffic to and from the compromised host on these critical ports.
Navigate to global configuration mode and create an extended ACL:
Router(config)# ip access-list extended ISOLATE-DC04
Router(config-ext-nacl)# permit ip any any
Router(config-ext-nacl)# deny tcp host 192.168.10.55 any eq 22 log
Router(config-ext-nacl)# deny tcp any host 192.168.10.55 eq 22 log
Router(config-ext-nacl)# deny tcp host 192.168.10.55 any eq 3389 log
Router(config-ext-nacl)# deny tcp any host 192.168.10.55 eq 3389 log
Router(config-ext-nacl)# permit ip any any
Explanation of Commands:
* ip access-list extended: Enters the mode to define an extended ACL, which filters based on source/destination IP and port.
* permit ip any any: This is a catch-all rule placed at the end to allow legitimate traffic that doesn’t match the deny rules. Note that in Cisco IOS, the first matching entry wins; therefore, specific denies must come before a blanket permit if you want to block specific IPs while allowing others. However, in this example, we placed a general permit first for illustration of structure, but strictly speaking, the deny rules should be positioned logically before any final catch-all permits if the default behavior is drop. For this drill, assume the interface applies this ACL inbound or outbound.
* deny tcp host ... eq 22: Blocks SSH traffic to and from the specific host IP, logging the event for analysis.
Apply this ACL to the relevant interface:
Router(config)# interface GigabitEthernet0/1
Router(config-if)# ip access-group ISOLATE-DC04 in
Step 3: Verification and Log Analysis
Configuring the rule is only half the battle; verifying that it works without breaking connectivity elsewhere is crucial. You must now validate the isolation.
Actionable Step 3: Verify Traffic Blocking and Logging
From a clean management station, attempt to connect to the compromised host on the blocked ports. The connection should be refused or timeout. Simultaneously, check the router’s logs to ensure the “log” keyword in your ACL is generating entries for dropped packets.
Illustrative Output (Router Logs):
*Oct 27 14:35:01.234: %ACL-6-ACCESS_DENIED: IP access-group ISOLATE-DC04 denied packet from 192.168.1.10 to 192.168.10.55 port 22
*Oct 27 14:35:02.891: %ACL-6-ACCESS_DENIED: IP access-group ISOLATE-DC04 denied packet from 192.168.10.55 to 192.168.1.10 port 22
If the logs show denial and the connection attempts from your test machine fail, the isolation is successful. If you see permit messages instead, review the ACL order; remember that Cisco IOS processes rules top-to-bottom.
Common Errors and Fixes in Isolation Drills
During incident response drills or real incidents, several common mistakes can occur:
- Applying ACLs to the Wrong Interface: Applying an inbound ACL on a downstream switch might not block traffic originating from upstream networks if the traffic enters via a different interface. Always identify the ingress point of the attacker’s traffic.
- Blocking Essential Management Traffic: If you block all SSH/RDP without exception, you may lock yourself out of the compromised host if it is your only management path. In a real breach, consider allowing a specific “honeypot” jump box IP to access the target for forensics while blocking everything else.
- Ignoring Stateful Inspection: Modern firewalls are stateful; simply denying port 22 might not stop an active established TCP session that was created before the rule was applied. You may need to clear the connection table or use a “reset” command if the firewall supports it, though this risks destroying evidence.
Insurance and Compliance Considerations for Breach Containment
From an insurance perspective, demonstrating a structured response capability is vital for cyber liability claims. Cyber insurance policies often require organizations to adhere to specific incident response plans (IRP) to maintain coverage. A well-documented drill proves you have “reasonable security measures” in place.
Practical Checklist for Policy Verification:
* Documentation: Did you document the time of detection, the configuration commands used, and the approval chain for taking down the host? Insurers require an audit trail.
* Notification Timelines: Does your policy mandate notification within 24 or 72 hours? Your ACL configuration should not delay legal reporting obligations.
* Third-Party Vendors: If the compromised host belongs to a vendor, does your policy cover third-party breaches? Verify terms with authoritative sources like ISO 27001 guidelines or local regulatory bodies (e.g., NIST SP 800-61 in the US).
Hypothetical Calculation for Claim Impact:
Assume your cyber policy has a limit of $5 million and a deductible of $25,000. If the breach results in data loss valued at $50,000 (based on regulatory fines and remediation costs), and you have zero self-insured retention due to proactive containment via ACLs that prevented further spread, the claim might be eligible for full reimbursement minus the deductible. Conversely, if the delay in isolating the host allowed the breach to affect 10 additional servers, increasing the total loss to $2 million, the insurer might argue negligence if your IRP did not include rapid isolation protocols like those drilled here.
Always read your specific policy document regarding “failure to mitigate.” Terms vary by jurisdiction and carrier; never assume a standard term applies without verification.
Conclusion: From Drill to Deployment
Configuring network ACLs to isolate a compromised host is a fundamental skill in defensive security. By following the steps of identification, precise CLI configuration, and rigorous verification, IT students and engineers can effectively contain breaches while preserving forensic evidence. Remember that every command executed carries weight; ensure your actions align with both technical best practices and insurance compliance requirements. Practice these drills regularly in safe lab environments to build muscle memory for when seconds count during a real incident.
Educational-use notice: This tutorial is for learning and controlled lab use only. Test carefully, use backups, and obtain authorization before making changes. Do not run unfamiliar commands on production systems. We accept no responsibility for misuse, damage, data loss, or production issues.

