Courseiva

Certified Ethical Hacker CEH (CEH) — Questions 301375

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

Page 4

Page 5 of 12

Page 6
301
MCQhard

An application allows users to upload XML files for processing. A tester uploads the following payload: <?xml version="1.0"?><!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]><root>&xxe;</root>. The server returns the contents of /etc/passwd. Which attack is being performed?

A.XML External Entity (XXE) injection
B.SQL injection
C.Cross-Site Scripting (XSS)
D.Server-Side Request Forgery (SSRF)
AnswerA

XML External Entity (XXE) injection is the correct vulnerability because the provided payload explicitly defines an external entity within the DOCTYPE declaration. By referencing "file:///etc/passwd" via the SYSTEM identifier, the XML parser is instructed to retrieve the content of the specified local file. This content is then processed and potentially returned in the application's response, confirming the successful exploitation of the XML parser's ability to resolve external entities.

Why this answer

This is an XML External Entity (XXE) injection attack, where an external entity is defined to read a local file. The server's XML parser processes the entity and reflects the file content, confirming the vulnerability.

302
Multi-Selecthard

Which THREE of the following Nmap flags are commonly used for evasion techniques? (Select 3)

Select 3 answers
A.-f
B.-D
C.--mtu
D.-O
E.-sV
AnswersA, B, C

The -f flag instructs Nmap to fragment the probe packets into smaller pieces, typically 8 bytes or less, before sending them. This technique can bypass stateless firewalls or basic Intrusion Detection Systems (IDS) that only inspect the first fragment of a packet or fail to reassemble fragmented packets correctly. By splitting the TCP header across multiple fragments, it becomes harder for security devices to identify the true nature of the scan, making it a common evasion tactic.

Why this answer

The -f flag fragments the probe packets into smaller 8-byte fragments (or less, depending on the MTU). This helps evade simple packet-filtering firewalls and intrusion detection systems that do not reassemble fragments before applying rules, as the fragmented headers may bypass signature-based detection.

Exam trap

EC-Council often tests the distinction between scanning techniques (like -O and -sV) and evasion techniques (like -f, -D, --mtu), so candidates mistakenly select -O or -sV because they are common Nmap flags, even though they serve reconnaissance, not evasion.

303
MCQmedium

An employee receives an email that appears to be from the company's CEO, requesting an urgent wire transfer to a vendor. The email address is slightly different from the CEO's actual address. Which type of social engineering attack is this?

A.Phishing
B.Vishing
C.Whaling
D.Spear phishing
AnswerD

This is spear phishing because the email is crafted specifically for that employee, using the CEO's identity to add urgency and authority. The targeted nature and the spoofed email address are hallmarks of spear phishing.

Why this answer

Spear phishing is a targeted social engineering attack aimed at a specific individual or organization. In this scenario, the email is personalized to appear from the CEO but targets an employee, making it spear phishing. Unlike whaling, which targets high-profile executives, spear phishing can target any individual.

The slightly spoofed email address and urgent request for a wire transfer are common spear phishing tactics, exploiting trust and authority to trick the victim.

Exam trap

In the EC-CEH exam, candidates often confuse whaling with spear phishing because both are targeted. However, the key distinction is the target's level: whaling targets top executives (C-suite, board members), while spear phishing targets any individual. Here, since the recipient is an employee, it is spear phishing, not whaling.

How to eliminate wrong answers

Option A is wrong because phishing is a broad, untargeted attack that sends mass emails to many users, often with generic content, not a personalized request from a specific executive. Option B is wrong because vishing (voice phishing) uses phone calls or voice messages, not email, to deceive victims. Option D is wrong because spear phishing targets a specific individual or organization but does not necessarily focus on high-ranking executives; whaling is a subtype of spear phishing that specifically targets senior management.

304
MCQmedium

Which of the following Nmap flags would an attacker use to evade IDS by sending fragmented IP packets?

A.-D
B.-g
C.-sS
D.-f
AnswerD

The -f (or --fragment) flag instructs Nmap to fragment the IP packets it sends into several smaller pieces. This technique is specifically designed to evade simple packet filters and intrusion detection systems (IDS) that might inspect only the first fragment of a packet or have difficulty reassembling fragmented packets correctly. By splitting the TCP or UDP header across multiple fragments, it can bypass rules that look for specific header information in a single, complete packet, thus aiding in stealth.

Why this answer

The -f flag in Nmap instructs the tool to fragment the transmitted packets into smaller pieces (typically 8-byte fragments). This fragmentation is used to evade Intrusion Detection Systems (IDS) that rely on signature matching against complete, unfragmented packets, as the IDS may not reassemble the fragments before inspection or may fail to detect the malicious payload when spread across multiple fragments.

Exam trap

The trap here is that candidates often confuse the -f flag with the -D (decoy) flag, thinking both are used for evasion, but -f specifically targets packet fragmentation to bypass IDS, while -D hides the source IP.

How to eliminate wrong answers

Option A (-D) is wrong because the -D flag is used for decoy scanning, which spoofs multiple source IP addresses to hide the attacker's real IP, not to fragment packets. Option B (-g) is wrong because the -g flag sets a custom source port number for the scan, often to bypass firewall rules that allow traffic from specific ports (e.g., port 53 for DNS), and has nothing to do with fragmentation. Option C (-sS) is wrong because -sS performs a TCP SYN stealth scan, which sends SYN packets without completing the handshake to avoid connection logging, but it does not involve IP fragmentation.

305
MCQhard

An analyst detects an SMB enumeration attempt in network logs. Which of the following tools would MOST likely generate such traffic?

A.nmap -sT 192.168.1.1
B.enum4linux 192.168.1.1
C.snmpwalk -v 2c 192.168.1.1
D.ldapsearch -h 192.168.1.1
AnswerB

`enum4linux` is a wrapper script designed specifically for enumerating information from Windows and Samba hosts via NetBIOS and SMB. It leverages underlying tools like `rpcclient`, `net`, and `nmblookup` to extract a wide array of details. This includes user lists, group memberships, share names, password policies, and operating system information, making it highly effective for comprehensive SMB enumeration attempts.

Why this answer

enum4linux is a tool specifically designed to enumerate SMB (Server Message Block) shares, users, and other information from Windows systems using the SMB protocol. The analyst detected SMB enumeration traffic, which is exactly what enum4linux generates by querying NetBIOS and SMB services (ports 139 and 445).

Exam trap

The trap here is that candidates may confuse tools that scan ports (nmap) with tools that perform protocol-specific enumeration, leading them to choose nmap because it is a common scanning tool, but it does not generate SMB enumeration traffic itself.

How to eliminate wrong answers

Option A is wrong because nmap -sT performs a TCP connect scan, which can detect open ports but does not perform SMB enumeration; it only checks if ports are open, not extracting SMB-specific data. Option C is wrong because snmpwalk queries SNMP (Simple Network Management Protocol) on UDP ports 161/162, not SMB, and is used for retrieving MIB data from network devices. Option D is wrong because ldapsearch queries LDAP (Lightweight Directory Access Protocol) on TCP port 389, which is used for directory services like Active Directory, not for SMB enumeration.

306
MCQhard

Refer to the exhibit. A security analyst checks for missing patches. Which vulnerability is this system likely exposed to?

A.EternalBlue (MS17-010)
B.BlueKeep (CVE-2019-0708)
C.ZeroLogon (CVE-2020-1472)
D.PrintNightmare (CVE-2021-34527)
AnswerD

PrintNightmare (CVE-2021-34527) is a critical remote code execution vulnerability affecting the Windows Print Spooler service, enabling attackers to execute arbitrary code with SYSTEM privileges. This vulnerability was publicly disclosed and subsequently patched in July 2021. Since the exhibited patch dates for the system only extend through 2020, the required security update for PrintNightmare would not have been applied, making it a relevant and unpatched vulnerability.

Why this answer

The system is Windows 10 build 19041 (2004) with patches up to 9/17/2020. EternalBlue (MS17-010) was patched in 2017, so it is likely patched. However, BlueKeep (CVE-2019-0708) affects older systems (Windows 7/2008 R2), not Windows 10.

ZeroLogon (CVE-2020-1472) was patched in August 2020; the system has KB4577586 from 9/8/2020 which includes the fix. PrintNightmare (CVE-2021-34527) was disclosed in 2021, after the patch dates shown, so the system is likely vulnerable to PrintNightmare.

307
MCQmedium

During a web application test, a penetration tester intercepts a request using Burp Suite Proxy, modifies the 'Referer' header, and resends the request. The application processes the request despite the modified header. Which attack is the tester attempting to validate?

A.Server-Side Request Forgery (SSRF)
B.Cross-Site Scripting (XSS)
C.Cross-Site Request Forgery (CSRF)
D.SQL injection
AnswerC

Modifying the "Referer" header is a direct test for Cross-Site Request Forgery (CSRF) defenses. Many web applications implement CSRF protection by validating the "Referer" header to ensure that a request originates from the application's own domain. A penetration tester's action of altering this header directly attempts to bypass or evaluate the robustness of such "Referer"-based validation mechanisms, simulating an attacker's attempt to circumvent this common CSRF mitigation.

Why this answer

CSRF (Cross-Site Request Forgery) attacks often rely on the Referer header for validation. By modifying it, the tester checks if the application validates the header. If the request is processed, the application is vulnerable to CSRF.

308
MCQhard

During a cloud penetration test, you discover an S3 bucket that allows listing objects. You find a file named 'config.json' that contains an IAM access key and secret key. Which of the following is the BEST next step?

A.Delete the bucket to prevent further data exposure
B.Use the keys to call sts:GetCallerIdentity and then enumerate permissions via IAM
C.Download all objects from the bucket and exfiltrate them
D.Immediately rotate the keys in the AWS console
AnswerB

After discovering AWS access keys, the immediate and most prudent step is to validate their authenticity and determine the associated identity using sts:GetCallerIdentity. This API call confirms the keys are active and reveals the IAM user or role they belong to. Following this, enumerating the permissions attached to that identity via IAM policies is critical to understand the full scope of access, identify potential escalation paths, and discover other high-value targets within the AWS environment.

Why this answer

The correct action is to use the discovered credentials to enumerate permissions via the AWS CLI, as they may grant further access.

309
MCQmedium

A security analyst receives an alert about a scan originating from an IP address that appears to be using a 'sIdle scan' technique. Which of the following characteristics would confirm this?

A.The scan uses fragmented packets and decoy IP addresses
B.The scan uses FTP bounce to hide the true source IP
C.The scan sends SYN packets with the zombie host's IP address as the source and monitors IPID changes on the zombie to determine open ports
D.The scan shows a SYN packet with the attacker's real IP but uses a zombie host to relay replies
AnswerC

This option accurately describes the idle scan's core methodology. The attacker first probes an idle "zombie" host to record its current IPID (IP Identification field). Subsequently, the attacker sends spoofed SYN packets to the target, using the zombie's IP address as the source. If the target port is open, it responds with a SYN-ACK to the zombie, causing the zombie to send an RST to the target and increment its IPID. If the target port is closed, it responds with an RST to the zombie, which does not increment the zombie's IPID. A final probe to the zombie reveals whether its IPID has incremented, indicating an open port on the target.

Why this answer

An idle scan (also known as a zombie scan) relies on sending SYN packets to the target with the spoofed source IP address of a zombie host, then monitoring the IPID sequence on that zombie to infer whether the target port is open, closed, or filtered. The key characteristic is the use of the zombie's IP as the source and the observation of IPID changes on the zombie, which is exactly what option C describes.

Exam trap

The trap here is that candidates often confuse the idle scan with other spoofing or relay techniques like FTP bounce or decoy scans, but the idle scan is uniquely defined by the use of a zombie host's IPID changes to infer port states, not by hiding the attacker's IP via relays or multiple decoys.

How to eliminate wrong answers

Option A is wrong because fragmented packets and decoy IP addresses are features of a fragmented scan or a decoy scan, not an idle scan; idle scan does not use fragmentation or multiple decoy IPs. Option B is wrong because FTP bounce is a separate technique that uses an FTP server to relay traffic and hide the true source, but it does not involve monitoring IPID changes on a zombie host. Option D is wrong because an idle scan does not send SYN packets with the attacker's real IP; the attacker's IP is never used in the probe packets—the zombie's IP is used as the source, and the zombie does not relay replies; instead, the attacker monitors the zombie's IPID to infer port states.

310
MCQeasy

Which of the following tools is specifically designed for high-speed port scanning across large address spaces?

A.Masscan
B.Zenmap
C.hping3
D.Nmap
AnswerA

Masscan is purpose-built for extremely high-speed network scanning, capable of transmitting millions of packets per second across the internet. It achieves this unparalleled speed by employing a custom, asynchronous TCP/IP stack and operating in a stateless manner, primarily focusing on rapid port discovery rather than detailed service enumeration. This design allows it to scan the entire IPv4 address space for specific ports in mere minutes, making it ideal for large-scale reconnaissance and vulnerability mapping.

Why this answer

Masscan is specifically designed for high-speed port scanning across large address spaces, capable of transmitting packets at rates exceeding 10 million packets per second. It achieves this by using asynchronous transmission and a custom TCP/IP stack, making it ideal for scanning the entire IPv4 internet or massive subnets in minutes, unlike general-purpose scanners that prioritize accuracy over raw speed.

