Henry is a penetration tester who works for XYZ organization. While performing enumeration on a client
organization, he queries the DNS server for a specific cached DNS record. Further, by using this cached
record, he determines the sites recently visited by the organization's user. What is the enumeration technique
used by Henry on the organization?
Show answerHide answer
Correct answer: BDNS cache snooping
Explanation
Explanation
The technique used by Henry is DNS Cache Snooping. This is a reconnaissance method where an attacker queries a DNS resolver to check if it has a specific domain name in its cache. If the DNS server returns a record for that domain, it indicates that someone within the network (or the server itself) has recently resolved that domain name. By querying for a list of known websites, an attacker can infer which sites users in the organization have visited recently. This technique exploits the fact that DNS resolvers cache records to improve performance, inadvertently leaking information about user activity.
Why Other Options Are Incorrect
A (DNS zone walking): This technique is used to enumerate all the records in a DNS zone by exploiting NSEC or NSEC3 records in DNSSEC-enabled zones. It reveals the structure of the domain (all subdomains) but does not specifically reveal recently visited sites via cache inspection.
C (DNSSEC zone walking): This is essentially the same as DNS zone walking but specifically targets DNSSEC-enabled zones. It is used for mapping out domain structures, not for tracking user browsing history via cache.
D (DNS cache poisoning): This is an active attack where an attacker injects false DNS records into a resolver's cache to redirect users to malicious sites. It is an exploitation technique, not a passive enumeration or reconnaissance technique like snooping.
References
EC-Council CEH v13 Official Curriculum: Module on Scanning Networks and Enumeration, specifically covering DNS enumeration techniques including cache snooping.
Question 152Choose 1
Harris is attempting to identify the OS running on his target machine. He inspected the initial TTL in the IP
header and the related TCP window size and obtained the following results:
TTL: 64 Window Size: 5840
What is the OS running on the target machine?
Show answerHide answer
Correct answer: DLinux OS
Explanation
Explanation:
Operating System Fingerprinting often relies on analyzing specific values in the IP and TCP headers, such as the Time-To-Live (TTL) and the TCP Window Size. These values are set by default by the OS network stack during initialization.
TTL Analysis:
Linux/Unix/macOS: Typically start with a default TTL of 64.
Windows: Typically starts with a default TTL of 128.
Solaris/AIX: Often start with a default TTL of 254 or 255.
Since the observed TTL is 64, this strongly suggests a Linux, Unix, or macOS system, ruling out Windows (Option B) and Solaris (Option A).
TCP Window Size Analysis:
The TCP Window Size is another distinct fingerprint. Different OS versions use different default window sizes.
Linux: Common default window sizes include 5840, 8760, or 65535 (depending on the kernel version and configuration). Specifically, older or standard Linux kernels often exhibit a window size of 5840.
Windows: Common window sizes include 8192, 64240, or 65535.
macOS: Often uses window sizes like 65535 or other specific values distinct from the typical Linux 5840.
Combining the TTL of 64 and the specific Window Size of 5840 points directly to a Linux OS.
Why other options are incorrect:
A (Solaris OS): Would typically have a TTL of 254 or 255.
B (Windows OS): Would typically have a TTL of 128.
C (Mac OS): While it has a TTL of 64, its default TCP window size is usually different (often 65535 in modern versions) and does not typically match the specific 5840 signature associated with Linux in standard fingerprinting databases (like Nmap's nmap-os-db).
References:
EC-Council CEH v13 Official Curriculum: Module on Scanning Networks, specifically covering OS Fingerprinting techniques using TTL and TCP Window Size analysis.
Question 153Choose 1
During an attempt to perform an SQL injection attack, a certified ethical hacker is focusing on the
identification of database engine type by generating an ODBC error. The ethical hacker, after injecting
various payloads, finds that the web application returns a standard, generic error message that does not reveal any detailed database information. Which of the following techniques would the hacker consider next to
obtain useful information about the underlying database?
Show answerHide answer
Correct answer: DUtilize a blind injection technique that uses time delays or error signatures to extract information
Explanation
Explanation:
When a web application returns generic error messages (e.g., "An error occurred") instead of detailed database errors, it prevents the attacker from using Error-Based SQL Injection. In this scenario, the attacker cannot see the output of their injected queries directly. Therefore, the next logical step is to use Blind SQL Injection techniques.
Blind SQL Injection relies on inferring information about the database by observing the application's behavior rather than reading explicit error messages or data output. There are two main types:
1. Boolean-based Blind: The attacker sends queries that result in True or False conditions and observes differences in the HTTP response content or status code.
2. Time-based Blind: The attacker injects commands that cause the database to pause (e.g., WAITFOR DELAY in SQL Server or SLEEP() in MySQL) for a specific duration if a condition is true. By measuring the response time, the attacker can deduce information about the database structure and content.
Since the prompt mentions the attacker was trying to identify the engine via errors but failed due to generic messages, switching to time delays or subtle behavioral signatures (Blind Injection) is the standard methodology.
Why other options are incorrect:
A (UNION operator): UNION-based injection requires the ability to see the results of the query in the application's response (In-Band). If the application suppresses detailed errors and doesn't display query results on the page, UNION attacks will not yield visible data.
B (OS-level command shell): This is an advanced post-exploitation step (e.g., using xp_cmdshell in SQL Server). It requires first successfully identifying the database type, gaining sufficient privileges, and confirming that command execution is enabled. It is not the immediate next step for simple identification when errors are hidden.
C (Insert string where number is expected): This is a basic technique to trigger a type mismatch error. Since the application already returns generic errors, this will likely just produce another generic error message, providing no new information about the specific database engine.
References:
EC-Council CEH v13 Official Curriculum: Module on Hacking Web Applications, specifically covering SQL Injection types: In-Band (Error-based, Union-based) vs. Out-of-Band/Blind (Boolean-based, Time-based).
Question 154Choose 1
Jude, a pen tester, examined a network from a hacker's perspective to identify exploits and vulnerabilities
accessible to the outside world by using devices such as firewalls, routers, and servers. In this process, he also
estimated the threat of network security attacks and determined the level of security of the corporate network.
What is the type of vulnerability assessment that Jude performed on the organization?
Show answerHide answer
Correct answer: AExternal assessment
Explanation
Explanation:
Jude performed an External Assessment. This type of vulnerability assessment focuses on identifying security weaknesses that are visible from outside the organization's network perimeter. The primary goal is to simulate how an external attacker (without internal access) would attempt to breach the network.
Key characteristics of an External Assessment include:
Perspective: Conducted from the "outside-in," simulating an external threat actor.
Targets: Focuses on public-facing assets such as firewalls, routers, web servers, mail servers, and DNS servers.
Objective: To determine if an attacker can exploit vulnerabilities in the perimeter defenses to gain initial access to the corporate network.
This aligns perfectly with Jude's actions of examining the network from a hacker's perspective to identify exploits accessible to the outside world via perimeter devices.
Why other options are incorrect:
B (Passive assessment): This involves monitoring network traffic without actively sending packets or interacting with the target systems (e.g., sniffing). Jude is actively examining for exploits and vulnerabilities, which implies active scanning or testing, not just passive observation.
C (Host-based assessment): This focuses on the internal configuration and security of individual hosts (servers, workstations) from inside the network. It checks for patch levels, local policies, and file integrity. Jude is looking from the outside, not inspecting internal host configurations directly.
D (Application assessment): This specifically targets software applications (web apps, mobile apps) for vulnerabilities like SQL injection or XSS. While Jude might test web servers, his scope includes network infrastructure devices (firewalls, routers), making "External Assessment" the broader and more accurate classification for the entire engagement.
References:
EC-Council CEH v13 Official Curriculum: Module on Vulnerability Analysis, distinguishing between External, Internal, Host-Based, and Application-based assessments.
Question 155Choose 1
Websites and web portals that provide web services commonly use the Simple Object Access Protocol
(SOAP).
Which of the following is an incorrect definition or characteristics of the protocol?
Show answerHide answer
Correct answer: BOnly compatible with the application protocol HTTP
Explanation
Explanation:
The statement that SOAP is "Only compatible with the application protocol HTTP" is incorrect. While HTTP is the most common transport protocol used with SOAP (especially in web services), SOAP is an application-layer protocol that is transport-agnostic. It can be carried over various other protocols, including:
SMTP (Simple Mail Transfer Protocol)
FTP (File Transfer Protocol)
JMS (Java Message Service)
TCP/IP directly
SOAP defines a standard way for applications to exchange structured information using XML, but it does not dictate the underlying transport mechanism. Therefore, limiting it to only HTTP is factually wrong.
Why other options are correct characteristics:
A (Exchanges data between web services): This is the primary purpose of SOAP—to enable interoperability between different systems and platforms.
C (Provides a structured model for messaging): SOAP uses a strict XML-based envelope structure (Header and Body) to define how messages are formatted and processed.
D (Based on XML): SOAP stands for Simple Object Access Protocol, and its message format is entirely defined using XML schemas.
References:
EC-Council CEH v13 Official Curriculum: Module on Hacking Web Applications, covering Web Services security, SOAP, and WSDL.
Question 156Choose 1
BitLocker encryption has been implemented for all the Windows-based computers in an organization. You are
concerned that someone might lose their cryptographic key. Therefore, a mechanism was implemented to
recover the keys from Active Directory. What is this mechanism called in cryptography?
Show answerHide answer
Correct answer: BKey escrow.
Explanation
Explanation:
The mechanism described is Key Escrow. Key escrow is a process where cryptographic keys are held in trust by a third party (in this case, the Active Directory or a designated recovery agent) so that they can be retrieved if the original key holder loses their key or if legal access is required. In a Windows environment with BitLocker, the recovery keys are often automatically backed up to Active Directory Domain Services (AD DS). This ensures that if a user loses their TPM chip, forgets their PIN, or if the hardware fails, an administrator can retrieve the recovery key from AD to decrypt the data. This is a classic example of escrow, where the key is "deposited" with a trusted entity for safekeeping and potential future retrieval.
Why other options are incorrect:
A (Key archival): While similar, key archival typically refers to the long-term storage of keys for historical data decryption (e.g., decrypting old emails or files years later). Key escrow is more specifically about having a copy available for immediate recovery or legal access. In the context of CEH and general cryptography definitions, storing a copy with a trusted third party for recovery is best defined as escrow.
C (Certificate rollover): This refers to the process of replacing an expiring digital certificate with a new one. It is unrelated to the recovery of lost symmetric encryption keys like BitLocker recovery keys.
D (Key renewal): This involves generating a new key pair or symmetric key to replace an old one, usually due to expiration or compromise. It does not involve recovering a lost key.
References:
EC-Council CEH v13 Official Curriculum: Module on Cryptography, specifically covering Key Management practices including Key Escrow, Key Archival, and Recovery Agents.
Question 157Choose 1
Jack, a disgruntled ex-employee of Incalsol Ltd., decided to inject fileless malware into Incalsol's systems. To
deliver the malware, he used the current employees' email IDs to send fraudulent emails embedded with
malicious links that seem to be legitimate. When a victim employee clicks on the link, they are directed to a
fraudulent website that automatically loads Flash and triggers the exploit. What is the technique used byjack
to launch the fileless malware on the target systems?
Show answerHide answer
Correct answer: AIn-memory exploits
Explanation
Explanation:
The technique used by Jack is In-memory exploits. Fileless malware operates by leveraging legitimate system tools and processes to execute malicious code directly in the computer's RAM (Random Access Memory) rather than writing files to the hard disk. In this scenario, the exploit targets a vulnerability in Adobe Flash (a legitimate application) via the browser. When the victim clicks the link, the exploit code executes in memory, often using techniques like Process Injection or Reflective DLL Loading. Because no malicious file is dropped on the disk, traditional signature-based antivirus solutions often fail to detect it. The term "fileless" specifically refers to this memory-resident nature of the attack payload.
While Phishing (Option B) is the delivery method (the fraudulent email), the question asks for the technique used to launch the fileless malware. The specific mechanism that allows the malware to be "fileless" is its execution in memory via an exploit, making "In-memory exploits" the precise technical answer for how the fileless nature is achieved.
Why other options are incorrect:
B (Phishing): This is the social engineering vector used to deliver the link, not the technical mechanism of the fileless malware execution itself.
C (Legitimate applications): While fileless malware uses legitimate applications (like PowerShell, WMI, or Flash) to run, "Legitimate applications" is too broad and describes the tool, not the attack technique. The technique is exploiting these apps to run code in memory.
D (Script-based injection): While many fileless attacks use scripts (PowerShell, JavaScript), the scenario specifically mentions triggering an exploit in Flash. "In-memory exploits" is the broader and more accurate category for fileless malware that resides in RAM, regardless of whether it starts with a script or a binary exploit.
References:
EC-Council CEH v13 Official Curriculum: Module on Malware Threats, specifically covering Fileless Malware, In-Memory Attacks, and Living-off-the-Land (LotL) techniques.
Question 158Choose 1
Which of the following types of SQL injection attacks extends the results returned by the original query,
enabling attackers to run two or more statements if they have the same structure as the original one?
Show answerHide answer
Correct answer: DUnion SQL injection
Explanation
Explanation:
Union SQL Injection is the technique that allows an attacker to combine the results of two or more SELECT statements into a single result set. By using the UNION operator, the attacker can append their own query to the original application query. For this to work, the injected query must have the same number of columns and compatible data types as the original query. This enables the attacker to extract data from other tables in the database that are not normally returned by the application, effectively extending the results returned by the original query.
Why other options are incorrect:
A (Error-based injection): This technique relies on triggering detailed database error messages that reveal information about the database structure or data. It does not necessarily use the UNION operator to combine result sets but rather exploits the verbosity of error handling.
B (Boolean-based blind SQL injection): This technique involves sending SQL queries that result in either True or False conditions. The attacker infers information based on differences in the application's response (e.g., content changes), not by appending additional result sets via UNION.
C (Blind SQL injection): This is a broader category that includes both Boolean-based and Time-based blind injections. It is used when the application does not return data or errors directly. It does not involve extending the result set with UNION; instead, it relies on indirect inference.
References:
EC-Council CEH v13 Official Curriculum: Module on Hacking Web Applications, specifically covering In-Band SQL Injection techniques, including Union-Based Injection.
Question 159Choose 1
An attacker identified that a user and an access point are both compatible with WPA2 and WPA3 encryption.
The attacker installed a rogue access point with only WPA2 compatibility in the vicinity and forced the victim to go through the WPA2 four-way handshake to get connected. After the connection was established, the
attacker used automated tools to crack WPA2-encrypted messages. What is the attack performed in the above
scenario?
Show answerHide answer
Correct answer: CDowngrade security attack
Explanation
Explanation:
The attack described is a Downgrade Security Attack (also known as a Downgrade Attack). In this scenario, the attacker exploits the backward compatibility of wireless devices. Although both the victim and the legitimate access point support the more secure WPA3 protocol, the attacker sets up a rogue Access Point (AP) that only supports the older, weaker WPA2 protocol. By forcing the victim's device to connect to this rogue AP, the attacker "downgrades" the encryption standard from WPA3 to WPA2. Once the connection is established using WPA2, the attacker can then capture the four-way handshake and use automated tools (like Hashcat or Aircrack-ng) to crack the weaker WPA2 password hash, which is significantly easier than breaking WPA3's Simultaneous Authentication of Equals (SAE) protocol.
Why other options are incorrect:
A (Timing-based attack): This involves analyzing the time taken by a system to respond to certain inputs to infer information (e.g., password length). It is not related to forcing a change in encryption protocols.
B (Side-channel attack): This involves exploiting physical implementation details of a cryptosystem, such as power consumption, electromagnetic leaks, or sound, rather than weaknesses in the algorithm itself. It does not involve protocol negotiation manipulation.
D (Cache-based attack): This targets CPU caches (like L1/L2/L3) to steal data through side channels (e.g., Spectre, Meltdown). It is unrelated to wireless network encryption negotiation.
References:
EC-Council CEH v13 Official Curriculum: Module on Hacking Wireless Networks, covering attacks on WPA/WPA2/WPA3, including downgrade attacks and rogue APs.
Question 160Choose 1
During a reconnaissance mission, an ethical hacker uses Maltego, a popular footprinting tool, to collect
information about a target organization. The information includes the target's Internet infrastructure details
(domains, DNS names, Netblocks, IP address information). The hacker decides to use social engineering
techniques to gain further information. Which of the following would be the least likely method of social
engineering to yield beneficial information based on the data collected?
Show answerHide answer
Correct answer: AShoulder surfing to observe sensitive credentials input on the target's computers
Explanation
Explanation:
Shoulder surfing is the least likely method to yield beneficial information in this specific context because it requires the attacker to be physically present in the target's immediate vicinity to observe someone entering credentials or sensitive data on a screen. The scenario describes a reconnaissance mission using Maltego, which is a remote, open-source intelligence (OSINT) tool used to gather digital footprint data (domains, IPs, DNS). The transition to social engineering based on this digital data typically involves remote or indirect interactions (like phishing, vishing, or dumpster diving for discarded documents). Shoulder surfing does not leverage the technical infrastructure data collected by Maltego and is logistically difficult and high-risk compared to other methods, making it the least effective or likely choice for an attacker operating primarily from a digital reconnaissance baseline.
Why other options are more likely/effective:
B (Impersonating ISP support): This is highly effective because the attacker already knows the target's Netblocks, IP ranges, and DNS details from Maltego. They can use this specific technical knowledge to sound authentic and trick employees into revealing more internal network details.
C (Dumpster diving): This is a classic social engineering technique that can yield physical documents containing network diagrams, passwords, or employee lists, which complements the digital data found via Maltego. It doesn't require real-time interaction with a person.
D (Eavesdropping): While also requiring physical proximity or access to communication channels, eavesdropping on corporate conversations (or even digital communications if compromised) can reveal key topics and personnel structures. However, compared to shoulder surfing, it is less dependent on catching a specific moment of credential entry and can be done passively over time. Note: In many CEH contexts, "Eavesdropping" might refer to sniffing network traffic, which is technical, but if interpreted as social engineering (listening to people), it's still more scalable than shoulder surfing. However, between A and D, A is strictly visual and requires being right behind the user, making it the most limited and least likely to succeed broadly based on remote OSINT data.
References:
EC-Council CEH v13 Official Curriculum: Module on Social Engineering, covering various techniques including Phishing, Vishing, Dumpster Diving, and Shoulder Surfing, and their respective applicability and risk levels.
Full mock exam
Sit the 312-50v13 exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real 312-50v13 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.