Answer before reviewing
Pick the one answer that fits every condition in the scenario. Then read why each other option falls short.
Free CEH practice
Twenty original scenarios for the EC-Council Certified Ethical Hacker knowledge exam (312-50), split across the nine blueprint domains in proportion to EC-Council's published question counts. It is a short original preview that cannot match the real exam's length, topic mix, or difficulty, and a percentage here is not an EC-Council cut score.
Start question 1Question review
Try the set above first, then use this list to review. Each answer and explanation stays closed until you open it.
Correct answer: B · Leave it untested and raise it with the client's point of contact
NIST SP 800-115's rules of engagement template asks the test plan to identify every system not authorized for testing, the exclude list, and to detail allowable and unallowable activities, and senior management signs to confirm the scope and boundaries. A host on that list is outside the tester's authorization, whatever it seems to run, so the tester leaves it alone and raises the observation with the client's point of contact, who decides whether to change the scope. A quick scan or light testing is still testing without authorization. Testers cannot add a system to the scope on their own judgment; only the client can.
Look for this next time: Authorization defines ethical hacking: a system on the exclude list stays untested until the client changes the authorized scope.
Correct answer: D · Hosts that send no traffic during the capture window may not be found
NIST SP 800-115 describes passive discovery as using a network sniffer to record the addresses of active hosts, and the ports and operating systems in use, without sending out a single probing packet. It also names the trade-off: passive discovery takes more time than active discovery, and hosts that do not send or receive traffic during the monitoring period might not be reported. Sending probes describes active discovery, which the client forbids. Passive monitoring does not guarantee that every host appears, and it can report ports in use. It also needs no idle network, because it watches the traffic that normal work produces.
Look for this next time: Passive discovery sends no probes, but it is slower and can miss hosts that stay silent while you listen.
Correct answer: A · A TCP SYN scan, which is also known as half-open scanning
Nmap's reference guide calls SYN scan half-open scanning because it never opens a full TCP connection: it sends a SYN, reads a SYN/ACK as a listening port and a RST as a non-listener, and never completes the handshake. A connect scan instead asks the operating system to establish each connection through the connect system call, so open ports would see completed connections, which the log does not show. A UDP scan sends UDP datagrams, not TCP SYN packets. A ping sweep looks for live hosts across addresses, not hundreds of ports on one server.
Look for this next time: SYN packets answered by SYN/ACK and then reset, with no completed handshake, point to a half-open SYN scan.
Correct answer: C · Migrate to SNMPv3 with authentication and privacy set for each user
RFC 3410 states that SNMPv1 and SNMPv2c support only trivial authentication based on plain-text community strings and are, as a result, fundamentally insecure. SNMPv3's User-based Security Model, defined in RFC 3414, adds per-user authentication and a privacy service that protects message contents. Rotating the community string keeps the plain-text design, so a captured or guessed string works until the next change. A nonstandard port hides the service only from scans that skip that port. Blocking ICMP echo does nothing to SNMP queries, which travel over UDP.
Look for this next time: SNMPv1 and v2c rely on plain-text community strings; SNMPv3 with authentication and privacy fixes the design.
Correct answer: C · It tries to prove which findings can be exploited, and their impact
NIST SP 800-115 says vulnerability scanners identify hosts, open ports, and known vulnerabilities but can have a high false positive rate, so an expert should interpret the results. Its target vulnerability validation techniques, which include penetration testing, aim to prove that a vulnerability exists and to demonstrate the security exposures that occur when it is exploited. A penetration test is not a bigger scan. Testing fixes nothing: remediation still follows the report. Interpretation also remains part of the work, since NIST tells assessors to set each vulnerability's risk level rather than accept the scanner's.
Look for this next time: A scan lists possible weaknesses; a penetration test tries to prove which ones are exploitable and what that exposes.
Correct answer: A · Salt each password and hash it with a password hashing scheme that has a cost factor
NIST SP 800-63B (Revision 4) says verifiers shall store passwords in a form resistant to offline attacks: salted and hashed with a suitable password hashing scheme, which takes a password, a salt, and a cost factor and makes each guess more expensive. It requires a salt of at least 32 bits chosen to minimize collisions, so that accounts with the same password do not share a hash, and one shared salt fails that test. Reversible encryption with the key on the same server hands an attacker who takes the server both. Forced changes leave the weak storage in place, and the same guidance says verifiers shall not require periodic password changes.
Look for this next time: Store passwords salted and hashed with a slow, cost-based scheme; a unique salt per password stops identical hashes.
Correct answer: D · A worm, a self-contained program that copies itself without user action
NIST SP 800-83 Revision 1 defines a worm as a self-replicating, self-contained program that usually executes itself without user intervention. A virus self-replicates by inserting copies of itself into host programs or data files and is often triggered through user interaction such as opening a file or running a program, which the stem rules out. A Trojan horse is self-contained but nonreplicating, so it would not copy itself between servers. A rootkit is a collection of files installed on a host to alter its normal functions stealthily; hiding activity on one host does not explain the spread.
Look for this next time: A worm spreads by itself across systems; a virus needs a host file and usually a user's action.
Correct answer: B · DHCP snooping with Dynamic ARP Inspection, to drop forged ARP replies
The pattern is ARP cache poisoning: forged ARP replies tie the gateway's IP address to another host's MAC address, so traffic passes through that host. MITRE ATT&CK's entry for ARP cache poisoning (T1557.002) suggests enabling DHCP snooping and Dynamic ARP Inspection on switches, which bind DHCP-assigned addresses to switch ports and may block bogus ARP traffic, and it also recommends encrypting sensitive traffic. Port mirroring copies traffic for monitoring but blocks nothing. A larger MAC address table does not check whether an ARP reply is genuine. Spanning Tree prevents switching loops, a different problem.
Look for this next time: Forged ARP replies that redirect gateway traffic are ARP poisoning; Dynamic ARP Inspection with DHCP snooping is the switch-side control.
Correct answer: A · Verify him by the documented procedure, such as a callback to the number on file
NIST SP 800-115 names calling the help desk while posing as a user and asking for a password reset as a social engineering technique, and says social engineering reveals weaknesses such as failing to follow standard procedures. Urgency, seniority, and one correct detail are pressure, not proof of identity. The sound step is the organization's documented verification, such as calling back a number already on file. Forcing a change at the next sign-in still hands the account to whoever is on the phone. Sending the password to an address the caller chooses gives it to a person no one has verified.
Look for this next time: Urgent reset requests by phone get the documented identity check, however senior or rushed the caller sounds.
Correct answer: C · Enabling SYN cookies, so no state is held for half-open requests
RFC 4987 describes TCP SYN flooding: spoofed SYNs fill the limited backlog of connections waiting in the SYN-RECEIVED state, so new requests are ignored or replace older ones. SYN cookies allocate no state at all for connections in SYN-RECEIVED; they encode the needed state in the sequence number of the SYN-ACK and rebuild it only when a real ACK completes the handshake. Closing the service port shuts out legitimate users as well. Disabling ICMP echo replies has no effect on TCP SYN segments. A longer session timeout concerns signed-in application sessions, not the half-open TCP backlog.
Look for this next time: A backlog full of half-open connections from spoofed sources is a SYN flood; SYN cookies avoid holding state for them.
Correct answer: D · Issue a new session ID at sign-in and at every privilege change
OWASP's Session Management Cheat Sheet says the session ID must be renewed or regenerated after any privilege level change, most commonly at authentication, and that this regeneration is mandatory to prevent session fixation. A longer ID resists guessing but does nothing when the attacker already knows the ID. OWASP warns that IDs carried in URLs can leak through links, logs, browser history, and the Referer header, and advises refusing IDs sent that way as a defense against fixation. A longer idle timeout gives a planted ID more time to be used, not less.
Look for this next time: Regenerate the session ID at sign-in and at every privilege change, so an ID set before login is worthless after it.
Correct answer: B · Anomaly-based detection, comparing activity with a normal profile
NIST SP 800-94 defines signature-based detection as comparing activity with patterns that correspond to known threats: very effective against known threats but largely ineffective against previously unknown ones. Anomaly-based detection compares observed events with profiles of normal behavior built over time, such as the number of emails a user sends, and NIST names its major benefit as detecting previously unknown threats. Faster signature updates still cover only known patterns. Port mirroring changes what the sensor sees, not how it decides what is suspicious. A honeypot records activity aimed at a decoy, not deviations on production hosts.
Look for this next time: Signatures catch known attacks; anomaly-based detection compares activity with a learned normal profile to catch new ones.
Correct answer: C · Show users a generic error page and keep the details in server logs
OWASP's Top 10:2025 lists error handling that reveals stack traces or other overly informative error messages under security misconfiguration, with the example of an application server whose detailed stack traces expose component versions that may be known to be vulnerable. Its prevention advice adds a central configuration that intercepts excessive error messages; in practice, users then see a generic page while the details stay in server logs. A different port or a CAPTCHA leaves the same details visible to anyone who triggers an error. Putting more detail on the error page adds information instead of removing it.
Look for this next time: Stack traces on public error pages are a misconfiguration; show a generic message and keep the details server-side.
Correct answer: A · Broken access control: check on the server that the user owns the record
OWASP's Top 10:2025 lists permitting viewing or editing someone else's account by providing its unique identifier, an insecure direct object reference, under broken access control, along with bypassing checks by modifying the URL. Its prevention advice is to enforce access control on the server and to have access controls enforce record ownership, so the application must confirm that the signed-in user may see record 1044. Output encoding addresses cross-site scripting, which the stem does not show. Encrypting the ID only hides the number; without an ownership check, another valid ID would still work. Directory listing concerns browsing folders, not record IDs.
Look for this next time: Changing an ID to reach another user's record is broken access control; the server must check ownership on every request.
Correct answer: D · Prepared statements with parameterized queries for each input value
OWASP's SQL Injection Prevention Cheat Sheet lists prepared statements with parameterized queries as the first primary defense and marks escaping all dynamic inputs as strongly discouraged. Parameters keep user input as data, so it cannot change the structure of the query. Hiding error messages removes clues but leaves the injection in place. A rule that blocks every quote mark filters requests instead of fixing the query, and it also rejects legitimate names such as O'Brien. Browser-side checks run on the user's machine, so anyone who sends requests to the server directly skips them.
Look for this next time: Parameterized queries keep input as data; escaping and filters are weaker substitutes for fixing how the query is built.
Correct answer: B · Move to WPA3-Personal and set a long, unique password for the network
The Wi-Fi Alliance says WPA3 is mandatory for Wi-Fi CERTIFIED devices and that users of WPA3-Personal receive increased protections from password guessing attempts, and a long, unique password adds to the effort a guesser faces. Hiding the network name and filtering MAC addresses leave the same short WPA2 password and the same protocol in place, so the guessing risk the assessment found stays as it was. Lowering transmit power shrinks the coverage area, but it does not change the password or how the network protects it.
Look for this next time: Against password guessing on Wi-Fi, a stronger protocol (WPA3-Personal) and a long password help; hiding the SSID does not.
Correct answer: A · Restrict sideloading and allow only approved apps from official stores
NIST SP 800-124 Revision 2 says sideloading apps from untrusted or unknown sources poses significant security risks, and it lists EMM restrictions that limit which app stores may be used, restrict sideloading, and allowlist approved apps, which it calls preferable to blocklisting. A stronger passcode and remote wipe protect a lost or stolen phone, not a phone that is running an untrusted app. A VPN protects traffic in transit, but it does not stop a malicious app from being installed or from running on the device.
Look for this next time: Apps from unknown sources are a mobile malware risk; EMM policies that restrict sideloading and allowlist apps address it.
Correct answer: D · Replace the shared default with a unique, strong password on each camera
CISA's Secure by Design alert on default passwords urges manufacturers to eliminate static default passwords so that they cannot be exploited in customers' systems. When a device still ships with one, replacing it with a unique, strong credential for each device removes the single shared secret that would open all 60 cameras at once. The perimeter firewall does not protect the interfaces from devices already on the corporate network, where they are reachable. Writing the password on each camera spreads it further, and waiting for a firmware release leaves the cameras exposed in the meantime.
Look for this next time: A shared factory default password on IoT devices is replaced with a unique, strong credential per device before use.
Correct answer: C · The customer, because it manages its own data and its access settings
AWS describes the model as AWS being responsible for security of the cloud and the customer for security in the cloud. For abstracted services such as Amazon S3, AWS operates the infrastructure layer, the operating system, and the platform, while customers are responsible for managing their data, classifying their assets, and using IAM tools to apply the appropriate permissions. A bucket readable by anyone is a permissions setting, so it falls to the customer. Shared responsibility does not split every task equally, and public access is a configuration choice rather than the purpose of the service.
Look for this next time: In the shared responsibility model, the provider secures the cloud itself; the customer secures its data and access settings.
Correct answer: B · The developer's private key signs it; recipients verify with the public key
FIPS 186-5 says signature generation uses a private key and signature verification uses the corresponding public key. Private keys must be kept secret, public keys may be known by anyone, and only the holder of the private key can generate the signature, which ties the release to the developer. If a public key created signatures, anyone could forge them. Using recipients' public keys is how data is encrypted for them, which gives confidentiality, not proof of origin. A key shared by everyone lets every holder create the same value, so it cannot show which of them signed.
Look for this next time: Sign with your private key; anyone can verify with your public key, and only you could have made the signature.
Use the sample well
A short set can show you what deserves another look. A strong run shows you can match a technique to its phase and pick the countermeasure that fits. Twenty questions are a small sample, so the result does not predict a pass on a form whose cut score EC-Council sets between 60% and 85%.
Pick the one answer that fits every condition in the scenario. Then read why each other option falls short.
Confirm why the best option fits, even when you were right.
Use recurring misses—not one score—to choose your next focus.
Free CEH resources
Keep practicing, build a study plan, or browse the CEH guides.
Answer 20 original questions and learn from every rationale.
Start practice →Practical planning aidTurn the time you have into a clear study rhythm.
Build my outline →Source-backed answersGo straight to the question already on your mind.
Browse guides →