Cyber Services / All lessons / CEH — Ethical Hacking / CEH Practical Exam

CEH Practical Exam

Module 124 of 130 · 4 min read · Free to read

MODULES ↓ Command blocks have a COPY button
Question 1: LAN Active Host Discovery

Objective: Identify all active devices currently connected to the local area network (LAN). This is a fundamental reconnaissance step in network security assessments.

Task: Using appropriate network scanning tools, determine the IP addresses of all active computers on the LAN.

Deliverables:

  • Provide the command(s) used to perform the scan.
  • Explain the scanning technique employed (e.g., ARP scan, ping sweep, etc.) and why you chose it. Describe the underlying principles of the chosen technique.
  • List the IP addresses of all active hosts discovered.

Question 2: Gateway System Port Scanning

Objective: Analyze the open ports on the gateway system (typically your router) to identify potential vulnerabilities and services running.

Task: Perform a port scan on the gateway system. This will reveal which network ports are open and potentially listening for connections.

Deliverables:

  • Specify the tool(s) and command(s) used for the port scan.
  • Explain the type of port scan conducted (e.g., TCP connect scan, SYN scan). Describe how the chosen scan works.
  • List the open ports discovered on the gateway system, along with the service typically associated with each port (e.g., port 80 is usually HTTP).
  • Explain what kind of information can be obtained from a port scan (e.g., identifying running services, potential vulnerabilities). Discuss how an attacker might use this information.

Question 3: UFW Firewall Configuration - Web Server Access Control

Objective: Implement basic firewall rules using UFW to restrict access to an Apache2 web server, allowing only authorized connections from a specific IP address.

Scenario: An Apache2 web server is running on the target system. You need to ensure only your workstation can access it.

Task: Configure UFW to allow only your PC (IP address 10.255.254.44) to access the web pages served by the Apache2 web server (typically on port 80 and/or 443) running on the target system. All other connections should be blocked.

Deliverables:

  • Provide the exact UFW command(s) used to configure the firewall.
  • Explain what UFW is and how it functions as a firewall (briefly describe its architecture and how it filters network traffic).
  • Explain the purpose of each UFW command you used.
  • Describe how you would verify that the firewall rules are working as intended (e.g., testing access from different IP addresses).

Question 4: UFW Firewall Configuration - SSH Access Control

Objective: Secure SSH access to a system by restricting incoming connections to only authorized IP addresses.

Scenario: You want to harden the security of your SSH server by limiting which hosts can connect to it.

Task: Block all incoming SSH connections to the target system *except* for connections originating from your PC (IP address 10.255.254.44).

Deliverables:

  • Provide the exact UFW command(s) used to configure the firewall.
  • Explain what SSH is and why it is important for secure remote access.
  • Explain the purpose of each UFW command you used.
  • Describe how you would verify that the firewall rules are working as intended (e.g., attempting to connect via SSH from other IP addresses).

Question 5: Snort Intrusion Detection System (IDS) Rule Creation

Objective: Implement Snort rules to detect specific types of network traffic associated with social media, web searches, and WhatsApp.

Task: Activate Snort in the LAN and create Snort rules to detect the following traffic patterns. Focus on identifying *indicators* of the targeted traffic. Be aware that fully analyzing encrypted traffic is often not possible without decryption.

  1. Social Media Sites:
    • Provide examples of target social media sites (e.g., facebook.com, twitter.com/X.com).
    • Create Snort rules to detect HTTP requests or DNS queries to these sites. Focus on identifying the domain names.
    • Explain the logic behind the Snort rule (e.g., what part of the packet is being inspected and why).
  2. Web Pages with Google Search Queries:
    • Create Snort rules to detect HTTP GET requests containing search queries to Google Search (e.g., `google.com/search?q=`).
    • Explain the logic behind the Snort rule, paying particular attention to how you are identifying the search query.
  3. WhatsApp Traffic:
    • Attempt to identify and detect WhatsApp traffic. Since WhatsApp uses encryption, full content analysis is difficult. Focus on identifying connection patterns or unencrypted metadata where possible (e.g., DNS queries to whatsapp.net, TLS handshake information).
    • Provide the Snort rule(s) used.
    • Acknowledge any limitations in detecting encrypted WhatsApp traffic without decryption. Explain why full analysis is difficult and what aspects you *can* detect.

Deliverables:

  • Explain how to activate Snort and configure it to monitor network traffic. (Mention the steps involved)
  • Explain how to create and deploy Snort rules. (Where do you create the rule, where it should be placed and how to activate)
  • For *each* rule you create:
    • Provide the complete Snort rule.
    • Explain each component of the rule (action, header, options).
    • Explain the logic behind the rule (what it is trying to detect and why).
Modules (130) ← CEH — Ethical Hacking