A security analyst receives an alert that a workstation is communicating with a known C2 server over DNS. The analyst wants to quickly isolate the endpoint from the network but keep it powered on for later memory capture. Which of the following actions should the analyst take FIRST?
Administratively disabling the switch port immediately stops all network communication from the endpoint while keeping it powered on for memory capture. This method is reversible, logged, and does not require physical access. It also prevents the malware from communicating with the C2 server without alerting the attacker via a full shutdown. This is the most appropriate first containment step.
Why this answer
Administratively disabling the switch port is the fastest, most controlled way to isolate the endpoint while preserving volatile memory. It stops C2 communication without powering off the system, allowing the analyst to capture RAM and running processes. Physical disconnection or shutdown may lose evidence or be less auditable, and antivirus scanning does not contain the threat.
Containment should always precede eradication.
Exam trap
The trap here is assuming that physically unplugging the network cable is always the best first containment step, when a switch port shutdown is often faster and more auditable.