Exam trap

The trap here is that candidates often assume Nmap is the fastest scanning tool because of its popularity and extensive feature set, but Masscan is explicitly engineered for raw speed at the cost of some accuracy, which is the key differentiator tested in this question.

How to eliminate wrong answers

Option B (Zenmap) is wrong because it is merely a graphical front-end for Nmap, not a standalone high-speed scanner; it inherits Nmap's slower, more thorough scanning approach. Option C (hping3) is wrong because it is a packet crafting and testing tool focused on custom packet generation and firewall testing, not optimized for high-speed port scanning across large address spaces. Option D (Nmap) is wrong because while it is a powerful and versatile scanner, it is designed for detailed, reliable scans with features like service detection and OS fingerprinting, and its default scanning methods are significantly slower than Masscan's asynchronous approach.

311
MCQeasy

In the context of system hacking methodology (CHPSET), which phase involves removing evidence of the attacker's activities from logs and system files?

A.Spying
B.Privilege escalation
C.Erasing tracks
D.Cracking passwords
AnswerC

Erasing tracks is the crucial final phase in the system hacking methodology, where an attacker meticulously removes all forensic evidence of their presence and activities from a compromised system. This involves clearing system logs, modifying file timestamps, deleting malicious tools, and altering audit trails to prevent detection by security analysts and incident responders. The objective is to maintain persistence and avoid attribution, making it appear as if no intrusion occurred.

Why this answer

In the CEH system hacking methodology (CHPSET), the 'Erasing tracks' phase is specifically defined as the step where attackers remove evidence of their activities, such as clearing logs, modifying timestamps, or deleting system files. This ensures that intrusion detection systems or system administrators cannot trace the attack back to the source.

Exam trap

The trap here is that candidates confuse 'Erasing tracks' with 'Privilege escalation' because both involve post-exploitation actions, but the key distinction is that erasing tracks is solely about covering forensic evidence, not gaining higher privileges.

How to eliminate wrong answers

Option A is wrong because 'Spying' is not a phase in the CHPSET methodology; it is a generic term for surveillance and does not involve log or file manipulation. Option B is wrong because 'Privilege escalation' is the phase focused on gaining higher-level access (e.g., root or Administrator) after initial compromise, not on removing evidence. Option D is wrong because 'Cracking passwords' is part of the initial access or privilege escalation phases, where attackers obtain credentials, not a phase dedicated to covering tracks.

312
MCQeasy

A security team is implementing measures to prevent cross-site request forgery (CSRF) attacks. Which of the following is the most effective mitigation technique?

A.Enabling SSL/TLS
B.Using HTTP GET for all form submissions
C.Implementing CSRF tokens
D.Using input validation
AnswerC

Implementing CSRF tokens is the standard and most effective defense against Cross-Site Request Forgery attacks. A unique, unpredictable token is generated by the server for each user session and embedded within forms or request headers. The server then validates this token upon receiving a request; if the token is missing or incorrect, the request is rejected, preventing an attacker from forging requests that originate from a different site without knowledge of the valid token. This mechanism ensures that only requests originating from the legitimate application are processed.

Why this answer

CSRF tokens are unique, unpredictable values that must be included in state-changing requests, ensuring the request originated from the legitimate site.

313
MCQeasy

An attacker attempts to log into a web application by trying many common passwords for a list of known usernames. Which type of authentication attack is this?

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

Password spraying uses a few common passwords across many accounts.

Why this answer

Password spraying involves using a few common passwords against many usernames to avoid account lockouts, as opposed to brute force (many passwords on one account) or credential stuffing (using known username/password pairs).

314
MCQhard

A security team finds that a web application accepts a user-supplied URL and fetches it server-side without validation. The application runs on AWS EC2 with a metadata endpoint at 169.254.169.254. Which attack is MOST likely to succeed?

A.SQL injection
B.Server-Side Request Forgery (SSRF)
C.Remote file inclusion (RFI)
D.Cross-site scripting (XSS)
AnswerB

The application fetches a user-supplied URL server-side without validation, enabling an attacker to craft a request to the internal AWS metadata endpoint at 169.254.169.254. This SSRF attack exploits the lack of input sanitisation to retrieve instance metadata, such as IAM credentials, because the server trusts its own network context. The stem’s constraint—unvalidated server-side URL fetching—directly enables this attack vector.

Why this answer

SSRF (Server-Side Request Forgery) occurs when an application fetches a user-controlled URL. By supplying the metadata endpoint, an attacker can retrieve IAM credentials, making this the most likely attack.

315
Multi-Selecteasy

Which TWO of the following are characteristics of symmetric encryption? (Select two)

Select 2 answers
A.Uses a single shared key for encryption and decryption
B.Faster than asymmetric encryption
C.Slower than asymmetric encryption
D.Provides non-repudiation
E.Uses a pair of public and private keys
AnswersA, B

Symmetric encryption algorithms, such as AES or DES, fundamentally rely on a singular, identical secret key for both the transformation of plaintext into ciphertext and the subsequent reversal of ciphertext back into plaintext. This shared secret must be securely exchanged between communicating parties prior to any encrypted data transmission. The efficiency of this method stems from using the same cryptographic key for both operations, simplifying key management for individual sessions.

Why this answer

Symmetric encryption uses a single shared key for both encryption and decryption, and is generally faster than asymmetric.

316
MCQhard

A security analyst discovers that a containerized application running in a cloud environment can access the host's file system by mounting /var/run/docker.sock inside the container. Which type of attack does this configuration enable?

A.Server-Side Request Forgery (SSRF)
B.Privilege escalation within the container only
C.Container escape to the host
D.Denial-of-Service (DoS) attack against the container runtime
AnswerC

This is the correct answer because mounting the Docker socket (`/var/run/docker.sock`) inside a container grants the container full administrative control over the host's Docker daemon. An attacker can leverage this access to execute Docker commands, such as `docker run -v /:/host_root -it ubuntu bash`, which effectively mounts the host's root filesystem into a new container, thereby achieving a complete container escape and gaining arbitrary command execution capabilities on the host system.

Why this answer

Mounting the Docker socket inside a container allows the container to communicate with the Docker daemon on the host, potentially allowing the attacker to create new containers, escape the container, and execute commands on the host.

317
MCQmedium

A security analyst notices that the ARP cache on a workstation contains multiple entries for the same IP address with different MAC addresses. Which attack is likely occurring?

A.ARP poisoning
B.Session hijacking
C.DNS spoofing
D.MAC flooding
AnswerA

ARP poisoning causes multiple MAC entries for one IP due to forged ARP replies.

Why this answer

ARP poisoning (also called ARP spoofing) occurs when an attacker sends forged ARP replies to a network, associating their own MAC address with the IP address of a legitimate host (e.g., the default gateway). The workstation's ARP cache then stores multiple MAC addresses for the same IP, as the cache is updated with each fraudulent reply. This allows the attacker to intercept, modify, or block traffic intended for that IP, enabling man-in-the-middle attacks.

Exam trap

The trap here is confusing ARP poisoning with MAC flooding; candidates often pick MAC flooding because both involve MAC addresses, but MAC flooding targets switch CAM tables, not workstation ARP caches, and does not produce multiple MAC entries for the same IP on a single host. CEH exam questions often test this distinction.

How to eliminate wrong answers

Option B (Session hijacking) is wrong because session hijacking typically exploits an active TCP session by stealing session tokens or cookies, not by manipulating ARP cache entries. Option C (DNS spoofing) is wrong because DNS spoofing corrupts DNS resolver caches with false IP-to-domain mappings, not MAC-to-IP mappings in the ARP cache. Option D (MAC flooding) is wrong because MAC flooding overwhelms a switch's CAM table with fake MAC addresses to force it into hub mode, causing it to flood traffic out all ports; it does not create multiple ARP entries for the same IP on a single workstation.

318
MCQmedium

A security team discovers a file named 'svchost.exe' in a user's Temp folder. The file is signed by 'Microsoft Corporation' but the digital signature validation fails. Which analysis method should be used FIRST to determine if it's malicious?

A.Upload to VirusTotal
B.Dynamic analysis in a sandbox
C.Static analysis using strings and PEiD
D.Run the file on a production system to observe behavior
AnswerC

Static analysis, particularly utilizing tools like `strings` and PEiD, is the safest and most appropriate initial step for examining a suspicious executable without execution. The `strings` utility can extract human-readable text from the binary, revealing potential commands, URLs, or error messages that often indicate malicious intent. PEiD (PE Identifier) helps analysts identify the compiler, packer, or cryptor used, which is crucial for understanding obfuscation techniques and guiding further analysis, all while minimizing risk.

Why this answer

Static analysis using tools like strings and PEiD should be performed first to quickly inspect the file's metadata, embedded strings, and packer information without executing it. Since the digital signature validation fails despite claiming to be from Microsoft, static analysis can reveal anomalies such as unusual section names, suspicious imports, or packed code that indicate tampering. This non-execution approach is safe and efficient for initial triage, avoiding the risks of dynamic analysis or running the file.

Exam trap

The CEH exam often tests that candidates mistakenly choose dynamic analysis (sandbox) as the first step, but the correct order is always static analysis first to assess risk and avoid executing unknown code prematurely.

How to eliminate wrong answers

Option A is wrong because uploading to VirusTotal is a secondary step that relies on static analysis results to interpret detection ratios, and it may expose sensitive data or be blocked by corporate policy. Option B is wrong because dynamic analysis in a sandbox should not be the first step; it requires prior static analysis to ensure the sample is safe to execute and to configure the sandbox appropriately. Option D is wrong because running the file on a production system is extremely dangerous and violates fundamental security practices, as it could trigger malware execution and compromise the environment.

319
MCQhard

During an assessment, a tester discovers that the web application accepts XML input and returns the parsed data. The tester submits the following payload: <!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]><root>&xxe;</root>. The response contains the contents of /etc/passwd. This vulnerability is known as:

A.Local File Inclusion (LFI)
B.Server-Side Request Forgery (SSRF)
C.XML External Entity (XXE) Injection
D.SQL injection
AnswerC

XML External Entity (XXE) injection occurs when an XML parser processes XML input containing a reference to an external entity without proper validation. This vulnerability allows an attacker to define custom entities that can reference local files, network resources, or even execute commands, leading to the disclosure of sensitive data, denial-of-service, or server-side request forgery. The ability to read local files directly via the XML parser is a hallmark of XXE.

Why this answer

The payload defines an external entity that reads a local file, a classic XXE (XML External Entity) injection.

320
MCQeasy

Which HTTP method is commonly used by WebDAV to upload files to a web server, and if misconfigured, could allow an attacker to upload malicious scripts?

A.DELETE
B.GET
C.POST
D.PUT
AnswerD

The PUT method is the designated HTTP verb for uploading files in WebDAV because it requests that the enclosed entity be stored under the supplied Request-URI. If the URI refers to an existing resource, PUT replaces it; if the URI does not point to an existing resource, the server creates it. This idempotent behavior, where repeated identical requests have the same effect as a single request, makes PUT ideal for creating or updating files directly at a specified location.

Why this answer

The PUT method allows uploading resources to the server, and if enabled without proper controls, can be exploited to upload malicious files.

321
MCQmedium

A security team deployed a web application firewall (WAF) that blocks requests containing SQL keywords like 'SELECT', 'UNION', and 'DROP'. An attacker bypasses the WAF by encoding the payload in base64 and using a SQL injection tool that decodes it server-side. Which mitigation would be MOST effective against this?

A.Increase WAF sensitivity to block base64-encoded strings
B.Implement prepared statements with parameterized queries
C.Disable error messages to hide database errors
D.Use a more restrictive input validation regex
AnswerB

Implementing prepared statements with parameterized queries is the most robust solution because it fundamentally separates SQL code from user-supplied data. The database engine first compiles the SQL query structure, defining placeholders for input, before any user data is introduced. Subsequently, user input is bound to these placeholders as literal values, ensuring it is never interpreted as executable SQL code, thereby eliminating the possibility of SQL injection attacks.

Why this answer

Prepared statements (parameterized queries) prevent SQL injection by separating query structure from data, regardless of encoding. WAF bypasses are mitigated by using proper coding practices.

322
MCQhard

During a penetration test, a tester uses Nmap with the command: nmap -sS -D RND:10 192.168.1.100. After the scan, the IDS logs show multiple SYN packets from different source IPs hitting the target. However, the tester's true IP is not among them. Which of the following techniques is being used?

A.Idle scan
B.SYN flood
C.Decoy scan
D.Fragmentation attack
AnswerC

A Decoy scan, initiated with the -D flag, is a technique used to obfuscate the true source IP address of the scanner by interspersing it with multiple decoy IP addresses. When RND:10 is used, Nmap generates 10 random, non-existent IP addresses (or existing ones if specified) and sends scan packets from these decoys, along with the actual scanner's IP. This makes it challenging for intrusion detection systems (IDS) or firewall logs to pinpoint the actual origin of the scan amidst the noise generated by the decoys.

Why this answer

