Blocking Malware Command and Control With IP-Based Firewall Rules
A security analyst is responding to a malware incident at a company. The malware connects to a command-and-control server on the internet in order to function. Which of the following should the security analyst implement first?
Community Votes
60% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The stem states that the malware depends on reaching a command-and-control server, so the first action must target that dependency. A firewall rule is surgical and can be pushed in minutes, while segmentation is a planned change that follows containment rather than replacing it.
Because the malware needs its command-and-control channel in order to operate, the fastest way to stop it is to block the known command-and-control addresses with IP-based firewall rules. That single change severs the command channel immediately and buys time for the slower architectural work of segmenting and rebuilding the network.
Defaulting to network segmentation because containment comes first in the incident response process. Segmentation is the right long-term hardening step, but it takes planning and rollout, so it is slower than a blocking rule that kills the command channel at once.
Community Discussion (25 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
The scenario states that the malware connects to a command-and-control server in order to function, so the implant's capability depends entirely on that outbound channel. Blocking the known command-and-control addresses with IP-based firewall rules removes the dependency immediately, which stops the malware from receiving instructions or exfiltrating data without waiting for a broader redesign. A firewall rule is a configuration change an analyst can push in minutes and can be scoped tightly to the malicious destinations, which contains the incident while minimising disruption to legitimate traffic.Why the Other Options Are Wrong
Network segmentation is a valid mitigation and CompTIA lists it alongside isolation and containment, but it is an architectural change that must be planned, tested, and rolled out, so it cannot be the first action while an active command-and-control channel is established. Mobile device management governs phones and tablets and has no bearing on server-side malware reaching an internet server. A content filter inspects web and application traffic and can block command-and-control domains, but it works at a coarser layer and cannot deny traffic to specific malicious IP addresses as immediately as a firewall rule does.Community Comment Notes
The majority chose IP-based firewall rules, with agfencer arguing that a blocking rule is far quicker than reworking the network structure and mrface33 noting that the stem's emphasis on the command-and-control server makes the firewall rule the intended answer. A substantial minority chose network segmentation, and slapster cited CompTIA's containment definition plus the segmentation-based containment tactic to support it. Mizzcoors mapped the choice onto the incident response process and listed containment as the third step, which is why the segmentation argument remains persuasive to some readers.Official Reference
Exam Strategy
When a question says a threat needs a specific channel in order to function, the first action is the one that severs that channel with the least disruption. Reserve architecture-level answers such as segmentation for questions that ask about preventing spread or hardening afterward, not for what should be done first during an active incident.
Frequently Asked Questions
Why is network segmentation not the first step when malware is contacting a command-and-control server?
Segmentation is effective but it is an architectural change that takes planning and rollout, so it is slower than pushing a firewall rule that blocks the command-and-control addresses already in use.
How is a content filter different from an IP-based firewall rule for stopping command-and-control traffic?
A firewall rule can deny specific destination IP addresses immediately, while a content filter works at the application and web layer and cannot cut established traffic to a known malicious IP as directly.