ECCouncil 312-50v13 (Certified Ethical Hacker v13) Practice Test 41

Question 400

The tester submits the following verified finding: Before building an API, the team maps trust boundaries, sensitive data flows, external actors, and ways an adversary could abuse the design. Which technique or condition is involved?

  1. Threat modeling
  2. Confidentiality
  3. Data minimization in testing
  4. White-box assessment

Explanation

Correct Answer

A:

Threat modeling is a structured way to reason about assets, entry points, trust boundaries, and attack paths before or during implementation. A targeted mitigation is to update the threat model when data flows or trust boundaries change; a design-level review must track new integrations and privileges; otherwise earlier assumptions stop representing the system being protected.

Incorrect Answers

B:

Confidentiality protects information against unauthorized disclosure; a system can preserve availability and integrity while still failing to restrict who reads sensitive material; those effects are not the threat modeling pattern evidenced by the assessment.

C:

Minimization limits collection to evidence needed to establish impact; copying sensitive records increases exposure and custody obligations without strengthening the vulnerability demonstration; the case demonstrates threat modeling rather than the alternate mechanism.

D:

White-box assessment uses extensive design and implementation knowledge to inspect hidden execution paths, business logic, and code-level weaknesses unavailable externally; the observed evidence concerns threat modeling instead.

Question 401

A remediation meeting focuses on the following finding: The Linux incident team disables a compromised account's shell, but an unauthorized recurring job still starts a network script every quarter-hour. Which proposed action best addresses its root cause?

  1. Use safe library loading and protect application directories
  2. Audit crontabs and apply least privilege to scheduler files
  3. Quote service executable paths and remove write access from service directories
  4. Apply phishing-resistant MFA and monitor low-frequency account-wide failures

Explanation

Correct Answer

B:

Trusted task baselines and restricted edit permissions make unauthorized scheduled execution easier to detect and harder to establish. The specific weakness being corrected is that cron executes scheduled commands under a designated user context, so a malicious job can survive session termination and run unattended.

Incorrect Answers

A:

Explicit paths, signed code checks where available, and restricted write permissions reduce control over dependencies loaded by privileged applications; the action is aimed at DLL search-order hijacking; it leaves the central cron-job persistence condition unresolved.

C:

Correct quoting removes ambiguity in executable selection, while hardened filesystem ACLs block unauthorized replacement or placement of executables; the tested weakness is cron-job persistence, not the unquoted service path abuse configuration addressed here.

D:

Cross-account failure correlation catches distributed guessing; MFA limits the value of a successfully guessed password even when lockout logic is avoided; that safeguard does not directly close the cron-job persistence route highlighted by the test.

Question 402

The owner asks for a durable safeguard against the issue demonstrated here: Concurrent reward-redemption requests each check the same available balance before either transaction commits, allowing the single intended reward to be issued twice. What is the best response?

  1. Use atomic transactions or unique constraints for one-time operations
  2. Avoid shell invocation and pass validated arguments to direct process APIs
  3. Encode untrusted values for the exact HTML or script output context
  4. Sanitize allowed rich content and use output encoding on display

Explanation

Correct Answer

A:

Database-enforced consistency prevents two workers from independently passing a stale eligibility check and duplicating a benefit. It targets the actual failure mode: a race condition lets concurrent operations violate a business invariant when checks and updates are not atomic or appropriately serialized.

Incorrect Answers

B:

Separating executable selection from user data prevents shell parsing from transforming input into additional commands; that change targets operating-system command injection, while the confirmed weakness involves business-logic race condition.

C:

Context-appropriate escaping prevents user-controlled text from becoming executable markup while preserving legitimate displayed search terms; it would improve reflected cross-site scripting, not directly correct the reported business-logic race condition issue.

D:

Validation and rendering safeguards stop saved comments from becoming active scripts when retrieved by other users; the measure addresses a different trust boundary from the business-logic race condition finding.

Question 403

The approved test uncovered this weakness: Operators assume that base64 encoding protects Kubernetes secrets within the control-plane database, and they have not enabled server-side encryption for the stored values. Which control would reduce the relevant exposure without relying on obscurity?

  1. Bind tenant identity to server-side authorization on each query
  2. Block public access and apply explicit identity-based bucket policies
  3. Restrict metadata access and harden metadata token requirements
  4. Enable encryption at rest for secrets and protect etcd access

Explanation

Correct Answer

D:

Cryptographic storage protection and strict API authorization reduce exposure from copied datastore contents or overly broad cluster access. The underlying condition is that base64 is an encoding, not encryption; etcd stores Kubernetes API state and needs explicit at-rest encryption and access restrictions for sensitive objects.

Incorrect Answers

A:

Tenant-scoped access controls prevent cross-customer record access even when resource IDs are known or guessed; its security benefit applies principally to multitenant isolation, not the defect described; the tested fault instead involves etcd secret storage.