The command `nmap -sS -D RND:10` performs a SYN stealth scan with 10 randomly generated decoy IP addresses. The IDS logs show multiple SYN packets from different source IPs, but the tester's true IP is not among them because Nmap sends the decoy packets with spoofed source addresses while the real scan packet is interleaved among them. This is the definition of a decoy scan, which aims to obscure the attacker's true origin by blending it with fake sources.

Exam trap

The trap here is confusing decoy scans with idle scans, as both involve spoofed IPs, but idle scans require a zombie host and IPID manipulation, while decoy scans simply flood the target with fake sources to hide the real one.

How to eliminate wrong answers

Option A is wrong because an idle scan (nmap -sI) uses a zombie host to bounce scan traffic off, relying on IPID sequence analysis, not multiple random source IPs. Option B is wrong because a SYN flood is a denial-of-service attack that sends a high volume of SYN packets to overwhelm the target, not a stealth scanning technique to hide the tester's IP. Option D is wrong because a fragmentation attack (nmap -f) splits packets into smaller fragments to evade IDS/IPS signature detection, but does not spoof source IPs or use decoys.

323
MCQhard

An attacker has compromised a Linux machine and wants to hide a rootkit by replacing system binaries with trojaned versions. Which technique is being used to maintain persistent access while evading detection?

A.Log manipulation
B.Token impersonation
C.Steganography
D.Rootkit installation via binary replacement
AnswerD

Rootkit installation via binary replacement is a common and effective method for an attacker to maintain persistent access and hide their activities on a compromised Linux system. This technique involves replacing legitimate system binaries (e.g., `ls`, `ps`, `netstat`, `login`) with trojanized versions that execute their original function while simultaneously concealing malicious files, processes, or network connections. By subverting core system utilities, the rootkit can manipulate what the operating system reports, effectively making the attacker's presence invisible to standard monitoring tools.

Why this answer

Replacing system binaries (e.g., `ls`, `ps`, `netstat`) with trojaned versions is a classic rootkit technique. The rootkit intercepts system calls or filters output to hide its own processes, files, and network connections, allowing the attacker to maintain persistent access while evading detection by standard administrative tools.

Exam trap

EC-CEH often tests the distinction between hiding a rootkit (binary replacement) and covering tracks (log manipulation), causing candidates to confuse post-exploitation cleanup with the rootkit's evasion mechanism.

How to eliminate wrong answers

Option A is wrong because log manipulation (e.g., clearing `/var/log/auth.log`) covers tracks after an intrusion but does not involve replacing system binaries to hide a rootkit; it is a separate post-exploitation step. Option B is wrong because token impersonation is a Windows-specific privilege escalation technique (e.g., using `SeImpersonatePrivilege` to impersonate a user token) and does not apply to hiding rootkits on Linux via binary replacement. Option C is wrong because steganography hides data within other files (e.g., images or audio) for covert communication, not for replacing system binaries to maintain persistent access.

324
MCQmedium

During a penetration test, an analyst obtains a dump of password hashes from a Windows server. The hashes are in LM:NT format. The analyst wants to crack the NT portion using a brute-force attack on 8-character alphanumeric passwords. Which tool is BEST suited for this task?

A.Hashcat
B.John the Ripper
C.RainbowCrack
D.Ophcrack
AnswerA

Hashcat is the industry-standard password recovery tool, renowned for its unparalleled speed and efficiency in cracking various hash types, including NTLM, through highly optimized GPU-accelerated brute-force and dictionary attacks. Its ability to leverage modern graphics cards allows it to test billions of password candidates per second, making it the most effective choice for rapidly cracking password dumps obtained during a penetration test.

Why this answer

Hashcat is the best tool for this task because it is optimized for high-speed GPU-accelerated brute-force attacks, making it ideal for cracking 8-character alphanumeric NT hashes. It supports the LM:NT format natively and allows precise control over attack modes, including brute-force with custom character sets, which is essential for exhaustive enumeration of 62^8 possibilities.

Exam trap

CEH often tests the misconception that RainbowCrack or Ophcrack are suitable for brute-force attacks, when in fact they are primarily rainbow table tools, not brute-force engines, and are ineffective for exhaustive search without precomputed tables.

How to eliminate wrong answers

Option B (John the Ripper) is wrong because, while it can crack NT hashes, its brute-force performance is significantly slower than Hashcat on modern GPUs, and it lacks the same level of GPU optimization for high-speed attacks. Option C (RainbowCrack) is wrong because it relies on precomputed rainbow tables, not brute-force; it is designed for fast lookup attacks but cannot perform exhaustive brute-force on 8-character alphanumeric passwords without precomputed tables. Option D (Ophcrack) is wrong because it specializes in cracking LM hashes using rainbow tables, not NT hashes, and its brute-force capability is extremely limited and not suited for 8-character alphanumeric passwords.

325
MCQhard

A web server running IIS 8.5 is found to have WebDAV enabled with write permissions. Which attack is MOST likely to be successful against this configuration?

A.Cross-Site Request Forgery (CSRF)
B.SQL injection
C.File upload leading to remote code execution
D.Directory traversal
AnswerC

WebDAV provides HTTP methods like PUT and MKCOL, enabling clients to upload and manage files on the server. If WebDAV is enabled with write permissions and the server is misconfigured to allow execution of uploaded files (e.g., ASP, ASPX, PHP, or even compiled executables) within a web-accessible directory, an attacker can upload a malicious web shell or other executable code. Subsequently accessing this uploaded file through the web server will trigger its execution, granting the attacker remote code execution capabilities on the server.

Why this answer

WebDAV with write permissions allows attackers to upload files (e.g., web shells) to the server, leading to remote code execution.

326
MCQhard

A security analyst notices that their Nmap scan results show all ports as 'filtered' despite the target host being alive and responsive to ping. Which of the following is the MOST likely cause?

A.The analyst's machine has a misconfigured routing table
B.The target has a host-based firewall that drops all incoming traffic silently
C.The target is running a honeypot that mimics multiple services
D.The target is an idle host that does not respond to any traffic
AnswerB

When Nmap reports a port as "filtered," it means that the Nmap probe packets (e.g., SYN for TCP, ICMP for UDP) reached the target, but no response was received from the target host. This behavior is characteristic of a firewall, either host-based or network-based, configured to silently drop incoming traffic without sending an RST packet (for TCP) or an ICMP Port Unreachable message (for UDP). Such silent drops prevent Nmap from determining the port's true state (open or closed), leading to the "filtered" classification.

Why this answer

When an Nmap scan shows all ports as 'filtered', it indicates that the target is reachable (since ping succeeds) but the probe packets (e.g., SYN, ACK) are being dropped without any response. A host-based firewall configured to silently drop all incoming traffic is the most likely cause, as it prevents Nmap from receiving RST or SYN/ACK replies, leading to the 'filtered' state for every port.

Exam trap

The trap here is that candidates often confuse 'filtered' with 'closed' or 'open', or assume a host that responds to ping must have open ports, but a firewall can silently drop all inbound TCP/UDP probes while still allowing ICMP echo requests.

How to eliminate wrong answers

Option A is wrong because a misconfigured routing table on the analyst's machine would likely cause no response at all (including ping failure) or asymmetric routing issues, not a consistent 'filtered' state on all ports while ping succeeds. Option C is wrong because a honeypot mimicking multiple services would typically respond to probes (e.g., with SYN/ACK or banners) to attract attackers, resulting in 'open' or 'closed' port states, not 'filtered'. Option D is wrong because an idle host that does not respond to any traffic would not respond to ping either, contradicting the scenario where the target is alive and responsive to ping.

327
MCQeasy

Which of the following is a primary purpose of the SameSite cookie attribute in mitigating CSRF attacks?

A.To limit the cookie to a specific path
B.To encrypt the cookie value
C.To prevent the cookie from being sent in cross-origin requests, mitigating CSRF
D.To restrict the cookie to HTTPS connections only (Secure flag)
AnswerC

This statement is correct. The "SameSite" attribute is designed to prevent a browser from sending a cookie with requests initiated from a different origin than the site that set the cookie. By restricting the automatic inclusion of session cookies in cross-origin requests, it significantly mitigates Cross-Site Request Forgery (CSRF) attacks, where an attacker tricks a user's browser into sending an authenticated request to a vulnerable web application without their explicit consent. This defense ensures that sensitive actions require a same-site context.

Why this answer

SameSite cookie attribute (Strict, Lax, or None) controls when cookies are sent in cross-site requests. Setting SameSite to Lax or Strict prevents the browser from sending cookies on cross-site POST requests, thus mitigating CSRF.

328
MCQeasy

Which of the following tools is used to crack Windows LAN Manager (LM) and NTLM password hashes using rainbow tables?

A.Ophcrack
B.Hashcat
C.John the Ripper
D.Hydra
AnswerA

Ophcrack is a specialized, open-source password cracker specifically designed for Windows LM and NTLM hashes, making it the correct tool for this task. It excels by employing precomputed rainbow tables, which are large datasets of hash chains, to quickly reverse the hashing process for these particular Windows authentication hashes. This method significantly reduces the time required to find the original password compared to traditional brute-force attacks, especially for weaker LM hashes.

Why this answer

Ophcrack is specifically designed to crack Windows LM and NTLM hashes using precomputed rainbow tables. It is optimized for Windows password hashes and provides an efficient time-memory trade-off by looking up hashes in sorted tables.

Exam trap

EC-Council often tests the distinction between tools specialized for Windows hashes (Ophcrack) versus general-purpose rainbow table tools (RainbowCrack), leading candidates to confuse the two.

How to eliminate wrong answers

Option B (Hashcat) is wrong because it is a GPU-accelerated password recovery tool that uses brute-force, dictionary, or rule-based attacks, not precomputed rainbow tables. Option C (John the Ripper) is wrong because it is a general-purpose password cracker that relies on CPU-based attacks and does not natively use rainbow tables for LM/NTLM hashes. Option D (Hydra) is wrong because it is a network authentication brute-forcing tool for protocols like SSH, FTP, and HTTP, not a hash-cracking tool.

329
Multi-Selectmedium

Which TWO techniques are considered active reconnaissance? (Choose TWO.)

Select 2 answers
A.Using Google dorking to find exposed files
B.Querying Shodan for exposed devices
C.Port scanning with Nmap
D.Banner grabbing with Netcat
E.Performing a WHOIS lookup
AnswersC, D

Port scanning with Nmap is a quintessential active reconnaissance technique because it involves sending specially crafted packets directly to a target host. Nmap probes specific TCP or UDP ports to determine their state (open, closed, filtered) and identify running services. This direct interaction generates network traffic that the target's firewalls or intrusion detection systems can log, making it detectable and undeniably active.

Why this answer

Port scanning with Nmap (Option C) is active reconnaissance because it sends crafted packets (e.g., TCP SYN, UDP probes) directly to target systems and analyzes the responses to determine open ports, running services, and operating system details. Banner grabbing with Netcat (Option D) is also active reconnaissance as it establishes a TCP connection to a target service (e.g., HTTP, FTP) and reads the service banner, which involves direct interaction with the target. Both techniques generate detectable network traffic and can be logged by intrusion detection systems.

Exam trap

The trap here is that candidates confuse 'using a tool that sometimes performs active scanning' (like Shodan, which actively scans on its own) with the user's action being active; the key distinction is whether the user's query directly interacts with the target system.

330
Multi-Selecteasy

Which TWO of the following are types of malware analysis? (Select two.)

Select 2 answers
A.Static analysis
B.Memory analysis
C.Signature analysis
D.Dynamic analysis
E.Heuristic analysis
AnswersA, D

Static analysis involves dissecting malware binaries without executing them, examining the code, structure, and embedded resources. This process often includes disassembling or decompiling the executable, extracting strings, analyzing PE headers, and identifying imported/exported functions to infer potential malicious capabilities. Its primary goal is to understand the malware's design, identify obfuscation techniques, and predict its behavior before it ever runs, providing crucial initial insights into its functionality.

Why this answer

Static analysis involves examining malware without executing it, such as inspecting file headers, strings, and disassembled code. Dynamic analysis executes the malware in a controlled sandbox to observe its runtime behavior, including network traffic, registry changes, and process creation. Both are fundamental malware analysis methodologies recognized in CEH.

Exam trap

CEH often tests the distinction between analysis types (static/dynamic) and detection methods (signature/heuristic), causing candidates to confuse detection techniques with analysis methodologies.

331
MCQmedium

An organization wants to mitigate the impact of a DDoS attack that uses large volumes of UDP traffic to exhaust bandwidth. Which of the following techniques would be MOST effective?

A.Rate limiting on all ports
B.Deploying a scrubbing center
C.Blocking all UDP traffic
D.Implementing SYN cookies
AnswerB

Deploying a scrubbing center is a highly effective strategy for mitigating DDoS attacks, particularly those involving high-volume UDP floods. These specialized facilities act as an intermediary, diverting all incoming traffic through advanced analysis systems that inspect packet headers and payloads for known attack patterns and anomalies. Malicious traffic is then filtered out, while legitimate requests are forwarded to the organization's infrastructure, ensuring business continuity without disrupting genuine user access.

Why this answer

