Certified Ethical Hacker (CEH v13) — Questions and Answers
Question 1: Which web vulnerability allows an attacker to inject malicious SQL into a query?
- XSS
- Clickjacking
- CSRF
- SQL injection (Correct answer)
Correct answer: SQL injection
SQL injection inserts malicious SQL into input fields to manipulate the backend database.
Question 2: A rootkit that operates by modifying the kernel's system call table is classified as which type?
- Kernel-level rootkit (Correct answer)
- Library-level rootkit
- Application-level rootkit
- Boot-sector rootkit
Correct answer: Kernel-level rootkit
Kernel-level rootkits hook or modify kernel structures such as the system call table.
Question 3: What is Cross-Site Scripting (XSS) and what are its types?
- A browser extension for scripting
- A technique for copying scripts between servers
- A method for cross-referencing websites
- Injecting malicious scripts into web pages viewed by other users; types include stored, reflected, and DOM-based (Correct answer)
Correct answer: Injecting malicious scripts into web pages viewed by other users; types include stored, reflected, and DOM-based
XSS allows attackers to inject client-side scripts into web pages. Stored XSS persists in the database, reflected XSS bounces off the server in responses, and DOM-based XSS manipulates the page's DOM directly.
Question 4: A keylogger implemented as a small hardware device inserted between the keyboard and the computer is which type?
- Software keylogger
- API-hooking keylogger
- Kernel keylogger
- Hardware keylogger (Correct answer)
Correct answer: Hardware keylogger
A physical device placed inline with the keyboard cable is a hardware keylogger.
Question 5: Which cloud service model gives the customer the most control over the underlying infrastructure?
- SaaS
- PaaS
- IaaS (Correct answer)
- FaaS
Correct answer: IaaS
IaaS (Infrastructure as a Service) gives customers the greatest control, including over operating systems, storage, and networking.
Question 6: Which command-line tool is primarily used for querying DNS records such as MX records to identify a domain's mail servers?
- nslookup (Correct answer)
- Netcat
- Wireshark
- Nmap
Correct answer: nslookup
nslookup is used to query DNS servers and retrieve specific record types including MX records that identify mail servers for a domain.
Question 7: Which type of penetration test gives the tester full knowledge of the network, including architecture diagrams and source code?
- Gray-box testing
- Black-box testing
- White-box testing (Correct answer)
- Blind testing
Correct answer: White-box testing
White-box testing provides the tester with complete internal knowledge of the target.
Question 8: An ethical hacker wants to verify whether a downloaded file matches a known-malicious sample using a unique fingerprint. Which value should they compare?
- Cryptographic hash (e.g., SHA-256) (Correct answer)
- File creation date
- File size only
- Folder permissions
Correct answer: Cryptographic hash (e.g., SHA-256)
A cryptographic hash such as SHA-256 uniquely fingerprints a file for malware identification.
Question 9: Which tool is most commonly used to perform OS fingerprinting through TCP/IP stack analysis?
- Wireshark
- John the Ripper
- Metasploit
- Nmap (Correct answer)
Correct answer: Nmap
Nmap analyzes TCP/IP stack responses to determine the target operating system.
Question 10: What does the shared responsibility model in cloud security define?
- How costs are split between provider and customer
- The SLA for cloud uptime guarantees
- How data is replicated across regions
- Which security tasks belong to the provider versus the customer (Correct answer)
Correct answer: Which security tasks belong to the provider versus the customer
The shared responsibility model delineates which security controls are managed by the cloud provider and which are the customer's responsibility.
Question 11: Which type of exploit takes advantage of a buffer overflow to overwrite the return address and redirect execution flow?
- Integer Overflow
- Heap Spray
- Format String Attack
- Stack-Based Buffer Overflow (Correct answer)
Correct answer: Stack-Based Buffer Overflow
A stack-based buffer overflow writes beyond a buffer's bounds on the stack, overwriting the return address with an attacker-controlled value to redirect code execution.
Question 12: Which technique involves manipulating the TTL field of packets to confuse IDS reassembly while the target host still receives the attack?
- Insertion Attack
- Fragmentation Overlap
- Protocol Mutation
- TTL Manipulation (Correct answer)
Correct answer: TTL Manipulation
TTL manipulation sets different TTL values so that some decoy packets expire before reaching the IDS but the actual attack payload reaches the target.
Question 13: Which malware analysis approach examines a binary's strings, imports, and disassembly WITHOUT executing it?
- Sandboxing
- Dynamic analysis
- Fuzzing
- Static analysis (Correct answer)
Correct answer: Static analysis
Static analysis inspects a file's contents and code without running it.
Question 14: Which exploitation countermeasure randomizes the memory layout of a process to prevent attackers from predicting where to redirect code execution?
- ASLR (Address Space Layout Randomization) (Correct answer)
- Control Flow Integrity
- DEP (Data Execution Prevention)
- Stack Canaries
Correct answer: ASLR (Address Space Layout Randomization)
ASLR randomizes the base addresses of the stack, heap, and libraries each time a process runs, making it difficult for attackers to reliably target specific memory addresses.
Question 15: Which of the following is the most important step for the ethical hacker to perform during the pre-assessment?
- Gather information about the target
- Obtain permission to hack
- Obtain written permission to hack (Correct answer)
- Hack the web server
Correct answer: Obtain written permission to hack
The most crucial step for an ethical hacker is to obtain explicit, written permission from the target organization before commencing any hacking activities. Without written authorization, any penetration testing or security assessment, even if intended for good, could be considered illegal and lead to severe legal consequences. This step ensures the legality, ethical conduct, and clear scope of the engagement.
Question 16: What does CVSS stand for in the context of vulnerability scoring?
- Common Vulnerability Scoring System (Correct answer)
- Common Vulnerability Severity System
- Cyber Vulnerability Scoring Standard
- Critical Vulnerability Summary Scale
Correct answer: Common Vulnerability Scoring System
CVSS stands for Common Vulnerability Scoring System, which provides a standardized method for rating the severity of security vulnerabilities.
Question 17: What is 'ARP spoofing' primarily used for in session hijacking attacks on a LAN?
- Bypassing 802.1X port authentication
- Generating fake ARP broadcasts to flood the network
- Crashing the ARP cache of routers
- Associating the attacker's MAC with a legitimate IP to intercept traffic (Correct answer)
Correct answer: Associating the attacker's MAC with a legitimate IP to intercept traffic
ARP spoofing sends fake ARP replies that associate the attacker's MAC address with a victim's IP, redirecting LAN traffic through the attacker for man-in-the-middle interception.
Question 18: A Trojan opens TCP port 6667 and beacons to an external server awaiting commands. This indicates the host is part of what?
- A VPN tunnel
- A botnet (Correct answer)
- A honeypot
- A DMZ
Correct answer: A botnet
A compromised host beaconing to a command server for instructions is a bot in a botnet.
Question 19: What is the term for a cloud attack where an attacker exploits shared physical hardware to access another tenant's data?
- Man-in-the-Cloud
- Metadata Poisoning
- Side-Channel Attack (Correct answer)
- Cloud Hopping
Correct answer: Side-Channel Attack
A side-channel attack exploits information gained from the physical implementation of shared hardware to extract data from co-located tenants.
Question 20: Which methodology framework is a widely used standard for structuring penetration tests?
- COBIT
- Six Sigma
- ITIL
- PTES (Penetration Testing Execution Standard) (Correct answer)
Correct answer: PTES (Penetration Testing Execution Standard)
PTES defines a standard structure for conducting penetration tests across phases.
Question 21: Which attack intercepts communication between two parties without their knowledge?
- SQL injection
- Brute force
- Man-in-the-middle (Correct answer)
- Phishing
Correct answer: Man-in-the-middle
A man-in-the-middle attack secretly relays and possibly alters traffic between two endpoints.
Question 22: What is privilege escalation and what are the two types?
- Gaining higher access rights than authorized; vertical (user to admin) and horizontal (accessing another user's resources) (Correct answer)
- Upgrading software to premium versions
- Climbing the corporate hierarchy
- Increasing network bandwidth privileges
Correct answer: Gaining higher access rights than authorized; vertical (user to admin) and horizontal (accessing another user's resources)
Privilege escalation exploits vulnerabilities to gain elevated access. Vertical escalation moves from lower to higher privileges (user to root/admin), while horizontal accesses resources of another user with similar privileges.
Question 23: What is a deauthentication attack in wireless hacking?
- A method for securely disconnecting from Wi-Fi
- Disabling authentication on a router
- Logging out of a wireless network normally
- Sending forged deauth frames to disconnect clients from a legitimate AP, enabling further attacks (Correct answer)
Correct answer: Sending forged deauth frames to disconnect clients from a legitimate AP, enabling further attacks
Deauthentication attacks send spoofed deauthentication management frames (which are not encrypted in WPA2) to disconnect clients, enabling capture of the WPA handshake for offline cracking or forcing clients to connect to an evil twin.
Question 24: What is the CEH term for a vulnerability database that lists publicly known security flaws with a standardized identifier?
- CVSS
- NVD Score
- CVE (Common Vulnerabilities and Exposures) (Correct answer)
- OWASP Top 10
Correct answer: CVE (Common Vulnerabilities and Exposures)
The CVE (Common Vulnerabilities and Exposures) database provides standardized identifiers (e.g., CVE-2021-44228) for publicly known cybersecurity vulnerabilities.
Question 25: What does a SYN flood attack exploit in the TCP handshake?
- Half-open connections exhausting resources (Correct answer)
- DNS cache poisoning
- Encrypted payloads
- ARP table overflow
Correct answer: Half-open connections exhausting resources
A SYN flood sends many SYN requests without completing handshakes, exhausting connection resources.
Question 26: Which of the following is a valid countermeasure against ARP spoofing?
- Dynamic ARP Inspection (Correct answer)
- Disabling ICMP
- Port knocking
- MAC flooding
Correct answer: Dynamic ARP Inspection
Dynamic ARP Inspection validates ARP packets against a trusted DHCP binding table.
Question 27: What is the primary goal of the 'covering tracks' phase for a malicious attacker?
- Hide evidence of intrusion (Correct answer)
- Escalate privileges
- Map the network
- Establish persistence
Correct answer: Hide evidence of intrusion
Covering tracks involves deleting logs and hiding artifacts to evade detection.
Question 28: What firewall type inspects traffic at Layer 7 and can identify and block specific applications regardless of port?
- Packet Filtering Firewall
- Stateful Inspection Firewall
- Circuit-Level Gateway
- Next-Generation Firewall (NGFW) (Correct answer)
Correct answer: Next-Generation Firewall (NGFW)
A Next-Generation Firewall (NGFW) performs deep packet inspection at the application layer, enabling it to identify and control specific applications independent of port or protocol.
Question 29: What is a vulnerability assessment versus a penetration test?
- VA is more comprehensive than a pentest
- They are the same thing
- VA identifies vulnerabilities without exploitation; a pentest actively exploits vulnerabilities to prove impact (Correct answer)
- Pentests only test physical security
Correct answer: VA identifies vulnerabilities without exploitation; a pentest actively exploits vulnerabilities to prove impact
A vulnerability assessment scans and identifies potential security weaknesses, while a penetration test goes further by actively attempting to exploit discovered vulnerabilities to demonstrate real-world impact.
Question 30: What is pretexting in social engineering?
- Testing network pretexts before deployment
- Sending pre-formatted text messages
- Writing pretext for a book about hacking
- Creating a fabricated scenario to manipulate a victim into providing information or access (Correct answer)
Correct answer: Creating a fabricated scenario to manipulate a victim into providing information or access
Pretexting involves creating a convincing fabricated scenario (impersonating IT support, a vendor, or authority figure) to build trust and manipulate the target into revealing sensitive information or granting access.
Question 31: A penetration tester is given no prior knowledge of the target environment. What type of test is this?
- Black-box (Correct answer)
- Gray-box
- Crystal-box
- White-box
Correct answer: Black-box
Black-box testing simulates an external attacker with zero internal knowledge of the system.
Question 32: What best characterizes ARP Poisoning?
- The process of injecting faulty entries in machines by changing the ARP cache (Correct answer)
- The process of injecting faulty entries in machines by changing the APR cache
- The process of injecting faulty entries in machines by flooding the ARP cache
- The process of injecting faulty entries in machines by removing the ARP cache
Correct answer: The process of injecting faulty entries in machines by changing the ARP cache
ARP Poisoning (or ARP Spoofing) is a type of attack where an attacker sends forged ARP (Address Resolution Protocol) messages onto a local area network. This results in the attacker's MAC address being associated with the IP address of another host, such as the default gateway, in other devices' ARP caches, allowing the attacker to intercept traffic.
Question 33: An attacker uses stolen OAuth tokens to access cloud resources without knowing the user's password. What type of attack is this?
- Brute Force
- Replay Attack
- Man-in-the-Cloud Attack (Correct answer)
- Credential Stuffing
Correct answer: Man-in-the-Cloud Attack
A man-in-the-cloud attack intercepts or steals OAuth tokens stored on endpoints to access cloud services without credentials.
Question 34: What is directory traversal (path traversal) attack?
- Manipulating file path inputs to access files outside the intended directory (Correct answer)
- Creating new directories on the server
- Navigating through website pages normally
- Scanning all directories on a web server
Correct answer: Manipulating file path inputs to access files outside the intended directory
Directory traversal uses sequences like ../ in file path parameters to escape the intended directory and access sensitive files (e.g., /etc/passwd, configuration files) on the server that should not be accessible.
Question 35: What is the purpose of a digital signature?
- To encrypt the contents of a message
- To compress files before sending
- To add a handwritten signature to digital documents
- To verify the authenticity and integrity of a message by proving it came from the claimed sender and wasn't altered (Correct answer)
Correct answer: To verify the authenticity and integrity of a message by proving it came from the claimed sender and wasn't altered
A digital signature is created by hashing the message and encrypting the hash with the sender's private key, allowing anyone with the sender's public key to verify both the sender's identity and message integrity.
Question 36: What is the primary purpose of a Cloud Access Security Broker (CASB)?
- To perform penetration testing on cloud services
- To replace firewalls in cloud environments
- To encrypt all data stored in the cloud
- To enforce security policies between cloud users and providers (Correct answer)
Correct answer: To enforce security policies between cloud users and providers
A CASB acts as an intermediary between cloud users and providers to enforce security policies such as DLP, access control, and threat protection.
Question 37: During footprinting, which tool would best retrieve domain registration and ownership details?
- Wireshark
- John the Ripper
- Metasploit
- WHOIS (Correct answer)
Correct answer: WHOIS
WHOIS queries return domain registration, ownership, and contact information.
Question 38: What is a hash function and what properties make it cryptographically secure?
- A one-way function producing a fixed-length digest; must be collision-resistant, pre-image resistant, and deterministic (Correct answer)
- A method for compressing files
- A function that encrypts data with a key
- A database indexing technique
Correct answer: A one-way function producing a fixed-length digest; must be collision-resistant, pre-image resistant, and deterministic
A cryptographic hash function converts arbitrary input into a fixed-length output (digest) that is practically impossible to reverse, collision-resistant (no two inputs produce the same output), and deterministic (same input always produces same output).
Question 39: Which Google search operator is used to search for specific file types hosted on a target website?
- filetype: (Correct answer)
- inurl:
- site:
- intitle:
Correct answer: filetype:
The 'filetype:' Google dork operator restricts results to specific file extensions (e.g., PDF, XLS, DOC) which may expose sensitive documents.
Question 40: What kind of malware disguises itself as legitimate software to trick users into installing it?
- Rootkit
- Worm
- Trojan (Correct answer)
- Logic bomb
Correct answer: Trojan
A Trojan masquerades as benign software while carrying a hidden malicious payload.
Question 41: What is vishing and how does it differ from phishing?
- A type of phishing that uses virtual reality
- Video-based phishing using fake video calls
- Voice-based phishing using phone calls to extract information, versus email-based phishing (Correct answer)
- A visual form of phishing using images
Correct answer: Voice-based phishing using phone calls to extract information, versus email-based phishing
Vishing (voice phishing) uses phone calls or voicemail to impersonate trusted entities (banks, tech support, government) and manipulate victims into revealing sensitive information, as opposed to email-based phishing.
Question 42: What is a rootkit and why is it particularly dangerous?
- Malware that hides deep in the OS to maintain persistent, undetectable access (Correct answer)
- A toolkit for root vegetables
- A type of firewall software
- A legitimate system administration tool
Correct answer: Malware that hides deep in the OS to maintain persistent, undetectable access
Rootkits operate at kernel or firmware level, modifying the OS to hide their presence (hiding files, processes, network connections) from detection tools, providing persistent backdoor access that survives reboots.
Question 43: Which type of malware encrypts a victim's files and demands payment for the decryption key?
- Adware
- Spyware
- Rootkit
- Ransomware (Correct answer)
Correct answer: Ransomware
Ransomware encrypts files and demands payment for the decryption key.
Question 44: Which type of footprinting does NOT involve direct interaction with the target system?
- Passive footprinting (Correct answer)
- Internal footprinting
- Network footprinting
- Active footprinting
Correct answer: Passive footprinting
Passive footprinting gathers information through indirect means such as search engines and public databases, leaving no trace on the target's logs.
Question 45: During a cloud penetration test, an attacker discovers an EC2 instance metadata endpoint at 169.254.169.254. What is the risk?
- Cross-tenant data access
- Exposure of IAM credentials via SSRF (Correct answer)
- DNS hijacking
- Remote code execution on the host
Correct answer: Exposure of IAM credentials via SSRF
The EC2 instance metadata endpoint can expose temporary IAM role credentials when accessed via SSRF, allowing privilege escalation in AWS.
Question 46: Which CVSS metric indicates how easily an attacker can repeat a successful exploit?
- Privileges Required
- Scope
- Confidentiality Impact
- Attack Complexity (Correct answer)
Correct answer: Attack Complexity
Attack Complexity (AC) in CVSS measures the conditions beyond the attacker's control required to exploit the vulnerability, indicating how reliably the exploit can be repeated.
Question 47: What is the primary purpose of a honeypot in an organization's security posture?
- To filter spam emails
- To lure and detect attackers (Correct answer)
- To encrypt sensitive data
- To balance network load
Correct answer: To lure and detect attackers
A honeypot is a decoy system designed to attract attackers and study their methods.
Question 48: Which tool is used to perform session hijacking by capturing and replaying network packets?
- Hamster and Ferret (Correct answer)
- Nessus
- Burp Suite
- Wireshark
Correct answer: Hamster and Ferret
Hamster and Ferret are tools used together to sidejack HTTP sessions by capturing cookies from wireless traffic and replaying them to impersonate victims.
Question 49: Which phase involves clearing logs and removing tools to avoid detection by defenders?
- Covering tracks (Correct answer)
- Scanning
- Reconnaissance
- Enumeration
Correct answer: Covering tracks
Covering tracks (clearing tracks) removes evidence such as logs and artifacts to evade detection.
Question 50: During cloud pen testing, what does 'privilege escalation via IAM misconfiguration' typically involve?
- Cracking the root account password
- Exploiting public S3 buckets
- Exploiting a kernel vulnerability
- Attaching higher-privilege policies to a compromised IAM entity (Correct answer)
Correct answer: Attaching higher-privilege policies to a compromised IAM entity
IAM privilege escalation involves using permissions like iam:AttachUserPolicy or iam:PassRole to grant a compromised identity elevated cloud privileges.
Question 51: What is 'covert channel' communication in the context of firewall evasion?
- Exfiltrating data via cloud storage APIs
- Transmitting data through protocols not intended for data transfer (Correct answer)
- Using HTTPS to bypass DPI
- Encrypted VPN tunnels between trusted hosts
Correct answer: Transmitting data through protocols not intended for data transfer
Covert channels exploit non-standard use of protocols (e.g., hiding data in ICMP ping payloads or DNS queries) to bypass firewalls that only filter known data channels.
Question 52: What is Bluetooth sniffing and what tool is commonly used?
- Scanning for Bluetooth devices with a phone
- Using Bluetooth headphones to listen to music
- Intercepting Bluetooth communications using tools like Ubertooth to capture and analyze packets (Correct answer)
- Testing Bluetooth range with a signal meter
Correct answer: Intercepting Bluetooth communications using tools like Ubertooth to capture and analyze packets
Bluetooth sniffing captures Bluetooth communications to analyze device pairing, data transfer, and potentially extract sensitive information using specialized tools like Ubertooth One that can monitor all Bluetooth channels.
Question 53: An attacker clears the Windows Security event log to cover their tracks. Which command-line tool can wipe a specific event log?
- ipconfig
- chkdsk
- tasklist
- wevtutil (Correct answer)
Correct answer: wevtutil
wevtutil cl Security clears the Windows Security event log.
Question 54: What is the best defense against SQL injection?
- Disabling cookies
- Using HTTP instead of HTTPS
- Parameterized queries (Correct answer)
- Longer passwords
Correct answer: Parameterized queries
Parameterized (prepared) statements separate code from data, preventing injection.
Question 55: What type of cloud deployment model is used exclusively by a single organization and hosted either on-premises or by a third party?
- Public Cloud
- Private Cloud (Correct answer)
- Hybrid Cloud
- Community Cloud
Correct answer: Private Cloud
A private cloud is dedicated to a single organization and offers greater control and security than public cloud deployments.
Question 56: What is a keylogger and how can it be detected?
- A tool for logging into key management systems
- A type of keyboard with built-in logging
- Software or hardware that records keystrokes; detected through antimalware, process monitoring, and physical inspection (Correct answer)
- A password manager application
Correct answer: Software or hardware that records keystrokes; detected through antimalware, process monitoring, and physical inspection
Keyloggers capture every keystroke typed on a system, either through software (running as a hidden process) or hardware (a device between the keyboard and computer), stealing passwords and sensitive data.
Question 57: An attacker re-times malicious commands to run during off-hours and routes traffic over port 443 to blend with normal HTTPS. This primarily aims to achieve what?
- Data deduplication
- Privilege escalation
- Defense evasion / detection avoidance (Correct answer)
- Password cracking
Correct answer: Defense evasion / detection avoidance
Blending malicious traffic with legitimate HTTPS and off-hours timing is defense evasion.
Question 58: What is the primary goal of footprinting in ethical hacking?
- Gather information about the target to plan an attack (Correct answer)
- Install malware on target systems
- Exploit vulnerabilities in the target system
- Intercept network traffic
Correct answer: Gather information about the target to plan an attack
Footprinting is the first phase of ethical hacking where information is collected about the target organization to identify potential attack surfaces before any exploitation.
Question 59: What is 'IP spoofing' used for in the context of session hijacking?
- Masquerading as a trusted host to hijack a TCP session (Correct answer)
- Amplifying DoS traffic
- Bypassing firewall rules via port forwarding
- Encrypting session data
Correct answer: Masquerading as a trusted host to hijack a TCP session
In session hijacking, IP spoofing allows the attacker to forge packets with a trusted source IP to impersonate a legitimate party in the TCP session.
Question 60: What is the purpose of a SYN scan (half-open scan) in network reconnaissance?
- To establish a full connection to every port
- To identify open ports without completing the TCP handshake, making it stealthier (Correct answer)
- To encrypt network traffic
- To flood the target with SYN packets
Correct answer: To identify open ports without completing the TCP handshake, making it stealthier
A SYN scan sends SYN packets and analyzes responses (SYN-ACK = open, RST = closed) without completing the three-way handshake, making it faster and harder to detect than full connect scans.
Question 61: Which hashing algorithm is considered cryptographically broken and should not be used for security?
- SHA-256
- bcrypt
- MD5 (Correct answer)
- SHA-3
Correct answer: MD5
MD5 is vulnerable to collision attacks and is unsuitable for security-sensitive hashing.
Question 62: An attacker schedules malicious code to execute only when a specific employee's account is deleted. This is an example of what?
- Logic bomb (Correct answer)
- Keylogger
- Backdoor
- Worm
Correct answer: Logic bomb
A logic bomb executes its payload when a specific condition or trigger is met.
Question 63: An attacker escalates from a standard user to SYSTEM by exploiting a service running as SYSTEM with a writable executable path. This is an example of what?
- Horizontal privilege escalation
- Vertical privilege escalation (Correct answer)
- Credential stuffing
- Lateral movement
Correct answer: Vertical privilege escalation
Gaining higher privileges (user to SYSTEM) is vertical privilege escalation.
Question 64: What is a watering hole attack?
- Compromising a website frequently visited by the target group to infect their systems (Correct answer)
- Creating fake Wi-Fi hotspots near water features
- Poisoning a physical water supply
- Flooding a network with data packets
Correct answer: Compromising a website frequently visited by the target group to infect their systems
A watering hole attack identifies websites commonly visited by the target organization's employees, compromises those websites with malware, and waits for targets to visit and become infected.
Question 65: Which attack precomputes hashes for many possible passwords to speed up cracking but is defeated by salting?
- Phishing attack
- Replay attack
- Side-channel attack
- Rainbow table attack (Correct answer)
Correct answer: Rainbow table attack
Rainbow tables use precomputed hash chains, which salting defeats by making each hash unique.
Question 66: A penetration tester is hired to do a risk assessment of a company's DMZ. <br> The rules of engagement states that the penetration test be done from an external IP address with no prior knowledge of the internal IT systems.<br> What kind of test is being performed?
- grey box
- black box (Correct answer)
- red box
- white box
Correct answer: black box
A black box penetration test is conducted with no prior knowledge of the target system's internal structure, architecture, or source code. The tester simulates an external attacker who has no insider information, relying solely on publicly available information and reconnaissance to identify vulnerabilities. This approach provides a realistic assessment of what an external, unauthorized attacker could achieve against the organization's systems.
Question 67: What is the best defense against a buffer overflow attack at the development level?
- Disabling logging
- Input validation and bounds checking (Correct answer)
- Increasing bandwidth
- Using longer passwords
Correct answer: Input validation and bounds checking
Validating input and enforcing bounds prevents writing data beyond allocated buffers.
Question 68: During post-exploitation, an attacker dumps credentials from the LSASS process memory on Windows. Which tool is most associated with this?
- Mimikatz (Correct answer)
- Burp Suite
- Aircrack-ng
- sqlmap
Correct answer: Mimikatz
Mimikatz extracts credentials, hashes, and tickets from LSASS memory.
Question 69: What is a rainbow table attack?
- An attack using multiple types of malware simultaneously
- Using precomputed tables of hash values to quickly reverse password hashes (Correct answer)
- A method for breaking encryption keys using colors
- A colorful visualization of network traffic
Correct answer: Using precomputed tables of hash values to quickly reverse password hashes
Rainbow table attacks use large precomputed tables mapping plaintext passwords to their hash values, allowing rapid lookup of password hashes without computing each hash, defeated by using salted hashes.
Question 70: What is banner grabbing and what information does it reveal?
- Connecting to services to capture their version information and software details (Correct answer)
- Creating advertising banners for websites
- Blocking banner advertisements
- Capturing screenshots of target websites
Correct answer: Connecting to services to capture their version information and software details
Banner grabbing connects to network services (HTTP, FTP, SMTP) and captures the service banner which typically reveals the software name, version, and sometimes OS information, helping identify exploitable vulnerabilities.
Question 71: Which technique allows an attacker who compromised one host to use its trust relationships to access additional systems on the network?
- Footprinting
- Enumeration
- Lateral movement (Correct answer)
- Vertical escalation
Correct answer: Lateral movement
Lateral movement uses a foothold to reach and compromise other systems across the network.
Question 72: During scanning, a tester uses Nmap with the -sS flag. What type of scan is being performed?
- Ping sweep
- SYN stealth scan (Correct answer)
- UDP scan
- TCP connect scan
Correct answer: SYN stealth scan
The -sS flag performs a half-open SYN stealth scan that does not complete the TCP handshake.
Question 73: What is the difference between a virus, worm, and Trojan?
- They are all the same type of malware
- Viruses attach to files and need user action; worms self-replicate across networks; Trojans disguise as legitimate software (Correct answer)
- Worms require user action while viruses don't
- Trojans self-replicate but viruses don't
Correct answer: Viruses attach to files and need user action; worms self-replicate across networks; Trojans disguise as legitimate software
Viruses attach to host files and require user action to spread, worms self-propagate across networks without user interaction, and Trojans appear legitimate but contain hidden malicious functionality.
Question 74: What distinguishes a vulnerability assessment from a penetration test?
- They are identical processes
- Vulnerability assessment exploits findings; pentest only lists them
- Penetration tests never require authorization
- Vulnerability assessment identifies weaknesses; pentest actively exploits them (Correct answer)
Correct answer: Vulnerability assessment identifies weaknesses; pentest actively exploits them
A vulnerability assessment identifies and lists weaknesses, while a penetration test attempts to exploit them.
Question 75: Which attack technique do attackers use to steal session cookies by injecting a script into a vulnerable web application?
- Cross-Site Scripting (XSS) (Correct answer)
- CSRF
- SQL Injection
- Command Injection
Correct answer: Cross-Site Scripting (XSS)
XSS can be used to inject malicious scripts that read and exfiltrate the victim's session cookies to the attacker's server.
Question 76: Which technique hides data by embedding it inside the unused slack space or within an image file's least significant bits?
- Fuzzing
- Tunneling
- Steganography (Correct answer)
- Spoofing
Correct answer: Steganography
Steganography conceals data within other files such as images using techniques like LSB embedding.
Question 77: What is OS fingerprinting in ethical hacking?
- Copying the target's operating system
- Scanning for fingerprint readers on the network
- Identifying the target's operating system by analyzing network packet characteristics (Correct answer)
- Creating a digital fingerprint for biometric authentication
Correct answer: Identifying the target's operating system by analyzing network packet characteristics
OS fingerprinting analyzes unique characteristics of network packets (TTL values, TCP window size, DF bit) to identify the target's operating system and version, using tools like Nmap.
Question 78: Which tool captures and analyzes network packets in real time?
- Nikto
- Nessus
- Hydra
- Wireshark (Correct answer)
Correct answer: Wireshark
Wireshark is a packet analyzer used to capture and inspect network traffic.
Question 79: Which Windows technique allows an attacker to authenticate using a captured NTLM hash without ever cracking it to plaintext?
- Brute force
- Rainbow table lookup
- Pass-the-Hash (Correct answer)
- Dictionary attack
Correct answer: Pass-the-Hash
Pass-the-Hash reuses the captured NTLM hash directly to authenticate to remote services.
Question 80: Simon is security analyst writing signatures for a Snort node he placed internally that captures all mirrored traffic from his border firewall.<br> From the following signature, what will Snort look for in the payload of the suspected packets?<br> <br> alert tcp $EXTERNAL_NET any -> $HOME_NET 27374 (msG."BACKDOOR SIG - SubSseven 22";flags: A +; content: "|0d0a5b52504c5d3030320d0a|"; reference:arachnids, 485;) alert
- Snort will look for 0d0a5b52504c5d3030320d0a in the payload. (Correct answer)
- From this snort signature, packets with HOME_NET 27374 in the payload will be flagged.
- The payload of 485 is what this Snort signature will look for.
- Packets that contain the payload of BACKDOOR SIG - SubSseven 22 will be flagged.
Correct answer: Snort will look for 0d0a5b52504c5d3030320d0a in the payload.
In a Snort signature, the `content` keyword specifies a literal byte sequence that Snort will search for within the packet payload. The value `|0d0a5b52504c5d3030320d0a|` is a hexadecimal representation of a specific string. Therefore, Snort will inspect the packet's payload for this exact hexadecimal sequence to identify potential malicious activity, in this case, related to the SubSseven 22 backdoor, and trigger an alert if found.
Question 81: Which tool is commonly used to bind a Trojan to a legitimate executable so it runs alongside the original program?
- Wrapper (binder) (Correct answer)
- Disassembler
- Packet sniffer
- Port scanner
Correct answer: Wrapper (binder)
A wrapper or binder joins a Trojan to a legitimate executable so both run together.
Question 82: Which of the following describes the threat agent's strategy for taking advantage of vulnerability?
- A threat agent
- A race condition
- A Hazard
- A threat vector (Correct answer)
Correct answer: A threat vector
A threat vector is the pathway or method that a threat agent uses to gain access to a target and exploit a vulnerability. It describes the specific means by which an attack can be launched, such as phishing emails, malicious software, or unpatched network services. Understanding threat vectors is crucial for designing effective defenses.
Question 83: Which IDS evasion technique involves breaking a single exploit into multiple small packets that individually appear harmless?
- Obfuscation
- Session Splicing (Correct answer)
- TTL Manipulation
- Protocol Anomaly
Correct answer: Session Splicing
Session splicing fragments an attack payload across multiple TCP segments so that the IDS does not reconstruct the full attack signature.
Question 84: Which type of testing occurs when individuals know the entire layout of the network?
- Gray box
- Blind testing
- Black box
- White box (Correct answer)
Correct answer: White box
White box testing, also known as clear box testing, is a method where the tester has complete knowledge of the system's internal structure, design, and implementation. This includes access to network diagrams, source code, and architectural details. This comprehensive understanding allows for a detailed and thorough assessment of vulnerabilities from an insider's perspective, ensuring all components are examined.
Question 85: Which type of session hijacking intercepts a session between two parties without requiring prediction of a sequence number?
- UDP Hijacking
- Passive Hijacking (Correct answer)
- Active Hijacking
- Blind Hijacking
Correct answer: Passive Hijacking
Passive hijacking involves monitoring a session to capture sensitive data without actively injecting packets, avoiding detection by not disrupting the session.
Question 86: Which malware type replicates itself across networks without requiring user interaction or a host file?
- Virus
- Logic bomb
- Worm (Correct answer)
- Trojan
Correct answer: Worm
A worm self-propagates across networks autonomously without needing a host file or user action.
Question 87: A tester uses the OSINT framework to gather intelligence. What does OSINT stand for?
- Open Source Intelligence (Correct answer)
- Online Scanning Internet Tool
- Operational Security Intelligence
- Open Systems Internal Network Testing
Correct answer: Open Source Intelligence
OSINT stands for Open Source Intelligence, gathered from publicly available sources.
Question 88: What is the correct ordered sequence of the CEH hacking phases?
- Recon, Scanning, Gaining access, Maintaining access, Covering tracks (Correct answer)
- Scanning, Recon, Access, Maintaining, Covering tracks
- Scanning, Access, Recon, Maintaining, Covering tracks
- Recon, Access, Scanning, Covering tracks, Maintaining
Correct answer: Recon, Scanning, Gaining access, Maintaining access, Covering tracks
The standard sequence is reconnaissance, scanning, gaining access, maintaining access, then covering tracks.
Question 89: Which phase of ethical hacking involves actively probing a target to find open ports and live hosts?
- Scanning (Correct answer)
- Reconnaissance
- Reporting
- Covering tracks
Correct answer: Scanning
Scanning actively probes the target to discover live hosts, open ports, and services.
Question 90: What type of IDS evasion injects extra packets into a stream that the IDS accepts but the target host rejects, causing the IDS to build a different view of the session?
- Obfuscation Attack
- Evasion Attack
- Fragmentation Attack
- Insertion Attack (Correct answer)
Correct answer: Insertion Attack
An insertion attack sends packets with invalid checksums or TTLs that the IDS accepts but the end host drops, causing the IDS to reconstruct a different data stream.
Question 91: Which tool is a web server vulnerability scanner that checks for outdated software and misconfigurations?
- Hashcat
- Burp Suite
- Nikto (Correct answer)
- Aircrack-ng
Correct answer: Nikto
Nikto scans web servers for known vulnerabilities, dangerous files, and outdated versions.
Question 92: Which tool is commonly used for session hijacking and man-in-the-middle attacks on a LAN?
- Nessus
- Nmap
- Nikto
- Ettercap (Correct answer)
Correct answer: Ettercap
Ettercap is a comprehensive suite for man-in-the-middle attacks, capable of sniffing, session hijacking, and filtering live connections on a LAN.
Question 93: What is the primary purpose of a WHOIS lookup during the footprinting phase?
- Test for SQL injection vulnerabilities
- Retrieve domain registration and ownership information (Correct answer)
- Scan open ports on a target system
- Capture network packets in transit
Correct answer: Retrieve domain registration and ownership information
WHOIS lookup retrieves registration details about a domain including owner contact information, registrar, registration dates, and name servers.
Question 94: Which container escape technique exploits a misconfigured Docker socket mounted inside a container?
- Kernel exploit
- Namespace pivot
- Docker socket abuse (Correct answer)
- Privileged container breakout
Correct answer: Docker socket abuse
Mounting the Docker socket (/var/run/docker.sock) inside a container allows an attacker to control the host Docker daemon and escape the container.
Question 95: Which firewall evasion technique uses a series of intermediate hosts to hide the true source of an attack?
- Source Routing
- Tunneling
- Fragmentation
- Proxy Chaining (Correct answer)
Correct answer: Proxy Chaining
Proxy chaining routes attack traffic through multiple proxy servers, masking the original source IP and making attribution difficult.
Question 96: What is the difference between active and passive reconnaissance?
- Active is legal; passive is illegal
- Active uses automated tools; passive uses manual methods
- There is no practical difference
- Active directly interacts with the target system; passive gathers information without direct contact (Correct answer)
Correct answer: Active directly interacts with the target system; passive gathers information without direct contact
Active reconnaissance involves direct interaction with the target (port scanning, vulnerability scanning), while passive reconnaissance gathers publicly available information (WHOIS, social media, DNS records) without alerting the target.
Question 97: An attacker sends an ICMP echo request to a broadcast address with a spoofed source. What attack is this?
- Ping of death
- SYN flood
- Smurf attack (Correct answer)
- Teardrop attack
Correct answer: Smurf attack
A Smurf attack amplifies traffic by broadcasting ICMP requests with the victim's spoofed source address.
Question 98: What is spear phishing and how does it differ from regular phishing?
- Phishing that uses spear-like USB devices
- A type of network scanning technique
- Targeted phishing aimed at specific individuals using personalized information, versus mass generic emails (Correct answer)
- Using a fishing metaphor to describe hacking
Correct answer: Targeted phishing aimed at specific individuals using personalized information, versus mass generic emails
Spear phishing targets specific individuals or organizations with highly personalized messages using researched information (name, position, projects), making them much more convincing and dangerous than generic phishing campaigns.
Question 99: What is fileless malware and why is it difficult to detect?
- Malware that operates entirely in memory without writing files to disk, evading traditional file-based scanning (Correct answer)
- Malware that only affects file servers
- Malware that deletes all files on a system
- Malware with no file size
Correct answer: Malware that operates entirely in memory without writing files to disk, evading traditional file-based scanning
Fileless malware executes entirely in RAM using legitimate system tools (PowerShell, WMI, macros), leaving no traditional file artifacts on disk, making it invisible to conventional antivirus that scans files.
Question 100: What technique poisons a switch's CAM table to capture traffic on a LAN?
- Session fixation
- ARP spoofing
- MAC flooding (Correct answer)
- DNS poisoning
Correct answer: MAC flooding
MAC flooding overflows the CAM table, forcing the switch to broadcast frames like a hub.
Question 101: Which type of backdoor is hidden inside the firmware or boot process and loads before the operating system?
- Spyware
- Bootkit (Correct answer)
- Macro virus
- Adware
Correct answer: Bootkit
A bootkit infects the boot process or firmware and loads before the OS starts.
Question 102: Which type of assessment specifically tries to exploit found vulnerabilities rather than just listing them?
- Vulnerability scan
- Compliance audit
- Risk assessment
- Penetration test (Correct answer)
Correct answer: Penetration test
A penetration test actively exploits vulnerabilities to demonstrate real-world impact.
Question 103: Which type of IDS analyzes network traffic patterns against a learned baseline to detect anomalies?
- Anomaly-Based IDS (Correct answer)
- Host-Based IDS
- Signature-Based IDS
- Stateful IDS
Correct answer: Anomaly-Based IDS
Anomaly-based IDS establishes a baseline of normal behavior and triggers alerts when traffic deviates significantly from that baseline.
Question 104: What is a 'zero-day vulnerability'?
- A vulnerability with a CVSS score of zero
- A vulnerability that has existed for zero days
- A vulnerability that only affects systems on day zero of deployment
- A previously unknown vulnerability with no available patch (Correct answer)
Correct answer: A previously unknown vulnerability with no available patch
A zero-day vulnerability is a security flaw that is unknown to the vendor and has no available patch, making it particularly dangerous and valuable to attackers.
Question 105: Which automated exploitation framework is most commonly referenced in CEH for developing and testing exploits?
- Burp Suite Pro
- OWASP ZAP
- Nessus
- Metasploit Framework (Correct answer)
Correct answer: Metasploit Framework
The Metasploit Framework is the most widely used open-source exploitation framework, providing tools for exploit development, delivery, and post-exploitation.
Question 106: Which type of malware disguises itself as legitimate software to trick users into installing it but does not self-replicate?
- Virus
- Worm
- Trojan horse (Correct answer)
- Bootkit
Correct answer: Trojan horse
A Trojan horse masquerades as legitimate software and does not self-replicate.
Question 107: Which attack targets the cloud management plane to gain administrative control over an entire cloud environment?
- Hypervisor Attack
- Container Escape
- Wrapping Attack (Correct answer)
- SSRF
Correct answer: Wrapping Attack
A wrapping attack (XML Signature Wrapping) manipulates SOAP messages to the cloud management API, potentially granting attacker admin access.
Question 108: What is steganography and how does it differ from encryption?
- A handwriting analysis technique
- A method for compressing images
- Hiding data within other files (images, audio) to conceal its existence, versus encryption which makes data unreadable (Correct answer)
- A type of encryption algorithm
Correct answer: Hiding data within other files (images, audio) to conceal its existence, versus encryption which makes data unreadable
Steganography hides the existence of a message by embedding it within innocent-looking files (images, audio, video), while encryption makes the message unreadable but its existence is known. They can be combined.
Question 109: During privilege escalation on Linux, an attacker finds a SUID binary owned by root. What does exploiting it most directly grant?
- Execution with the file owner's (root) privileges (Correct answer)
- A reverse DNS record
- Network sniffing ability
- Persistent cron access only
Correct answer: Execution with the file owner's (root) privileges
A SUID binary runs with the privileges of its owner, so a root-owned SUID can yield root execution.
Question 110: What is the purpose of AWS CloudTrail in a security context?
- Encrypting data at rest
- Load balancing across cloud regions
- Logging API calls and user activity for auditing (Correct answer)
- Managing IAM role assignments
Correct answer: Logging API calls and user activity for auditing
AWS CloudTrail records API calls and management events across an AWS account, providing an audit trail for security analysis and compliance.
Question 111: A penetration tester wants legal protection clarifying they are authorized to test. Which agreement is most relevant?
- Memorandum of understanding for marketing
- Service level agreement
- Non-disclosure agreement only
- Get-out-of-jail-free / authorization letter (Correct answer)
Correct answer: Get-out-of-jail-free / authorization letter
A signed authorization letter grants explicit legal permission to perform the testing.
Question 112: Which command-line tool is used to capture and analyze network packets from the terminal?
- traceroute
- netstat
- ipconfig
- tcpdump (Correct answer)
Correct answer: tcpdump
tcpdump captures and displays network packets directly from the command line.
Question 113: What is Maltego primarily used for during the footprinting and reconnaissance phase?
- Automated vulnerability scanning
- Network packet capture and analysis
- Password cracking and hash analysis
- Visual link analysis and open-source intelligence gathering (Correct answer)
Correct answer: Visual link analysis and open-source intelligence gathering
Maltego is an OSINT and forensics tool that graphically visualizes relationships between entities such as people, organizations, domains, and IP addresses discovered during reconnaissance.
Question 114: A tester captures a service's response containing version and OS hints by connecting to an open port. This is called what?
- Password spraying
- Session hijacking
- Banner grabbing (Correct answer)
- DNS poisoning
Correct answer: Banner grabbing
Banner grabbing collects service banners that often reveal software versions and OS details.
Question 115: What does a stateful firewall track that a stateless (packet-filtering) firewall does not?
- Layer 7 application data
- The state of active network connections (Correct answer)
- DNS query responses
- Source and destination IP addresses
Correct answer: The state of active network connections
A stateful firewall maintains a connection state table and tracks the full context of active sessions, allowing it to detect out-of-state packets that stateless firewalls miss.
Question 116: Which tool is commonly used to test for misconfigured AWS S3 bucket permissions?
- Hydra
- Maltego
- S3Scanner (Correct answer)
- Gobuster
Correct answer: S3Scanner
S3Scanner enumerates and checks the permissions of Amazon S3 buckets to identify publicly accessible or misconfigured buckets.
Question 117: What does OSINT stand for in the context of ethical hacking reconnaissance?
- Online System Integration Technique
- Offensive Security Intrusion Network Testing
- Open Source Intelligence (Correct answer)
- Operational Security Intelligence
Correct answer: Open Source Intelligence
OSINT (Open Source Intelligence) refers to gathering information exclusively from publicly available sources without direct interaction with the target.
Question 118: Which document is signed before an engagement begins to define what systems may be tested and the boundaries of the test?
- Acceptable use policy
- Incident response plan
- Disaster recovery plan
- Rules of Engagement (Correct answer)
Correct answer: Rules of Engagement
The Rules of Engagement defines scope, targets, timing, and limitations of the test.
Question 119: Which tool is an industry-standard open-source vulnerability scanner used in CEH assessments?
- OpenVAS (Correct answer)
- Burp Suite
- John the Ripper
- Metasploit
Correct answer: OpenVAS
OpenVAS (Greenbone Vulnerability Manager) is a widely used open-source vulnerability scanner that checks systems against thousands of known vulnerability tests.
Question 120: An attacker uses the SAM file extracted from a Windows host to recover plaintext passwords offline. Which tool is BEST suited for this cracking task?
- John the Ripper (Correct answer)
- Nikto
- Netcat
- Wireshark
Correct answer: John the Ripper
John the Ripper is a password-cracking tool that can attack NTLM/SAM hashes offline.
Question 121: What is the purpose of using Unicode or hex encoding in IDS evasion?
- To compress attack payloads for faster delivery
- To bypass SSL inspection
- To prevent logging of the attack
- To obscure attack strings so signature-based IDS does not detect them (Correct answer)
Correct answer: To obscure attack strings so signature-based IDS does not detect them
Encoding attack strings in Unicode or hex can bypass signature-based IDS that only match ASCII patterns, while the target server decodes and executes the payload normally.
Question 122: Which technique uses legitimate system tools already present on a host (like PowerShell or WMI) to avoid dropping detectable malware files?
- Typosquatting
- Watering hole
- Drive-by download
- Living off the land (LOLBins) (Correct answer)
Correct answer: Living off the land (LOLBins)
Living-off-the-land attacks abuse built-in trusted binaries to operate without dropping new files.
Question 123: Which technique do attackers use to bypass firewalls by encapsulating malicious traffic within an allowed protocol such as DNS or ICMP?
- Protocol Tunneling (Correct answer)
- Port Knocking
- ARP Spoofing
- Fragmentation
Correct answer: Protocol Tunneling
Protocol tunneling encapsulates unauthorized traffic inside permitted protocols (like DNS or ICMP), allowing it to pass through firewalls that only filter by protocol type.
Question 124: What is the purpose of enumeration in the ethical hacking methodology?
- Creating a network diagram automatically
- Numbering all ports sequentially
- Extracting detailed information like usernames, shares, and services from a target system (Correct answer)
- Counting the number of computers on a network
Correct answer: Extracting detailed information like usernames, shares, and services from a target system
Enumeration involves establishing active connections to target systems to extract detailed information including user accounts, network shares, group memberships, SNMP data, and DNS zone transfers.
Question 125: What is the primary goal of TCP session hijacking?
- To decrypt TLS traffic
- To take over an established TCP connection (Correct answer)
- To crash the target server
- To perform a SYN flood attack
Correct answer: To take over an established TCP connection
TCP session hijacking aims to take control of an active TCP session by predicting or stealing sequence numbers to inject malicious packets.
Question 126: Which encryption protocol is considered insecure for Wi-Fi and easily cracked?
- WPA3
- WPA2
- AES-CCMP
- WEP (Correct answer)
Correct answer: WEP
WEP uses weak RC4 keying and is trivially cracked, making it obsolete.
Certified Ethical Hacker (CEH v13)
The CEH v13 certification validates an individual's ability to think and act like a malicious hacker, covering attack phases, countermeasures, and ethical hacking techniques across 20 security domains. Awarded by EC-Council, it is one of the most recognized cybersecurity certifications worldwide.
Exam Rules
- You can skip questions and return to them later
- Flag questions for review before submitting
- No feedback shown until you submit the entire exam
- Unanswered questions count as wrong — answer everything
- 10 pretest questions are mixed in and don't affect your score
- Timer auto-submits when time runs out
- Your progress is auto-saved every 30 seconds
Practice questions written with AI assistance and published by Nathan Beja, founder of Practice Test Geeks. They are not real exam questions. Exam facts are checked against the official sources linked below. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- store.eccouncil.org — Retake fee · verified Nov 2026
- cert.eccouncil.org — Test delivery, fees, exam format, renewal, time limit, score validity, retake policy, eligibility · verified Nov 2026