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

Question 390

Operations asks for a practical correction after the test found: A compromised web worker can overwrite script files under the document root because the runtime account has deployment write privileges as well as temporary-file access. What should the security team recommend?

  1. Restrict management access through private networks and strong authentication
  2. Separate writable data from code and run the worker with minimal rights
  3. Normalize request framing and reject ambiguous HTTP messages at every hop
  4. Remove sample applications and harden the deployed server baseline

Explanation

Correct Answer

B:

Read-only deployment paths and distinct service permissions reduce the impact of a web process compromise. The safeguard responds to the underlying issue: overly broad filesystem write permissions let a compromised process alter deployed code or content beyond its legitimate runtime data needs.

Incorrect Answers

A:

Network isolation narrows who can attempt administrative operations, while MFA and role controls protect approved administrators; the specific root cause belongs to web-root permission weakness, beyond this control's intended scope.

C:

Consistent parsing prevents one component from treating attacker-controlled bytes as the beginning of a separate victim request; it would improve HTTP request smuggling, not directly correct the reported web-root permission weakness issue.

D:

Eliminating unneeded components reduces exposed code paths instead of relying on the absence of links to hidden demo content; the measure addresses a different trust boundary from the web-root permission weakness finding.

Question 391

In a permitted test environment, the analyst records: Two endpoints derive a shared secret with compact ephemeral elliptic-curve keys rather than transmitting the secret directly. What is the most precise classification?

  1. HMAC integrity check
  2. S-MIME encrypted email
  3. Elliptic-curve key exchange
  4. Quantum risk to public-key cryptography

Explanation

Correct Answer

C:

Elliptic-curve Diffie–Hellman establishes shared key material from key pairs; an authenticated handshake is needed to resist active impersonation. For a production safeguard, operators can authenticate ephemeral key exchange with validated peer certificates; certificate verification prevents man-in-the-middle key substitution while ephemeral elliptic-curve exchange supports fresh traffic keys.

Incorrect Answers

A:

HMAC combines a cryptographic hash with a shared secret to authenticate message integrity; it does not encrypt message contents; the observed evidence concerns elliptic-curve key exchange instead.

B:

S-MIME can encrypt message content to recipients' public keys and provide digital signatures; intermediate mail transport need not see message plaintext; the test record points specifically to elliptic-curve key exchange, not this separate mechanism.

D:

Sufficiently capable quantum computers threaten widely deployed factoring and discrete-logarithm public-key schemes; symmetric cryptography faces a different security trade-off; the scenario identifies elliptic-curve key exchange, which has a different triggering condition.

Question 392

An authorized engagement found two independent issues. Finding one: An API remains network-reachable but spends all worker capacity processing high volumes of otherwise syntactically valid endpoint calls. Finding two: DDoS telemetry identifies thousands of small coordinated requests from hijacked broadband routers in many autonomous systems, rendering a single-source rate threshold ineffective. Which TWO mechanisms explain the respective findings? Choose TWO.

  1. Botnet distributed attack
  2. Cache-busting request flood
  3. Reflection without amplification
  4. HTTP application flood
  5. ICMP flood

Explanation

Correct Answers

A:

A botnet coordinates many controlled endpoints, distributing sources so simple single-IP throttles may fail to stop aggregate overload; it is separately evidenced in the task, rather than being interchangeable with HTTP application flood.

D:

Application-layer floods exhaust request handlers, backends, or expensive application operations rather than relying exclusively on raw packet volume; this technical behavior accounts for the HTTP application flood observation, while botnet distributed attack concerns the other independent evidence.

Incorrect Answers

B:

Cache busting forces otherwise cacheable requests into unique cache keys, moving traffic and computation from edge cache to vulnerable backend systems; that behavior is distinct from the HTTP application flood, botnet distributed attack finding being classified.

C:

Reflection redirects response traffic to a spoofed victim by exploiting unauthenticated protocols; amplification additionally requires a favorable response-size ratio; the scenario identifies HTTP application flood, botnet distributed attack, which has a different triggering condition.

E:

An ICMP flood targets network processing or bandwidth using large volumes of diagnostic packets rather than exhausting an HTTP application; the events given do not establish this behavior but do support HTTP application flood, botnet distributed attack.

Question 393