A scrubbing center is the most effective technique because it filters out malicious UDP traffic from legitimate traffic by analyzing packet characteristics, such as source IP reputation and payload patterns, before forwarding clean traffic to the target network. This approach preserves legitimate UDP services (e.g., DNS, VoIP) while absorbing volumetric attacks, unlike simpler methods that may block all UDP or fail to scale.

Exam trap

The trap here is that candidates often confuse rate limiting as a universal solution, but it fails against volumetric UDP floods because it cannot differentiate attack traffic from legitimate UDP services, whereas a scrubbing center provides intelligent traffic filtering at scale.

How to eliminate wrong answers

Option A is wrong because rate limiting on all ports would also throttle legitimate UDP traffic (e.g., DNS queries, streaming media) and cannot distinguish between attack and benign packets, leading to service degradation. Option C is wrong because blocking all UDP traffic would disrupt critical services like DNS resolution, DHCP, and VoIP, effectively causing a self-inflicted denial of service. Option D is wrong because SYN cookies are a TCP-specific mechanism designed to mitigate SYN flood attacks by encoding connection state in the initial sequence number; they have no effect on UDP traffic, which is connectionless.

332
MCQhard

During a penetration test, a tester discovers that the target switch's MAC address table is full, causing it to flood traffic out all ports. The tester then captures network traffic using Wireshark on the same segment. Which attack was the tester performing?

A.DNS spoofing
B.MAC flooding
C.Session hijacking
D.ARP poisoning
AnswerB

MAC flooding fills the switch's MAC address table, causing it to broadcast frames.

Why this answer

MAC flooding. When a switch's MAC address table is full, it can no longer learn new MAC addresses and enters a fail-open state, flooding all incoming frames out every port except the ingress port. This allows the tester to capture traffic destined for other hosts on the same VLAN by placing their NIC in promiscuous mode and using Wireshark, effectively performing a MAC flooding attack to turn the switch into a hub-like device.

Exam trap

The EC-CEH exam often tests the distinction between MAC flooding and ARP poisoning, where candidates mistakenly choose ARP poisoning because both involve traffic capture, but the key differentiator is that MAC flooding exploits a full CAM table, while ARP poisoning manipulates ARP caches without filling the switch's MAC table.

How to eliminate wrong answers

Option A is wrong because DNS spoofing involves corrupting DNS responses to redirect traffic to a malicious server, not exploiting a full MAC address table. Option C is wrong because session hijacking targets an active TCP session or application session token to take over an authenticated session, not by flooding a switch's CAM table. Option D is wrong because ARP poisoning (ARP spoofing) manipulates ARP caches to associate a malicious MAC with a legitimate IP, causing traffic to be sent to the attacker; while it also enables traffic capture, it does not rely on filling the switch's MAC address table to capacity.

333
Multi-Selectmedium

Which TWO tools are commonly used for ARP poisoning attacks?

Select 2 answers
A.Wireshark
B.Cain & Abel
C.tcpdump
D.Ettercap
E.Nmap
AnswersB, D

Cain & Abel is a well-known password recovery and network sniffing tool primarily designed for Microsoft Windows operating systems. Among its extensive features, it specifically incorporates robust ARP poisoning functionalities, allowing an attacker to perform Man-in-the-Middle (MITM) attacks by sending forged ARP replies to redirect network traffic. This enables the interception of data, including credentials, between targeted hosts on a local area network.

Why this answer

Cain & Abel and Ettercap are both dedicated ARP poisoning tools that manipulate the ARP cache of target devices to intercept traffic on a local network. Cain & Abel performs ARP poisoning to enable man-in-the-middle attacks, while Ettercap uses ARP spoofing to redirect packets between hosts. Both tools are explicitly listed in CEH exam objectives for network sniffing and MITM attacks.

Exam trap

The trap here is that candidates often confuse passive sniffing tools (like Wireshark or tcpdump) with active attack tools, assuming any network tool can perform ARP poisoning, but only tools specifically designed to send forged ARP packets (like Cain & Abel and Ettercap) can execute the attack.

334
MCQeasy

A security analyst wants to identify all live hosts on a network without generating excessive traffic. Which of the following techniques is MOST appropriate for this purpose?

A.Banner grabbing with Netcat
B.Full TCP connect scan on all ports
C.UDP scan on common ports
D.Ping sweep using ICMP echo requests
AnswerD

A ping sweep, also known as an ICMP sweep, is a highly efficient and low-traffic method for host discovery that involves sending ICMP echo request packets to a range of IP addresses. Any host that is live and configured to respond to ICMP will send an ICMP echo reply packet back to the sender. The receipt of these replies reliably indicates the presence of an active host on the network, making it a foundational and quick technique for initial network reconnaissance.

Why this answer

A ping sweep using ICMP Echo Requests (Type 8) is the most efficient method to identify live hosts on a network because it sends a single packet per target and listens for ICMP Echo Replies (Type 0). This generates minimal traffic compared to full port scans, making it ideal for initial reconnaissance without overwhelming the network or triggering intrusion detection systems.

Exam trap

The trap here is that candidates often confuse host discovery with service discovery, choosing a port-based scan (like TCP connect or UDP) because they think 'scanning' always involves ports, but the question explicitly asks for identifying live hosts with minimal traffic, which is the textbook purpose of a ping sweep.

How to eliminate wrong answers

Option A is wrong because banner grabbing with Netcat requires an active TCP connection to a specific port on a host, which is a post-discovery technique used to identify services, not to find live hosts, and it generates more traffic per host than a simple ping. Option B is wrong because a full TCP connect scan on all 65,535 ports per host would generate massive traffic (thousands of packets per host), defeating the goal of minimizing network load and being easily detected. Option C is wrong because a UDP scan on common ports sends datagrams that often receive no response (due to stateless nature or firewalls), making it unreliable for host discovery and still generating more traffic than a single ICMP packet per host.

335
Multi-Selecteasy

Which TWO of the following are commonly used to mitigate SQL injection vulnerabilities? (Select 2)

Select 2 answers
A.Stored procedures
B.Output encoding
C.Input validation
D.Parameterized queries
E.HTTPS encryption
AnswersA, D

Stored procedures, when implemented with parameterized inputs, offer a robust defense against SQL injection. By pre-compiling the SQL statements on the database server, they ensure that user-supplied data is treated strictly as data values, not executable code. This separation prevents malicious input from altering the intended query logic, effectively neutralizing injection attempts before execution.

Why this answer

Parameterized queries and stored procedures (when used correctly) prevent SQL injection by separating SQL logic from data.

336
MCQeasy

You are a penetration tester hired by a financial services company to assess the security of their external web application. The application is a customer portal hosted on a Linux server with Apache 2.4.6 and PHP 7.2. During reconnaissance, you discover that the server responds to HTTP OPTIONS requests and the Allow header includes PUT and DELETE methods. The application uses a MySQL database backend. You also find a file upload feature in the profile section that accepts JPEG images. While testing, you notice that uploading a file with a .php extension returns a '403 Forbidden' error, but uploading a file with .php5 or .phtml extension succeeds. The uploaded files are stored in /uploads/ directory. What should be your next step to escalate the attack?

A.Use the PUT method to upload a malicious file directly to the web root.
B.Upload a PHP web shell with .phtml extension and access it via the /uploads/ directory to execute commands.
C.Exploit the IIS WebDAV vulnerability to execute commands.
D.Attempt SQL injection in the login form to extract database credentials.
AnswerB

This approach leverages a common file upload vulnerability bypass technique. By using a '.phtml' extension, which Apache servers often interpret as PHP, the attacker can circumvent typical blacklist filters that block '.php' files. Once uploaded to an accessible directory like '/uploads/', the web shell can be requested, allowing the attacker to execute arbitrary commands on the server, achieving remote code execution.

Why this answer

The server allows file uploads with .phtml extension, which Apache processes as PHP due to its configuration. Uploading a PHP web shell with .phtml extension to the /uploads/ directory and accessing it directly allows command execution, escalating the attack. This bypasses the 403 Forbidden restriction on .php files while leveraging the existing upload functionality.

Exam trap

The trap here is that candidates may assume PUT method (Option A) is the primary escalation path because it is listed in the Allow header, but they overlook that the file upload feature with .phtml extension is a confirmed, working vector that directly leads to code execution.

How to eliminate wrong answers

Option A is wrong because the PUT method, while listed in the Allow header, typically requires WebDAV to be enabled on Apache, and direct PUT to web root is often restricted by server configuration or requires authentication; it is not a reliable escalation path without further evidence. Option C is wrong because IIS WebDAV vulnerability is specific to Microsoft IIS servers, not Apache on Linux; the server is running Apache 2.4.6 on Linux, so this option is irrelevant. Option D is wrong because SQL injection in the login form is a separate attack vector that may be possible but is not the immediate next step given the confirmed file upload vulnerability with .phtml extension; the question asks for escalation based on the discovered upload flaw.

337
MCQhard

A security analyst observes that an Nmap SYN scan against a target network returns all ports as 'filtered'. The analyst suspects an IDS/IPS is dropping inbound SYN packets. Which Nmap technique would MOST likely bypass this detection while still identifying open ports?

A.Enable IP fragmentation with the -f flag
B.Use the -sU flag for UDP scanning
C.Use the -sT flag for a TCP connect scan
D.Increase scanning speed with -T5
AnswerA

Fragmentation can help evade detection by splitting the SYN packet across multiple fragments.

Why this answer

When an IDS/IPS drops inbound SYN packets, a standard SYN scan (-sS) is detected because the probe packets are easily recognized. Enabling IP fragmentation with the -f flag splits the TCP header across multiple fragments, making it harder for the IDS/IPS to reassemble and inspect the full packet, thus potentially bypassing the filter while still allowing Nmap to determine open ports based on responses.

Exam trap

The trap here is that candidates often think increasing speed (-T5) or using a full connect scan (-sT) makes scanning stealthier, when in fact fragmentation (-f) is the classic evasion technique for bypassing packet filters and IDS/IPS that inspect full packets.

How to eliminate wrong answers

Option B is wrong because UDP scanning (-sU) sends UDP datagrams, not SYN packets, and would not bypass a filter that drops inbound SYN packets; it also does not help identify open TCP ports. Option C is wrong because a TCP connect scan (-sT) completes the full three-way handshake, which still uses SYN packets and is even more detectable than a SYN scan, not less. Option D is wrong because increasing scanning speed with -T5 makes the scan more aggressive and noisy, which is more likely to trigger IDS/IPS alerts rather than bypass them.

338
MCQhard

An attacker intercepts a TLS-encrypted session and attempts to force the client and server to use a weaker cipher suite. Which type of attack is being performed?

A.Man-in-the-middle (MITM) attack
B.Birthday attack
C.Replay attack
D.Downgrade attack
AnswerD

A Downgrade attack specifically involves an attacker actively manipulating the TLS handshake process between a client and server. The attacker forces the communication parties to negotiate and use an older, less secure protocol version or weaker cipher suite than they would normally prefer or support. This significantly reduces the cryptographic strength of the session, making it easier for the attacker to decrypt intercepted data.

Why this answer

A downgrade attack tricks the communicating parties into negotiating a less secure version of TLS or a weaker cipher suite, making it easier for the attacker to break the encryption.

339
MCQhard

A web application takes a URL from user input and fetches the content to display on the page. An attacker submits a URL pointing to an internal service like http://localhost:8080/admin. The server retrieves the internal resource and returns it. What is this attack?

A.Cross-Site Scripting (XSS)
B.Server-Side Request Forgery (SSRF)
C.Directory Traversal
D.Remote File Inclusion (RFI)
AnswerB

Server-Side Request Forgery (SSRF) occurs when a web application is coerced into making requests to an arbitrary domain specified by the attacker, often to internal systems or services that are not directly accessible from the internet. By manipulating a user-supplied URL parameter, an attacker can trick the vulnerable server into fetching data from internal network resources, cloud metadata APIs, or other services, thereby exposing sensitive information or enabling further attacks. This directly matches the scenario described.

Why this answer

Server-Side Request Forgery (SSRF) occurs when a server makes requests to internal resources based on user-supplied URLs.

340
MCQmedium

During a penetration test, a tester runs 'dnsrecon -d example.com -t axfr' and receives a full list of DNS records. What does this indicate about the target's DNS configuration?

A.The DNS server has DNSSEC enabled
B.The DNS server allows recursive queries
C.The DNS server allows zone transfers from any host
D.The DNS server is authoritative for the domain
AnswerC

The `dnsrecon` tool, when used with the `-d` flag, attempts to perform a zone transfer (AXFR) from the specified domain's DNS servers. A successful execution, as implied by the question context, indicates that the DNS server is configured to permit full zone transfers to any requesting host, including unauthorized external entities. This represents a significant security misconfiguration, as it exposes sensitive network topology and host information.

Why this answer

The 'dnsrecon -d example.com -t axfr' command performs a DNS zone transfer (AXFR) request. Receiving a full list of DNS records indicates that the target DNS server is misconfigured to allow zone transfers from any host, which exposes the entire DNS zone data (including internal hostnames and IP addresses) to unauthorized parties. This is a critical information disclosure vulnerability.

Exam trap

