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

Question 20

A security engineer examines the following result: A defender wants to categorize observed credential dumping and lateral movement by adversary behavior rather than by one malware family. Which described weakness or technique does it demonstrate?

  1. MITRE ATT&CK technique mapping
  2. Defense in depth
  3. Least privilege
  4. Availability

Explanation

Correct Answer

A:

MITRE ATT&CK organizes observed tactics and techniques across attack stages. Mapping behavior supports detection coverage and investigation without requiring attribution to a particular actor. For a production safeguard, operators can map detections and gaps to techniques with supporting telemetry; technique-level coverage helps identify missing logs and analytics while avoiding false certainty about adversary identity from a single behavior.

Incorrect Answers

B:

Defense in depth combines independent preventive, detective, and limiting controls, so one failure does not immediately compromise every protected resource; that behavior is distinct from the MITRE ATT&CK technique mapping finding being classified.

C:

Least privilege assigns only the specific permissions and duration needed for a task; excess authority expands the impact of error or credential compromise; the scenario identifies MITRE ATT&CK technique mapping, which has a different triggering condition.

D:

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 defining symptom in the prompt is associated with MITRE ATT&CK technique mapping instead.

Question 21

The post-assessment action plan cites this evidence: A codebase uses an ORM for ordinary record queries but interpolates a raw order-by string for one reporting endpoint rather than restricting it to approved identifiers. Which corrective measure should be prioritized?

  1. Bind query value parameters but accept arbitrary unvalidated sort column names
  2. Suppress SQL errors generated by invalid sort fields
  3. Use bound ORM query APIs and allowlisted sort-field identifiers
  4. Trust ORM usage elsewhere while retaining the raw interpolated ORDER BY expression

Explanation

Correct Answer

C:

Values can be bound as parameters, while SQL identifiers usually require explicit selection from trusted permitted column names. The specific weakness being corrected is that ORM frameworks reduce injection risk only when their parameterization guarantees are used; raw SQL interpolation can restore the vulnerable concatenation path.

Incorrect Answers

A:

Prepared value placeholders do not make arbitrary SQL identifiers safe; the sort field still needs an allowlist; the ORM raw-query misuse weakness in the question therefore remains uncorrected.

B:

Errors may become less informative, but an attacker can still influence the raw query's syntax or selected expressions; the ORM raw-query misuse weakness in the question therefore remains uncorrected.

D:

The safe behavior of other ORM methods cannot protect one call site that constructs SQL syntax from user input; the ORM raw-query misuse weakness in the question therefore remains uncorrected.

Question 22

A remediation meeting focuses on the following finding: An application returns distinct failure responses for different CBC decryption errors, allowing a remote party to infer padding validity from the way the service responds. Which proposed action best addresses its root cause?

  1. Use authenticated encryption and uniform decryption error behavior
  2. Use HMAC with secret-key rotation and canonical message formatting
  3. Guarantee unique nonces per encryption key and rotate affected keys
  4. Protect signing private keys and verify signatures before installation

Explanation

Correct Answer

A:

AEAD validation detects tampering before plaintext processing, and consistent failures avoid leaking padding validity to a remote caller. The underlying condition is that a padding oracle leaks decryption-related validity information; adaptive observations can undermine confidentiality when unauthenticated CBC handling exposes these distinctions.

Incorrect Answers

B:

Only holders of the shared secret can produce a valid tag, while consistent serialization prevents verification discrepancies; the tested weakness is CBC padding oracle, not the HMAC integrity check configuration addressed here.

C:

Nonce-generation discipline protects the authentication construction, while key rotation limits exposure after uniqueness guarantees have failed; that safeguard does not directly close the CBC padding oracle route highlighted by the test.

D:

Private-key custody preserves publisher identity and signature validation prevents unapproved package modification from appearing legitimate; the proposed improvement would make sense for digital signature verification but not as the main fix here; the tested fault instead involves CBC padding oracle.

Question 23

The approved engagement produces this evidence: A manager receives an urgent voice message that sounds like a familiar director but conflicts with established financial approval steps. What is the correct technical interpretation?

  1. Help-desk reset impersonation
  2. Whaling
  3. Business email compromise
  4. Synthetic-voice impersonation

Explanation

Correct Answer

D:

AI-generated voice impersonation can mimic recognizable speech, so an apparent familiar voice is not sufficient identity proof. This is why teams should authenticate high-risk requests using agreed challenge and callback procedures; process-based verification resists convincing synthesized audio without relying on human ability to recognize every manipulated recording.

Incorrect Answers

A:

Help-desk social engineering exploits recovery and support workflows, where urgency or sympathy can trigger high-impact identity changes; the defining symptom in the prompt is associated with synthetic-voice impersonation instead.

B:

Whaling focuses social engineering on senior or high-value leaders whose authority and access make a successful deception especially consequential; the events given do not establish this behavior but do support synthetic-voice impersonation.