Consider this event from a scoped security assessment: An infected endpoint can contact arbitrary internet addresses using uncommon outbound ports even though inbound connections are tightly restricted. Which explanation fits the observed evidence?

  1. Egress filtering
  2. Anomaly-based detection
  3. TTL-based sensor desynchronization
  4. Stateful firewall inspection

Explanation

Correct Answer

A:

Egress filtering controls connections leaving a network, limiting unauthorized remote channels that inbound-only rules do not constrain. To constrain the corresponding risk, defenders should allow outbound destinations and ports based on documented application needs; least-privilege egress policy blocks unnecessary command-and-control routes while preserving approved business traffic.

Incorrect Answers

B:

Anomaly detection compares events with baseline or statistical expectations; legitimate workload shifts can also trigger alerts and need tuning; the scenario identifies egress filtering, which has a different triggering condition.

C:

TTL manipulation can create packets observed by one device but not by the endpoint, confusing state tracking when paths and hop counts differ; the defining symptom in the prompt is associated with egress filtering instead.

D:

Stateful inspection tracks connection context, unlike a stateless rule that examines each packet primarily by addresses, ports, and flags; the events given do not establish this behavior but do support egress filtering.

Question 394

A controlled investigation yields this observation: An employee installs an Android package from an unapproved download site instead of the managed application catalog. How should the team identify the underlying behavior?

  1. Android work profile isolation
  2. Rooted Android exposure
  3. MDM selective wipe
  4. Sideloaded APK risk

Explanation

Correct Answer

D:

Sideloading bypasses normal organizational app provenance workflows and can install modified packages if installation controls permit it. On affected systems, it is useful to enforce managed app sources and mobile threat defense; trusted distribution, signature checks, and endpoint policy reduce installation of repackaged applications from uncontrolled sites.

Incorrect Answers

A:

An Android work profile partitions managed applications and data from the personal profile, supporting differentiated security policy on BYOD devices; the scenario identifies sideloaded APK risk, which has a different triggering condition.

B:

Rooting grants exceptional control over the device and can weaken integrity controls or app isolation relied on by organizational security policies; the defining symptom in the prompt is associated with sideloaded APK risk instead.

C:

Mobile device management can distinguish corporate-managed data from personal content when supported enrollment and separation features are used; the events given do not establish this behavior but do support sideloaded APK risk.

Question 395

The assessor confirmed this exposure: A penetration-test report draft attaches an unmasked export of patient appointments, although a few synthetic records and proof of read access would adequately support the finding. Which change most directly closes the underlying security gap?

  1. Pause affected activity and use the escalation contact in the rules of engagement
  2. Limit backup read permissions and enforce authenticated access
  3. Use redacted samples and retain only minimal proof of access
  4. Prioritize findings using asset criticality and exploitability context

Explanation

Correct Answer

C:

Masked evidence establishes unauthorized readability while reducing disclosure risk, retention burden, and unnecessary handling of regulated personal information. It targets the actual failure mode: minimization limits collection to evidence needed to establish impact; copying sensitive records increases exposure and custody obligations without strengthening the vulnerability demonstration.

Incorrect Answers

A:

Following the predefined incident path protects production operations and preserves evidence instead of treating a test schedule as permission to continue damage; that change targets incident stop condition, while the confirmed weakness involves data minimization in testing.

B:

Access control and private storage prevent unauthorized retrieval; encryption is beneficial but cannot replace correct authorization for disclosed keys or URLs; it would improve confidentiality, not directly correct the reported data minimization in testing issue.

D:

Business impact and reachable attack paths change expected loss, so remediation scheduling should not be based solely on the generic vulnerability score; the required correction concerns data minimization in testing, so this is not the targeted control.

Question 396

The tester submits the following verified finding: A victim sees synchronized HTTP requests from thousands of geographically diverse compromised consumer devices, each sending modest traffic. Which technique or condition is involved?

  1. Botnet distributed attack
  2. Slow HTTP POST
  3. DNS amplification
  4. Reflection without amplification

Explanation

Correct Answer

A:

A botnet coordinates many controlled endpoints, distributing sources so simple single-IP throttles may fail to stop aggregate overload. On affected systems, it is useful to correlate aggregate behavior and use challenge or reputation signals across clients; global anomaly detection and graduated defenses can identify coordinated demand patterns while minimizing disruption to legitimate high-volume users.

Incorrect Answers

B:

Slow POST attacks exhaust server resources during body receipt, distinct from attacks that hold connections open through incomplete headers; the reported conditions are characteristic of botnet distributed attack, not that path.

C:

DNS amplification combines forged-source requests with responders that produce much larger replies; open resolvers can be abused as reflectors; those prerequisites differ from the botnet distributed attack behavior in the record.

D:

Reflection redirects response traffic to a spoofed victim by exploiting unauthenticated protocols; amplification additionally requires a favorable response-size ratio; this would classify another type of evidence, whereas the actual finding shows botnet distributed attack.

Question 397

A security engineer examines the following result: A sample's code appears compressed or encrypted until runtime unpacking, which defeats simple static string inspection. Which described weakness or technique does it demonstrate?

  1. Packed executable analysis
  2. Fileless memory execution
  3. Sandbox detonation
  4. File-infecting virus

Explanation

Correct Answer

A:

Executable packers transform or encapsulate code and reveal it during execution; packing can serve legitimate distribution or malware evasion. A targeted mitigation is to combine static indicators with isolated dynamic observation; a controlled sandbox can expose unpacked behavior and runtime imports while avoiding conclusions based only on unusual file entropy.

Incorrect Answers

B:

Fileless malware favors memory and legitimate interpreters or system tools rather than installing a traditional standalone binary on disk; those prerequisites differ from the packed executable analysis behavior in the record.

C:

Dynamic malware analysis studies execution effects under controlled conditions; evasion and missing environmental triggers can produce incomplete results; this would classify another type of evidence, whereas the actual finding shows packed executable analysis.

D:

A virus attaches itself to another file or executable and commonly depends on host execution to spread, unlike a self-propagating worm; the relevant mechanism in the observed workflow is packed executable analysis instead.

Question 398

A control review considers a verified technical issue: A managed relational database should only accept traffic from its application tier but has a public all-address inbound rule attached to its network security controls. Which mitigation most directly addresses its cause?

  1. Drop unnecessary capabilities and avoid privileged containers or host mounts
  2. Block public access and apply explicit identity-based bucket policies
  3. Enable encryption at rest for secrets and protect etcd access
  4. Allow inbound database connections only from approved application security groups or subnets

Explanation

Correct Answer

D:

Source-scoped rules narrow the reachable attack surface, with database authentication remaining necessary for authorized connections. This matters for the observed attack path because security groups regulate network reachability around workloads; an unrestricted source range exposes a service to unrelated internet hosts.

Incorrect Answers

A:

Hardened runtime profiles and minimal mount exposure contain a compromised process within a narrower host attack surface; the required correction concerns overly permissive security group, so this is not the targeted control.

B:

Least-privilege resource policies and public-access guardrails stop anonymous reads while preserving approved application retrieval; its security benefit applies principally to public object storage exposure, not the defect described; the tested fault instead involves overly permissive security group.

C:

Cryptographic storage protection and strict API authorization reduce exposure from copied datastore contents or overly broad cluster access; the exposure here is overly permissive security group, which calls for another protective mechanism.

Question 399

The post-assessment action plan cites this evidence: A shared IP responds to unexpected Host values by routing traffic into a privileged virtual server whose name should be reachable only from a trusted management segment. Which corrective measure should be prioritized?

  1. Accept forwarding headers only from trusted proxy addresses
  2. Normalize request framing and reject ambiguous HTTP messages at every hop
  3. Set a safe default virtual host and validate expected hostnames
  4. Canonicalize paths and enforce a fixed document root before file access

Explanation

Correct Answer

C:

Explicit host routing prevents arbitrary names from reaching sensitive virtual hosts or generating unsafe absolute links. That correction is linked to the fact that name-based virtual hosting routes requests using HTTP host identity, which may differ from the socket's IP address or default site.

Incorrect Answers

A:

Header sanitization and source validation prevent direct clients from impersonating internal addresses or bypassing IP-based controls; the tested weakness is name-based virtual hosting, not the reverse proxy trust boundary configuration addressed here.

B:

Consistent parsing prevents one component from treating attacker-controlled bytes as the beginning of a separate victim request; that safeguard does not directly close the name-based virtual hosting route highlighted by the test.

D:

Resolving canonical paths and checking containment prevents encoding tricks from reaching files outside the approved static content tree; the specific root cause belongs to name-based virtual hosting, beyond this control's intended scope.

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.

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