The trap here is that candidates confuse 'authoritative' with 'vulnerable' — being authoritative is normal, but allowing unrestricted zone transfers is the misconfiguration; EC-Council often tests this by making option D sound correct because the server is authoritative, but the real issue is the lack of access control on the AXFR query.

How to eliminate wrong answers

Option A is wrong because DNSSEC (DNS Security Extensions) provides data integrity and authentication via digital signatures, but it does not control or prevent zone transfers; a server can have DNSSEC enabled and still allow unauthorized AXFR. Option B is wrong because recursive queries allow the DNS server to resolve queries for external domains on behalf of clients, which is a separate setting (often controlled by 'allow-recursion') and not directly related to zone transfer permissions. Option D is wrong because being authoritative for a domain means the server holds the official zone data for that domain, which is normal and expected; the security issue is not that it is authoritative, but that it allows zone transfers from any host without restriction.

341
MCQmedium

Which type of malware is characterized by modifying its own code to evade signature-based detection, often changing its appearance each time it replicates?

A.Polymorphic virus
B.Trojan horse
C.Macro virus
D.Boot sector virus
AnswerA

A polymorphic virus is specifically designed to evade detection by antivirus software through continuous modification of its own code. Each new infection generates a unique, encrypted version of the virus body, coupled with a varying decryption routine. This constant mutation of its signature makes it extremely challenging for traditional signature-based detection systems to identify and quarantine, directly aligning with the characteristic of modifying its own code.

Why this answer

A polymorphic virus is designed to change its code signature each time it replicates, using a mutation engine to generate new decryption routines or code patterns. This behavior allows it to evade signature-based detection by antivirus software, which relies on static patterns to identify threats.

Exam trap

A common trap in CEH exams is confusing polymorphic malware (which changes its decryption routine) with metamorphic malware (which rewrites its entire code). Polymorphic malware uses a mutation engine but retains a fixed code body, while metamorphic malware changes its entire code structure.

How to eliminate wrong answers

Option B is wrong because a Trojan horse disguises itself as legitimate software to trick users into installing it, but it does not inherently modify its own code to evade detection. Option C is wrong because a macro virus infects documents by embedding malicious macros, and while it can replicate, it typically does not change its code signature polymorphically. Option D is wrong because a boot sector virus infects the master boot record of a storage device and does not employ code mutation to alter its appearance on each replication.

342
MCQmedium

An organization receives an email that appears to be from the CEO, urgently requesting that the recipient wire funds to a new vendor. The email contains the CEO's name and title but the sender address is slightly misspelled. Which type of social engineering attack is this?

A.Pretexting
B.Whaling
C.Vishing
D.Spear phishing
AnswerB

Whaling is a highly targeted form of phishing specifically aimed at senior executives, C-level management, or other high-profile individuals within an organization. These attacks are meticulously crafted and personalized, often leveraging publicly available information to create convincing emails that appear to come from a legitimate, trusted source, such as a legal firm or a high-ranking internal contact. The objective is typically to trick the executive into authorizing large wire transfers, revealing sensitive corporate data, or granting access to critical systems. The scenario describes an email likely targeting a high-level individual, making whaling the most precise classification.

Why this answer

This is a whaling attack because the attacker impersonates a high-profile executive (the CEO) to deceive the recipient into transferring funds. Whaling is a subtype of spear phishing that specifically targets individuals with authority or financial access, often by spoofing a senior executive's email address. In this scenario, the CEO's identity is used to exploit trust and urgency, making it a whaling attack.

Exam trap

The trap here is that candidates may choose 'Spear phishing' because they recognize it as a targeted email attack, but fail to distinguish that 'Whaling' is the specific subtype reserved for high-level executives, which is the key differentiator in CEH exam questions.

How to eliminate wrong answers

Option A (Pretexting) is wrong because pretexting involves creating a fabricated scenario or false identity to obtain information, not sending a spoofed email impersonating a specific executive. Option C (Vishing) is wrong because vishing is a voice-based social engineering attack conducted over the phone (VoIP), not via email. Option D (Spear phishing) is wrong because while this attack is a type of spear phishing, the term 'whaling' is the more specific and correct classification when the target is a high-ranking executive like the CEO.

343
MCQeasy

Which Google dork would a penetration tester use to find login pages of websites that have 'admin' in the URL?

A.site:admin login
B.filetype:pdf admin login
C.intitle:"login" inurl:admin
D.inurl:"admin" inurl:"login"
AnswerD

This dork effectively leverages the `inurl:` operator, which specifically restricts search results to pages where the specified keyword appears within the URL string. By combining `inurl:"admin"` and `inurl:"login"`, the search precisely targets web pages that contain both "admin" and "login" within their URL paths. This combination is highly effective for identifying administrative login interfaces, as these keywords frequently appear together in the URLs of such sensitive portals.

Why this answer

The Google dork `inurl:"admin" inurl:"login"` specifically searches for pages where both 'admin' and 'login' appear in the URL. This is a precise way to find login pages on administrative interfaces, as it targets URLs containing both terms, which is a common pattern for admin login portals.

Exam trap

The trap here is that candidates often choose `intitle:"login" inurl:admin` (Option C) thinking it's more comprehensive, but they overlook that many admin login pages do not have 'login' in the HTML title tag, making the `intitle:` operator too restrictive for this specific goal.

How to eliminate wrong answers

Option A is wrong because `site:admin login` is not a valid Google dork; `site:` requires a domain name, not a keyword, and 'admin login' as a search phrase would just match pages containing those words anywhere, not specifically in the URL. Option B is wrong because `filetype:pdf admin login` restricts results to PDF files, which is irrelevant for finding login pages (typically HTML/ASPX/PHP), and the terms 'admin' and 'login' are searched in the page content, not the URL. Option C is wrong because `intitle:"login" inurl:admin` searches for pages with 'login' in the title and 'admin' in the URL, but this misses pages where 'login' is only in the URL (not the title), which is common for many admin login pages.

344
Drag & Dropmedium

Drag and drop the steps to set up a reverse shell using Netcat into the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

In a reverse shell using Netcat, the correct sequence is: first, the attacker sets up a listener on a chosen port; second, the victim executes a command that connects back to the attacker's listener; third, the attacker gains a shell on the victim machine; fourth, the attacker executes commands; and finally, cleanup is performed to close the connection. This order ensures the listener is ready before the victim connects, and that the shell is operational before executing any commands or terminating the session.

345
MCQeasy

A security analyst receives an alert indicating that a workstation is sending outbound connections to a known malicious IP address. The analyst suspects a Trojan. Which tool is BEST for performing dynamic analysis of the suspicious binary?

A.VirusTotal
B.Sandbox
C.String analysis
D.PEiD
AnswerB

A sandbox provides a secure, isolated environment where suspicious binaries can be executed and observed without risking the host system. It meticulously records all dynamic behaviors, including file system modifications, registry changes, network connections, process injections, and API calls. This controlled execution allows security analysts to understand the malware's true intent and operational capabilities in real-time.

Why this answer

Dynamic analysis involves executing the suspicious binary in a controlled environment to observe its runtime behavior, such as outbound connections, registry changes, and file system modifications. A sandbox provides an isolated environment specifically designed for this purpose, allowing the analyst to safely monitor the Trojan's actions without risking the production network. This makes it the best choice for analyzing the workstation's outbound connections to a known malicious IP address.

Exam trap

EC-Council often tests the distinction between static and dynamic analysis, trapping candidates who confuse tools like VirusTotal or PEiD (static) with sandboxing (dynamic) when the question explicitly requires observing runtime behavior such as outbound connections.

How to eliminate wrong answers

Option A is wrong because VirusTotal is a static analysis tool that checks file hashes against known malware signatures using multiple antivirus engines; it does not execute the binary to observe runtime behavior like outbound connections. Option C is wrong because string analysis is a static analysis technique that extracts readable text from the binary (e.g., IP addresses, API calls) but does not involve execution, so it cannot reveal dynamic behavior such as actual network connections. Option D is wrong because PEiD is a static analysis tool used to detect packers, compilers, or cryptors in PE files; it does not execute the binary and cannot observe runtime activities like outbound connections.

346
Multi-Selectmedium

Which TWO of the following are examples of application-layer DDoS attacks? (Choose two.)

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

Slowloris is an application-layer attack that consumes server resources by keeping many connections open.

Why this answer

Slowloris is an application-layer DDoS attack that works by opening multiple HTTP connections to a target web server and keeping them alive indefinitely by sending partial HTTP requests. This exhausts the server's connection pool, preventing legitimate users from connecting. It specifically targets the HTTP protocol at Layer 7, making it an application-layer attack.

Exam trap

The trap here is that candidates often confuse transport-layer attacks (like SYN floods and UDP floods) with application-layer attacks, because both can cause denial of service, but only application-layer attacks target specific protocols like HTTP, DNS, or SMTP at Layer 7.

347
MCQhard

A forensic analyst examines a system infected with malware that displays ransomware notes and encrypts files. The analyst uses a sandbox to observe behavior. During analysis, the malware contacts a C2 server and downloads additional payloads. Which type of malware analysis is being performed?

A.Dynamic analysis
B.Static analysis
C.Network analysis
D.Code analysis
AnswerA

Dynamic analysis involves executing the malware within a controlled, isolated environment, such as a sandbox or virtual machine, to observe its real-time behavior. This method allows forensic analysts to meticulously document system changes, process interactions, file modifications, and network communications initiated by the malicious code as it runs. It is crucial for understanding the full operational impact and capabilities of sophisticated threats.

Why this answer

Dynamic analysis involves executing the malware in a controlled environment (sandbox) to observe its runtime behavior, such as contacting a C2 server and downloading additional payloads. This contrasts with static analysis, which examines the code without execution. The scenario explicitly describes observing behavior during execution, confirming dynamic analysis.

Exam trap

EC-CEH often tests the distinction between dynamic and static analysis by describing runtime behavior (like C2 contact) and expecting candidates to recognize that only dynamic analysis involves executing the sample in a sandbox. A common mistake is to select 'network analysis' because the malware contacts a C2 server, but network analysis is a subset of dynamic analysis; the question specifically emphasizes sandbox execution.

How to eliminate wrong answers

Option B is wrong because static analysis examines the malware's code or structure without executing it, such as disassembling or analyzing file headers, not observing runtime behavior like C2 communication. Option C is wrong because network analysis focuses specifically on capturing and inspecting network traffic (e.g., using Wireshark) to identify communication patterns, but the question describes a broader behavioral observation in a sandbox, not just network traffic. Option D is wrong because code analysis is a subset of static analysis that involves reviewing source or binary code, not executing the malware to observe its actions.

348
MCQeasy

Which of the following tools is specifically designed to crack Windows LAN Manager (LM) and NTLM hashes using rainbow tables?

A.Hashcat
B.RainbowCrack
C.John the Ripper
D.Ophcrack
AnswerD

Ophcrack is a dedicated and highly effective password cracker specifically designed to recover Windows LM and NTLM hashes by leveraging precomputed rainbow tables. It comes with pre-generated tables optimized for these hash types, allowing for very fast lookups and password recovery, even from live systems or SAM files. Its primary strength lies in its specialized focus and efficient implementation of rainbow table technology for Windows authentication credentials.

Why this answer

Ophcrack is specifically designed to crack Windows LM and NTLM hashes using precomputed rainbow tables. It leverages the time-memory trade-off technique to rapidly reverse these hashes without brute-forcing, making it the correct choice for this targeted task.

Exam trap

The trap here is that candidates often confuse RainbowCrack (a generic rainbow table tool) with Ophcrack (which is specifically designed for Windows LM/NTLM hashes), leading them to select RainbowCrack despite Ophcrack being the correct answer due to its Windows-specific focus.

How to eliminate wrong answers

Option A is wrong because Hashcat is a general-purpose password recovery tool that uses GPU acceleration and supports many hash types, but it is not specifically designed for rainbow table attacks; it primarily uses brute-force, dictionary, and rule-based attacks. Option B is wrong because RainbowCrack is a generic rainbow table implementation that can crack various hash types, but it is not specifically tailored to Windows LM/NTLM hashes and lacks the integrated Windows-focused features of Ophcrack. Option C is wrong because John the Ripper is a versatile password cracking tool that supports many hash formats, but it does not natively use rainbow tables; its primary methods are dictionary and brute-force attacks.

349
MCQmedium

A penetration tester uses the tool 'ScoutSuite' against an AWS target. Which of the following BEST describes the purpose of this tool?

A.Enumerate IAM users and roles for privilege escalation
B.Perform automated penetration testing of web applications
C.Exploit vulnerabilities in cloud services
D.Audit cloud infrastructure for misconfigurations and compliance
AnswerD

ScoutSuite's core functionality involves programmatically fetching extensive configuration data from various cloud services, including AWS S3, EC2, IAM, and Security Groups, through API interactions. It then meticulously analyzes this collected data against a robust set of predefined security best practices and compliance benchmarks. This process culminates in a comprehensive, human-readable report highlighting critical misconfigurations such as publicly exposed storage buckets, overly permissive IAM policies, unencrypted resources, or unpatched instances, thereby providing a clear overview of the cloud environment's security posture.

Why this answer