C:

Business email compromise manipulates financial or business workflows through impersonation or compromised correspondence rather than necessarily delivering malware; the reported conditions are characteristic of synthetic-voice impersonation, not that path.

Question 24

A production hardening ticket was raised after this confirmed observation: A content-delivery proxy and the origin interpret conflicting message-length headers differently, so leftover bytes can become an unintended extra request on a reused connection. Which action best targets the risk?

  1. Mark sensitive responses private or no-store and review cache keys
  2. Disable obsolete TLS protocols and weak ciphers after compatibility testing
  3. Set a safe default virtual host and validate expected hostnames
  4. Normalize request framing and reject ambiguous HTTP messages at every hop

Explanation

Correct Answer

D:

Consistent parsing prevents one component from treating attacker-controlled bytes as the beginning of a separate victim request. It directly addresses this mechanism: request smuggling arises from inconsistent HTTP message framing between intermediaries, notably conflicting length or transfer-encoding interpretation.

Incorrect Answers

A:

Correct cache behavior prevents personal content from being reused for unrelated clients even when the backend authorization check was sound; the exposure here is HTTP request smuggling, which calls for another protective mechanism.

B:

Modern negotiation reduces transport cryptographic exposure while inventorying client requirements prevents avoidable service outages; the action is aimed at legacy TLS configuration; it leaves the central HTTP request smuggling condition unresolved.

C:

Explicit host routing prevents arbitrary names from reaching sensitive virtual hosts or generating unsafe absolute links; this is relevant to a separate name-based virtual hosting scenario, rather than the identified exposure; the tested fault instead involves HTTP request smuggling.

Question 25

The assessor confirmed this exposure: A workload's Kubernetes service account can edit ClusterRoleBindings, enabling privileges far beyond its legitimate need to read configuration within one namespace. Which change most directly closes the underlying security gap?

  1. Enable organization-wide control-plane logging with protected retention
  2. Restrict service-account verbs and binding rights at namespace scope
  3. Bind tenant identity to server-side authorization on each query
  4. Restrict metadata access and harden metadata token requirements

Explanation

Correct Answer

B:

Precise API permissions prevent application identities from creating or attaching privileges beyond their workload needs. The safeguard responds to the underlying issue: Kubernetes RBAC controls API operations on resource types and scopes; excessive role-binding authority can indirectly yield broad cluster privileges.

Incorrect Answers

A:

Independent log storage and consistent account coverage preserve an audit trail even after a compromised account attempts to alter local settings; the proposed improvement would make sense for cloud audit logging gap but not as the main fix here; the tested fault instead involves Kubernetes RBAC escalation.

C:

Tenant-scoped access controls prevent cross-customer record access even when resource IDs are known or guessed; that change targets multitenant isolation, while the confirmed weakness involves Kubernetes RBAC escalation.

D:

Workload network controls and hardened metadata APIs reduce credential retrieval from unintended server-side request paths; it would improve cloud metadata SSRF, not directly correct the reported Kubernetes RBAC escalation issue.

Question 26

Consider this event from a scoped security assessment: A home-office gateway accepts UPnP requests that create unexpected port mappings to internal management interfaces. Which explanation fits the observed evidence?

  1. Exposed UPnP forwarding
  2. Exposed industrial historian
  3. Exposed hardware debug port
  4. Modbus TCP trust weakness

Explanation

Correct Answer

A:

UPnP IGD can automate NAT port mappings; overly permissive control or exposure may open unintended paths from external networks. To constrain the corresponding risk, defenders should disable unnecessary UPnP mapping or strictly constrain authorized clients; explicit port-forwarding policy prevents untrusted devices from silently publishing internal services through the edge gateway.

Incorrect Answers

B:

Historians aggregate industrial process data and may reveal operational patterns or expose interfaces bridging enterprise and control environments; this would classify another type of evidence, whereas the actual finding shows exposed UPnP forwarding.

C:

Hardware debug interfaces may expose console access, memory, or privileged firmware operations outside the normal network authentication model; the relevant mechanism in the observed workflow is exposed UPnP forwarding instead.

D:

Traditional Modbus TCP lacks native cryptographic client authentication and encryption, so security often depends on network boundaries and compensating controls; those effects are not the exposed UPnP forwarding pattern evidenced by the assessment.

Question 27

The testing team seeks a specific preventive recommendation for this finding: A single upstream dependency overloads and stops transaction processing during an authorized resilience drill; the business priority is preserving a usable customer-facing service. What should be implemented?

  1. Apply capacity protection and traffic throttling at the service edge
  2. Update the threat model when data flows or trust boundaries change
  3. Use tamper-evident logs and tightly scoped write privileges
  4. Treat retrieved content as untrusted data and constrain tool privileges

Explanation

