Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free EC-Council Certified Ethical Hacker 312-50 Exam Questions

Last updated: · 13 practice questions with answers and explanations

Page: 1 / 62 Total 924 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Information Security and Ethical Hacking Overview

Skill tested: Selects layered controls that interrupt a specified attack path.

A regional company has experienced repeated credential-phishing attempts followed by unauthorized access to employee workstations. The security team is redesigning controls to reduce the likelihood that a stolen password can lead to sensitive data exposure. The organization already uses endpoint antivirus, but it cannot deploy hardware security keys to every employee this quarter. Which additional control most directly limits an attacker who obtains a valid password, while remaining practical to deploy across existing applications?

Correct Answer: D. Require multifactor authentication using a factor independent of the password, with conditional access for sensitive applications.
Explanation:

Multifactor authentication adds an independent proof of identity, so possession of a phished password alone is insufficient to authenticate. Conditional access can further restrict access based on application sensitivity and sign-in context. Password complexity and frequent changes do not reliably prevent reuse or real-time phishing. Perimeter detection may identify some follow-on activity but does not stop credential use, while full-disk encryption primarily protects data on lost or stolen devices rather than an attacker authenticated to a running system.

Question 2

New Single answer

Topic: Reconnaissance Techniques

Skill tested: Chooses passive footprinting methods to map externally visible organizational assets.

An authorized assessment must identify internet-facing systems associated with a company before any packets are sent to its network. The company uses several domains, a cloud-hosted mail service, and third-party DNS hosting. The rules of engagement prohibit direct port scans and active DNS queries during this phase. Which approach best builds an initial asset inventory while respecting the passive-only constraint?

Correct Answer: B. Review public certificate-transparency records, passive DNS data, public registration records, and search-engine-indexed subdomains.
Explanation:

Public certificate-transparency logs, passive DNS sources, registration records, and indexed content can reveal domains and likely hosts without initiating traffic to the target infrastructure. This matches the explicit passive-reconnaissance restriction and supports an initial attack-surface inventory. Port scanning, zone-transfer attempts, and HTTP requests all communicate directly with target or authoritative systems and therefore violate the rules of engagement. Public data can be incomplete or stale, so findings should later be validated during an authorized active phase.

Question 3

New Multiple answers

Topic: Reconnaissance Techniques

Skill tested: Combines authorized DNS and network enumeration to validate exposed host details.

During an approved external assessment, a tester has identified a company's public domain and a set of likely subdomains from public sources. Active enumeration is now permitted, but the company requires low-impact methods and prohibits exploitation. The objective is to confirm which names resolve, identify reachable services, and avoid treating DNS names alone as proof that a host is live. Which TWO actions are most appropriate? Select TWO.

Correct Answer: A. Query the organization's authoritative DNS servers for permitted records and attempt a zone transfer only if explicitly authorized.; E. Use a targeted, rate-limited service scan of confirmed in-scope IP addresses to identify listening ports and service banners.
Explanation:

Authorized DNS queries can validate records, and a zone-transfer attempt is appropriate only when specifically within scope; misconfigured transfer behavior can expose additional hostnames. A targeted, rate-limited scan of confirmed in-scope addresses then checks actual service reachability and banners without attempting exploitation. Exploit payloads exceed the stated non-exploitation boundary. A DNS name does not prove a host is reachable, and UDP flooding is disruptive rather than a low-impact enumeration method.

Question 4

New Single answer

Topic: System Hacking Phases and Attack Techniques

Skill tested: Prioritizes evidence preservation and containment after suspected host compromise.

A workstation used by a finance employee shows an unfamiliar scheduled task and outbound connections to an unknown host. The incident response team has authority to isolate the endpoint, but finance operations require a rapid recovery. Investigators need to understand the initial access path and preserve evidence that may be lost if the machine is powered down. What should the responder do FIRST?

Correct Answer: C. Disconnect the workstation from network access, preserve its current state, and collect volatile evidence using approved procedures.
Explanation:

Network isolation limits continued command-and-control communication and lateral movement, while preserving the powered-on state allows collection of volatile evidence such as active connections and memory. Evidence collection should follow approved forensic procedures and chain-of-custody requirements. Reimaging destroys valuable artifacts; deleting the task changes evidence and does not establish the full scope; powering off may eliminate volatile data. After evidence and scope are addressed, the organization can eradicate the threat and restore service safely.

Question 5

New Single answer

Topic: System Hacking Phases and Attack Techniques

Skill tested: Uses least privilege and credential rotation to prevent persistence through stolen secrets.