ScoutSuite is an open-source multi-cloud security auditing tool that assesses cloud environments (AWS, Azure, GCP) by scanning for misconfigurations and compliance violations. It does not perform exploitation or penetration testing; instead, it checks for issues like overly permissive security groups, unencrypted S3 buckets, or unused IAM roles, aligning with option D's description of auditing cloud infrastructure for misconfigurations and compliance.

Exam trap

EC-Council often tests the distinction between auditing and exploitation, so the trap here is that candidates confuse 'auditing for misconfigurations' with 'exploiting vulnerabilities,' leading them to choose option C, even though ScoutSuite is purely a read-only assessment tool.

How to eliminate wrong answers

Option A is wrong because ScoutSuite does not specifically enumerate IAM users and roles for privilege escalation; it audits all cloud resources for misconfigurations, and while it may report IAM issues, its primary purpose is not targeted enumeration for privilege escalation. Option B is wrong because ScoutSuite is not a web application penetration testing tool; it focuses on cloud infrastructure configuration, not web application vulnerabilities like SQL injection or XSS. Option C is wrong because ScoutSuite does not exploit vulnerabilities; it is a read-only auditing tool that identifies misconfigurations without performing any exploitation actions.

350
Multi-Selectmedium

Which TWO techniques are commonly used for privilege escalation on Linux systems? (Select two.)

Select 2 answers
A.Kernel exploits
B.SUID/GUID abuse
C.Token impersonation
D.DLL hijacking
E.Pass-the-hash
AnswersA, B

Exploiting kernel vulnerabilities to gain root.

Why this answer

Kernel exploits (A) are a common privilege escalation technique on Linux because they target vulnerabilities in the kernel itself, allowing an attacker to execute arbitrary code with root privileges. By exploiting flaws such as buffer overflows or race conditions in kernel modules, an attacker can elevate from a low-privileged user to full root access. This is a classic method because the kernel runs with the highest system privileges, and a successful exploit bypasses all user-level security controls.

Exam trap

EC-Council often tests the distinction between Windows-specific and Linux-specific privilege escalation techniques, and the trap here is that candidates may confuse token impersonation or pass-the-hash as cross-platform methods, when they are strictly tied to Windows authentication and security models.

351
Multi-Selecteasy

Which THREE of the following are password cracking techniques? (Select 3)

Select 3 answers
A.Dictionary attack
B.Brute-force attack
C.Phishing
D.Steganography
E.Rainbow table attack
AnswersA, B, E

Uses a wordlist to guess passwords.

Why this answer

A dictionary attack is a password cracking technique where an attacker uses a precompiled list of likely passwords (a dictionary file) to attempt authentication against a target system. It relies on the fact that many users choose common words or phrases as passwords, making it effective against weak passwords but ineffective against strong, random ones.

Exam trap

The trap here is that candidates may confuse password cracking techniques with broader attack categories like social engineering (phishing) or data hiding (steganography), which are distinct concepts in the CEH exam's enumeration and system hacking domain.

352
Multi-Selecthard

Which THREE of the following are effective countermeasures against evil twin attacks in wireless networks? (Select THREE.)

Select 3 answers
A.Implementing client-side certificate validation for network authentication
B.Using WPA3-Enterprise with 802.1X authentication
C.Enabling MAC address filtering on the AP
D.Disabling SSID broadcast on the legitimate AP
E.Using a VPN over the wireless connection
AnswersA, B, E

Implementing client-side certificate validation for network authentication is a robust countermeasure because it mandates that the client verify the identity of the access point (AP) using a pre-installed, trusted digital certificate. If a rogue AP, such as an evil twin, attempts to impersonate the legitimate network, it will lack the correct certificate, causing the client to reject the connection and preventing users from inadvertently connecting to the malicious network.

Why this answer

Evil twin attacks involve a rogue AP impersonating a legitimate one. Countermeasures include using WPA3-Enterprise with 802.1X for mutual authentication, implementing client-side certificate validation, and using VPNs to encrypt traffic even over rogue APs.

353
MCQmedium

An organization experiences a DDoS attack where the attacker sends a flood of UDP packets to a server, causing it to become unresponsive. The packets appear to come from many different source IP addresses and are directed to random high-numbered ports. Which type of DDoS attack is this?

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

A UDP flood attack involves sending a high volume of User Datagram Protocol (UDP) datagrams to random high-numbered ports on a target server. The server then attempts to identify which application, if any, is listening on each port. When no application is found, the server typically generates an ICMP "Destination Unreachable" packet in response. This continuous process consumes significant server resources, including CPU cycles and outgoing network bandwidth, leading to service degradation or denial for legitimate users, precisely matching the described scenario.

Why this answer

A UDP flood attack works by overwhelming a target server with a high volume of UDP packets sent to random high-numbered ports. The server checks each port for a listening application, and when none is found, it responds with ICMP Destination Unreachable messages, consuming CPU and bandwidth until the server becomes unresponsive. The use of spoofed source IP addresses makes it difficult to filter the attack traffic based on source alone.

Exam trap

The trap here is that candidates confuse a UDP flood with a SYN flood because both involve flooding and spoofed IPs, but the key differentiator is the transport layer protocol (UDP vs. TCP) and the use of random high-numbered ports versus specific TCP ports.

How to eliminate wrong answers

Option A is wrong because an ICMP flood uses ICMP echo request (ping) packets, not UDP packets, and targets the network layer rather than random high-numbered UDP ports. Option C is wrong because a SYN flood exploits the TCP three-way handshake by sending incomplete SYN segments, not UDP packets, and targets specific TCP ports. Option D is wrong because a Smurf attack sends ICMP echo requests to a network's broadcast address with a spoofed victim IP, causing all hosts to reply to the victim, which is an ICMP-based amplification attack, not a direct UDP flood to random ports.

354
MCQhard

An attacker successfully escalates privileges on a Windows server using a known vulnerability in the Print Spooler service (PrintNightmare). Which type of privilege escalation does this represent?

A.Local exploit in a service
B.DLL hijacking
C.SUID abuse
D.Token impersonation
AnswerA

A local exploit in a service directly targets vulnerabilities within a running Windows service, such as the Print Spooler. These services often operate with elevated privileges, like SYSTEM, and a successful exploit can allow an attacker to execute arbitrary code with those higher permissions. This method directly leverages a flaw in the service's code or configuration to escalate privileges from a low-privileged user account. PrintNightmare is a prime example, exploiting a vulnerability in the Print Spooler service to achieve SYSTEM-level access.

Why this answer

The PrintNightmare vulnerability (CVE-2021-34527) allows an attacker to execute arbitrary code with SYSTEM privileges via the Windows Print Spooler service. Since the attacker exploits a vulnerability in a running service (spoolsv.exe) to elevate from a lower-privileged user to SYSTEM, this is a classic local exploit in a service. The attack does not involve hijacking DLLs, abusing SUID bits (a Unix concept), or impersonating tokens, making option A the correct classification.

Exam trap

The trap here is that candidates confuse 'service exploitation' with 'token impersonation' because both can achieve SYSTEM privileges, but PrintNightmare is specifically a service-level exploit, not a token manipulation attack.

How to eliminate wrong answers

Option B (DLL hijacking) is wrong because PrintNightmare exploits a vulnerability in the Print Spooler service itself, not by placing a malicious DLL in a path that the service loads. Option C (SUID abuse) is wrong because SUID is a Unix/Linux permission mechanism, not applicable to Windows privilege escalation. Option D (Token impersonation) is wrong because while token manipulation can be used in some privilege escalation techniques, PrintNightmare directly exploits a service vulnerability to gain SYSTEM access, not by stealing or impersonating an existing token.

355
MCQhard

A tester sends the following payload to a web application: %3Cscript%3Ealert('XSS')%3C/script%3E. The application echoes back the decoded payload in the response without sanitization. This behavior is typical of which type of vulnerability?

A.HTTP Response Splitting
B.DOM-based XSS
C.Stored XSS
D.Reflected XSS
AnswerD

Reflected Cross-Site Scripting, or Non-Persistent XSS, occurs when a malicious script, often embedded in a URL parameter, is immediately returned by the web server in its HTTP response without proper sanitization. The browser then interprets and executes this unsanitized script as part of the legitimate page content. The payload "><script>alert('XSS')</script>" is characteristic of a reflected attack, designed to break out of an HTML context and execute client-side code upon immediate reflection.

Why this answer

The payload is URL-encoded HTML and is decoded and reflected, indicating reflected XSS.

356
MCQmedium

During a reconnaissance phase, a tester uses `dnsrecon -d example.com -t axfr`. What specific DNS query is being attempted?

A.A subdomain brute-force
B.A zone transfer request
C.A reverse DNS lookup
D.A SRV record enumeration
AnswerB

When dnsrecon is executed with only the domain specified, such as dnsrecon -d example.com, its default behavior is to attempt a DNS zone transfer (AXFR). This process requests a full copy of the DNS zone file from the authoritative name server. If the server is misconfigured to allow unauthorized zone transfers, the tester can obtain a comprehensive list of all hostnames, IP addresses, and other DNS records for the domain, providing extensive reconnaissance data.

Why this answer

The `-t axfr` flag in `dnsrecon` specifies a zone transfer request (AXFR). This query attempts to retrieve the entire DNS zone file from a nameserver, which can reveal all DNS records for the domain. A successful zone transfer is a critical misconfiguration because it exposes internal network topology and hostnames.

Exam trap

The trap here is that candidates may confuse `-t axfr` with other reconnaissance techniques like brute-forcing or record enumeration, but the CEH exam specifically tests the exact command flag for zone transfers.

How to eliminate wrong answers

Option A is wrong because a subdomain brute-force uses a wordlist to guess subdomains, not the AXFR query type. Option C is wrong because a reverse DNS lookup queries an IP address for a PTR record, not a domain for a zone transfer. Option D is wrong because SRV record enumeration uses the `-t srv` flag or similar, not `-t axfr`, which is specific to zone transfers.

357
MCQmedium

A security team wants to mitigate a DNS amplification DDoS attack. Which of the following techniques would be MOST effective in preventing the attack from leveraging open DNS resolvers?

A.Deploy a web application firewall
B.Disable recursion on DNS servers for external queries
C.Use anycast routing for DNS servers
D.Implement rate limiting on DNS responses
AnswerB

Disabling recursion on DNS servers for external queries is the most effective direct mitigation against DNS amplification attacks. By configuring a DNS server to only perform recursive lookups for internal, trusted clients and to only respond authoritatively for its own zones to external requests, it prevents the server from acting as an open recursive resolver. This crucial configuration change eliminates the server's ability to be exploited by attackers to amplify small queries into large responses directed at a victim, thereby removing it as a participant in such attacks.

Why this answer

Disabling recursion on DNS servers for external queries prevents them from acting as open resolvers. In a DNS amplification attack, the attacker sends a small query with a spoofed source IP to an open resolver, which then sends a large response to the victim. By blocking recursion for external clients, the server will only answer for domains it authoritatively hosts, thus eliminating the amplification vector.

Exam trap

The trap here is that candidates confuse rate limiting or anycast as effective defenses, but the CEH exam specifically tests that the root cause of DNS amplification is open recursion, and disabling recursion is the most direct mitigation.

How to eliminate wrong answers

Option A is wrong because a web application firewall (WAF) operates at Layer 7 and is designed to filter HTTP/HTTPS traffic, not DNS queries (UDP port 53), so it cannot mitigate DNS amplification attacks. Option C is wrong because anycast routing improves availability and distributes traffic across multiple DNS servers but does not prevent them from being used as open resolvers; an anycast server with recursion enabled can still be exploited. Option D is wrong because rate limiting on DNS responses reduces the volume of traffic from a single server but does not stop the attacker from using many open resolvers to amplify traffic; the core vulnerability is recursion, not response rate.

358
MCQmedium

A security analyst notices that the web application returns different response times when a valid username is submitted versus an invalid one during login. Which type of vulnerability is likely being exploited?

A.Time-based SQL injection
B.Reflected XSS
C.Blind boolean-based SQL injection
D.CSRF
AnswerA

Time-based SQL injection is the correct answer because the scenario explicitly describes inferring information based on *timing differences* in the web application's response. This technique is employed when direct error messages or content changes are not visible to the attacker. Attackers inject SQL queries containing database-specific time-delay functions (e.g., SLEEP() in MySQL, WAITFOR DELAY in MS SQL Server) within a conditional statement. If the injected condition evaluates to true, the database pauses for a specified duration, causing a noticeable delay in the application's response, thereby confirming the truthfulness of the condition and allowing data exfiltration character by character.

Why this answer

Time-based SQL injection involves injecting SQL code that causes the database to pause if a condition is true, allowing an attacker to infer information based on response times. The observed difference in response times for valid vs. invalid usernames is characteristic of this technique.

359
MCQmedium

An ethical hacker needs to crack a set of NTLM hashes obtained from a Windows system. Which tool would be MOST efficient for performing a dictionary attack with hybrid rules?

A.John the Ripper
B.Hashcat
C.Ophcrack
D.RainbowCrack
AnswerB

