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

Question 330

A cloud function triggers on queue messages but also has broad administrator privileges unrelated to its task. What design flaw should be corrected?

  1. Cloud audit trail
  2. Secret management service
  3. Serverless function permissions
  4. Infrastructure as code drift

Explanation

Correct Answer

C:

Serverless execution roles should be restricted to the needed event and data resources. Automatic scaling does not justify excessive administrative authority.

Incorrect Answers

A:

Cloud activity logs record API-level administrative events with principal and timing information; the result would concern attribution of cloud configuration changes, leaving unnecessary privileges held by a function identity unresolved.

B:

Managed secret storage controls access to sensitive values and supports rotation and auditing; it helps explain secure retrieval of application secrets at runtime, but not unnecessary privileges held by a function identity.

D:

Configuration drift occurs when deployed resources diverge from declared infrastructure definitions; evidence about differences between declared and deployed cloud settings would not answer the concern about unnecessary privileges held by a function identity.

Question 331

A detection engine alerts on unusual credential access and process injection even though a file has no known signature. Which detection method is illustrated?

  1. Behavior-based detection
  2. Static malware analysis
  3. Polymorphic malware
  4. Dynamic sandbox analysis

Explanation

Correct Answer

A:

Behavioral defenses look for suspicious sequences and capabilities instead of requiring a prior exact file match. Context reduces false alarms from legitimate tools.

Incorrect Answers

B:

Static analysis examines binaries and associated artifacts without running their code; the question hinges on suspicious runtime actions independent of known hash, not on inspection of malware artifacts without execution.

C:

Polymorphism alters code representation or encryption wrappers across instances; it serves changing code appearance while retaining behavior and cannot by itself resolve suspicious runtime actions independent of known hash.

D:

Dynamic analysis observes behavior during controlled execution; that mechanism concerns observed behavior of a sample during execution instead of suspicious runtime actions independent of known hash.

Question 332

A permitted scan shows TCP port 443 accepting connections but produces no application banner. Which conclusion can be made without assuming the service identity?

  1. Port 443 is conventionally associated with HTTPS, but the actual application protocol remains unverified
  2. The port must be serving authenticated HTTPS because the number is 443
  3. The server’s operating-system edition is confirmed by the port number
  4. Every TLS certificate on the device has been validated by the scan
  5. Application-level encryption is absent because the service did not send a banner

Explanation

Correct Answer

A:

TCP 443 is the registered conventional HTTPS endpoint, yet a listening socket could run a different service. Confirm the actual protocol through authorized application-aware observation.

Incorrect Answers

B:

Port assignments are conventions rather than proof of authentication or even of TLS use. A TCP handshake alone cannot validate that HTTPS is present or correctly configured.

C:

Many operating systems listen on port 443, and service placement is configurable. Inferring an exact operating system from the port alone would be unsupported.

D:

A port scan without a TLS handshake has not checked certificate chains, hostnames, expiry, or trust. Listening on 443 does not establish certificate validity.

E:

A lack of passive banner disclosure is not proof that traffic is unencrypted. Some TLS endpoints reveal meaningful details only after a properly initiated handshake.

Question 333

A sensor broadcasts a stable device identifier in public advertisements, allowing bystanders to track it. Which design concern is present?

  1. BLE advertisement privacy
  2. Wireless site survey
  3. Guest Wi-Fi isolation
  4. Wireless intrusion monitoring

Explanation

Correct Answer

A:

Persistent BLE identifiers can enable passive device tracking. Address randomization and minimizing advertisement data help protect privacy.

Incorrect Answers

B:

A wireless site survey records signal levels; its technical boundary is measured Wi-Fi coverage and channel conditions rather than location tracking through repeated wireless identifiers.

C:

Guest networks should be segmented with explicit filtering from private workloads; this addresses separation of guest clients from internal services, a different concern from location tracking through repeated wireless identifiers.

D:

Wireless intrusion detection monitors radio activity for policy violations and attack indicators; the actual requirement is location tracking through repeated wireless identifiers, not detection of suspicious local Wi-Fi activity.

Question 334

A responder has a large saved packet capture and wants to display only DNS traffic during offline analysis. Which feature should the analyst use?

  1. A packet-analysis display filter for DNS
  2. An outbound DNS firewall deny rule
  3. Replacing all DNS records on the resolver
  4. A wireless access-point channel scan

Explanation

Correct Answer

A:

A display filter such as the analyzer’s DNS protocol filter narrows visible packets in an existing capture without changing the underlying evidence.

Incorrect Answers

B:

A firewall rule can block future DNS traffic but does not select packets already recorded in an offline capture file. That would alter network policy unnecessarily.

C:

Changing resolver records changes name-resolution data, not the subset of captured packets displayed for investigation. It may also disrupt production workloads.

D:

Radio-channel analysis concerns wireless signal quality and interference. It does not isolate DNS protocol frames inside a stored packet trace.

Question 335

A team wants to locate an accidentally published configuration snippet in projects associated with its brand. Which source is most relevant?

  1. Public code repository search
  2. HTML source comments
  3. Sitemap XML
  4. HTTP response headers

Explanation

Correct Answer

A:

Public source repositories and their search indexes may expose code and historical commits. Discovered secrets should be reported and revoked, not used.

Incorrect Answers

B:

HTML comments remain in delivered source unless removed during build or deployment; this addresses developer notes embedded in served markup, a different concern from code and configuration published in open repositories.

