A user reports that their computer is infected with ransomware. Which of the following is the BEST immediate action for the security team to take?
Disconnecting the computer from the network is the immediate and most critical first step in containing a ransomware infection. This action severs the malware's ability to communicate with command-and-control (C2) servers, preventing further encryption key exchange, data exfiltration, or the reception of additional malicious instructions. Crucially, it also stops the ransomware from spreading laterally across the network to other systems or encrypting shared network drives, thereby limiting the scope of the compromise and preventing further damage.
Why this answer
Disconnecting the computer from the network is the best immediate action because it isolates the ransomware, preventing it from spreading laterally to other systems via SMB, RDP, or mapped drives. This containment step stops the encryption of additional network shares and halts any command-and-control (C2) communication the ransomware might be using to exfiltrate data or receive encryption keys.
Exam trap
Many candidates mistakenly prioritize running an antivirus scan or restoring from backup as the immediate step. However, the CEH exam emphasizes containment first to prevent lateral movement and further damage. Disconnecting from the network is critical to stop the spread of ransomware.
How to eliminate wrong answers
Option B is wrong because paying the ransom does not guarantee decryption and often funds criminal operations; there is no technical assurance the attacker will provide a working decryption key, and it may encourage further attacks. Option C is wrong because running a full antivirus scan while the ransomware is active can trigger the malware to accelerate encryption or delete files, and the scan itself may be ineffective if the ransomware has already modified system files or uses polymorphic code. Option D is wrong because restoring from a backup should only be done after the ransomware is fully removed and the system is verified clean; immediate restoration risks re-encrypting the backup if it is still connected to the network or if the ransomware persists in memory.