Hashcat is the industry-standard password recovery tool, highly optimized for cracking NTLM hashes due to its unparalleled support for GPU acceleration. It efficiently leverages modern graphics cards to perform millions of guesses per second, significantly reducing cracking time. Furthermore, Hashcat offers a wide array of attack modes, including dictionary, brute-force, mask, and sophisticated hybrid attacks, making it exceptionally versatile and fast for obtaining NTLM hashes.

Why this answer

Hashcat is the most efficient tool for performing a dictionary attack with hybrid rules because it is GPU-accelerated, supports the NTLM hash mode (1000), and allows the application of rule-based mutations (e.g., appending digits or special characters) directly to dictionary words. Its speed and flexibility in handling large wordlists with complex rule sets make it superior for cracking NTLM hashes in a professional penetration test.

Exam trap

EC-Council often tests the misconception that John the Ripper is the best all-around password cracker, but for GPU-accelerated hybrid dictionary attacks on NTLM hashes, Hashcat is the industry standard due to its speed and rule engine.

How to eliminate wrong answers

Option A is wrong because John the Ripper, while capable of dictionary and hybrid attacks, is primarily CPU-based and significantly slower than Hashcat for large-scale NTLM cracking, making it less efficient for this specific task. Option C is wrong because Ophcrack is designed specifically for LM and NTLM hashes using rainbow tables, not for dictionary attacks with hybrid rules; it lacks rule-based mutation capabilities. Option D is wrong because RainbowCrack is a tool for precomputed rainbow table attacks, not for dictionary attacks with hybrid rules; it requires tables to be generated beforehand and cannot apply real-time rule mutations.

360
MCQhard

An attacker wants to perform a CSRF attack against a banking application. The application uses SameSite cookies set to 'Strict'. The attacker hosts a malicious page on their own domain. When the victim visits the malicious page, which of the following statements is TRUE regarding the CSRF attack?

A.The attack will succeed because cookies are sent regardless of SameSite settings.
B.The attack will succeed because the attacker can bypass SameSite using GET requests.
C.The attack will fail because CSRF requires POST requests and the malicious page only uses GET.
D.The attack will fail because the browser will not include the session cookie with the cross-origin request.
AnswerD

This statement accurately describes how SameSite=Strict thwarts a CSRF attempt. When a user visits a malicious website, and that site tries to forge a request to the banking application, the browser recognizes this as a cross-origin request. Because the banking application's session cookie is configured with SameSite=Strict, the browser will deliberately omit this crucial authentication cookie from the outgoing request, rendering the forged request unauthenticated and ineffective.

Why this answer

SameSite=Strict prevents cookies from being sent on cross-site requests, effectively blocking CSRF attacks if the attacker cannot control the origin.

361
MCQeasy

A user reports that their system has become very slow and numerous pop-up ads appear even when browsing is not active. Which type of malware is MOST likely installed?

A.Adware
B.Ransomware
C.Keylogger
D.Spyware
AnswerA

Adware is specifically designed to generate revenue by displaying unsolicited advertisements, often in the form of pop-up windows, banners, or browser redirects. This constant barrage of ads, coupled with the background processes required to deliver them, significantly consumes system resources like CPU, RAM, and network bandwidth. Consequently, users experience a noticeable degradation in system performance, manifesting as general slowness and unresponsiveness, directly aligning with the reported symptoms.

Why this answer

Adware is designed to automatically deliver advertisements, often generating pop-up ads even when the browser is not active, and it consumes system resources, causing slowdowns. The user's symptoms—persistent pop-ups and performance degradation—are classic indicators of adware infection, as adware typically runs background processes to fetch and display ads.

Exam trap

Candidates often confuse adware with spyware, but the key distinguishing factor is the presence of pop-up ads even when no browser is active. Adware is designed to display advertisements, while spyware primarily focuses on covert information gathering.

How to eliminate wrong answers

Option B (Ransomware) is wrong because ransomware encrypts files or locks the system to demand payment, not to display pop-up ads or cause general slowness without a ransom note. Option C (Keylogger) is wrong because keyloggers stealthily capture keystrokes to steal credentials or sensitive data, and they do not generate visible pop-up ads or noticeably slow the system. Option D (Spyware) is wrong because spyware covertly collects information (e.g., browsing habits, personal data) without typically showing pop-up ads; while some spyware may include adware components, the primary symptom described—numerous pop-ups—is the hallmark of adware, not pure spyware.

362
MCQhard

During a cloud penetration test, a tester discovers an AWS S3 bucket that allows public 's3:PutObject' access. The tester uploads a file containing JavaScript that steals cookies. Which type of attack is this an example of?

A.Cross-Site Scripting (XSS) via uploaded file
B.Server-Side Request Forgery (SSRF)
C.Insecure Direct Object Reference (IDOR)
D.S3 bucket privilege escalation
AnswerA

Cross-Site Scripting (XSS) via uploaded file occurs when an attacker uploads malicious client-side script, typically JavaScript, to a web-accessible resource like a public AWS S3 bucket. If the bucket is configured to serve the file with an executable Content-Type (e.g., text/html or application/javascript) and a user's browser accesses this file directly, the script executes within the user's browser context. This allows the attacker to steal session cookies, deface the page, or redirect users, leveraging the trust in the S3 domain.

Why this answer

Uploading malicious content to an S3 bucket with public write access enables storage of attacker-controlled files. When users access these files, a client-side attack (like XSS) can occur. This is a classic example of a storage-based attack via misconfigured S3 bucket.

363
MCQhard

A penetration tester uses a tool to perform a MAC flooding attack. What is the intended result of this attack?

A.Read all network traffic by turning the switch into a hub
B.Modify the MAC address of the attacker's NIC
C.Cause a denial of service on the switch
D.Poison the ARP cache of the target hosts
AnswerA

MAC flooding makes the switch act like a hub, forwarding all frames to all ports.

Why this answer

A MAC flooding attack exploits the limited size of a switch's Content Addressable Memory (CAM) table. By sending thousands of packets with random source MAC addresses, the attacker fills the CAM table, forcing the switch to fail open and broadcast all incoming frames to every port, effectively turning it into a hub. This allows the attacker to capture network traffic that would normally be isolated to a specific port.

Exam trap