C:

An XML sitemap helps discovery of URLs for indexing and can include metadata; this does not verify code and configuration published in open repositories, because its scope is a machine-readable inventory of site URLs.

D:

HTTP response headers contain metadata such as Cache-Control, Server, and security policies; it may reveal metadata delivered with an HTTP response, but the scenario is about code and configuration published in open repositories.

Question 336

A developer assumes setting a cookie Path makes it secure against a malicious script on another path of the same origin. What misconception exists?

  1. Cookie path scope
  2. Concurrent session management
  3. Token rotation after privilege change
  4. Network session sequence prediction

Explanation

Correct Answer

A:

Cookie Path limits transmission on matching URL paths but is not a robust isolation boundary against same-origin scripting. Sensitive separation needs stronger origin controls.

Incorrect Answers

B:

Server-side session inventory and selective revocation allow administrators or users; this is tied to revoking one suspicious active login rather than confirming the limited security boundary provided by cookie paths.

C:

This choice describes session privilege changes without token renewal; the observed condition calls for the limited security boundary provided by cookie paths.

D:

This addresses difficulty of predicting off-path TCP sequence state, a different concern from the limited security boundary provided by cookie paths.

Question 337

An Android app exposes an activity or service to other applications without validating callers. Which surface needs auditing?

  1. Mobile VPN
  2. Remote selective wipe
  3. Mobile phishing overlay
  4. Certificate pinning trade-off
  5. Android exported component
  6. Unsafe mobile logging

Explanation

Correct Answer

E:

Exported components can be invoked by other apps when platform rules permit it. Explicit permissions and caller validation protect sensitive operations.

Incorrect Answers

A:

This choice is useful for protected connectivity from mobile clients to enterprise systems but leaves cross-application access to exposed Android components unproven.

B:

Selective wipe removes managed business data from supported apps; that observation explains corporate data removal without erasing personal files without demonstrating cross-application access to exposed Android components.

C:

Overlay attacks use deceptive interface layers to capture input or induce unsafe actions; it helps explain fraudulent UI displayed over a legitimate mobile app, but not cross-application access to exposed Android components.

D:

Certificate or key pinning narrows accepted server identities beyond normal PKI validation; this can contribute to rigid server trust anchors in a mobile application but does not prove cross-application access to exposed Android components.

F:

Sensitive credentials in logs may be exposed to debugging tools; selecting it would address authentication secrets retained in application logs instead of cross-application access to exposed Android components.

Question 338

A JSON endpoint accepts unexpected fields and incorrect data types, causing unhandled processing paths. What defensive practice is missing?

  1. API schema validation
  2. Webhook signature validation
  3. CORS origin policy
  4. GraphQL query complexity limit

Explanation

Correct Answer

A:

Server-side schema validation constrains inputs to expected types, ranges, and fields before business logic runs. Client-side checks can be bypassed.

Incorrect Answers

B:

Verifying a webhook's signed payload with a trusted secret or public key offers origin and integrity evidence; the result would concern authenticity and integrity of inbound webhook messages, leaving validation of incoming structured API payloads unresolved.

C:

This choice helps explain which origins may access responses through browsers, but not validation of incoming structured API payloads.

D:

Query depth and complexity budgets bound the work created by a GraphQL operation; that can clarify the computational expense of a deeply nested API query but cannot establish validation of incoming structured API payloads.

Question 339

A narrow deny rule never matches because an earlier broad allow rule already handles the packets. What configuration issue exists?

  1. NAC posture assessment
  2. Firewall rule shadowing
  3. Alert triage enrichment
  4. Egress filtering
  5. Firewall default deny

Explanation

Correct Answer

B:

Rule shadowing occurs when an earlier policy makes a later rule ineffective under first-match evaluation. Order and evaluation semantics must be reviewed.

Incorrect Answers

A:

Network access control may use identity and posture signals; even if useful for conditional network admission based on endpoint health, it does not establish a security rule rendered ineffective by earlier matching policy.

C:

This choice is aimed at context-aware prioritization of intrusion alerts and would not resolve a security rule rendered ineffective by earlier matching policy.

D:

Egress controls limit what internal workloads can reach externally; the mechanism relates to restriction of outbound rather than inbound connections rather than a security rule rendered ineffective by earlier matching policy.

E:

Default deny rejects traffic without an explicit allow rule; the underlying behavior concerns blocking traffic unless a permission exists, distinct from a security rule rendered ineffective by earlier matching policy.

Question 340

A service returns intermittent 500 errors, and maintainers need server-side exception and module messages. Which log type is relevant?

  1. Host-header validation
  2. Web error logging
  3. Patch rollback planning
  4. Web access logging

Explanation

Correct Answer

B:

Error logs record application-server failures and diagnostic conditions. They complement access logs, which emphasize request metadata and response status.

Incorrect Answers

A:

Applications should use a trusted configured origin or allowlisted hostnames; it affects untrusted hostnames influencing generated links, while the identified issue is diagnostic details explaining server failures.

C:

Testing changes and preparing a verified rollback or recovery plan support safe patching; this pertains to recoverability during security updates, not to diagnostic details explaining server failures.

D:

Access logs record HTTP request and response metadata according to configuration; historical requests processed by a web server is its purpose, whereas the case requires diagnostic details explaining server failures.

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