B:

Least-privilege resource policies and public-access guardrails stop anonymous reads while preserving approved application retrieval; the exposure here is etcd secret storage, which calls for another protective mechanism.

C:

Workload network controls and hardened metadata APIs reduce credential retrieval from unintended server-side request paths; the action is aimed at cloud metadata SSRF; it leaves the central etcd secret storage condition unresolved.

Question 404

The assessment evidence reads as follows: A forensic image changes hands among three analysts, but transfer times, handlers, and integrity values were never recorded. Which technical concept explains the result?

  1. Integrity
  2. Data minimization in testing
  3. Availability
  4. Evidence chain of custody

Explanation

Correct Answer

D:

Chain of custody tracks who controlled evidence and when, while integrity hashes can demonstrate whether its contents changed between collection and analysis. On affected systems, it is useful to log every transfer and verify cryptographic evidence hashes; a custody record and repeatable integrity check support evidentiary reliability; neither a file name nor an informal email thread establishes the same provenance.

Incorrect Answers

A:

Integrity concerns whether data remains accurate and protected against unauthorized modification; silent record changes undermine trust without necessarily reducing system uptime; the test record points specifically to evidence chain of custody, not this separate mechanism.

B:

Minimization limits collection to evidence needed to establish impact; copying sensitive records increases exposure and custody obligations without strengthening the vulnerability demonstration; that behavior is distinct from the evidence chain of custody finding being classified.

C:

Availability means authorized users can reach required services when needed; exhausted capacity can violate this property even without evidence of data theft or corruption; the scenario identifies evidence chain of custody, which has a different triggering condition.

Question 405

An authorized security review documents this behavior: A suspicious client connection remains open with very slow progress because the defender intentionally delays responses. Which mechanism best accounts for the finding?

  1. Honeypot interaction
  2. Stateful firewall inspection
  3. Inline network IPS
  4. Tarpit delay behavior

Explanation

Correct Answer

D:

A tarpit consumes an attacker's time or connection resources by slowing interactions; it can also consume defender resources if poorly sized. For a production safeguard, operators can limit tarpits to isolated, capacity-bounded defensive use; controlled delays may deter automation, but resource limits and exemptions protect legitimate clients from accidental service degradation.

Incorrect Answers

A:

A honeypot deliberately exposes monitored, nonproduction resources to observe adversary behavior; it is not a substitute for protecting real assets; that behavior is distinct from the tarpit delay behavior finding being classified.

B:

Stateful inspection tracks connection context, unlike a stateless rule that examines each packet primarily by addresses, ports, and flags; the scenario identifies tarpit delay behavior, which has a different triggering condition.

C:

An inline IPS can block or reset traffic on the path while applying detection logic; availability design must consider false positives and bypass behavior; the defining symptom in the prompt is associated with tarpit delay behavior instead.

Question 406

A controlled investigation yields this observation: An unattended kiosk remains authenticated for many hours after all legitimate users leave, allowing a later visitor to access the original session. How should the team identify the underlying behavior?

  1. Session fixation
  2. Session identifier in URL
  3. Idle session timeout
  4. Unrevoked logout token

Explanation

Correct Answer

C:

Idle timeout invalidates a session after inactivity; it addresses unattended access and exposure from abandoned authenticated browsers. For a production safeguard, operators can expire inactive sessions server-side and reauthenticate after the threshold; server-enforced expiry prevents a copied or unattended token from remaining valid merely because client JavaScript failed to close the page.

Incorrect Answers

A:

Session fixation works when a preauthentication identifier is accepted as an authenticated session, allowing the person who already knows that identifier to reuse it; the scenario identifies idle session timeout, which has a different triggering condition.

B:

URL-carried session identifiers leak through logs, referrers, history, and copied links more readily than properly protected cookies; the defining symptom in the prompt is associated with idle session timeout instead.

D:

A logout operation that only clears client storage may leave a server-side session valid, permitting reuse of an earlier stolen bearer token; the reported conditions are characteristic of idle session timeout, not that path.

Question 407

The owner asks for a durable safeguard against the issue demonstrated here: A client hides the payroll-export action from standard employees, but a non-admin user can still send its request directly because the backend does not check roles. What is the best response?

  1. Validate content and store uploads outside executable web paths
  2. Avoid shell invocation and pass validated arguments to direct process APIs
  3. Enforce server-side role checks on every privileged API operation
  4. Enforce outbound destination allowlists and block internal metadata ranges

Explanation

Correct Answer

C:

Hiding a menu button changes only presentation; an endpoint must reject callers who lack authority regardless of how it was invoked. The underlying condition is that function-level authorization failure lets a user reach privileged operations by calling endpoints without the required role or policy checks.

Incorrect Answers

A:

Re-encoding images, controlled file types, and nonexecutable storage prevent uploaded content from becoming server-executed code; that change targets unsafe file upload, while the confirmed weakness involves broken function-level authorization.