A red-team exercise, conducted under written authorization, demonstrates that a compromised application server can read a deployment credential stored in a local configuration file. The credential grants write access to production deployment artifacts and is also used by administrators for manual troubleshooting. The team must recommend remediation that removes the demonstrated persistence path without interrupting scheduled releases. Which recommendation is BEST?

Correct Answer: D. Rotate the exposed credential, separate human and workload identities, and grant the workload only the deployment permissions it requires.
Explanation:

Once a credential has been exposed to a compromised host, it must be treated as compromised and rotated. Separating human identities from workload identities prevents one stolen secret from serving both purposes, while least-privilege permissions reduce what an attacker can do with a workload credential. Obfuscation does not protect a secret from a process that can read it. Periodic rotation without removing the exposure leaves the same attack path, and disabling releases is unnecessarily disruptive rather than a sustainable control.

Question 6

New Multiple answers

Topic: Network and Perimeter Hacking

Skill tested: Diagnoses ARP spoofing and selects effective controls on a switched LAN.

Users on a shared office VLAN report intermittent TLS certificate warnings. A packet capture from an affected workstation shows that the default gateway's IP address is resolving to a MAC address not assigned to the gateway. The switch is managed, and the network team can change access-layer configuration, but it cannot replace all endpoints immediately. Which TWO actions are the most appropriate? Select TWO.

Correct Answer: B. Inspect switch forwarding and ARP tables, then identify the access port associated with the unexpected MAC address.; C. Enable DHCP snooping and configure Dynamic ARP Inspection on suitable VLANs and trusted interfaces.
Explanation:

The mismatch between the gateway IP and its observed MAC address is consistent with ARP spoofing or another unauthorized address-resolution change. Switch and ARP-table inspection helps locate the suspicious port and contain the source. DHCP snooping supplies trusted binding information that Dynamic ARP Inspection can use to validate ARP packets, when correctly deployed. Disabling certificate checks exposes users to interception, DNS caching does not repair ARP mappings, and a hub would increase exposure rather than provide a defense.

Question 7

New Single answer

Topic: Network and Perimeter Hacking

Skill tested: Mitigates passive packet sniffing by securing wireless traffic and switching infrastructure.

A security engineer finds that a contractor connected an unauthorized packet-capture device to an unused office Ethernet jack. The switch does not mirror traffic to that jack, but the contractor can capture local broadcast traffic and any traffic sent to the device itself. The organization wants to reduce the value of future captures without disrupting legitimate network operations. Which change most directly protects sensitive application data if packets are observed on the local segment?

Correct Answer: C. Require secure application protocols such as TLS, validate certificates, and remove any plaintext management services.
Explanation:

TLS with proper certificate validation protects application confidentiality and integrity even when an attacker can capture packets on the local segment. Plaintext management protocols should also be replaced with secure alternatives. VLAN placement does not encrypt traffic and may worsen segmentation; disabling spanning tree can create switching loops; and MTU changes do not prevent packet capture. Port security and physical controls can help prevent rogue devices, but among these choices, end-to-end encryption most directly limits the usefulness of captured application traffic.

Question 8

New Multiple answers

Topic: Network and Perimeter Hacking

Skill tested: Distinguishes session hijacking indicators from ordinary network failures and applies containment.

A web service's monitoring detects two simultaneous requests using the same authenticated session token from geographically distant networks. The service uses TLS, but the application has no device binding, and the user reports no new login prompt. The security team needs to stop continued misuse and reduce the chance that a captured token can be replayed. Which TWO actions should it take? Select TWO.

Correct Answer: A. Revoke the affected session server-side and require the user to authenticate again.; D. Investigate token exposure paths and implement session rotation after authentication or privilege changes, with secure cookie attributes.
Explanation:

Immediate server-side revocation invalidates the suspected stolen token; merely changing the user's password may not terminate an existing session unless the application explicitly ties sessions to that change. Investigating exposure and rotating session identifiers at authentication and privilege transitions reduces fixation and replay opportunities. Secure cookie attributes such as Secure, HttpOnly, and an appropriate SameSite policy help protect browser-held tokens. A longer-lived TLS certificate is unrelated to session validity, persistent browser storage increases token exposure, and disabling lockout does not address hijacking.

Question 9

New Single answer

Topic: Network and Perimeter Hacking

Skill tested: Uses segmentation and access controls to reduce perimeter-to-internal pivoting.

An organization permits a public-facing web server to reach an internal database subnet because an older application occasionally needs database access. A perimeter review finds that the server can also initiate connections to employee workstations and administrative interfaces. The application team confirms that only one database service and port are required. The redesign must preserve the application while limiting lateral movement if the web server is compromised. Which configuration is BEST?