In the EC-CEH exam, the distinction between MAC flooding (which targets the switch's CAM table) and ARP poisoning (which targets host ARP caches) is important, so candidates mistakenly choose 'Poison the ARP cache' because both involve MAC addresses and network sniffing.

How to eliminate wrong answers

Option B is wrong because modifying the MAC address of the attacker's NIC is a separate technique (MAC spoofing) used to impersonate another device, not the goal of a MAC flooding attack. Option C is wrong because while a MAC flood can cause resource exhaustion, the primary intended result is to read all network traffic by forcing the switch into a fail-open state, not simply to cause a denial of service. Option D is wrong because ARP cache poisoning is a different attack (ARP spoofing) that manipulates IP-to-MAC mappings on hosts, whereas MAC flooding targets the switch's CAM table.

364
MCQmedium

Which Google dork query would an attacker most likely use to find login pages on a web server?

A.inurl:admin
B.intitle:login
C.site:example.com filetype:pdf
D.link:example.com
AnswerB

The intitle:login Google Dork is highly effective for pinpointing potential login pages because web developers commonly include "login" or "sign in" within the HTML <title> tag of authentication portals. This query directly targets the descriptive title of a page, significantly increasing the likelihood of identifying an actual user authentication interface rather than general administrative content or unrelated pages. It provides a direct indicator of a page designed for user credential submission.

Why this answer

The Google dork 'intitle:login' specifically searches for web pages where the word 'login' appears in the HTML title tag. Attackers use this to quickly discover login portals, as many web applications include 'login' in the page title, making it a reliable footprinting technique for identifying authentication interfaces.

Exam trap

The trap here is that candidates often confuse 'inurl:admin' with login page discovery, but 'admin' in the URL typically points to administrative backends rather than user login portals, which are more commonly identified by the title tag containing 'login'.

How to eliminate wrong answers

Option A is wrong because 'inurl:admin' searches for URLs containing 'admin', which may return admin panels or directories but is less specific to login pages and often yields broader results like admin dashboards or configuration pages. Option C is wrong because 'site:example.com filetype:pdf' restricts results to PDF files on a specific domain, which is useful for document discovery but not for finding login pages. Option D is wrong because 'link:example.com' is a deprecated Google operator that lists pages linking to a given URL, not a method for locating login pages on the target server.

365
MCQmedium

A security analyst runs 'nbtstat -A 192.168.1.105' and sees a table with the computer name 'FILESERVER' and a logged-in user 'admin'. Which of the following BEST describes the purpose of this command?

A.Perform an SNMP walk to enumerate the remote host's MIB
B.Execute a dictionary attack against the remote host's passwords
C.Enumerate all SMB shares on the remote host
D.Perform a NetBIOS name table lookup of the remote host
AnswerD

The `nbtstat -a <IP_address>` (or `-A`) command is precisely used to perform a NetBIOS name table lookup of a remote host. This command queries the specified IP address for its registered NetBIOS names, which can reveal crucial information such as the computer's hostname, workgroup or domain membership, and potentially the username of the currently logged-on user, aiding in initial reconnaissance.

Why this answer

The command 'nbtstat -A' performs a NetBIOS name table lookup against a remote host using its IP address. It queries the NetBIOS over TCP/IP (NBT) service on UDP port 137 to retrieve the remote machine's NetBIOS name table, which includes the computer name and logged-in user. This is a standard enumeration technique to gather information about Windows hosts on a local network.

Exam trap

The trap here is that candidates confuse the 'nbtstat' command with SMB enumeration tools, but 'nbtstat' only reveals NetBIOS names and logged-in users, not shares or passwords.

How to eliminate wrong answers

Option A is wrong because an SNMP walk uses tools like 'snmpwalk' to query a device's MIB via SNMP (UDP 161), not the 'nbtstat' command which operates over NetBIOS. Option B is wrong because 'nbtstat' does not perform any authentication attempts or password cracking; it only reads the NetBIOS name table passively. Option C is wrong because enumerating SMB shares requires tools like 'net view' or 'smbclient' that interact with the SMB protocol (TCP 445), whereas 'nbtstat' only retrieves NetBIOS names and does not list shares.

366
MCQmedium

A penetration tester successfully predicts the TCP sequence numbers of a target and sends crafted packets to impersonate a trusted host. Which type of attack is this?

A.ARP poisoning
B.TCP sequence prediction attack
C.TCP session hijacking
D.DNS spoofing
AnswerC

TCP session hijacking is an attack where a malicious actor takes control of an already established TCP session between two legitimate communicating parties. By successfully predicting the next valid TCP sequence number, the attacker can inject their own packets into the data stream, impersonating one of the legitimate hosts. This allows the attacker to send commands, receive data, or terminate the session, effectively seizing control without needing to authenticate.

Why this answer

C is correct because the attacker predicts TCP sequence numbers to inject crafted packets, effectively impersonating a trusted host and taking over an established TCP session. This is the defining mechanism of TCP session hijacking, where the attacker spoofs the source IP and uses the predicted sequence numbers to insert malicious data or commands into the ongoing session.

Exam trap

The trap here is that candidates confuse the technique (TCP sequence prediction) with the full attack (TCP session hijacking), leading them to select option B instead of C, even though the question explicitly describes the complete act of impersonation and session takeover.

How to eliminate wrong answers

Option A is wrong because ARP poisoning involves sending forged ARP replies to link an attacker's MAC address with the IP of a legitimate host, enabling on-path attacks like sniffing, but it does not involve predicting TCP sequence numbers or impersonating a trusted host at the transport layer. Option B is wrong because TCP sequence prediction attack is a technique used to guess or calculate the next sequence number, but it is not the final attack itself; it is a step within a larger attack like TCP session hijacking. Option D is wrong because DNS spoofing corrupts DNS responses to redirect traffic to a malicious server, which operates at the application layer and does not require TCP sequence number prediction or session impersonation.

367
MCQmedium

During a penetration test, you execute a DNS zone transfer request against a target domain and succeed. Which type of DNS record would you expect to reveal the mail servers for the domain?

A.CNAME record
B.MX record
C.A record
D.NS record
AnswerB

An MX (Mail Exchanger) record specifies the mail servers responsible for accepting email messages on behalf of a domain, along with their preference values. During a DNS zone transfer, obtaining MX records provides highly valuable intelligence about an organization's email infrastructure, including the hostnames and sometimes internal IP addresses of their mail servers. This information is critical for penetration testers, as it identifies prime targets for email-based attacks, spoofing, or further reconnaissance against mail gateways and associated systems.

Why this answer

An MX (Mail Exchange) record is the DNS record type that specifies the mail servers responsible for accepting email messages on behalf of a domain. During a successful DNS zone transfer, the full zone file is retrieved, and MX records are included, directly revealing the domain's mail server hostnames and priority values.

Exam trap

EC-Council often tests the distinction between record types by making candidates confuse the purpose of an MX record with an A record or CNAME, especially when the question involves identifying services rather than simple hostname resolution.

How to eliminate wrong answers

Option A is wrong because a CNAME (Canonical Name) record is an alias that maps one domain name to another, not a record that directly identifies mail servers. Option C is wrong because an A (Address) record maps a hostname to an IPv4 address; while it could resolve a mail server's hostname to an IP, it does not itself designate which servers handle mail for the domain. Option D is wrong because an NS (Name Server) record delegates a zone to authoritative name servers, not mail servers.

368
Multi-Selecthard

Which THREE of the following are effective techniques to prevent ARP poisoning attacks? (Choose three.)

Select 3 answers
A.Enabling DHCP snooping
B.Configuring port security on switches
C.Using static ARP entries
D.Disabling STP on all ports
E.Implementing Dynamic ARP Inspection (DAI)
AnswersB, C, E

Configuring port security on switches is an effective technique because it limits the number of MAC addresses that can be learned on a specific switch port. By restricting a port to a single, legitimate MAC address or a small, defined set, it prevents an attacker from introducing a new, spoofed MAC address to impersonate another device or the gateway, thereby mitigating ARP poisoning attempts that rely on MAC address changes.

Why this answer

Configuring port security on switches is effective against ARP poisoning because it limits the number of MAC addresses allowed on a port, preventing an attacker from flooding the network with spoofed MAC addresses. By restricting the port to a single or limited set of MAC addresses, it stops unauthorized devices from injecting fake ARP replies. This is a Layer 2 security control that directly mitigates the ability to perform ARP cache poisoning at the access edge.

Exam trap

The trap here is that candidates often confuse DHCP snooping as a direct ARP poisoning prevention technique, when in fact it only provides the binding table that DAI uses, and without DAI enabled, DHCP snooping alone does not inspect or block malicious ARP packets.

369
MCQmedium

During a social engineering engagement, an attacker calls an employee pretending to be from IT support and asks for their password to perform a system update. Which social engineering technique is being employed?

A.Phishing
B.Pretexting
C.Quid pro quo
D.Vishing
AnswerB

Pretexting involves the creation of a convincing, fabricated scenario or "pretext" to manipulate a target into revealing confidential information or performing a specific action. In this type of social engineering engagement, the attacker constructs a plausible backstory, such as impersonating IT support or a vendor, to establish trust and extract desired details directly from the target over the phone. This method precisely aligns with an attacker calling someone with a specific, made-up story to achieve their objective.

Why this answer

Pretexting is the correct answer because the attacker fabricates a scenario (pretext) by impersonating IT support to create a false sense of authority and urgency, thereby manipulating the employee into revealing their password. This technique relies on a fabricated story rather than a technical exploit, distinguishing it from other social engineering methods.

Exam trap

The trap here is that candidates often confuse pretexting with vishing because both involve phone calls, but the CEH exam distinguishes them by the presence of a fabricated scenario (pretext) versus a simple voice-based phishing attempt without an elaborate backstory.

How to eliminate wrong answers

Option A (Phishing) is wrong because phishing typically involves sending deceptive emails or messages with malicious links or attachments to harvest credentials, not a direct phone call with a fabricated identity. Option C (Quid pro quo) is wrong because quid pro quo involves offering a service or benefit in exchange for information (e.g., 'I'll fix your computer if you give me your password'), whereas the attacker here simply asks for the password under a false pretense without offering anything in return. Option D (Vishing) is wrong because vishing is voice phishing that uses phone calls to trick victims into revealing sensitive information, but it is a subset of phishing and does not inherently involve the elaborate role-playing and fabricated scenario that defines pretexting; the key distinction is that pretexting builds a detailed false identity and context, while vishing may be more direct and less story-driven.

370
MCQmedium

During a penetration test, a tester uses a tool to perform ARP spoofing to intercept traffic between two hosts on the same subnet. Which tool is most commonly associated with this technique?

A.Wireshark
B.Ettercap
C.Metasploit
D.Nmap
AnswerB

Ettercap is a comprehensive suite specifically designed for performing man-in-the-middle (MITM) attacks on local area networks, with a core specialization in ARP spoofing (also known as ARP poisoning). It actively manipulates the ARP tables of target hosts and the network gateway by sending forged ARP replies, redirecting traffic through the attacker's machine. This capability enables various MITM activities, including sniffing, content filtering, and session hijacking, making it the ideal tool for actively performing such an attack during a penetration test.

Why this answer

Ettercap is the correct answer because it is a dedicated suite for man-in-the-middle attacks on LAN, with built-in ARP spoofing (poisoning) capabilities. It actively sends forged ARP replies to associate the tester's MAC address with the IP address of the target hosts, allowing interception of traffic between them on the same subnet. Other tools like Wireshark, Metasploit, and Nmap are not primarily designed for ARP spoofing.

Exam trap

The trap here is that candidates confuse passive sniffing tools like Wireshark with active interception tools, assuming that any packet capture tool can also perform ARP spoofing, but Wireshark lacks the injection capability required for this attack.

How to eliminate wrong answers

Option A is wrong because Wireshark is a network protocol analyzer (packet sniffer) that captures and inspects traffic passively; it does not inject or spoof ARP packets to intercept traffic. Option C is wrong because Metasploit is an exploitation framework focused on delivering payloads and post-exploitation modules; while it has auxiliary modules for ARP spoofing, it is not the most commonly associated tool for this specific technique. Option D is wrong because Nmap is a network discovery and security scanning tool that uses ARP pings for host discovery but does not perform ARP spoofing to intercept traffic between hosts.

371
MCQeasy

A security analyst captures network traffic and sees multiple ARP packets with the same source MAC address but different IP addresses. Which attack is MOST likely occurring?

A.WPS PIN attack
B.De-authentication attack
C.Evil twin attack
D.ARP spoofing attack
AnswerD

ARP spoofing, also known as ARP poisoning, is a man-in-the-middle (MitM) attack where an attacker sends forged Address Resolution Protocol (ARP) messages over a local area network. The attacker's goal is to associate their own MAC address with the IP address of another host, such as the default gateway, or to associate the gateway's MAC address with the victim's IP. By doing so, the attacker intercepts network traffic intended for other devices, as the traffic is incorrectly routed through the attacker's machine, allowing for eavesdropping, modification, or redirection. This directly involves manipulating ARP packets to link a single MAC address to multiple IP addresses or vice-versa within the victim's ARP cache.

Why this answer

An evil twin attack involves a rogue AP impersonating a legitimate one, but it does not typically cause ARP packets with varied IPs. ARP spoofing involves an attacker sending forged ARP replies to associate their MAC with another IP, causing traffic to be misdirected. The described behavior matches ARP spoofing, where the attacker's MAC appears with multiple IPs.

372
MCQhard

An attacker intercepts a TCP session between a client and a server. By analyzing sequence numbers, the attacker successfully predicts the next sequence number and injects malicious packets. Which attack is being performed?

A.DNS spoofing
B.ARP poisoning
C.Man-in-the-middle
D.Session hijacking
AnswerD

Session hijacking is the act of taking control of an already authenticated TCP session between two communicating parties. This is typically achieved by an attacker successfully predicting or sniffing the correct TCP sequence numbers (acknowledgment and sequence numbers) that the legitimate client and server expect. By injecting packets with the correct sequence numbers, the attacker can impersonate the client or server, effectively taking over the session and issuing commands or receiving data without the original client's knowledge.

Why this answer

The attacker is actively intercepting a TCP session, predicting sequence numbers, and injecting malicious packets, which is the definition of TCP session hijacking. This attack exploits the lack of authentication in TCP connections, where the attacker can take over an established session by correctly guessing or obtaining the next sequence number.

Exam trap

The trap here is that candidates confuse session hijacking with a generic man-in-the-middle attack, but the key differentiator is the specific act of predicting TCP sequence numbers to inject packets, which is a hallmark of session hijacking, not just passive interception.

How to eliminate wrong answers

Option A is wrong because DNS spoofing involves corrupting DNS responses to redirect traffic to a malicious server, not intercepting and injecting packets into an existing TCP session. Option B is wrong because ARP poisoning manipulates the ARP cache to associate an attacker's MAC address with a legitimate IP address, enabling local network interception, but it does not involve TCP sequence number prediction or packet injection into an established session. Option C is wrong because while a man-in-the-middle attack can involve interception, the specific technique described—predicting TCP sequence numbers to inject packets—is a form of session hijacking, not a generic MITM; MITM typically requires active relay of traffic, not just sequence number prediction.

373
MCQmedium

A penetration tester needs to perform ARP poisoning to intercept traffic between two hosts on the same subnet. Which tool would be the most appropriate choice for this task?

A.tcpdump
B.Ettercap
C.Nmap
D.Wireshark
AnswerB

Ettercap is a comprehensive suite designed specifically for man-in-the-middle (MITM) attacks on local area networks, including robust ARP poisoning capabilities. It actively intercepts traffic by sending forged ARP replies to trick hosts into associating the attacker's MAC address with the gateway's IP, and vice-versa. This allows the penetration tester to transparently relay, inspect, and modify network traffic between the target and the gateway, fulfilling the requirement for ARP poisoning.

Why this answer

Ettercap is the most appropriate tool for ARP poisoning because it is specifically designed for man-in-the-middle (MITM) attacks on a local area network (LAN). It automates ARP spoofing by sending forged ARP replies to both target hosts, poisoning their ARP caches so that traffic intended for the other host is redirected through the attacker's machine, enabling interception and modification of packets.

Exam trap

The trap here is that candidates often confuse passive sniffing tools like Wireshark or tcpdump with active attack tools, assuming that any tool that captures traffic can also perform ARP poisoning, but only dedicated MITM tools like Ettercap have the built-in ARP spoofing engine required for this task.

How to eliminate wrong answers

Option A is wrong because tcpdump is a packet capture and analysis tool; it cannot generate or inject forged ARP packets to perform poisoning. Option C is wrong because Nmap is a network discovery and port scanning tool; while it can detect hosts and services, it lacks the ability to conduct ARP spoofing or MITM attacks. Option D is wrong because Wireshark is a packet analyzer that passively captures and inspects traffic; it does not have the capability to send crafted ARP packets to manipulate ARP caches.

374
MCQeasy

Which of the following is the BEST defense against tailgating attacks in a secure facility?

A.Hiring security guards
B.Reviewing keycard access logs
C.Installing CCTV cameras
D.Implementing a mantrap at the entrance
AnswerD

Implementing a mantrap at the entrance is the most effective defense because it is a physical security mechanism designed specifically to prevent tailgating. A mantrap consists of two interlocking doors, where the first door must close and lock before the second door can open, typically allowing only one person to pass through at a time after successful authentication. This physically enforces single-person entry, making it virtually impossible for a second individual to follow an authorized person into a restricted area.

Why this answer

A mantrap is a physical security access control system consisting of two interlocking doors that create a small vestibule. Only one door can be opened at a time, and authentication (e.g., keycard + biometric) is required to pass through both. This design physically prevents an unauthorized person from following an authorized person into the facility, directly mitigating tailgating attacks by enforcing strict one-person-per-authentication entry.

Exam trap

EC-Council often tests the distinction between preventive, detective, and corrective controls; the trap here is that candidates mistake surveillance (CCTV) or logging (access logs) for active prevention, when only a mantrap provides a physical barrier that stops tailgating in real time.

How to eliminate wrong answers

Option A is wrong because hiring security guards relies on human vigilance, which is fallible and can be bypassed through distraction or social engineering, and does not provide a mechanical barrier against tailgating. Option B is wrong because reviewing keycard access logs is a detective control that identifies tailgating incidents after they occur, not a preventive defense that stops the attack in real time. Option C is wrong because installing CCTV cameras provides surveillance and evidence but does not physically prevent an unauthorized person from entering behind an authorized person; it is a passive monitoring control, not an active access control.

375
MCQhard

After compromising a Windows system, an attacker wants to cover tracks by deleting event logs. Which command would achieve this?

A.wevtutil cl Security
B.del *.log
C.rm -rf /var/log/*
D.clear-eventlog -Log Security
AnswerA

wevtutil cl clears the specified event log.

Why this answer

The wevtutil cl Security command clears the Windows Security event log, which is a standard method for an attacker to cover tracks by removing evidence of their activities. This command is built into Windows and can be executed from the command line with administrative privileges, making it a direct and effective way to delete event logs without relying on external tools.

Exam trap

The trap here is that candidates may confuse the Windows command wevtutil with the Linux command rm -rf or the PowerShell cmdlet Clear-EventLog, assuming any log-clearing command works across platforms, but the CEH exam tests knowledge of OS-specific utilities.

How to eliminate wrong answers

Option B (del *.log) is wrong because it attempts to delete files with a .log extension, but Windows event logs are stored in a proprietary format (Evtx files) in the C:\Windows\System32\winevt\Logs directory, not as simple .log files; this command would not target the correct files and would likely fail due to permissions. Option C (rm -rf /var/log/*) is wrong because it is a Linux/Unix command for removing logs from /var/log, which does not exist on a Windows system; this reflects a confusion between operating systems. Option D (clear-eventlog -Log Security) is wrong because it is a PowerShell cmdlet, not a native command-line tool, and while it can clear logs, the question asks for a command that would achieve this, and wevtutil is the more direct and commonly used utility in CEH contexts; however, the primary reason it is incorrect here is that the correct answer is A, and D is not the standard command for this purpose in exam scenarios.

Page 4

Page 5 of 12

Page 6