Courseiva
Enumeration and System HackinghardMultiple ChoiceObjective-mapped

CEH Enumeration and System Hacking Practice Question

A security analyst runs `snmpwalk -v2c -c public 192.168.1.1` and receives extensive output about the device's configuration. Which of the following is the MOST effective countermeasure against this enumeration?

⚠ Common exam trap

Many exam-takers choose SNMPv3 with encryption (Option B) because it sounds more secure, but the question specifically targets the misconfiguration of using the default 'public' community string on SNMPv2c, which is best remedied by changing the community string and restricting access, not by upgrading the protocol version alone.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Change the default community string and restrict SNMP access to specific IPs

The most effective countermeasure against SNMP enumeration via a default community string is to change the default 'public' (or 'private') string to a strong, non-guessable value and restrict SNMP access to trusted management IPs using an access control list (ACL). This prevents unauthorized querying of the MIB tree while still allowing legitimate SNMP monitoring.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Disable SNMP entirely

    Why it's wrong here

    Disabling SNMP entirely would indeed prevent any enumeration attempts, as the service would no longer be running on the device. However, SNMP is a critical protocol for network device monitoring and management, providing valuable operational insights into device status, performance, and configuration. Completely disabling it would severely impair an organization's ability to effectively manage and troubleshoot its network infrastructure, making it an impractical and often unacceptable solution for many environments where management functionality is essential.

  • Use SNMPv3 with encryption

    Why it's wrong here

    While SNMPv3 offers robust security features like authentication and encryption (privacy), the `snmpwalk v2c` command specifically targets SNMPv2c, which relies on community strings for access. Migrating to SNMPv3 would be a significant security upgrade, but it doesn't directly address the immediate vulnerability of using default or weak community strings in an existing SNMPv2c deployment. The most effective countermeasure for the *current* v2c enumeration attempt is to secure the v2c configuration itself, rather than implementing a different protocol version.

  • Change the default community string and restrict SNMP access to specific IPs

    Why this is correct

    Changing the default community string, such as 'public', immediately invalidates the attacker's current enumeration attempt, as they would no longer possess the correct credential for SNMPv2c access. Simultaneously, restricting SNMP access to specific, authorized IP addresses through Access Control Lists (ACLs) provides an additional layer of defense. This combination ensures that only trusted management stations can even attempt to communicate with the SNMP agent, significantly reducing the attack surface and preventing unauthorized information disclosure.

  • Block ICMP echo requests

    Why it's wrong here

    Blocking ICMP echo requests, commonly known as ping, is a network security measure primarily aimed at preventing network discovery or denial-of-service attacks that exploit ICMP. However, SNMP (Simple Network Management Protocol) operates over UDP ports 161 (agent) and 162 (manager), and its enumeration process is entirely independent of ICMP. Therefore, blocking ICMP echo requests would have no impact whatsoever on an attacker's ability to perform an `snmpwalk` operation against an SNMP agent.

Visual reference

Source Router + ACL permit 10.0.0.0/8 deny any Server 10.0.0.5 ✓ 192.168.1.1 ✗ dropped ACLs evaluate top-down; first match wins — implicit deny all at end

About these practice questions

One of 870 original CEH practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CEH practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CEH exam.