Correct Answer

A:

Rate controls and upstream resilience address resource exhaustion, unlike confidentiality controls that govern who can read protected content. It targets the actual failure mode: availability means authorized users can reach required services when needed; exhausted capacity can violate this property even without evidence of data theft or corruption.

Incorrect Answers

B:

A design-level review must track new integrations and privileges; otherwise earlier assumptions stop representing the system being protected; that safeguard does not directly close the availability route highlighted by the test.

C:

Integrity controls make unauthorized modification harder and expose alterations through protected audit trails or cryptographic verification of record changes; the proposed improvement would make sense for integrity but not as the main fix here; the tested fault instead involves availability.

D:

Instruction separation, restricted tool permissions, and output validation reduce the chance that untrusted document text can redirect an automated assessment workflow; the specific root cause belongs to availability, beyond this control's intended scope.

Question 28

A security engineer examines the following result: A router's control plane becomes overwhelmed by a torrent of echo requests despite no increase in normal application transactions. Which described weakness or technique does it demonstrate?

  1. HTTP application flood
  2. ICMP flood
  3. UDP packet flood
  4. Memcached reflection

Explanation

Correct Answer

B:

An ICMP flood targets network processing or bandwidth using large volumes of diagnostic packets rather than exhausting an HTTP application. The control that addresses this failure path is to rate-limit unnecessary ICMP echo handling while preserving essential ICMP messages; targeted control-plane policing protects diagnostics capacity without breaking indispensable errors such as path-MTU feedback.

Incorrect Answers

A:

Application-layer floods exhaust request handlers, backends, or expensive application operations rather than relying exclusively on raw packet volume; the relevant mechanism in the observed workflow is ICMP flood instead.

C:

UDP flooding consumes bandwidth and packet-processing capacity without requiring an established connection; the impact can occur before an application responds; the case demonstrates ICMP flood rather than the alternate mechanism.

D:

Unauthenticated UDP memcached exposure has enabled high-amplification reflection when forged-source requests trigger responses far larger than the queries; the observed evidence concerns ICMP flood instead.

Question 29

Operations asks for a practical correction after the test found: An office still relies on an early Wi-Fi encryption design with a small per-packet initialization field, and attackers can collect large volumes of encrypted frames for offline analysis. What should the security team recommend?

  1. Use certificate-based network access instead of MAC lists as primary security
  2. Replace WEP with WPA3 or properly configured WPA2-AES
  3. Use validated enterprise server certificates and rogue-AP detection
  4. Disable unnecessary WPS PIN enrollment and enforce secure onboarding

Explanation

Correct Answer

B:

Modern authenticated encryption avoids the structural weaknesses of WEP; changing the WEP key alone does not repair its design. This matters for the observed attack path because WEP uses a small IV space and weak RC4 key construction, so repeated keystream conditions make its protection fundamentally unsuitable for modern networks.

Incorrect Answers

A:

Cryptographic device identity resists simple address cloning and supports independent credential revocation for each managed endpoint; the action is aimed at MAC address filtering; it leaves the central WEP IV reuse condition unresolved.

C:

Clients that verify the authentication server identity are less likely to trust a lookalike AP offering the same SSID; the tested weakness is WEP IV reuse, not the evil-twin access point configuration addressed here.

D:

Removing the vulnerable setup mechanism closes a parallel authentication path that can undermine an otherwise strong WPA2 password; that safeguard does not directly close the WEP IV reuse route highlighted by the test.

Question 30

The assessment evidence reads as follows: A previously private storage account becomes publicly accessible after an unreviewed infrastructure template change, despite the original security baseline. Which technical concept explains the result?

  1. Cloud secret management
  2. Overbroad cloud IAM role
  3. Cloud posture drift
  4. Cloud audit logging gap
  5. Public object storage exposure

Explanation

Correct Answer

C:

Cloud posture drift occurs when deployed configuration departs from defined policy through manual edits or automated infrastructure changes. To constrain the corresponding risk, defenders should continuously assess configurations against preventive policy guardrails; policy-as-code, change review, and recurring checks detect or block unsafe states after initial deployment.

Incorrect Answers

A:

Application secret material embedded in code spreads across source control, build logs, and deployments, making controlled rotation and access auditing harder; the case demonstrates cloud posture drift rather than the alternate mechanism.

B:

Excess IAM privileges magnify damage from leaked tokens or compromised workloads; role scope should follow the actual API operations required; the observed evidence concerns cloud posture drift instead.

D:

Cloud control-plane audit trails record resource and identity operations; without centralized retention, policy changes can escape meaningful attribution; that behavior is distinct from the cloud posture drift finding being classified.

E:

Public object permissions expose stored data independently of whether the bucket name is difficult to guess; link obscurity does not enforce authorization; the scenario identifies cloud posture drift, which has a different triggering condition.

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