Correct Answer: A. Place the server in a DMZ and enforce stateful, default-deny rules allowing only the required database destination and service.
Explanation:

A DMZ and least-privilege stateful rules constrain the compromised web server to the specific backend dependency while preventing direct access to employee and management networks. The rule should identify the permitted source, destination, protocol, and port, with default-deny behavior for other flows. IDS alerts do not prevent the pivot, placing a public server on the user VLAN increases exposure, and broad subnet access remains excessive regardless of password strength.

Question 10

New Single answer

Topic: Web Application Hacking

Skill tested: Evaluates authentication and session controls using controlled authorization tests.

A company authorizes a test of its customer portal after receiving reports that users sometimes see another customer's order history. The application uses authenticated sessions and returns order data through an API. Testing must avoid changing records or accessing real customer information beyond the approved test accounts. Which method best determines whether the issue is an authorization flaw rather than a login or session-establishment failure?

Correct Answer: B. Use two approved test accounts, capture an authorized request, vary the object identifier to the other test account's record, and verify server-side access decisions.
Explanation:

Using two controlled accounts and their own records isolates object-level authorization behavior: the tester can determine whether the server checks that the authenticated principal is entitled to the requested object. Changing an identifier while keeping the session controlled tests access enforcement without touching unrelated users' data. Password guessing assesses authentication strength, not authorization. Cookie replay across browsers alone does not demonstrate cross-user access, and stored XSS is unrelated and introduces unnecessary risk.

Question 11

New Multiple answers

Topic: Web Application Hacking

Skill tested: Selects session-management protections against fixation and cross-site request attacks.

A financial portal has a strong password policy and multifactor authentication, but an assessment finds that its session identifier remains unchanged after login. The application also performs account changes through state-changing HTTP requests. The team wants to reduce session fixation and cross-site request risks without relying on users to recognize suspicious pages. Which TWO changes should be prioritized? Select TWO.

Correct Answer: A. Issue a new, unpredictable session identifier after successful authentication and privilege changes.; B. Require a server-validated anti-CSRF token for state-changing requests and use appropriate SameSite cookie settings.
Explanation:

Rotating the session identifier after login and privilege changes prevents an attacker from fixing a pre-authentication identifier and inheriting the authenticated session. A server-validated CSRF token, complemented by appropriate SameSite cookie behavior, helps ensure that state-changing requests originate from the intended application context. Putting session identifiers in URLs leaks them through history and referrers. Longer sessions increase the window for misuse, and authorization decisions must be enforced server-side, not by JavaScript.

Question 12

New Single answer

Topic: Wireless Network Hacking

Skill tested: Identifies rogue access point risks and applies enterprise wireless authentication controls.

A hospital discovers an access point attached to a clinical-network jack. It advertises the same SSID as the authorized staff network, but it is not managed by the wireless controller. The organization uses enterprise Wi-Fi and must avoid disrupting medical devices that rely on a separate, tightly controlled wireless profile. What is the most appropriate response for the staff network?

Correct Answer: A. Contain the unauthorized access point, locate its wired connection, and strengthen managed-client validation of the trusted enterprise network.
Explanation:

A rogue AP using a trusted SSID can enable an evil-twin or unauthorized bridge attack. The organization should contain and trace the device through wired-network controls, then ensure managed clients validate the expected authentication infrastructure and server certificate for enterprise authentication. Hiding an SSID does not provide meaningful authentication, signal strength is not a trust indicator, and disabling encryption would expose sensitive traffic. The separate medical-device profile need not be changed as part of this staff-network remediation.

Question 13

New Single answer

Topic: Mobile Platform, IoT, and OT Hacking

Skill tested: Secures IoT management interfaces through isolation, credential control, and firmware practices.

A facilities team deploys internet-connected environmental sensors that report temperature to a local dashboard. A security review finds that the devices ship with a shared default administrator password, expose a web-management interface on the corporate LAN, and receive firmware updates only during planned maintenance. The sensors must continue sending telemetry, but direct access from employee workstations is not required. Which remediation is the BEST initial design?

Correct Answer: C. Place the sensors in a restricted IoT network, replace default credentials, allow only required telemetry flows, and establish a verified firmware-update process.
Explanation:

A restricted IoT segment limits the impact of a compromised or vulnerable sensor, while unique credentials remove the shared default-secret risk. Allowlisting only required telemetry flows reduces unnecessary access, and a verified, scheduled firmware process addresses known vulnerabilities without assuming that updates can occur continuously. Changing only the dashboard password leaves device management exposed. Internet-exposed administration increases attack surface, while disconnecting the sensors conflicts with the requirement to continue telemetry.