CEH Ethical Hacker Prep practice questions and answers 2026. Tap an option to test yourself — you'll see the correct answer and a plain-English explanation for every question. Free, no login.
Q11Which of the following mechanisms can be used by employees to verify the authenticity of an internal company email to prevent phishing attacks?
✓ Correct answer: C. Codeword
Answer: Codeword A codeword is a pre-agreed word or phrase that is used to authenticate the sender of an email within a company. This can help employees verify the legitimacy of the email and prevent falling victim to phishing attacks. A steganographic message is hidden within another medium, such as a photo or video, to conceal its presence. An encrypted hash is typically used for integrity verification rather than initial authentication. A digital ID is an electronic credential used to identify a user, often within PKI systems, but may not be easily verified by all employees in daily communications.
Q12Which of the following attacks involves intercepting Wi-Fi traffic to gather sensitive information?
✓ Correct answer: D. Evil Twin
Answer: Evil Twin An Evil Twin attack involves creating a rogue Wi-Fi access point that mimics a legitimate one to intercept and gather sensitive information from unsuspecting users. This is a type of sniffing attack because it captures data from the network traffic traversing the rogue access point.
Q13What is the purpose of a honeypot in network security?
✓ Correct answer: B. To lure and analyze potential attackers
A honeypot is designed to attract potential attackers by simulating a target. It allows network administrators to observe, analyze, and understand malicious activities without risking valuable internal data.
Q14During a penetration test, which technique involves appending malicious SQL commands to the end of a URL query string?
✓ Correct answer: C. Piggybacking
Piggybacking involves adding malicious SQL commands to a legitimate query, often appended to the URL. Spoofing impersonates another user or device, Tunneling encapsulates one protocol within another, and Phishing is a social engineering attack to steal sensitive information.
Q15An attacker is sniffing the network for communications operating over port 443. Which of the following services would they MOST LIKELY be attempting to obtain information about?
✓ Correct answer: C. SSL (HTTPS)
Answer: SSL (HTTPS) HTTP services are often scanned during an attacker's reconnaissance phase on web applications. Of the typical services, SSL (HTTPS) operates on port 443. Other commonly used HTTP service ports include: Port Typical HTTP services 80 World Wide Web standard port 81 Alternate WWW 88 Kerberos 443 SSL (HTTPS) 900 IBM Websphere administration client 2301 Compaq Insight Manager 2381 Compaq Insight Manager over SSL 4242 Microsoft App. Center Remote Mgmt 7001 BEA Weblogic 7002 BEA Weblogic over SSL 7070 Sun Java Web Server over SSL 8000 Alternate web server, or web cache 8001 Alternate web server or mgmt 8005 Apache Tomcat 9090 Sun Java Web Server admin module 10000 Netscape Administrator interface
Q16What is the MOST effective method to prevent SQL injection attacks in web applications?
✓ Correct answer: B. Prepared statements
Answer: Prepared statements Prepared statements help to prevent SQL injection by parameterizing the SQL queries so that the input data is treated as data and not as part of the SQL code. This process avoids SQL injection by ensuring that input data cannot modify the intent of the query.
Q17Which server component should a hacker target if they want to intercept and manipulate web application traffic between the client and the server?
✓ Correct answer: A. Proxy server
Correct answer: Proxy server. A proxy server acts as an intermediary for requests from clients seeking resources from other servers. By targeting the proxy server, a hacker can intercept and manipulate traffic between the client and the web application, making it a critical point for compromising data integrity and security.
Q18In the context of modern web development, which feature of Single Page Applications (SPAs) increases their vulnerability to attacks?
✓ Correct answer: C. Client-side scripts
Answer: Client-side scripts Client-side scripts in SPAs increase vulnerability because they often run directly in the user's browser and can interact dynamically with server-side resources. This introduces the possibility for exploits like cross-site scripting (XSS) and increases the attack surface compared to static or server-rendered content.
Q19Which of the following is a web security tool that enables you to intercept, inspect, and modify raw HTTP/HTTPS traffic between the client and the server?
✓ Correct answer: B. Burp Suite
Answer: Burp Suite Burp Suite is a comprehensive toolset for web security testing that allows you to intercept, inspect, and modify raw HTTP/HTTPS traffic between the client and the server. It is widely used by security professionals for testing the security of web applications. Wireshark is a network protocol analyzer for network troubleshooting and analysis. Nmap is a network scanner used to discover hosts and services on a computer network. OpenVAS is a framework of several services and tools offering vulnerability scanning and vulnerability management.
Q20Which encryption tool does Apple provide to encrypt macOS data volumes?
✓ Correct answer: B. FileVault
Answer: FileVault FileVault is an encryption utility included with MacOS. It provides encryption for all data on the drive to help protect against unauthorized access to the information on your startup disk.
Use the free CEH Ethical Hacker Prep sample, download the PDF, then unlock web-based timed mock exams for a full exam rehearsal.