","comment":{"@type":"Comment","text":"Sending a payload containing is characteristic of a Cross-Site Scripting (XSS) attack. XSS vulnerabilities occur when an application embeds untrusted data into a web page without proper sanitization, causing malicious scripts to execute within the victim's browser. This attack vector primarily impacts client-side users and does not involve the server making unauthorized requests to other internal or external systems, distinguishing it from SSRF."}}]},{"@context":"https://schema.org","@type":"Quiz","name":"A security analyst runs `nbtstat -A 192.168.1.10` and receives output showing a table with names like COMPUTER<00>, COMPUTER<20>, and DOMAIN<1B>. What type of information has the analyst gathered?","url":"https://courseiva.com/questions/ec-council/ec-ceh/a-security-analyst-runs-nbtstat-a-192-168-1-10-and-receiv-5cy8u","acceptedAnswer":{"@type":"Answer","text":"NetBIOS names and their associated service types","comment":{"@type":"Comment","text":"The `nbtstat -A` (or `-a`) command is specifically designed to query a remote host's NetBIOS name table, displaying the NetBIOS names registered by that host. Each NetBIOS name is 16 characters long, with the 16th character (the suffix) indicating the service or application type associated with that name, such as `<20>` for a file server or `<00>` for a workstation service. This allows an analyst to identify active NetBIOS services on the target IP address, providing crucial reconnaissance information."}},"suggestedAnswer":[{"@type":"Answer","text":"SMB share lists and open sessions","comment":{"@type":"Comment","text":"While NetBIOS over TCP/IP (NBT) is a foundational protocol for SMB, the `nbtstat` command itself does not directly enumerate SMB share lists or active sessions. Instead, `nbtstat` provides the NetBIOS names registered by a host, which might *indicate* the presence of an SMB server (e.g., a `<20>` suffix). To list actual SMB shares and open sessions, dedicated tools like `smbclient`, `enum4linux`, or `CrackMapExec` are required, as they interact with the SMB protocol directly at a higher level."}},{"@type":"Answer","text":"DNS records for the host and domain","comment":{"@type":"Comment","text":"The `nbtstat` utility is specifically designed to work with NetBIOS over TCP/IP (NBT) for name resolution on local networks, not the Domain Name System (DNS). NetBIOS names are distinct from DNS hostnames and are resolved through different mechanisms, such as NetBIOS Name Service (NBNS) broadcasts or WINS servers. To query DNS records for a host or domain, tools like `nslookup` (for Windows) or `dig` (for Linux/Unix) are used, which interact with DNS servers to retrieve A records, MX records, NS records, and other DNS-specific information."}},{"@type":"Answer","text":"ARP cache entries for the subnet","comment":{"@type":"Comment","text":"The `nbtstat` command is used for querying NetBIOS name information, which operates at the session layer (Layer 5) and presentation layer (Layer 6) of the OSI model, relying on TCP/IP for transport. Address Resolution Protocol (ARP), however, operates at the data link layer (Layer 2) and is responsible for mapping IP addresses to MAC addresses on a local network segment. To view the ARP cache entries on a system, the `arp -a` command (or similar platform-specific commands) is used, not `nbtstat`, as their functions are entirely distinct."}}]},{"@context":"https://schema.org","@type":"Quiz","name":"A web application allows users to submit feedback that is stored in a database and displayed to other users without proper sanitization. A tester inputs '' and it executes whe","url":"https://courseiva.com/questions/ec-council/ec-ceh/a-web-application-allows-users-to-submit-feedback-that-is-st-rrqen","acceptedAnswer":{"@type":"Answer","text":"Stored XSS","comment":{"@type":"Comment","text":"Stored XSS, also known as Persistent XSS, occurs when a malicious script is permanently saved on the target server, typically within a database. When other users access the vulnerable web page that retrieves and displays this stored data (e.g., feedback, comments, forum posts), the malicious script is delivered to their browsers and executed automatically. This makes it a highly dangerous form of XSS as it can impact a large number of users without requiring individual interaction with a crafted link."}},"suggestedAnswer":[{"@type":"Answer","text":"Self-XSS","comment":{"@type":"Comment","text":"Self-XSS occurs when a user is tricked into pasting malicious script into their own browser's developer console or an input field, which then executes only within their session. It typically involves social engineering to convince the victim to execute the payload themselves, often under the guise of a \"hack\" or \"trick.\" This type of XSS does not exploit a vulnerability that allows the script to be stored or automatically executed for other users."}},{"@type":"Answer","text":"DOM-based XSS","comment":{"@type":"Comment","text":"DOM-based XSS is a client-side vulnerability where the malicious payload is executed as a result of modifying the Document Object Model (DOM) environment in the victim's browser. Unlike other XSS types, the entire attack, including the payload and its execution, occurs solely within the client's browser without the server explicitly reflecting or storing the malicious script. The vulnerability arises when client-side script takes data from an untrusted source (e.g., URL fragment) and writes it to a dangerous sink (e.g., innerHTML)."}},{"@type":"Answer","text":"Reflected XSS","comment":{"@type":"Comment","text":"Reflected XSS, or Non-Persistent XSS, involves the immediate and non-persistent execution of a malicious script from the web server's response. The payload is typically injected into a URL parameter and then \"reflected\" back to the user's browser in the server's response without being stored. This attack usually requires social engineering to trick a victim into clicking a specially crafted link containing the malicious script, which then executes only for that specific user."}}]},{"@context":"https://schema.org","@type":"Quiz","name":"An attacker uses the Social Engineering Toolkit (SET) to craft a phishing email that appears to come from the company's CEO, requesting the recipient to urgently wire funds to a new vendor. This attac","url":"https://courseiva.com/questions/ec-council/ec-ceh/an-attacker-uses-the-social-engineering-toolkit-set-to-cra-1kfi4","acceptedAnswer":{"@type":"Answer","text":"Whaling","comment":{"@type":"Comment","text":"Whaling is a specialized form of phishing attack specifically designed to target high-ranking individuals within an organization, such as CEOs, CFOs, or other senior executives. These attacks are often highly sophisticated, leveraging extensive research to craft convincing lures that exploit the target's position of authority and access to sensitive information or financial assets. The scenario involving the impersonation of a CEO directly aligns with the definition of whaling, as it targets a \"big fish\" with significant organizational power."}},"suggestedAnswer":[{"@type":"Answer","text":"Pretexting","comment":{"@type":"Comment","text":"Pretexting relies on an elaborate, pre-planned scenario or \"pretext\" to manipulate the target into divulging information or performing an action. This often involves impersonating someone in authority or a trusted entity and engaging in a conversation to build rapport and trust over time. The scenario described, however, appears to be a more direct impersonation for a specific action rather than an unfolding, fabricated narrative designed to extract information through a detailed backstory."}},{"@type":"Answer","text":"Spear phishing","comment":{"@type":"Comment","text":"Spear phishing is a highly targeted form of phishing that focuses on specific individuals or organizations, often leveraging personalized information to increase credibility and trick the victim. While the attack described is indeed targeted, the critical distinguishing factor here is the elevated status of the intended victim, which is a senior executive or high-value target. Spear phishing can target anyone with personalized information, whereas whaling specifically targets the upper echelons of an organization."}},{"@type":"Answer","text":"Quid pro quo","comment":{"@type":"Comment","text":"Quid pro quo social engineering involves an attacker offering a perceived benefit or service in exchange for information or access from the target. This often manifests as a \"help desk\" call offering to fix a problem in exchange for login credentials, or a survey offering a prize for participation. The described attack, however, is a direct impersonation aimed at eliciting a specific action or information without offering any reciprocal service or benefit to the victim."}}]},{"@context":"https://schema.org","@type":"Quiz","name":"A user receives a phone call from someone claiming to be from IT support, asking for their password to perform a system update. This is an example of which social engineering technique?","url":"https://courseiva.com/questions/ec-council/ec-ceh/a-user-receives-a-phone-call-from-someone-claiming-to-be-fro-96ltr","acceptedAnswer":{"@type":"Answer","text":"Pretexting","comment":{"@type":"Comment","text":"Pretexting involves an attacker fabricating a believable scenario and a false identity to manipulate a victim into divulging sensitive information. The attacker creates a detailed backstory, often impersonating someone in authority or a trusted entity, to establish a sense of legitimacy and urgency. This elaborate setup is designed to overcome the victim's skepticism and directly solicit specific data, like a password, through social engineering."}},"suggestedAnswer":[{"@type":"Answer","text":"Baiting","comment":{"@type":"Comment","text":"Baiting relies on an attacker leaving a physical or digital 'bait' for the victim to discover and interact with, such as a malware-laden USB drive or a tempting 'free download' link. The victim is lured by the promise of something desirable, triggering their curiosity or greed. This scenario, involving a direct phone call without an initial enticing 'offer' to be found, does not align with the typical characteristics of a baiting attack."}},{"@type":"Answer","text":"Phishing","comment":{"@type":"Comment","text":"Phishing is a broad social engineering technique primarily executed through electronic communication, typically email or fraudulent websites, designed to trick recipients into revealing personal information or clicking malicious links. It often involves impersonating a legitimate organization to create a sense of trust or urgency. While 'vishing' is a form of phishing, the term 'phishing' alone generally refers to text-based or web-based attacks, not direct voice calls."}},{"@type":"Answer","text":"Vishing","comment":{"@type":"Comment","text":"Vishing, or voice phishing, is a social engineering attack conducted over the telephone, where attackers attempt to solicit sensitive information by impersonating trusted entities. Unlike pretexting, vishing often relies on generic, high-volume scripts that exploit fear or urgency, such as fake IRS calls or tech support scams, without necessarily developing a highly specific, tailored backstory for the individual target. The key distinction here is the lack of a deeply fabricated, individualized scenario that defines pretexting."}}]},{"@context":"https://schema.org","@type":"Quiz","name":"An analyst is analyzing a suspicious file using VirusTotal and observes that only 3 out of 60 antivirus engines detect it as malicious. The file has been submitted before but with no detections. What ","url":"https://courseiva.com/questions/ec-council/ec-ceh/an-analyst-is-analyzing-a-suspicious-file-using-virustotal-a-eebkd","acceptedAnswer":{"@type":"Answer","text":"The file is likely malicious and requires further analysis","comment":{"@type":"Comment","text":"Low detection rate suggests it may be new malware; further analysis is warranted."}},"suggestedAnswer":[{"@type":"Answer","text":"The file is a clean file with a rare hash","comment":{"@type":"Comment","text":"Rarity of detection is a red flag, not an indicator of cleanliness."}},{"@type":"Answer","text":"The file is safe because most engines don't detect it","comment":{"@type":"Comment","text":"Low detection rate does not guarantee safety; it could be a new or evasive malware."}},{"@type":"Answer","text":"The file is likely a false positive","comment":{"@type":"Comment","text":"False positives are possible but not likely with only 3 out of 60."}}]},{"@context":"https://schema.org","@type":"Quiz","name":"A security analyst notices repeated TCP SYN packets sent to a server without corresponding SYN-ACK replies. The source IP addresses are spoofed and appear to be random. Which type of attack is MOST li","url":"https://courseiva.com/questions/ec-council/ec-ceh/a-security-analyst-notices-repeated-tcp-syn-packets-sent-to-m6r19","acceptedAnswer":{"@type":"Answer","text":"SYN flood","comment":{"@type":"Comment","text":"A SYN flood is a classic Denial-of-Service (DoS) attack that exploits the TCP three-way handshake. Attackers send a large volume of TCP SYN requests to a target server, often with spoofed source IP addresses. The server responds with SYN-ACK packets and allocates resources to maintain a half-open connection, waiting for the final ACK that never arrives, eventually exhausting its connection table and preventing legitimate connections."}},"suggestedAnswer":[{"@type":"Answer","text":"UDP flood","comment":{"@type":"Comment","text":"A UDP flood is a Denial-of-Service (DoS) attack that overwhelms a target system or network with a large volume of User Datagram Protocol (UDP) packets. Unlike TCP SYN floods, UDP is a connectionless protocol, meaning no handshake is required, and the attack focuses on consuming bandwidth or exhausting server resources by sending requests to specific services like DNS or NTP. The server expends resources processing these unsolicited packets, potentially leading to service degradation or unavailability."}},{"@type":"Answer","text":"ICMP flood","comment":{"@type":"Comment","text":"An ICMP flood targets network availability by overwhelming a host with echo request packets, but the scenario describes TCP SYN packets with spoofed IPs and no SYN-ACK replies—this is a half-open connection exhaustion technique that ICMP cannot replicate. It is tempting because ICMP floods are a common denial-of-service vector, and if the question described a flood of ping requests consuming bandwidth or CPU, ICMP flood would be the correct choice."}},{"@type":"Answer","text":"Ping of Death","comment":{"@type":"Comment","text":"The Ping of Death is an older Denial-of-Service (DoS) attack that involved sending an oversized Internet Control Message Protocol (ICMP) echo request packet to a target system. This oversized packet, exceeding the maximum IP packet size of 65,535 bytes, would be fragmented during transmission. When the vulnerable target attempted to reassemble these fragments, it would often crash or reboot due to buffer overflow issues, a mechanism distinct from exhausting TCP connection states."}}]}]
A forensic analyst finds a system where the user's password hash was obtained and cracked offline. The attacker then used stolen credentials to log in and run `wevtutil cl system`. What is the purpose of this command?
A.Remove scheduled tasks
B.Delete the SAM database
C.Disable Windows Defender
D.Clear the System event log
AnswerD
Clearing the System event log is a common anti-forensic technique used by attackers to remove traces of their activity. While specific password change events are typically found in the Security event log, the System log records critical operational events, errors, and warnings that could indirectly indicate system tampering or actions taken during an intrusion. Erasing this log directly removes a significant source of forensic evidence.
Why this answer
The `wevtutil cl system` command clears the System event log on Windows. After cracking the user's password hash offline, the attacker logs in with stolen credentials and runs this command to erase forensic evidence of their activities, such as logon events or service failures, from the System log. This is a common post-exploitation step to hinder incident response.
Exam trap
The trap here is that candidates may confuse `wevtutil cl system` with commands that delete system files or disable security features, but it specifically targets event logs, which is a key anti-forensics technique tested in the CEH exam.
How to eliminate wrong answers
Option A is wrong because `wevtutil cl system` does not affect scheduled tasks; scheduled tasks are managed with `schtasks` or `Task Scheduler`, and clearing event logs does not remove them. Option B is wrong because deleting the SAM database requires different commands (e.g., `del C:\Windows\System32\config\SAM` or using tools like `pwdump`), and `wevtutil` only operates on event logs. Option C is wrong because disabling Windows Defender is done via Group Policy, registry changes, or `Set-MpPreference` in PowerShell, not by clearing event logs.
Which THREE of the following are essential phases in the ethical hacking methodology as defined by EC-Council?
Select 3 answers
A.Maintaining Access
B.Scanning
C.Enumeration
D.Reconnaissance
E.Social Engineering
AnswersA, B, D
Maintaining Access is a phase after gaining initial entry.
Why this answer
Maintaining Access is a core phase in the EC-Council ethical hacking methodology because after gaining initial access, the attacker must ensure persistent control over the target system. This involves installing backdoors, rootkits, or creating privileged user accounts to bypass re-authentication. Without this phase, the penetration test would not simulate a real-world advanced persistent threat (APT) scenario.
Exam trap
The trap here is that candidates confuse enumeration as a distinct phase when it is actually a sub-component of the Scanning phase, and they mistake social engineering for a phase rather than recognizing it as a technique that can be used within Reconnaissance or Gaining Access.
During a ransomware incident response, a forensic analyst recovers a suspicious file that appears to be a PE executable. The analyst wants to quickly check if the file is known malware without executing it. Which of the following is the BEST first step?
A.Disassemble the file using IDA Pro
B.Submit the file hash to VirusTotal
C.Perform static analysis using PEiD to identify compiler and packer
D.Run the file in a sandbox and observe its behavior
AnswerB
Submitting the file's cryptographic hash (e.g., SHA256) to VirusTotal is an optimal initial step because it leverages a vast, aggregated threat intelligence database. This service quickly checks the hash against numerous antivirus engines, sandboxes, and community submissions, providing immediate insight into whether the file is known malware, its common names, and associated behaviors without requiring local execution or extensive analysis. This rapid identification is critical for efficient incident response triage.
Why this answer
Submitting the file hash to VirusTotal is the best first step because it leverages aggregated antivirus engines and threat intelligence to quickly determine if the file is known malware, without any execution risk. This approach is fast, non-invasive, and provides immediate reputation data from over 70 security vendors, making it ideal for triage during incident response.
Exam trap
The trap here is that candidates often choose sandbox execution (Option D) or deep static analysis (Option A) because they seem thorough, but the CEH exam emphasizes the principle of 'least risk first' — using a hash lookup to avoid execution and save time during initial triage.
How to eliminate wrong answers
Option A is wrong because disassembling with IDA Pro is a deep static analysis technique that is time-consuming and unnecessary for a quick malware check; it should be performed only after initial triage confirms the file is suspicious. Option C is wrong because using PEiD to identify the compiler or packer, while useful for static analysis, does not directly answer whether the file is known malware and may miss packed or obfuscated samples that VirusTotal would detect. Option D is wrong because running the file in a sandbox introduces execution risk and is slower than a hash lookup; sandbox analysis is appropriate after confirming the file is not already known to antivirus engines.
A security analyst suspects an attacker has replaced system binaries with a rootkit to hide malicious processes. Which covering tracks technique is the attacker using?
A.Timestomping
B.Steganography
C.Rootkit installation
D.Log manipulation
AnswerC
Rootkits often replace system binaries to conceal their presence.
Why this answer
The attacker is using rootkit installation to replace system binaries (e.g., ps, ls, netstat) with trojaned versions that filter out malicious processes from system calls like readdir() or /proc listings. This is a classic covering tracks technique because the rootkit hides evidence of compromise by intercepting and modifying kernel or user-space output, making the attacker's activities invisible to standard monitoring tools.
Exam trap
EC-Council often tests the distinction between 'rootkit installation' as a covering tracks technique and 'log manipulation' as a separate method, trapping candidates who confuse hiding processes (rootkit) with hiding log entries (log manipulation).
How to eliminate wrong answers
Option A is wrong because timestomping is a technique to alter file timestamps (e.g., using touch -t or SetFileTime) to hide when files were created or modified, not to replace binaries or hide processes. Option B is wrong because steganography hides data within other media (e.g., images, audio) for covert communication, not for replacing system binaries to conceal processes. Option D is wrong because log manipulation involves deleting, modifying, or clearing log entries (e.g., using /var/log/messages or event log clearing) to remove evidence of intrusion, but it does not involve replacing system binaries to hide running processes.
Which THREE of the following are valid pieces of information that can be gathered from a properly configured Netcraft site report? (Select exactly 3.)
Select 3 answers
A.Internal IP addresses of the servers
B.Hosting provider and country
C.Site's first seen date and uptime history
D.Web server software and version
E.Employee email addresses
AnswersB, C, D
Netcraft is highly effective at identifying a website's hosting provider and geographical location. It achieves this by performing comprehensive DNS queries, correlating IP address ranges with registered Autonomous System Numbers (ASNs), and cross-referencing this data with known internet service providers and their physical infrastructure locations. This capability provides critical intelligence regarding the operational footprint and jurisdictional context of a target.
Why this answer
Netcraft site reports are derived from external, public-facing data sources, including DNS records, HTTP response headers, and historical crawl data. The hosting provider and country are identified by mapping the site's public IP address to WHOIS and BGP routing information, which is a standard part of Netcraft's passive reconnaissance.
Exam trap
EC-Council often tests the distinction between passive reconnaissance (which yields only public information) and active reconnaissance (which might reveal internal details), leading candidates to mistakenly assume that internal IPs or employee emails are obtainable from a public site report.
A security analyst notices an unusual spike in outbound traffic on UDP port 53 from a single internal host. The host is not a DNS server. Which type of malware is MOST likely responsible?
A.A worm that spreads via email attachments
B.A polymorphic virus
C.A DNS tunneling tool used for data exfiltration
D.A keylogger that sends captured keystrokes via HTTP
AnswerC
DNS tunneling is a sophisticated data exfiltration technique where malicious actors encode arbitrary data within DNS queries and responses, effectively creating a covert communication channel. This method leverages the legitimate and often unfiltered nature of DNS traffic (UDP port 53) to bypass firewalls and intrusion detection systems. A significant spike in outbound DNS traffic, especially with unusually large query sizes or frequent requests to suspicious domains, is a direct indicator of data being fragmented and transmitted out of the network via this covert channel.
Why this answer
DNS tunneling encapsulates non-DNS traffic (e.g., data exfiltration) within DNS queries and responses, typically using UDP port 53. Since the host is not a DNS server, the outbound spike on port 53 indicates it is likely tunneling data to an external command-and-control server, making option C correct.
Exam trap
The trap here is that candidates may associate any unusual outbound traffic with a generic malware type (like a worm or virus) rather than recognizing the specific protocol and port combination (UDP 53) as a classic indicator of DNS tunneling for data exfiltration.
How to eliminate wrong answers
Option A is wrong because a worm spreading via email attachments typically generates outbound SMTP (port 25) or HTTP traffic, not a sustained spike on UDP 53. Option B is wrong because a polymorphic virus changes its code signature to evade detection but does not inherently cause a specific outbound UDP 53 traffic pattern; its propagation and communication methods vary. Option D is wrong because a keylogger sending keystrokes via HTTP uses TCP port 80 or 443, not UDP port 53, and would not explain the DNS protocol anomaly.
A security analyst suspects that a user's machine is infected with a keylogger. Which of the following is the most effective method to detect a hardware keylogger?
A.Check running processes for suspicious entries
B.Physically inspect the connection between the keyboard and the computer
C.Review USB device history in Event Viewer
D.Run an antivirus scan
AnswerB
Hardware keyloggers are physical devices designed to be inconspicuous, often resembling a standard cable adapter or a small inline dongle. They are typically inserted directly between the keyboard's cable and the computer's keyboard port (e.g., USB or PS/2). A direct physical examination of this connection point is the most reliable and often the only method to visually identify and remove such a device, as it bypasses all software-based detection limitations.
Why this answer
A hardware keylogger is a physical device inserted between the keyboard and the computer, typically at the PS/2 or USB connector. Unlike software-based keyloggers, it operates independently of the operating system, so it cannot be detected by process lists, event logs, or antivirus scans. The only reliable detection method is a physical inspection of the keyboard cable and connection point for any unusual inline devices.
Exam trap
The trap here is that candidates assume all keyloggers are software-based and can be detected by OS-level tools, but CEH specifically tests the distinction between hardware and software keyloggers, where physical inspection is the only definitive method for hardware variants.
How to eliminate wrong answers
Option A is wrong because checking running processes detects software keyloggers, not hardware keyloggers, which have no process or driver footprint in the OS. Option C is wrong because reviewing USB device history in Event Viewer may show connected devices but cannot identify a passive inline hardware keylogger that does not register as a new USB device. Option D is wrong because an antivirus scan relies on signature or behavioral analysis of executable code, and a hardware keylogger has no software component to scan.
While performing reconnaissance, a tester uses a Google dork to find login pages exposed on the internet. Which of the following is an example of a Google dork that could be used for this purpose?
A.inurl:login.php
B.site:example.com -www
C.filetype:pdf
D.link:example.com
AnswerA
This dork finds URLs containing 'login.php'.
Why this answer
The Google dork 'inurl:login.php' instructs Google to return only URLs that contain the string 'login.php' in the URL path. This is a classic reconnaissance technique to discover exposed login pages, as many web applications use 'login.php' as the default authentication endpoint. The 'inurl:' operator filters search results based on the literal text in the URL, making it ideal for footprinting specific web resources.
Exam trap
EC-Council often tests the distinction between operators that search URL content ('inurl:') versus page content ('intitle:') or file types ('filetype:'), leading candidates to confuse 'filetype:pdf' as a valid dork for finding login pages when it actually targets document files.
How to eliminate wrong answers
Option B is wrong because 'site:example.com -www' restricts results to the domain 'example.com' while excluding subdomains containing 'www', which is useful for narrowing scope but does not specifically target login pages. Option C is wrong because 'filetype:pdf' limits results to PDF files, which are documents, not interactive login pages; it is used for finding documents, not web application endpoints. Option D is wrong because 'link:example.com' is a deprecated Google operator that used to find pages linking to a specific URL; it does not search for login pages and is no longer supported by Google.
Which of the following is a recommended defense against Cross-Site Request Forgery (CSRF) attacks?
A.Enabling directory listing on the web server
B.Implementing CSRF tokens in forms
C.Using a same-origin policy with CORS headers
D.Setting the HttpOnly flag on cookies
AnswerB
Implementing CSRF tokens involves embedding a unique, unpredictable, and secret value within each HTML form or AJAX request that modifies server-side state. The server generates this token and associates it with the user's session, then validates its presence and correctness upon submission. If the submitted token does not match the expected value, the server rejects the request, effectively preventing attackers from forging legitimate requests without knowledge of the specific token.
Why this answer
CSRF tokens are unique per request and verified by the server, making forged requests invalid without the token.
What is the primary purpose of using the Nmap flag -sS?
A.Enable OS detection
B.Perform a SYN stealth scan
C.Perform a UDP scan
D.Perform a TCP connect scan
AnswerB
The -sS flag instructs Nmap to perform a SYN stealth scan, also known as a half-open scan. This method sends a SYN packet to the target port; if a SYN/ACK is received, Nmap knows the port is open but does not complete the three-way handshake by sending an ACK. This technique often bypasses non-stateful firewalls and avoids full connection logs on the target system, making it less detectable than a full TCP connect scan.
Why this answer
The Nmap flag -sS instructs Nmap to perform a SYN stealth scan, also known as a half-open scan. It sends a TCP SYN packet to the target port and, if a SYN/ACK is received, the port is considered open; the scanner then sends a RST to tear down the connection before the full TCP three-way handshake completes. This technique avoids completing the connection, making it less likely to be logged by the target's application layer and is the default scan type when run with root privileges.
Exam trap
EC-Council often tests the distinction between -sS (SYN stealth) and -sT (TCP connect), where candidates mistakenly think -sS completes the handshake or that -sT is the stealthier option.
How to eliminate wrong answers
Option A is wrong because OS detection is enabled with the -O flag, not -sS. Option C is wrong because a UDP scan is performed using the -sU flag, which sends UDP packets to target ports. Option D is wrong because a TCP connect scan uses the -sT flag, which completes the full three-way handshake using the operating system's connect() system call, unlike the half-open SYN scan.
A user reports that their computer is infected with ransomware. Which of the following is the BEST immediate action for the security team to take?
A.Disconnect the computer from the network
B.Pay the ransom to regain access
C.Run a full antivirus scan
D.Restore the system from a recent backup
AnswerA
Disconnecting the computer from the network is the immediate and most critical first step in containing a ransomware infection. This action severs the malware's ability to communicate with command-and-control (C2) servers, preventing further encryption key exchange, data exfiltration, or the reception of additional malicious instructions. Crucially, it also stops the ransomware from spreading laterally across the network to other systems or encrypting shared network drives, thereby limiting the scope of the compromise and preventing further damage.
Why this answer
Disconnecting the computer from the network is the best immediate action because it isolates the ransomware, preventing it from spreading laterally to other systems via SMB, RDP, or mapped drives. This containment step stops the encryption of additional network shares and halts any command-and-control (C2) communication the ransomware might be using to exfiltrate data or receive encryption keys.
Exam trap
Many candidates mistakenly prioritize running an antivirus scan or restoring from backup as the immediate step. However, the CEH exam emphasizes containment first to prevent lateral movement and further damage. Disconnecting from the network is critical to stop the spread of ransomware.
How to eliminate wrong answers
Option B is wrong because paying the ransom does not guarantee decryption and often funds criminal operations; there is no technical assurance the attacker will provide a working decryption key, and it may encourage further attacks. Option C is wrong because running a full antivirus scan while the ransomware is active can trigger the malware to accelerate encryption or delete files, and the scan itself may be ineffective if the ransomware has already modified system files or uses polymorphic code. Option D is wrong because restoring from a backup should only be done after the ransomware is fully removed and the system is verified clean; immediate restoration risks re-encrypting the backup if it is still connected to the network or if the ransomware persists in memory.
A web application uses user input in the following PHP code: include($_GET['page'] . '.php');. An attacker submits the URL: http://example.com/index.php?page=../../../../etc/passwd%00. Which two vulnerabilities are being attempted?
A.RFI and command injection
B.LFI and null byte injection
C.SQL injection and XSS
D.Directory traversal and IDOR
AnswerB
LFI (Local File Inclusion) is the primary vulnerability, as the `include` function directly incorporates a local file path derived from user input, allowing an attacker to traverse directories (e.g., `../../`) and include arbitrary files from the server's file system. Null byte injection (`%00`) is crucial here because it can bypass the `.php` extension automatically appended by the application. By injecting `%00` after the desired file path (e.g., `/etc/passwd%00`), the server's string handling may truncate the string at the null byte, effectively ignoring the unwanted `.php` extension and including the specified file.
Why this answer
The attacker is using '../' for directory traversal to access files outside the web root, and a null byte injection (%00) to truncate the '.php' extension. This targets LFI (local file inclusion) via directory traversal.
Which of the following is the most effective defense against SQL injection attacks?
A.Parameterized queries
B.Escaping all user input
C.Input validation using blacklists
D.Stored procedures
AnswerA
Parameterized queries, also known as prepared statements, are the most effective defense because they fundamentally separate SQL code from user-supplied data. The database engine pre-compiles the SQL query structure, treating all subsequent user input as literal data values, not executable code. This prevents malicious input from altering the query's intent, making SQL injection attacks virtually impossible against properly implemented parameterized queries.
Why this answer
Parameterized queries (prepared statements) ensure user input is treated as data, not executable code, preventing SQL injection.
An attacker gains access to a cloud environment and attempts to move laterally by assuming an IAM role with higher privileges. Which cloud attack vector is the attacker exploiting?
A.SSRF attack
B.S3 bucket misconfiguration
C.IAM misuse
D.Container escape
AnswerC
IAM misuse directly describes scenarios where an attacker exploits existing, often overly permissive, Identity and Access Management (IAM) configurations to gain unauthorized access or elevate privileges. This frequently involves assuming an IAM role that has a trust policy configured to allow a compromised identity (e.g., another role, user, or service principal) to assume it, granting the attacker the permissions associated with that role. Such an action is a direct form of privilege escalation within the cloud environment, leveraging misconfigured trust relationships or policies.
Why this answer
IAM misuse involves exploiting misconfigured IAM roles or policies to escalate privileges. Assuming a role with higher privileges is a form of privilege escalation via IAM abuse.
Which cryptographic algorithm is classified as symmetric and uses a block cipher with key sizes of 128, 192, or 256 bits?
A.AES
B.ECC
C.Diffie-Hellman
D.RSA
AnswerA
AES (Advanced Encryption Standard) is correctly classified as a symmetric block cipher, meaning it utilizes the same secret key for both encrypting and decrypting data. It processes data in fixed-size blocks and supports key lengths of 128, 192, or 256 bits, making it highly efficient for bulk data encryption. Its widespread adoption as a standard for secure communication underscores its robust symmetric properties.
Why this answer
AES is a symmetric block cipher that supports key sizes of 128, 192, and 256 bits, and is widely used for encryption.
Which of the following cryptographic hash functions is known to be vulnerable to collision attacks and should be avoided for security applications?
A.RIPEMD-160
B.MD5
C.SHA-256
D.SHA-1
AnswerB
MD5, or Message-Digest Algorithm 5, is a widely known cryptographic hash function that produces a 128-bit hash value. It is definitively considered cryptographically broken due to the discovery of practical collision attacks, notably demonstrated in 2004. These vulnerabilities mean MD5 can no longer reliably guarantee data integrity or be used for digital signatures, making it unsuitable for secure applications.
Why this answer
MD5 is known to be vulnerable to collision attacks, making it unsuitable for security applications like digital signatures.
Which of the following is a passive OS fingerprinting technique?
A.Using nmap -O
B.Performing a ping sweep
C.Sending SYN packets and analyzing responses
D.Capturing packets and analyzing TTL values
AnswerD
Capturing packets and analyzing TTL values is a classic passive OS fingerprinting technique because it involves observing existing network traffic without sending any new packets to the target system. By passively sniffing packets that the target has already transmitted as part of its normal communication, an analyst can examine the Time-To-Live (TTL) field in the IP header. Different operating systems initialize TTL to distinct default values (e.g., 64, 128, 255), allowing for OS identification without any direct interaction or traffic generation.
Why this answer
Passive OS fingerprinting involves observing network traffic without actively sending packets to the target. Option D is correct because capturing packets and analyzing TTL (Time to Live) values allows an attacker to infer the operating system, as different OSes use default TTL values (e.g., Windows uses 128, Linux uses 64, Cisco IOS uses 255). This technique does not generate any probe traffic, making it passive.
Exam trap
The trap here is that candidates confuse 'passive' with 'stealthy' scanning, often picking nmap -O with stealth flags (e.g., -sS) as passive, but any active packet injection, regardless of stealth, constitutes active fingerprinting.
How to eliminate wrong answers
Option A is wrong because nmap -O actively sends a series of probes (e.g., TCP SYN, ICMP echo) to the target and analyzes responses to determine the OS, which is active fingerprinting. Option B is wrong because a ping sweep sends ICMP Echo Request packets to multiple hosts to check liveness, which is an active scanning technique that generates traffic. Option C is wrong because sending SYN packets and analyzing responses (e.g., SYN/ACK vs RST) is the basis of active TCP stack fingerprinting, as it requires injecting packets into the network.
Which of the following tools is specifically designed to enumerate SMB shares and user information from Windows systems using the SMB protocol?
A.snmpwalk
B.nmap
C.enum4linux
D.hping3
AnswerC
enum4linux is a highly effective tool specifically designed for enumerating information from Windows and Samba hosts. It acts as a wrapper script, consolidating the functionality of various underlying utilities such as smbclient, rpcclient, and net to extract a wide array of details. This includes user lists, group memberships, share names, password policies, and even operating system information, making it an indispensable resource for comprehensive Server Message Block (SMB) enumeration during penetration tests.
Why this answer
enum4linux is a tool specifically designed to enumerate SMB shares, user lists, OS information, and other details from Windows systems by leveraging the SMB protocol (typically over TCP/445 or TCP/139). It automates queries using SMB RPC calls, such as those from the `samr` and `lsarpc` pipes, making it the correct choice for targeted SMB enumeration.
Exam trap
The trap here is that candidates confuse nmap's broad scanning capabilities (including SMB scripts) with a tool that is purpose-built for SMB enumeration, leading them to select nmap instead of enum4linux.
How to eliminate wrong answers
Option A is wrong because snmpwalk is an SNMP enumeration tool that queries MIB data over UDP/161, not SMB shares or user information. Option B is wrong because nmap is a general-purpose port scanner and service detection tool; while it can detect open SMB ports and perform basic SMB script scans (e.g., smb-os-discovery), it is not specifically designed for deep SMB share and user enumeration like enum4linux. Option D is wrong because hping3 is a packet crafting and network stress testing tool that manipulates TCP/IP packets (e.g., for firewall testing or DoS), and it has no capability to enumerate SMB shares or user accounts.
Which THREE of the following are valid methods to exploit or test for Server-Side Request Forgery (SSRF)?
Select 3 answers
A.Injecting SQL commands into input fields
B.Using the file:// protocol to read local files
C.Submitting a URL pointing to http://127.0.0.1/admin
D.Sending a payload that includes <script>alert(1)</script>
E.Submitting a URL targeting http://169.254.169.254/latest/meta-data/
AnswersB, C, E
Utilizing the file:// protocol within an SSRF vulnerability allows an attacker to force the vulnerable server to read local files from its own filesystem. By supplying a URL like file:///etc/passwd or file:///C:/Windows/System32/drivers/etc/hosts, the server processes this internal URI, retrieves the specified file's content, and potentially returns it in the application's response. This method directly exploits the server's ability to handle local file system requests.
Why this answer
SSRF (Server-Side Request Forgery) can be exploited by making the server fetch internal resources. Common techniques include using the file:// protocol to read local files (e.g., /etc/passwd), accessing internal services via localhost (e.g., http://127.0.0.1/admin), and targeting cloud metadata endpoints (e.g., http://169.254.169.254/latest/meta-data/). Options B, C, and E are all valid SSRF techniques.
Exam trap
Candidates often think SSRF only involves HTTP requests to internal IPs, but the file:// protocol is equally valid and commonly tested.
Drag and drop the steps to perform a SQL injection attack manually 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
The correct sequence for manual SQL injection starts with identifying a vulnerable input (e.g., by observing error messages or behavior), then testing injection (e.g., adding a single quote), finding the number of columns using ORDER BY or UNION SELECT, using UNION to combine attacker-controlled queries, and finally extracting sensitive data. This order ensures each step builds on the previous one.
A security analyst runs `nbtstat -A 192.168.1.10` and receives output showing a table with names like COMPUTER<00>, COMPUTER<20>, and DOMAIN<1B>. What type of information has the analyst gathered?
A.NetBIOS names and their associated service types
B.SMB share lists and open sessions
C.DNS records for the host and domain
D.ARP cache entries for the subnet
AnswerA
The `nbtstat -A` (or `-a`) command is specifically designed to query a remote host's NetBIOS name table, displaying the NetBIOS names registered by that host. Each NetBIOS name is 16 characters long, with the 16th character (the suffix) indicating the service or application type associated with that name, such as `<20>` for a file server or `<00>` for a workstation service. This allows an analyst to identify active NetBIOS services on the target IP address, providing crucial reconnaissance information.
Why this answer
The `nbtstat -A` command performs a NetBIOS name table lookup against the target IP address using the NetBIOS over TCP/IP (NBT) protocol. The output displays NetBIOS names (e.g., COMPUTER<00>, COMPUTER<20>, DOMAIN<1B>) along with their associated service type suffixes (hex bytes), which identify the services running on the host, such as Workstation Service (<00>), Server Service (<20>), and Domain Master Browser (<1B>). This allows the analyst to enumerate the host's NetBIOS names and their corresponding service types.
Exam trap
The trap here is that candidates confuse `nbtstat -A` with commands that enumerate SMB shares or DNS records, but the key differentiator is the NetBIOS name table output with hex suffixes that explicitly indicate service types.
How to eliminate wrong answers
Option B is wrong because `nbtstat -A` does not list SMB share names or open sessions; those are obtained with commands like `net view` or `smbclient -L`. Option C is wrong because DNS records are queried via `nslookup` or `dig`, not through NetBIOS name resolution, which operates at a different layer (NetBIOS over TCP/IP, port 137). Option D is wrong because ARP cache entries are displayed with `arp -a`, not `nbtstat`, which deals with NetBIOS name tables, not MAC-to-IP mappings.
Drag a concept onto its matching description — or click a concept then click the description.
Concepts
Matches
Network scanning and enumeration
Packet capture and analysis
Exploitation framework
Password cracking
Web application security testing
Why these pairings
The correct matches are: Nmap for network scanning, Wireshark for packet analysis, Metasploit for exploitation, and Burp Suite for web app testing. Common confusions arise from swapping definitions between tools with overlapping functionalities.
A web application allows users to submit feedback that is stored in a database and displayed to other users without proper sanitization. A tester inputs '<script>alert(1)</script>' and it executes when other users view the feedback. Which type of XSS is this?
A.Self-XSS
B.DOM-based XSS
C.Stored XSS
D.Reflected XSS
AnswerC
Stored XSS, also known as Persistent XSS, occurs when a malicious script is permanently saved on the target server, typically within a database. When other users access the vulnerable web page that retrieves and displays this stored data (e.g., feedback, comments, forum posts), the malicious script is delivered to their browsers and executed automatically. This makes it a highly dangerous form of XSS as it can impact a large number of users without requiring individual interaction with a crafted link.
Why this answer
The payload is stored in the database and executed when other users load the page, which is stored (persistent) XSS.
An attacker uses the Social Engineering Toolkit (SET) to craft a phishing email that appears to come from the company's CEO, requesting the recipient to urgently wire funds to a new vendor. This attack is BEST described as which type of social engineering?
A.Pretexting
B.Spear phishing
C.Whaling
D.Quid pro quo
AnswerC
Whaling is a specialized form of phishing attack specifically designed to target high-ranking individuals within an organization, such as CEOs, CFOs, or other senior executives. These attacks are often highly sophisticated, leveraging extensive research to craft convincing lures that exploit the target's position of authority and access to sensitive information or financial assets. The scenario involving the impersonation of a CEO directly aligns with the definition of whaling, as it targets a "big fish" with significant organizational power.
Why this answer
Whaling is a targeted phishing attack aimed at high-profile individuals like the CEO or CFO. In this scenario, the attacker uses SET to impersonate the CEO and requests an urgent wire transfer, which is a classic whaling tactic because it targets a senior executive (the recipient) with a business-critical request. The attack is not generic phishing but specifically targets a 'big fish' within the organization.
Exam trap
The EC-CEH exam often tests the distinction between spear phishing and whaling by making candidates think any targeted email is spear phishing, but the trap here is that whaling is a subset of spear phishing specifically targeting senior executives, so the correct answer is the more specific term when the target is a 'big fish' like the CEO.
How to eliminate wrong answers
Option A is wrong because pretexting involves creating a fabricated scenario (pretext) to steal information, not sending a phishing email with a malicious request for funds. Option B is wrong because spear phishing targets a specific individual or group but does not require the target to be a high-level executive; this attack specifically targets the CEO or CFO, making it whaling. Option D is wrong because quid pro quo involves offering a service or benefit in exchange for information, such as a fake tech support call, not a fraudulent email requesting a wire transfer.
A user receives a phone call from someone claiming to be from IT support, asking for their password to perform a system update. This is an example of which social engineering technique?
A.Baiting
B.Pretexting
C.Phishing
D.Vishing
AnswerB
Pretexting involves an attacker fabricating a believable scenario and a false identity to manipulate a victim into divulging sensitive information. The attacker creates a detailed backstory, often impersonating someone in authority or a trusted entity, to establish a sense of legitimacy and urgency. This elaborate setup is designed to overcome the victim's skepticism and directly solicit specific data, like a password, through social engineering.
Why this answer
Pretexting is a social engineering technique where an attacker fabricates a scenario (pretext) to manipulate a target into divulging sensitive information. In this case, the caller creates a false identity (IT support) and a false reason (system update) to trick the user into revealing their password. This differs from other techniques because it relies on a constructed narrative rather than malicious software or direct impersonation via email or phone alone.
Exam trap
The trap here is that candidates confuse vishing (voice phishing) with pretexting, but the key differentiator is that pretexting involves a fabricated identity and scenario (pretext) to establish trust, whereas vishing is simply phishing conducted over voice without necessarily building a detailed false narrative.
How to eliminate wrong answers
Option A is wrong because baiting involves offering something enticing (e.g., a free USB drive or download) to lure the victim into executing malware or revealing credentials, not a direct phone call requesting a password. Option C is wrong because phishing is a broad term for social engineering via electronic communication (typically email) that uses deceptive links or attachments, not a live voice call. Option D is wrong because vishing (voice phishing) is a subset of phishing that uses phone calls, but the specific technique here is pretexting because the attacker establishes a false identity and scenario (pretext) to gain trust, not just a generic request for information.
An analyst is analyzing a suspicious file using VirusTotal and observes that only 3 out of 60 antivirus engines detect it as malicious. The file has been submitted before but with no detections. What should the analyst conclude?
A.The file is a clean file with a rare hash
B.The file is safe because most engines don't detect it
C.The file is likely a false positive
D.The file is likely malicious and requires further analysis
AnswerD
Low detection rate suggests it may be new malware; further analysis is warranted.
Why this answer
A detection rate of 3 out of 60 (5%) is extremely low, but the fact that the file was previously submitted with zero detections and now has three detections indicates that the antivirus engines have updated their signatures to identify it. This pattern is consistent with a new or polymorphic malware strain that initially evaded detection but is now being recognized by a few engines. A low detection rate does not guarantee safety; it often signals a targeted or zero-day threat that requires further analysis through sandboxing or dynamic analysis.
Exam trap
EC-Council often tests the misconception that a low detection rate (e.g., 3/60) means the file is safe, when in fact it indicates the file is likely malicious and requires further investigation, especially if the detection count has increased from zero.
How to eliminate wrong answers
Option A is wrong because a rare hash does not imply the file is clean; malware authors can generate unique hashes for each sample, and a file with a rare hash could still be malicious. Option B is wrong because the number of engines that do not detect a file is not a reliable indicator of safety; many engines may lack signatures for new or obfuscated malware, and relying solely on detection count is a common fallacy. Option C is wrong because a false positive occurs when an engine incorrectly flags a benign file, but here the file was previously undetected and now has three detections, which is more consistent with emerging malware than a false positive; false positives typically appear consistently across submissions, not as a new detection pattern.
A security analyst notices repeated TCP SYN packets sent to a server without corresponding SYN-ACK replies. The source IP addresses are spoofed and appear to be random. Which type of attack is MOST likely occurring?
A.SYN flood
B.UDP flood
C.ICMP flood
D.Ping of Death
AnswerA
A SYN flood is a classic Denial-of-Service (DoS) attack that exploits the TCP three-way handshake. Attackers send a large volume of TCP SYN requests to a target server, often with spoofed source IP addresses. The server responds with SYN-ACK packets and allocates resources to maintain a half-open connection, waiting for the final ACK that never arrives, eventually exhausting its connection table and preventing legitimate connections.
Why this answer
A SYN flood attack exploits the TCP three-way handshake by sending a high volume of SYN packets with spoofed source IP addresses to a target server. The server responds with SYN-ACK packets to the spoofed addresses, which never complete the handshake, causing the server to exhaust its memory and CPU resources by maintaining half-open connections. This matches the described behavior of repeated SYN packets without corresponding SYN-ACK replies.
Exam trap
The trap here is that candidates often confuse a SYN flood with a UDP flood because both are volumetric attacks, but the key differentiator is the use of TCP SYN packets and the spoofed source IPs targeting the handshake process, not just any protocol flood.
How to eliminate wrong answers
Option B (UDP flood) is wrong because it involves sending large numbers of UDP packets to random ports, not TCP SYN packets, and does not rely on the TCP handshake mechanism. Option C (ICMP flood) is wrong because it uses ICMP echo request (ping) packets to overwhelm the target, not TCP SYN packets. Option D (Ping of Death) is wrong because it involves sending a malformed ICMP packet larger than the maximum 65,535 bytes to cause a buffer overflow, not a flood of TCP SYN packets.
A web application uses XML to transmit data between client and server. A tester submits the following payload: '<?xml version="1.0"?><!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]><root>&xxe;</root>'. The application returns the content of the /etc/passwd file in the response. Which vulnerability is present?
A.SQL injection
B.XML External Entity (XXE) injection
C.Command injection
D.Cross-Site Scripting (XSS)
AnswerB
XML External Entity (XXE) injection is a vulnerability that allows an attacker to interfere with an application's processing of XML data containing external entity references. By crafting malicious XML input, an attacker can exploit improperly configured XML parsers to include arbitrary files from the server's filesystem, initiate Server-Side Request Forgery (SSRF) attacks, or even execute remote code in certain environments. This directly leverages the application's use of XML for data transmission, making it the most relevant attack type when XML entity manipulation is implied.
Why this answer
This is an XML External Entity (XXE) injection, where an external entity is used to read a local file and return its contents.
A security analyst notices unusual traffic from a smart thermostat to an external IP address. The thermostat is on a separate IoT VLAN. Which action should the analyst take to investigate and mitigate the threat?
A.Disconnect the thermostat from the network.
B.Block all outbound traffic from the IoT VLAN.
C.Uninstall the companion app from the user's smartphone.
D.Create a firewall rule to block traffic from the thermostat's MAC address to the external IP.
AnswerD
Creating a specific firewall rule to block traffic originating from the thermostat's unique MAC address destined for the identified external IP address is a precise and effective containment strategy. This action immediately isolates the suspicious communication without impacting the functionality of other legitimate devices on the network or preventing further internal analysis of the compromised thermostat. It allows for targeted mitigation while preserving operational continuity and forensic evidence.
Why this answer
Creating a firewall rule to block traffic from the thermostat's MAC address to the specific external IP is a targeted, least-disruptive mitigation. It preserves the IoT VLAN's functionality for other devices while stopping the suspicious communication. This approach allows the analyst to investigate further without losing visibility into the threat, as the thermostat remains on the network for forensic analysis.
Exam trap
The trap here is that candidates often choose Option A (disconnect) because it seems like an immediate containment step, but CEH emphasizes that disconnecting destroys forensic evidence and prevents further analysis, whereas a targeted firewall rule allows both mitigation and investigation.
How to eliminate wrong answers
Option A is wrong because disconnecting the thermostat removes the device from the network, preventing further monitoring and forensic analysis of the suspicious traffic; it also disrupts legitimate functionality without confirming the threat. Option B is wrong because blocking all outbound traffic from the IoT VLAN is overly broad and would break legitimate IoT services (e.g., firmware updates, cloud connectivity) for all devices on that VLAN, causing unnecessary operational impact. Option C is wrong because uninstalling the companion app from the user's smartphone does not address the network-level traffic from the thermostat itself; the thermostat communicates directly with the external IP, independent of the app, and the app may be unrelated to the malicious activity.
Which THREE of the following are components of PKI (Public Key Infrastructure)?
Select 3 answers
A.Certificate Authority (CA)
B.WPA3
C.Private key and public key pair
D.Digital certificates
E.RADIUS server
AnswersA, C, D
A Certificate Authority (CA) is a trusted third party that issues, manages, and revokes digital certificates. Its primary role within a Public Key Infrastructure (PKI) is to verify the identity of entities (users, devices, services) and bind their public keys to that identity through a signed digital certificate. CAs are fundamental to establishing trust in a PKI, as relying parties implicitly trust certificates signed by a CA they recognize.
Why this answer
Certificate Authority, digital certificates, and private/public key pairs are core PKI components.
A security analyst captures the following SMTP conversation: 220 mail.example.com ESMTP; HELO client; 250 Hello; VRFY root; 250 Super-User; VRFY admin; 252 Cannot VRFY user; VRFY user1; 550 User unknown. Which attack is the analyst performing?
A.SMTP header injection
B.SMTP open relay testing
C.SMTP user enumeration via VRFY
D.SMTP DDoS attack
AnswerC
SMTP user enumeration via VRFY is a technique where an attacker uses the VRFY (verify) command to query the mail server for the existence of specific usernames. A successful VRFY command typically elicits a "250 OK" response along with the full name or email address of the user if the account exists, whereas an invalid user often results in a "550 No such user" or similar error. This differential response allows an attacker to systematically build a list of valid user accounts on the system, which can then be used for further attacks like brute-forcing or phishing.
Why this answer
The analyst is using the SMTP VRFY command to check if specific usernames (root, admin, user1) exist on the mail server. The responses '250 Super-User' and '252 Cannot VRFY user' confirm valid usernames, while '550 User unknown' indicates an invalid one. This is a classic SMTP user enumeration technique, often used in the reconnaissance phase to gather valid account names for further attacks like password guessing or phishing.
Exam trap
The trap here is that candidates may confuse VRFY enumeration with SMTP open relay testing, but open relay checks the server's willingness to forward mail for arbitrary domains, not the validity of local user accounts.
How to eliminate wrong answers
Option A is wrong because SMTP header injection involves inserting malicious headers into email messages (e.g., via CRLF injection in the DATA or MAIL FROM command), not using VRFY to probe for user existence. Option B is wrong because SMTP open relay testing checks if the server forwards emails from unauthorized sources (e.g., by sending a test email to an external domain), not by querying user accounts with VRFY. Option D is wrong because a DDoS attack aims to overwhelm the server with traffic (e.g., flooding with connections or messages), not by sending a few VRFY commands to enumerate users.
Which THREE of the following are effective mitigations against brute force attacks on web application login forms? (Select 3)
Select 3 answers
A.Account lockout after failed attempts
B.Implementing CAPTCHA
C.Rate limiting on login endpoints
D.Enforcing strong password policies
E.Using HTTP basic authentication
AnswersA, B, C
Account lockout after failed attempts is a highly effective mitigation against brute-force attacks because it directly prevents an attacker from making an unlimited number of password guesses for a specific account. After a predefined threshold of incorrect login attempts is reached, the system temporarily or permanently disables access for that user, forcing the attacker to cease their automated guessing against that particular target. This significantly increases the time and resources required for a successful compromise.
Why this answer
Account lockout, rate limiting, and CAPTCHA all hinder automated brute force attempts. Strong password policies help but are not a direct mitigation against brute force rate.
Which of the following is a recommended countermeasure against WPA2 KRACK attacks?
A.Enable MAC filtering
B.Patch all clients and access points
C.Disable WPS
D.Switch to WEP encryption
AnswerB
Patching all clients and access points is the recommended and most effective countermeasure against Key Reinstallation Attacks (KRACK). These patches specifically modify the WPA2 protocol's 4-way handshake implementation to prevent the reinstallation of an all-zero or previously used cryptographic key. By fixing this logic flaw, devices can properly establish and maintain secure, unique session keys, thereby mitigating the attack vector.
Why this answer
KRACK attacks exploit vulnerabilities in the WPA2 4-way handshake key reinstallation. The primary fix is to install security patches on clients and APs that implement the IEEE 802.11 standard update. Disabling WPS does not prevent KRACK, and switching to WEP is less secure.
An attacker uses a tool that precomputes hash chains for common passwords to crack password hashes quickly. Which technique is the attacker employing?
A.Dictionary attack
B.Brute-force attack
C.Hybrid attack
D.Rainbow table attack
AnswerD
A rainbow table attack leverages large, precomputed tables containing hash chains generated using a specialized reduction function. These tables map hashes back to their original plaintext values by performing a lookup rather than real-time computation. When a target hash is found within the table, the corresponding chain is traversed to recover the original password, making it highly efficient for cracking hashes quickly without needing to recompute every possible password combination.
Why this answer
Rainbow table attack. This technique involves precomputing hash chains for common passwords and storing them in a table, allowing the attacker to reverse password hashes quickly by looking up the hash in the table rather than computing hashes on the fly. The tool described matches the core concept of a rainbow table, which uses a time-memory trade-off to crack hashes efficiently.
Exam trap
The trap here is that candidates confuse a rainbow table attack with a dictionary attack, because both involve lists of passwords, but the key distinction is precomputation versus real-time hashing.
How to eliminate wrong answers
Option A is wrong because a dictionary attack uses a list of plaintext passwords, hashing each one and comparing to the target hash in real time, not precomputed hash chains. Option B is wrong because a brute-force attack tries every possible combination of characters sequentially, without any precomputation or stored hash chains. Option C is wrong because a hybrid attack combines dictionary words with variations (e.g., appending numbers or symbols), but it still computes hashes on the fly rather than relying on precomputed chains.
A company wants to ensure that data in transit between its IoT devices and the cloud server is encrypted. Which protocol combination is BEST suited for this purpose?
A.MQTT without encryption
B.HTTP with SSL
C.MQTT with TLS
D.CoAP with DTLS
AnswerC
MQTT with TLS provides a robust and efficient solution for securing data in transit for IoT devices by encrypting the communication channel. TLS (Transport Layer Security) ensures confidentiality, data integrity, and server authentication, protecting MQTT control messages and payloads from eavesdropping and tampering. This combination leverages MQTT's lightweight publish-subscribe model with strong cryptographic security, making it ideal for constrained environments.
Why this answer
The best choice for encrypting data in transit between IoT devices and a cloud server is MQTT with TLS. MQTT is a lightweight, publish-subscribe protocol ideal for IoT, and TLS provides robust encryption. While CoAP with DTLS is also secure, it is typically used for constrained device-to-device communication, not as the primary protocol for cloud connectivity.
HTTP with SSL is too heavy for many IoT devices, and MQTT without encryption lacks security. Therefore, MQTT with TLS is the optimal combination.
A penetration tester uses theHarvester to gather information about a target domain. Which of the following data types is theHarvester PRIMARILY designed to collect?
A.Live network traffic captures
B.Passwords hashes
C.Email addresses and subdomains
D.Vulnerability scan results
AnswerC
Its primary purpose is to gather emails and subdomains associated with a domain.
Why this answer
theHarvester is an open-source intelligence (OSINT) tool designed to perform passive reconnaissance by querying public sources such as search engines (Google, Bing), PGP key servers, and the Shodan API. Its primary function is to collect email addresses, subdomains, IP addresses, and virtual hosts associated with a target domain, aiding in the footprinting phase of a penetration test.
Exam trap
The trap here is that candidates confuse theHarvester's passive OSINT collection with active scanning or exploitation tools, leading them to select options related to network traffic, password cracking, or vulnerability scanning.
How to eliminate wrong answers
Option A is wrong because theHarvester does not capture live network traffic; that is the function of packet sniffers like tcpdump or Wireshark, which operate at the data-link layer. Option B is wrong because theHarvester does not extract password hashes; hash retrieval is typically performed by tools like Hashcat or John the Ripper after obtaining a password database dump. Option D is wrong because theHarvester does not perform vulnerability scanning; vulnerability assessment is done by tools like Nessus or OpenVAS, which actively probe services for known CVEs.
An attacker sets up a rogue access point with the same SSID as a legitimate corporate network and broadcasts a stronger signal. Clients connect to the rogue AP. What type of attack is this?
A.WPS PIN attack
B.De-authentication attack
C.Evil twin attack
D.MAC spoofing attack
AnswerC
An evil twin attack precisely describes the scenario where an attacker sets up a rogue access point that mimics a legitimate one by using the same Service Set Identifier (SSID). The objective is to deceive unsuspecting users into connecting to the malicious AP, allowing the attacker to intercept their network traffic, capture credentials, or inject malware.
Why this answer
An evil twin attack involves a rogue AP mimicking a legitimate SSID to intercept traffic.
A penetration tester is trying to evade an IDS that detects out-of-order TCP packets. The tester uses Nmap with the -f flag. What is the PRIMARY effect of this flag?
A.Splits the TCP header into multiple packets to bypass simple packet filters
B.Slows down the scan to avoid triggering rate-based alarms
C.Sends packets from multiple decoy IP addresses to obscure the source
D.Spoofs the source IP address to hide the attacker's identity
AnswerA
The Nmap -f (fragment) option instructs the scanner to split the TCP header of outgoing packets across several small IP fragments. This technique aims to bypass simple, stateless packet filters or intrusion detection systems (IDS) that only inspect the initial fragment of a packet. By distributing critical header information, such as port numbers or flag settings, across multiple fragments, a basic IDS might fail to reassemble the full packet and thus miss the malicious intent, allowing the scan to proceed undetected.
Why this answer
The `-f` flag in Nmap fragments the IP packet into smaller pieces, typically 8-byte fragments, which splits the TCP header across multiple packets. This fragmentation causes the IDS to see out-of-order or incomplete TCP headers, making it harder for signature-based detection to reassemble and match malicious patterns, thus bypassing simple packet filters that do not perform full TCP reassembly.
Exam trap
The trap here is that candidates often confuse the `-f` flag with decoy or spoofing techniques, but the primary effect is fragmentation to evade packet filters and simple IDS, not to hide the source IP or slow the scan.
How to eliminate wrong answers
Option B is wrong because the `-f` flag does not control scan timing; slowing down to avoid rate-based alarms is achieved with the `-T` (timing) flags, such as `-T0` or `-T1`. Option C is wrong because sending packets from multiple decoy IP addresses is the function of the `-D` (decoy) flag, not `-f`. Option D is wrong because spoofing the source IP address is done with the `-S` flag or by using a spoofed source address in raw packets, not by fragmentation.
Which THREE of the following are examples of application-layer DDoS attacks? (Select 3)
Select 3 answers
A.Slowloris
B.HTTP flood
C.SYN flood
D.DNS amplification
E.UDP flood
AnswersA, B, D
Slowloris holds connections open to exhaust server resources.
Why this answer
Slowloris is an application-layer DDoS attack that targets web servers by opening multiple HTTP connections and keeping them alive with partial requests, sending headers slowly to exhaust the server's connection pool. It exploits the HTTP protocol's design where servers wait for complete requests before releasing resources, making it a classic Layer 7 attack.
Exam trap
The CEH exam often tests the distinction between Layer 4 (transport) and Layer 7 (application) attacks, and the trap here is that candidates confuse SYN flood or UDP flood as application-layer because they involve 'flooding,' but they operate at lower OSI layers.
During a penetration test, a tester runs enum4linux against a Windows server and receives the following output: 'S-1-5-21-3623811015-3361044348-30300820-500' and 'S-1-5-21-3623811015-3361044348-30300820-501'. Which TWO conclusions can be drawn from this output?
Select 2 answers
A.The Guest account is enabled
B.The Guest account SID was enumerated
C.The Administrator account SID was enumerated
D.The server is a domain controller
E.Password policy was retrieved
AnswersB, C
The enumeration of the Guest account SID is directly evidenced by the enum4linux output showing a Security Identifier (SID) ending with the Relative Identifier (RID) 501. RID 501 is a well-known, universal identifier for the Guest account on Windows systems. Successfully retrieving this specific SID confirms that the penetration tester has identified the unique identifier for the Guest account on the target machine, a key piece of reconnaissance information.
Why this answer
The SID ending in -500 is the well-known RID for the built-in Administrator account, and the SID ending in -501 is the RID for the built-in Guest account. Enum4linux enumerates user SIDs from the SAM database via SMB null sessions, confirming that both the Administrator and Guest account SIDs were retrieved. Therefore, options B and C are correct.
Exam trap
The trap here is that candidates assume the Guest account is enabled simply because its SID is listed, but enumeration only proves existence, not account status.
Which TWO of the following techniques are considered passive reconnaissance? (Select exactly 2.)
Select 2 answers
A.Performing a WHOIS lookup
B.Connecting to a web server to grab its banner
C.Sending ICMP echo requests to a target
D.Using Google dorks to find exposed files
E.Running a Nmap SYN scan
AnswersA, D
WHOIS queries public databases, no direct interaction with target.
Why this answer
A WHOIS lookup queries public databases (e.g., whois.arin.net) to retrieve registration details for domains or IP blocks. This process does not send any packets directly to the target system; it relies on third-party servers, making it a passive reconnaissance technique.
Exam trap
EC-Council often tests the distinction that any technique involving direct interaction with the target's network stack (even a single packet or connection) is active, while passive methods rely on third-party sources or pre-existing data.
A security analyst notices that a web application returns different HTTP responses for valid and invalid usernames during login. Which attack is this behavior most likely facilitating?
A.Username enumeration
B.Cross-site scripting (XSS)
C.Directory traversal
D.SQL injection
AnswerA
Username enumeration occurs when a web application's login mechanism provides distinct responses or behaviors for valid versus invalid usernames. This difference, which could manifest as varying HTTP status codes, specific error messages (e.g., "Username exists" vs. "Invalid credentials"), or even subtle timing discrepancies, allows an attacker to systematically test usernames and identify which ones correspond to existing accounts. Once valid usernames are identified, they become targets for subsequent brute-force attacks or credential stuffing.
Why this answer
The difference in responses (e.g., 'User not found' vs 'Invalid password') allows an attacker to enumerate valid usernames, which is a common first step in credential stuffing or brute-force attacks.
Which type of social engineering attack involves a malicious actor impersonating a legitimate organization in a voicemail message to trick the victim into revealing sensitive information?
A.SMiShing
B.Pharming
C.Baiting
D.Vishing
AnswerD
Vishing, a portmanteau of "voice" and "phishing," is a social engineering attack that utilizes voice communication, typically over telephone calls or Voice over IP (VoIP), to trick individuals. Attackers often impersonate trusted entities like banks, government agencies, or technical support to manipulate victims into revealing sensitive personal or financial information, or to perform actions like installing malicious software. Its defining characteristic is the direct, real-time vocal interaction with the target.
Why this answer
Vishing (voice phishing) is the correct answer because it specifically involves using voice communication—such as a phone call or voicemail—to impersonate a legitimate organization and trick the victim into revealing sensitive information like passwords or credit card numbers. Unlike other social engineering attacks, vishing exploits the trust associated with voice interactions and often uses caller ID spoofing to appear as a trusted entity.
Exam trap
The trap here is that candidates often confuse vishing with SMiShing because both involve phishing via communication channels, but SMiShing uses SMS text messages while vishing uses voice calls or voicemail.
How to eliminate wrong answers
Option A is wrong because SMiShing (SMS phishing) uses text messages (SMS) rather than voicemail to deliver the malicious lure, typically containing a link to a phishing site. Option B is wrong because pharming redirects users from a legitimate website to a fraudulent one by manipulating DNS settings or host files, without direct impersonation via voicemail. Option C is wrong because baiting involves offering something enticing (e.g., a free USB drive or download) to trick the victim into installing malware or revealing credentials, not leaving a voicemail message.
A security team has collected a hash file from a compromised Windows server that contains NTLM hashes. They want to crack the passwords as quickly as possible using a precomputed lookup table. Which tool and technique combination is BEST suited for this task?
A.Use John the Ripper in incremental mode
B.Use Hydra with a dictionary of common passwords
C.Use RainbowCrack with precomputed rainbow tables
D.Use Hashcat with a rules-based attack
AnswerC
RainbowCrack is specifically engineered to utilize precomputed rainbow tables for rapid offline hash cracking. This technique capitalizes on a significant time-memory trade-off, where extensive upfront computation generates large tables that allow for near-instantaneous reversal of hashes back to their plaintext passwords. This makes it an exceptionally efficient method for processing large volumes of captured hashes, often yielding results in mere seconds.
Why this answer
RainbowCrack is specifically designed for fast password cracking using precomputed rainbow tables, which are lookup tables that store hash chains for rapid reversal of hashes. Since the team already has NTLM hashes and wants the quickest method, RainbowCrack with precomputed tables avoids the computational overhead of real-time hashing, making it the best fit for this scenario.
Exam trap
EC-Council often tests the distinction between offline hash cracking (RainbowCrack, Hashcat, John) and online brute-forcing (Hydra), and the trap here is that candidates confuse Hydra's online attack capability with offline hash cracking, or assume Hashcat's rules-based attack is faster than a precomputed lookup table.
How to eliminate wrong answers
Option A is wrong because John the Ripper in incremental mode performs brute-force or mask attacks in real time, which is slower than using precomputed tables for already-collected hashes. Option B is wrong because Hydra is an online password brute-forcing tool for network services (e.g., SSH, FTP), not for cracking offline hash files. Option D is wrong because Hashcat with a rules-based attack still requires real-time hashing of candidate passwords, which is slower than a precomputed lookup table approach.
A security team discovers that an attacker has been intercepting and modifying traffic between a client and server by impersonating both endpoints. Which type of cryptographic attack is this?
A.Man-in-the-middle attack
B.Replay attack
C.Downgrade attack
D.Birthday attack
AnswerA
A Man-in-the-Middle (MITM) attack involves an attacker secretly relaying and potentially altering the communication between two parties who believe they are directly communicating with each other. The attacker positions themselves between the victim and the legitimate server, intercepting all traffic and often impersonating both ends. This allows for real-time eavesdropping, data modification, and session hijacking, directly matching the scenario of an attacker intercepting communication.
Why this answer
A man-in-the-middle (MITM) attack involves the attacker positioning themselves between the client and server to intercept and modify traffic.
You are a penetration tester for a financial institution. During the reconnaissance phase, you discover that the target network uses a firewall that only allows inbound TCP connections on ports 80, 443, and 8080. You need to identify live hosts and running services on the internal network (192.168.1.0/24) from an external perspective. To avoid detection, you must minimize the number of packets sent and ensure that your scanning technique does not complete the TCP three-way handshake. Additionally, you have limited time and need to scan all 65535 ports on the most promising target. Based on the firewall rules and the need for stealth, which of the following approaches should you take?
A.Perform a TCP connect scan (-sT) on all ports of the subnet to identify open ports and services.
B.Perform an Xmas scan (-sX) on all ports of the subnet to evade detection by sending packets with invalid flag combinations.
C.First, perform a TCP SYN scan (-sS) on the three allowed ports across the subnet. Once a live host is identified, perform a TCP SYN scan (-sS) on all 65535 ports of that host.
D.Perform a UDP scan (-sU) on all ports of the subnet because UDP is connectionless and less likely to be logged.
AnswerC
The TCP SYN scan (-sS), also known as a "half-open" scan, is highly effective and stealthy because it initiates a TCP handshake but does not complete it. It sends a SYN packet and, upon receiving a SYN/ACK, immediately sends an RST, preventing full connection logging. This two-phase approach is optimal: initially scanning only the three known allowed ports across the subnet efficiently identifies active hosts, then a comprehensive SYN scan on all 65535 ports of *only* the live hosts provides a detailed service map while minimizing overall network footprint and detection risk.
Why this answer
A TCP SYN scan (-sS) sends only a SYN packet and does not complete the three-way handshake, making it stealthy. First scanning only the three allowed ports (80, 443, 8080) across the subnet minimizes packets and identifies live hosts. Once a promising target is found, a full SYN scan on all 65535 ports efficiently maps services while evading the firewall's restrictions.
Exam trap
The trap here is that candidates may choose an Xmas scan (Option B) thinking it is stealthy due to invalid flags, but fail to realize that modern firewalls and IDS systems easily detect and drop such anomalous packets, making it ineffective against port-based allow rules.
How to eliminate wrong answers
Option A is wrong because a TCP connect scan (-sT) completes the full three-way handshake, generating more packets and logs, which increases detection risk and violates the requirement to avoid completing the handshake. Option B is wrong because an Xmas scan (-sX) sends packets with FIN, URG, and PSH flags set, which many firewalls and intrusion detection systems (IDS) drop or log as anomalous; it is also ineffective against firewalls that only allow specific TCP ports (80, 443, 8080) and may not elicit responses from filtered ports. Option D is wrong because a UDP scan (-sU) is connectionless but is slow, unreliable, and often blocked or rate-limited by firewalls; it does not leverage the allowed TCP ports and would generate excessive packets without stealth benefits.
Which malware analysis approach involves running the suspicious file in a controlled environment to observe its behavior?
A.Dynamic analysis
B.Code review
C.Signature detection
D.Static analysis
AnswerA
Dynamic analysis involves executing the suspicious malware sample within a controlled environment, such as a sandbox or virtual machine, to observe its real-time behavior. This approach monitors system calls, network communications, file system modifications, and registry changes as the malware runs, providing critical insights into its operational characteristics and potential impact. By observing execution, analysts can understand how the malware interacts with its environment and what malicious actions it attempts.
Why this answer
Dynamic analysis is the correct approach because it involves executing the suspicious file in a controlled, isolated environment (such as a sandbox or virtual machine) to monitor its runtime behavior, including file system changes, registry modifications, network connections, and process injections. This allows analysts to observe actual malicious actions without risking the production environment, making it essential for understanding zero-day threats and obfuscated malware that static analysis might miss.
Exam trap
EC-Council often tests the misconception that static analysis is sufficient for all malware types, but the trap here is that candidates confuse 'static analysis' (which examines code without execution) with 'dynamic analysis' (which requires execution), leading them to pick static analysis when the question explicitly asks for observing behavior in a controlled environment.
How to eliminate wrong answers
Option B is wrong because code review is a manual or automated examination of the malware's source code or disassembled instructions without execution, which falls under static analysis and cannot reveal runtime behaviors like API calls or network traffic. Option C is wrong because signature detection relies on pre-defined patterns (e.g., hash values or byte sequences) to identify known malware, but it fails against polymorphic or novel malware that lacks matching signatures. Option D is wrong because static analysis examines the file's structure, strings, and code without execution, missing dynamic behaviors such as self-modification, anti-debugging tricks, or delayed payload activation.
A penetration tester uses the following command to extract the contents of a SAM file: 'samdump2 SYSTEM /mnt/windows/Windows/System32/config/SAM'. What is the primary purpose of this action?
A.To escalate privileges on the system
B.To enumerate users via LDAP
C.To capture NTLM hashes for offline cracking
D.To perform a pass-the-hash attack
AnswerC
This command's primary purpose is to extract NTLM password hashes from a compromised Windows system, typically targeting the Security Account Manager (SAM) database or the Local Security Authority Subsystem Service (LSASS) memory. Once extracted, these hashes can be transferred to an attacker-controlled machine for offline cracking using tools like Hashcat or John the Ripper. Offline cracking allows for brute-force or dictionary attacks without directly interacting with the target system, reducing detection risk and computational burden on the victim.
Why this answer
The `samdump2` tool extracts password hash data from the SAM (Security Account Manager) registry hive file. By providing the SYSTEM hive (which contains the boot key) and the SAM file, the tool decrypts and dumps the NTLM hashes of local user accounts. These hashes can then be used in offline cracking attacks (e.g., with John the Ripper or Hashcat) to recover plaintext passwords, making option C correct.
Exam trap
The trap here is that candidates may confuse the purpose of dumping hashes (offline cracking) with the subsequent attack technique (pass-the-hash), but the question asks for the primary purpose of the `samdump2` command itself, which is hash extraction for cracking, not immediate authentication.
How to eliminate wrong answers
Option A is wrong because `samdump2` does not perform privilege escalation; it simply reads already-obtained files from a compromised system. Option B is wrong because LDAP enumeration is used for querying Active Directory directory services, not for extracting local SAM database hashes. Option D is wrong because pass-the-hash attacks use captured NTLM hashes directly for authentication without cracking them, whereas the primary purpose of dumping hashes with `samdump2` is to obtain them for offline cracking.
Which THREE of the following are common methods used to mitigate DDoS attacks? (Select 3)
Select 3 answers
A.MAC flooding
B.Rate limiting
C.Scrubbing centers
D.ARP poisoning
E.Anycast network distribution
AnswersB, C, E
Rate limiting restricts the number of requests accepted from a source.
Why this answer
Rate limiting is a common mitigation technique that restricts the number of requests a server or network device will accept from a specific source within a given time window. By enforcing thresholds (e.g., packets per second), it prevents any single source from overwhelming the target, effectively reducing the impact of volumetric DDoS attacks.
Exam trap
EC-CEH often tests the distinction between attack techniques (like MAC flooding and ARP poisoning) and legitimate mitigation strategies, so candidates mistakenly select these as defenses because they are network-related terms.
A security analyst is investigating a compromised Linux system and finds the following: - A binary with SUID bit set owned by root that is not a standard system binary - The file /etc/ld.so.preload contains a reference to a shared object in /tmp - The system logs show gaps of several minutes during peak hours. Which TWO techniques has the attacker MOST likely used to maintain access and evade detection?
Select 2 answers
A.SUID privilege escalation
B.Password cracking
C.Kernel module rootkit
D.LD_PRELOAD rootkit
E.Steganography
AnswersA, D
SUID privilege escalation occurs when a root-owned executable has its SUID bit set, allowing any user to execute it with the effective privileges of the file owner, typically root. Attackers can exploit this by finding or creating such binaries, then using them to spawn a root shell or execute arbitrary commands with elevated privileges. This is a common post-exploitation technique for maintaining root access or escalating from a low-privileged user, making it a highly plausible method for a compromised Linux system.
Why this answer
The SUID bit set on a non-standard binary owned by root allows an attacker to execute that binary with root privileges, providing a persistent privilege escalation mechanism. The reference in /etc/ld.so.preload to a shared object in /tmp indicates an LD_PRELOAD rootkit, which forces the dynamic linker to load a malicious library before all others, enabling hooking of system calls to hide processes, files, or network connections.
Exam trap
EC-Council expects candidates to distinguish between user-space rootkits (like LD_PRELOAD) and kernel-level rootkits (like kernel modules); the trap here is that candidates may confuse the /etc/ld.so.preload mechanism with a kernel module rootkit, but the file path and preload technique are hallmarks of a user-space rootkit, not a kernel module.
A security analyst finds multiple failed login attempts in the system logs, followed by a successful login from an unusual IP address. The attacker then deleted the log entries for that session. Which step of the system hacking methodology (CHPSET) does the log deletion represent?
A.Spying
B.Executing applications
C.Cracking passwords
D.Erasing tracks
AnswerD
Erasing tracks, also known as anti-forensics or covering one's tracks, is a critical post-exploitation phase where an attacker attempts to remove or alter evidence of their presence and activities on a compromised system. This often involves deleting or modifying system logs, clearing command history, manipulating timestamps, or using secure deletion tools to prevent forensic analysis and maintain stealth. The goal is to avoid detection and hinder incident response efforts by making it difficult to reconstruct the attack chain.
Why this answer
The log deletion represents the 'Erasing tracks' step in the CHPSET methodology. After gaining unauthorized access, attackers must cover their footprints by removing evidence of their activities, such as clearing system logs, modifying timestamps, or deleting audit trails. This ensures the intrusion remains undetected by system administrators or security monitoring tools.
Exam trap
The trap here is confusing 'Erasing tracks' with 'Spying' because both involve post-exploitation actions, but spying focuses on data collection while erasing tracks specifically targets log and evidence removal.
How to eliminate wrong answers
Option A is wrong because 'Spying' refers to passive monitoring or data exfiltration after access is established, not the act of removing forensic evidence. Option B is wrong because 'Executing applications' involves running tools or payloads to achieve objectives like privilege escalation or backdoor installation, not log manipulation. Option C is wrong because 'Cracking passwords' is part of the initial access phase (e.g., brute-forcing or hash cracking) and occurs before successful login, not after the attacker has already authenticated.
A security engineer is reviewing web server logs and finds the following request: GET /files/../../../etc/passwd HTTP/1.1. Which THREE attacks could be associated with this request? (Choose THREE.)
Select 3 answers
A.Directory traversal
B.File disclosure
C.SQL injection
D.Command injection
E.Local File Inclusion (LFI)
AnswersA, B, E
Directory traversal, also known as path traversal, is an attack that allows an attacker to access files and directories stored outside the web root directory. The `../` sequences in the request are a clear indicator, as they instruct the server to navigate up the directory hierarchy. By repeatedly using `../`, the attacker attempts to escape the restricted web directory and access sensitive system files like `/etc/passwd`.
Why this answer
The request uses path traversal to access /etc/passwd (directory traversal/LFI). It can be used for file disclosure, and if the file is included in a script, it could be LFI. Command injection is not related.
An attacker has gained access to a Windows server and wants to crack the password hashes extracted from the SAM file. The attacker knows the passwords are complex but wants to maximize speed. Which tool is BEST suited for high-speed password cracking using GPU acceleration?
A.Ophcrack
B.RainbowCrack
C.John the Ripper
D.Hashcat
AnswerD
Hashcat is universally recognized as the world's fastest and most advanced password recovery utility, meticulously engineered to exploit the massive parallel processing power of modern Graphics Processing Units (GPUs). It supports an extensive and ever-growing list of hash algorithms and attack modes, including dictionary, brute-force, mask, and hybrid attacks, making it exceptionally efficient for high-speed cracking operations. Its highly optimized kernel code and ability to scale across multiple GPUs position it as the premier tool for rapid password hash analysis and recovery.
Why this answer
Hashcat is the correct answer because it is specifically designed for high-speed password cracking using GPU acceleration, leveraging OpenCL or CUDA to offload computation to the GPU. This allows it to achieve millions of hashes per second, making it ideal for cracking complex passwords from SAM hashes (NTLM) when speed is the priority.
Exam trap
The trap here is that candidates often confuse 'rainbow table' tools (Ophcrack, RainbowCrack) with GPU-accelerated crackers, or assume John the Ripper is always the fastest, but Hashcat is the explicit choice for maximum GPU speed in CEH scenarios.
How to eliminate wrong answers
Option A is wrong because Ophcrack uses rainbow tables (precomputed hash chains) and is CPU-based, not GPU-accelerated, so it is slower for complex passwords and less efficient for on-the-fly cracking. Option B is wrong because RainbowCrack also relies on rainbow tables and is primarily CPU-based; while it can use some GPU acceleration in newer versions, it is not optimized for high-speed GPU cracking like Hashcat and requires precomputation time. Option C is wrong because John the Ripper can use GPU acceleration (via its 'john-gpu' variant), but its default mode is CPU-based and it is generally slower and less feature-rich for GPU cracking compared to Hashcat, which is the industry standard for GPU-accelerated password recovery.
A security analyst wants to gather information about a target domain using publicly available sources without directly interacting with the target’s systems. Which type of reconnaissance is being performed?
A.Vulnerability scanning
B.Social engineering
C.Active reconnaissance
D.Passive reconnaissance
AnswerD
Passive reconnaissance uses publicly available information without direct interaction.
Why this answer
Passive reconnaissance involves collecting information about a target from publicly available sources without sending any packets or making direct contact with the target's systems. This approach relies on open-source intelligence (OSINT) such as WHOIS records, DNS lookups, search engines, and social media, ensuring no footprint is left on the target's network.
Exam trap
The trap here is confusing passive reconnaissance with active reconnaissance; candidates often think any information gathering is 'active' because it involves tools, but the key distinction is whether the target's systems are directly contacted (active) or not (passive).
How to eliminate wrong answers
Option A is wrong because vulnerability scanning is an active process that sends probes (e.g., SYN packets, HTTP requests) to identify weaknesses, directly interacting with target systems. Option B is wrong because social engineering involves manipulating people to divulge information, which requires direct interaction (e.g., phishing emails, phone calls) and is not a reconnaissance technique based solely on public sources. Option C is wrong because active reconnaissance involves direct engagement with the target's systems (e.g., port scanning with Nmap, banner grabbing), generating traffic that can be logged or detected.
A security analyst receives an email that appears to be from the CEO, urgently requesting a wire transfer. The email address is slightly misspelled (ceo@cornpany.com instead of ceo@company.com). Which type of social engineering attack is this?
A.Vishing
B.Whaling
C.Spear phishing
D.Phishing
AnswerC
Targeted at a specific individual with personalized content.
Why this answer
Spear phishing is a targeted social engineering attack where the attacker customizes the message for a specific individual or organization, often using a spoofed or lookalike domain. In this scenario, the email is directed at a security analyst, impersonates the CEO, and uses a slightly misspelled domain (ceo@cornpany.com) to deceive the recipient, which is a classic spear phishing technique because it targets a specific role within the company.
Exam trap
The EC-CEH exam often tests the distinction between generic phishing and spear phishing by including a personalized element (like a specific name or role) to trick candidates into choosing the broader 'Phishing' option.
How to eliminate wrong answers
Option A is wrong because vishing (voice phishing) involves voice calls or VoIP systems, not email-based attacks. Option B is wrong because whaling is a subtype of spear phishing that specifically targets high-level executives (e.g., CEO, CFO), but here the target is a security analyst, not the CEO themselves. Option D is wrong because phishing is a broad, untargeted attack sent to many recipients, whereas this email is personalized and directed at a specific individual, making it spear phishing.
During a web application test, an analyst intercepts a request containing a 'Referer' header that points to a different domain. The analyst modifies the request by removing the 'Referer' header and the action still executes successfully. Which type of attack is the analyst testing?
A.Server-Side Request Forgery (SSRF)
B.Clickjacking
C.Cross-Site Request Forgery (CSRF)
D.Cross-Site Scripting (XSS)
AnswerC
Cross-Site Request Forgery (CSRF) exploits a user's authenticated session to force their browser to send an unwanted request to a vulnerable web application. A common defense against CSRF involves the server inspecting the HTTP Referer header to verify that the request originated from the application's own domain, preventing requests from external, malicious sites. An analyst successfully bypassing this Referer header check by manipulating or omitting it directly demonstrates a CSRF vulnerability, as the server's origin validation mechanism has been defeated.
Why this answer
CSRF protection often relies on checking the Referer header; if it can be removed or spoofed, the application is vulnerable to CSRF.
Which THREE of the following are correct statements about DNS zone transfers?
Select 3 answers
A.A successful zone transfer reveals all DNS records for the domain
B.The tool dnsrecon can attempt a zone transfer
C.Zone transfers are encrypted by default
D.Zone transfers should be restricted to authorized secondary DNS servers
E.Zone transfers use UDP port 53
AnswersA, B, D
A successful DNS zone transfer (AXFR or IXFR) is designed to replicate the entire DNS zone file from a primary (master) DNS server to a secondary (slave) DNS server. This process inherently exposes all resource records (A, AAAA, MX, NS, SOA, SRV, TXT, etc.) configured for that specific domain. Consequently, an attacker who successfully performs an unauthorized zone transfer gains comprehensive knowledge of the domain's network infrastructure and hosts.
Why this answer
A successful DNS zone transfer (AXFR) returns the complete zone file, which contains all DNS records for the domain, including A, AAAA, MX, CNAME, NS, and TXT records. This is why it is a critical information-gathering step during reconnaissance.
Exam trap
The trap here is that candidates confuse DNS query transport (UDP 53) with zone transfer transport (TCP 53), and assume zone transfers are encrypted by default when they are not.
Customers retain full responsibility for classifying their data based on sensitivity and implementing appropriate encryption mechanisms for their data, both at rest and in transit. This is a crucial "security in the cloud" responsibility because only the customer understands the regulatory, compliance, and business impact of their specific data. While the cloud provider offers encryption tools, the customer must configure and manage these data protection controls.
Why this answer
The customer is responsible for data classification and account management, while the provider secures the physical infrastructure.
A security analyst captures WPA2 handshake packets using airodump-ng and then runs aircrack-ng with a wordlist. After several minutes, aircrack-ng reports 'KEY FOUND!' followed by a hex string. Which attack was successfully performed?
A.Dictionary attack on the 4-way handshake
B.Hash length extension attack on the MIC
C.Rainbow table attack on the WPA2 handshake
D.Brute-force attack against the PSK
AnswerA
A dictionary attack is the most practical method for cracking WPA2-PSK when a 4-way handshake has been captured. Tools like Aircrack-ng take a wordlist and for each entry, derive the Pairwise Master Key (PMK) using PBKDF2 with the SSID as a salt. This derived PMK is then used to reconstruct the Message Integrity Code (MIC) from the captured handshake. If the calculated MIC matches the one in the captured handshake, the wordlist entry is confirmed as the correct Pre-Shared Key (PSK).
Why this answer
The analyst captured the 4-way handshake and used a dictionary attack (wordlist) to recover the PSK. This is a dictionary attack, not brute force (which tries all combinations), rainbow table, or hash length extension (which is for hash-based MACs).
During a penetration test, a tester uses the SMTP VRFY command against a mail server. The server responds with '252 Cannot VRFY user, but will accept message' for most usernames. Which action should the tester take to enumerate valid email addresses more effectively?
A.Use the EXPN command to expand mailing lists and verify addresses
B.Use the NetBIOS nbtstat command to query the mail server
C.Run a brute-force attack on the SMTP service using Hydra
D.Switch to SNMP enumeration to gather email addresses
AnswerA
EXPN can reveal valid addresses from mailing lists; RCPT TO is another alternative.
Why this answer
The SMTP VRFY command is used to verify whether a specific user exists on the mail server. When the server responds with '252 Cannot VRFY user, but will accept message', it indicates that VRFY is disabled or restricted, but the server still supports the EXPN command. EXPN (Expand) reveals the actual members of a mailing list or alias, allowing the tester to enumerate valid email addresses indirectly by querying known or guessed list names.
Exam trap
The trap here is that candidates assume a '252' response to VRFY means the user does not exist, when in fact it indicates VRFY is disabled, and they overlook the EXPN command as an alternative enumeration method.
How to eliminate wrong answers
Option B is wrong because nbtstat is a NetBIOS over TCP/IP command used to query NetBIOS name tables and WINS servers, not SMTP servers; it cannot enumerate email addresses. Option C is wrong because a brute-force attack on SMTP with Hydra would target authentication credentials (e.g., SMTP AUTH), not enumerate valid usernames via VRFY/EXPN; it is also noisy and likely to trigger account lockouts. Option D is wrong because SNMP enumeration can gather system information (e.g., user lists from SNMP MIBs) but is not a direct or effective method for enumerating email addresses from an SMTP server; it requires SNMP to be enabled and accessible.
Which TWO of the following are examples of asymmetric cryptography? (Select 2)
Select 2 answers
A.RSA
B.ECC
C.3DES
D.MD5
E.AES
AnswersA, B
RSA (Rivest-Shamir-Adleman) is a foundational asymmetric encryption algorithm that relies on the mathematical difficulty of factoring the product of two large prime numbers. It employs a distinct public key for encryption and a corresponding private key for decryption, enabling secure communication and digital signatures without prior key exchange. This public/private key pair structure is the defining characteristic of asymmetric cryptography, making it a correct example.
Why this answer
RSA and ECC are asymmetric algorithms. AES and 3DES are symmetric. MD5 is a hash function.
A security analyst receives an alert from the IDS indicating a port scan originating from IP 10.0.0.5. Upon investigation, the analyst finds that 10.0.0.5 is a legitimate internal server. Which type of scan is the attacker likely using to evade detection?
A.SYN scan
B.Idle scan
C.Decoy scan
D.Fragmentation scan
AnswerC
A Decoy scan is specifically designed to obscure the true source of a port scan by interspersing the attacker's real IP address with several spoofed IP addresses. The target receives scan packets appearing to originate from multiple hosts simultaneously, including the attacker's actual IP and numerous fake decoys. This technique generates significant noise in IDS logs, making it challenging to distinguish the legitimate attacker from the fabricated sources, potentially flagging one of the decoy IPs as the source.
Why this answer
A decoy scan (option C) is the correct answer because it allows the attacker to blend their real IP address with multiple spoofed IP addresses, making it appear as though the scan originates from several hosts. In this scenario, the IDS alerts on IP 10.0.0.5, which is a legitimate internal server, indicating that the attacker is using that server's IP as a decoy to evade detection and misdirect the analyst's investigation.
Exam trap
The trap here is that candidates often confuse a decoy scan with an idle scan, mistakenly thinking that using a legitimate internal server as a decoy is the same as using a zombie host, but idle scans rely on IP ID side-channel analysis and do not involve spoofing the attacker's own traffic.
How to eliminate wrong answers
Option A is wrong because a SYN scan sends raw SYN packets and does not spoof the source IP; the attacker's real IP would be directly visible in the IDS logs, not a legitimate internal server. Option B is wrong because an idle scan (also known as a zombie scan) uses a third-party host (the zombie) with a predictable IP ID sequence to indirectly probe the target, but the scan traffic appears to come from the zombie, not from a legitimate internal server like 10.0.0.5. Option D is wrong because a fragmentation scan splits TCP headers into multiple small IP fragments to evade simple packet filters, but it does not alter the source IP address, so the attacker's real IP would still be logged.
A penetration tester discovers a service running on UDP port 161 with a default community string 'public'. They use `snmpwalk -v2c -c public 192.168.1.10` and retrieve extensive system information. Which enumeration technique is being performed?
A.SMB enumeration
B.LDAP enumeration
C.SMTP enumeration
D.SNMP enumeration
AnswerD
Simple Network Management Protocol (SNMP) is a foundational protocol for managing and monitoring network devices, and it predominantly uses UDP for its operations. SNMP agents typically listen for manager requests on UDP port 161, while managers receive asynchronous notifications (traps and informs) on UDP port 162. Enumeration tools like `snmpwalk` specifically target UDP port 161 to query and retrieve the entire Management Information Base (MIB) tree from compliant devices, confirming its relevance to a service on UDP 161.
Why this answer
The question describes using SNMP (Simple Network Management Protocol) over UDP port 161 with the default community string 'public' and the `snmpwalk` command to retrieve system information. This is a classic SNMP enumeration technique, where an attacker queries MIB (Management Information Base) data to extract details like running processes, user accounts, and network configurations.
Exam trap
The trap here is that candidates may confuse SNMP enumeration with other enumeration techniques because they see 'enumeration' in the question, but the specific use of UDP port 161 and the `snmpwalk` command uniquely identifies SNMP enumeration.
How to eliminate wrong answers
Option A is wrong because SMB enumeration uses TCP ports 139 or 445 and tools like `enum4linux` or `smbclient`, not UDP port 161 or SNMP commands. Option B is wrong because LDAP enumeration uses TCP/UDP port 389 and queries directory services via `ldapsearch`, not SNMP or the `snmpwalk` command. Option C is wrong because SMTP enumeration uses TCP port 25 and commands like `VRFY` or `EXPN` to verify email users, not UDP port 161 or SNMP protocols.
A security analyst captures a large number of initialization vectors (IVs) on a WEP-protected network. Which tool is most commonly used to crack the WEP key using IVs?
A.Aircrack-ng
B.Reaver
C.Kismet
D.John the Ripper
AnswerA
Aircrack-ng is specifically engineered to exploit the cryptographic weaknesses inherent in the WEP protocol, primarily by collecting a sufficient number of Initialization Vectors (IVs). It leverages statistical attacks, such as the FMS attack, to deduce the WEP key from patterns observed in these IVs, which are often reused or predictable due to WEP's design flaws. The tool then performs a brute-force or dictionary attack on the derived key space, making it highly effective when a large volume of IVs has been captured.
Why this answer
Aircrack-ng is the standard tool for cracking WEP keys by capturing IVs. Reaver is for WPS, Kismet is a sniffer, and John the Ripper is a general password cracker.
An attacker has gained initial access to a Windows system and wants to escalate privileges to SYSTEM. They find that the SeImpersonatePrivilege is enabled for their current user. Which tool or technique is specifically designed to leverage this privilege for elevation?
A.Token impersonation using RottenPotato
B.Pass-the-hash attack
C.Kerberoasting
D.SUID abuse
AnswerA
Token impersonation using RottenPotato is a highly effective local privilege escalation technique on Windows systems. It exploits the `SeImpersonatePrivilege`, often held by services like IIS or SQL Server, by leveraging NTLM relay attacks against local COM/DCOM services. This allows an attacker to trick a privileged process, typically running as `NT AUTHORITY\SYSTEM`, into authenticating to a malicious listener, enabling the attacker to impersonate the resulting SYSTEM token and gain full administrative control.
Why this answer
The SeImpersonatePrivilege allows a process to impersonate a user after obtaining a token. RottenPotato (and its variants like JuicyPotato) exploits this privilege by forcing a high-integrity service (e.g., DCOM or RPC) to authenticate to a malicious server under the attacker's control, capturing a SYSTEM-level token and using it to execute code with elevated privileges.
Exam trap
EC-Council often tests the distinction between Windows token impersonation attacks (SeImpersonatePrivilege) and Linux SUID abuse, leading candidates to mistakenly select SUID abuse when the question explicitly mentions a Windows system.
How to eliminate wrong answers
Option B (Pass-the-hash) is wrong because it reuses NTLM hashes to authenticate as another user over the network, not to escalate from a local user to SYSTEM via token impersonation. Option C (Kerberoasting) is wrong because it targets service account Kerberos tickets for offline cracking, requiring domain credentials and not leveraging SeImpersonatePrivilege. Option D (SUID abuse) is wrong because it is a Linux/Unix privilege escalation technique involving set-user-ID executables, not applicable to Windows token manipulation.
A penetration tester runs `nbtstat -A 192.168.1.10` on a Windows machine. The output reveals the NetBIOS name table and shows a <20> entry. What does this indicate?
A.The target is a printer
B.The target is a file server
C.The target is a domain controller
D.The target is a workstation
AnswerB
The NetBIOS suffix <20> (hexadecimal) is specifically registered by a computer running the Server service, which is fundamentally responsible for sharing files and printers over the network. When `nbtstat -a` reveals a <20> entry for a target IP address, it strongly indicates that the machine is configured to act as a file server, making its shared resources available to other network clients. This is the definitive indicator for a file server role.
Why this answer
The <20> entry in the NetBIOS name table indicates that the target machine is running the File Server service, which is a NetBIOS service type for file sharing. The `nbtstat -A` command queries the remote NetBIOS name table, and the <20> hex code specifically maps to the 'File Server Service' (also known as the 'Server' service) in the NetBIOS naming convention, as defined in RFC 1001/1002. This service is essential for SMB-based file sharing, making the target a file server.
Exam trap
The trap here is that candidates often confuse the <20> entry with a general 'server' role, but the CEH exam specifically tests the mapping of NetBIOS suffixes to services, where <20> uniquely identifies the File Server Service, not a domain controller or workstation.
How to eliminate wrong answers
Option A is wrong because a printer typically has a <20> entry for the 'File Server Service' only if it also shares files, but the standard NetBIOS code for a printer is <00> or <03> for the workstation service, not <20>. Option C is wrong because a domain controller would show additional entries like <1C> (Domain Controller) or <1B> (Domain Master Browser), not just <20>. Option D is wrong because a workstation primarily has a <00> entry for the Workstation Service, not a <20> entry, which is specific to the Server Service for file sharing.
During a penetration test, you run the command: 'macof -i eth0 -s 192.168.1.1 -d 192.168.2.1 -e 00:11:22:33:44:55'. What is the intended effect of this command?
A.Execute a SYN flood against the target
B.Perform MAC flooding to cause switch to fail open
C.Perform ARP poisoning
D.Spoof DNS responses
AnswerB
The command macof -i eth0 specifically performs MAC flooding by continuously sending frames with randomly generated source MAC addresses to exhaust the switch's Content Addressable Memory (CAM) table. When the CAM table overflows, the switch typically enters a "fail-open" mode, behaving like a hub by broadcasting all incoming traffic out of all ports. This allows an attacker connected to any port on the switch to capture and analyze all network traffic, effectively bypassing the switch's normal segmentation.
Why this answer
The `macof` tool generates a flood of random MAC addresses on the specified interface, overwhelming the switch's Content Addressable Memory (CAM) table. When the CAM table is full, the switch fails open and begins flooding all frames out all ports, effectively turning it into a hub. This allows the attacker to sniff traffic that would normally be isolated to specific switch ports.
Exam trap
The trap here is confusing MAC flooding (which targets the switch's CAM table) with ARP poisoning (which targets the ARP cache of hosts), as both involve spoofed MAC addresses but operate at different layers and with different mechanisms.
How to eliminate wrong answers
Option A is wrong because `macof` performs MAC flooding, not a SYN flood; a SYN flood targets a host's TCP stack with half-open connections, whereas `macof` targets the switch's CAM table. Option C is wrong because ARP poisoning involves sending forged ARP replies to associate a victim's IP with the attacker's MAC, which is a different attack vector than flooding the switch with random MACs. Option D is wrong because DNS spoofing requires corrupting DNS responses or cache entries, which is unrelated to the layer-2 MAC flooding performed by `macof`.
An IoT device uses the MQTT protocol without TLS. An attacker on the same network subscribes to all topics and captures messages. What is the MOST significant security risk?
A.Firmware corruption
B.Denial of service
C.Replay attacks
D.Loss of message confidentiality
AnswerD
The absence of Transport Layer Security (TLS) means that all MQTT communication, including connection requests, published messages, and subscription acknowledgments, is transmitted in cleartext over the network. Any attacker with network access can easily intercept and read these unencrypted messages using packet sniffers. This direct exposure of sensitive data, commands, or telemetry being exchanged between IoT devices and the MQTT broker constitutes an immediate and severe loss of message confidentiality.
Why this answer
Without TLS, MQTT traffic is sent in cleartext, allowing interception and reading of sensitive data.
A security analyst notices that a web application's SSL/TLS certificate is issued by a CA that is not trusted by modern browsers. Which type of attack could this enable?
A.Man-in-the-middle attack
B.Downgrade attack
C.Birthday attack
D.Replay attack
AnswerA
A Man-in-the-Middle (MITM) attack occurs when an attacker intercepts communication between two parties, impersonating each to the other. If a client is configured to trust an untrusted or compromised Certificate Authority (CA), an attacker can leverage this trust to issue fraudulent SSL/TLS certificates for legitimate domains. This allows the attacker to decrypt, inspect, and re-encrypt traffic, effectively becoming the "man in the middle" without the client's browser raising certificate warnings, thereby compromising confidentiality and integrity.
Why this answer
Using a self-signed or untrusted CA certificate can allow an attacker to perform a man-in-the-middle attack by presenting their own certificate that the browser may accept with user warning.
Which Burp Suite tool is specifically designed to automate customized attacks against web applications, such as brute-forcing login credentials or fuzzing parameters?
A.Repeater
B.Scanner
C.Intruder
D.Proxy
AnswerC
Burp Intruder is specifically engineered to automate custom, payload-driven attacks against web applications. Users define "payload positions" within a base request, then configure various payload sets and attack types (e.g., Sniper, Battering Ram, Pitchfork) to systematically inject values into those positions. This powerful tool is ideal for brute-forcing, fuzzing, credential stuffing, and other repetitive tasks requiring automated request modification and response analysis.
Why this answer
Burp Intruder is used for automating customized attacks, including brute force and fuzzing.
Which THREE of the following are components of the CHPSET system hacking methodology?
Select 3 answers
A.Port scanning
B.Vulnerability scanning
C.Cracking passwords
D.Privilege escalation
E.Erasing tracks
AnswersC, D, E
Cracking passwords is a critical component of system hacking, often employed to gain initial unauthorized access to a system or to elevate privileges once inside. This involves using various techniques like brute-force, dictionary attacks, or rainbow tables against hashed credentials obtained from a target. Successful password cracking directly facilitates unauthorized authentication, enabling an attacker to impersonate legitimate users and access system resources.
Why this answer
Cracking passwords is a core phase in the CHPSET (Cracking, Hacking, Privilege escalation, System hacking, Erasing tracks, Tunneling) system hacking methodology. After gaining initial access, the attacker extracts password hashes (e.g., from SAM or LSASS) and uses tools like John the Ripper or Hashcat to crack them offline, enabling further access or lateral movement.
Exam trap
The CEH exam often tests candidates by mixing pre-exploitation steps (like scanning) with post-exploitation phases (like cracking and privilege escalation), so the trap is assuming that all enumeration activities are part of the CHPSET methodology, when in fact CHPSET only covers actions after initial access.
A penetration tester intercepts the following request using Burp Suite: POST /change_password HTTP/1.1 Host: example.com Cookie: sessionid=abc123; SameSite=Lax Content-Type: application/x-www-form-urlencoded new_password=Hacker123 The tester successfully crafts a CSRF attack by embedding a hidden form in a malicious page. Which mitigation is most likely missing?
A.SameSite=Strict
B.HTTPOnly flag
C.Secure flag
D.CSRF token
AnswerD
A CSRF token is a unique, unpredictable, and secret value generated by the server and included with every state-changing request, typically embedded in hidden form fields or request headers. The server validates this token upon receiving the request, ensuring it matches the token associated with the user's session. Since a malicious attacker operating from a different origin cannot obtain or guess this secret token, they cannot craft a valid forged request that the server would accept, thereby effectively preventing CSRF attacks.
Why this answer
The presence of a SameSite cookie set to Lax does not prevent CSRF for state-changing requests like password change if the attack uses a GET or POST from a top-level navigation. However, the primary missing mitigation is a CSRF token, which is a unique unpredictable value tied to the session and validated by the server.
A security analyst identifies that a web application is vulnerable to Server-Side Request Forgery (SSRF). Which TWO of the following are effective mitigation techniques for SSRF?
D.Implement an allowlist of permitted URLs or IP addresses
E.Encode user input in base64 before passing to URL functions
AnswersA, D
Disabling unnecessary URL schemas, such as `file://`, `dict://`, `gopher://`, or `ftp://`, is a crucial mitigation for Server-Side Request Forgery (SSRF). By restricting the protocols the server can use to make outbound requests, the attack surface is significantly reduced. This prevents attackers from leveraging the vulnerability to access local files, perform port scanning, or interact with internal services using non-HTTP protocols, thereby blocking common exploitation vectors.
An organization experiences a DDoS attack where a large volume of DNS queries with spoofed source IPs are sent to open DNS resolvers, which then amplify the traffic to the victim. Which type of attack is this?
A.UDP flood
B.Smurf attack
C.SYN flood
D.DNS amplification
AnswerD
Uses open DNS resolvers to amplify traffic to the victim.
Why this answer
This is a DNS amplification attack, a type of DDoS that exploits open DNS resolvers. The attacker sends a small DNS query (e.g., ANY type) with a spoofed source IP (the victim's IP) to an open resolver, which responds with a much larger response (up to 50-100x the query size), flooding the victim. The key mechanism is the amplification factor combined with the spoofed source address, which directs the amplified traffic to the victim.
Exam trap
In EC-CEH, candidates often mistake DNS amplification for a basic UDP flood or Smurf attack. The key is to recognize the involvement of an open DNS resolver and the amplification factor, which are hallmarks of this attack.
How to eliminate wrong answers
Option A is wrong because a UDP flood is a generic attack where the attacker directly sends a high volume of UDP packets to the victim, without using a third-party reflector or amplification; this scenario specifically involves open DNS resolvers amplifying traffic. Option B is wrong because a Smurf attack uses ICMP echo requests sent to a broadcast address with a spoofed source IP, causing all hosts on the network to reply to the victim; this attack uses DNS queries, not ICMP, and targets open resolvers, not broadcast addresses. Option C is wrong because a SYN flood exploits the TCP three-way handshake by sending many SYN packets with spoofed IPs to exhaust server resources; this attack uses UDP-based DNS queries, not TCP SYN packets.