B:

Separating executable selection from user data prevents shell parsing from transforming input into additional commands; it would improve operating-system command injection, not directly correct the reported broken function-level authorization issue.

D:

URL and IP validation plus restricted egress prevent the server from acting as a proxy to sensitive services outside the feature's intended scope; the required correction concerns broken function-level authorization, so this is not the targeted control.

Question 408

A production hardening ticket was raised after this confirmed observation: An office switch learns thousands of fabricated source hardware addresses on a user port and runs out of forwarding-table entries for ordinary endpoints. Which action best targets the risk?

  1. Restrict and audit mirror-port configuration and sensor access
  2. Apply switch port security and MAC learning limits
  3. Avoid using user VLANs as trunk native VLANs and harden switch trunks
  4. Protect trusted uplink configuration and refresh binding tables correctly
  5. Control capture permissions and secure sensitive traffic with encryption

Explanation

Correct Answer

B:

Per-port learned-address limits reduce the ability of one physical connection to poison the forwarding table with fictitious sources. This matters for the observed attack path because CAM table flooding attempts to exhaust switch learning resources; some switches may flood unknown unicast frames more broadly when entries are unavailable.

Incorrect Answers

A:

Capture destinations can contain sensitive traffic; management authorization and storage controls protect copied packets from unauthorized readers; the exposure here is MAC address table flooding, which calls for another protective mechanism.

C:

Consistent tagging and explicit trunk configuration remove the cross-VLAN path rather than merely hiding VLAN identifiers; this is relevant to a separate VLAN double-tagging attempt scenario, rather than the identified exposure; the tested fault instead involves MAC address table flooding.

D:

Accurate bindings and port trust settings are prerequisites for effective spoofing protection and help avoid false drops during legitimate host moves; the tested weakness is MAC address table flooding, not the DHCP snooping bindings configuration addressed here.

E:

Limiting capture access and encrypting payloads reduce exposure; promiscuous mode by itself does not defeat switch isolation; that safeguard does not directly close the MAC address table flooding route highlighted by the test.

Question 409

The assessor confirmed this exposure: Analysts capture a fabricated reply to a pending domain lookup arriving milliseconds before the true resolver response, causing browsers to choose a malicious destination. Which change most directly closes the underlying security gap?

  1. Enable DHCP snooping and rate limits on untrusted access ports
  2. Validate DNS replies and use trusted resolvers with secure transport where appropriate
  3. Disable legacy broadcast name resolution where business applications permit
  4. Trust only approved DHCP uplinks through switch DHCP snooping

Explanation

Correct Answer

B:

DNSSEC and protected resolver channels reduce answer substitution, though transport encryption alone does not guarantee authoritative record correctness. It targets the actual failure mode: DNS response spoofing impersonates a reply to an outstanding lookup; success depends on response matching and resolver defenses against forgeries.

Incorrect Answers

A:

Per-port request limits and trusted DHCP server ports reduce lease exhaustion and constrain DHCP-origin abuse at the access layer; the proposed improvement would make sense for DHCP starvation but not as the main fix here; the tested fault instead involves DNS response spoofing.

C:

Reducing NBNS dependence prevents unauthenticated local responses from steering clients toward an impersonated file or authentication service; that change targets NetBIOS name-service spoofing, while the confirmed weakness involves DNS response spoofing.

D:

Filtering server replies on user-facing ports prevents unauthorized devices from assigning gateway and resolver settings to clients; it would improve rogue DHCP server, not directly correct the reported DNS response spoofing issue.

Question 410

The assessment evidence reads as follows: Multiple clients lose connectivity as a nearby emitter raises noise across the channel, even though authentication and encryption remain correctly configured. Which technical concept explains the result?

  1. Bluetooth pairing downgrade
  2. Evil-twin access point
  3. Wireless jamming
  4. Hidden SSID misconception

Explanation

Correct Answer

C:

RF jamming disrupts availability at the physical layer; stronger cryptographic keys do not eliminate interference in the shared radio spectrum. For a production safeguard, operators can use spectrum monitoring and resilient channel or coverage planning; RF monitoring identifies interference patterns and alternative coverage or channels restore service without misdiagnosing the outage as a password issue.

Incorrect Answers

A:

Bluetooth pairing methods have different authentication guarantees; Just Works pairing can lack MITM resistance in situations requiring verified peer identity; those prerequisites differ from the wireless jamming behavior in the record.

B:

An evil twin imitates a legitimate wireless network's identity to intercept associations or lead clients into fraudulent authentication and traffic paths; this would classify another type of evidence, whereas the actual finding shows wireless jamming.

D:

A hidden SSID is not cryptographic protection; association traffic and other wireless management exchanges can still reveal network identifiers; those effects are not the wireless jamming pattern evidenced by the assessment.

Certified Ethical Hacker v13 (312-50v13) Practice Tests