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

Question 660

Consider this security review note: An API reflects arbitrary Origin headers while permitting browsers to include credentials in cross-origin requests. What should the responsible team do first to address the issue?

  1. Require exact approved redirect URIs and validate OAuth state and PKCE as appropriate.
  2. Encode output by context and sanitize permitted rich content before it reaches browser execution contexts.
  3. Allowlist specific trusted origins and avoid wildcard or reflected credentialed origin permissions.
  4. Apply context-appropriate output encoding and avoid inserting untrusted input into executable HTML contexts.

Explanation

Correct Answer

C:

Unsafe CORS policies may let untrusted websites read authenticated cross-origin responses in browsers; this is the specific exposure or dependency that the selected action addresses. After treatment, the assessor should confirm that browser tests deny credentialed reads from unknown origins and permit only approved applications.

Incorrect Answers

A:

Open redirect registration can misdeliver authorization responses or codes outside the intended client origin; the proposed safeguard addresses a case where an authentication broker accepts an attacker-specified redirect destination when issuing authorization responses, rather than the cors origin trust finding described here.

B:

Stored XSS persists attacker-controlled content server-side and executes when it is later rendered unsafely; the proposed safeguard addresses a case where untrusted comment content executes in other users' browsers when a discussion page renders saved posts, rather than the cors origin trust finding described here.

D:

Reflected XSS occurs when request-derived content is immediately returned without suitable output encoding; the proposed safeguard addresses a case where a query value is copied into an HTML response and interpreted by the browser as executable markup, rather than the cors origin trust finding described here.

Question 661

An analyst is explaining passive reconnaissance to a system owner. Which description is technically correct?

  1. Active reconnaissance interacts with target-controlled systems and can leave observable traffic or logs.
  2. Passive collection uses third-party or already-public information and may be less detectable than direct probing.
  3. Autonomous system registration and routing information connect public prefixes with network operators.
  4. SPF is commonly expressed as a DNS TXT policy and describes authorized outbound mail sources.

Explanation

Correct Answer

B:

An analyst maps published organization information without contacting the organization's infrastructure; that situation illustrates the actual operating behavior under review. Its practical safeguard is to use published data and approved external sources while documenting provenance and collection limits, with confirmation when collection logs show no direct queries or connection attempts against the target environment.

Incorrect Answers

A:

A tester directly queries an in-scope service to determine how its public interface responds; those details characterize active reconnaissance and would call for schedule direct service checks within approved scope and rate limits, rather than explaining passive reconnaissance.

C:

A network researcher needs to distinguish an organization's routed address prefixes from a vendor's hosting range; those details characterize ASN ownership mapping and would call for reconcile public routing ownership with the authorized assessment scope before probing addresses, rather than explaining passive reconnaissance.

D:

A defender examines domain-published text identifying systems allowed to send mail for the domain; those details characterize DNS TXT policy records and would call for publish a scoped sender policy and remove unauthorized sending infrastructure from the allowed set, rather than explaining passive reconnaissance.

Question 662

A control review focuses on ransomware encryption event. Which explanation best matches its mechanics?

  1. Beaconing can reveal automated communications from compromised endpoints to a remote controller.
  2. Autorun entries can preserve malicious startup behavior without relying on the original launch process.
  3. Viruses reproduce by infecting host files and normally rely on execution to spread infection.
  4. Ransomware disrupts data availability through unauthorized encryption or extortion-related destruction.

Explanation

Correct Answer

D:

Multiple files become unreadable while a process issues large volumes of unexpected rewrite operations; that situation illustrates the actual operating behavior under review. Its practical safeguard is to isolate affected systems promptly and maintain offline immutable recoverable backups, with confirmation when a clean restore test proves protected backups can recover files without relying on compromised hosts.

Incorrect Answers

A:

A workstation periodically contacts an unusual external host with similar request sizes at regular intervals; those details characterize command-and-control beacon and would call for inspect outbound patterns and restrict unauthorized destinations through controlled egress policies, rather than explaining ransomware encryption event.

B:

An unapproved program restarts after each user login because a startup registration remains present; those details characterize persistence via autoruns and would call for baseline startup locations and alert on unauthorized autostart registrations, rather than explaining ransomware encryption event.

C:

A malicious program inserts its code into other executable files that later run on the same host; those details characterize file-infecting virus and would call for use integrity monitoring and protected software distribution to prevent execution of infected binaries, rather than explaining ransomware encryption event.

Question 663

The blue team wants an accurate model of stored cross-site scripting. Which statement should it retain?

  1. State-changing form endpoints are vulnerable when ambient cookies alone authorize cross-origin requests.
  2. DOM XSS arises when client-side code sends attacker-controlled values into dangerous browser sinks.
  3. Uploads can create script, stored-XSS, or malware exposure when the server trusts names and client media types.
  4. Stored XSS persists attacker-controlled content server-side and executes when it is later rendered unsafely.
  5. Sensitive fields remain exposed when authorization and output filtering occur only in the browser.

Explanation

Correct Answer

D:

Untrusted comment content executes in other users' browsers when a discussion page renders saved posts; that situation illustrates the actual operating behavior under review. Its practical safeguard is to encode output by context and sanitize permitted rich content before it reaches browser execution contexts, with confirmation when saved hostile test strings render as inert text or safe markup for every viewing role.

Incorrect Answers

A:

A browser submits a password-change form while the user is logged in but without evidence of intended action; those details characterize cross-site request forgery in forms and would call for verify anti-CSRF tokens and origin context for browser-based state-changing operations, rather than explaining stored cross-site scripting.

B:

A browser script copies a URL fragment into innerHTML without a round trip through the server; those details characterize dom-based cross-site scripting and would call for use safe text APIs and trusted sanitization instead of unsafe DOM HTML insertion, rather than explaining stored cross-site scripting.

C:

An avatar service accepts an arbitrary extension and serves the uploaded file with an active browser content type; those details characterize unrestricted file upload and would call for validate file signatures and content, store uploads as inert data, and set safe download headers, rather than explaining stored cross-site scripting.

E:

A customer profile endpoint returns staff-only flags and internal identifiers even though the UI hides them; those details characterize excessive API response data and would call for use role-aware server-side response schemas that expose only necessary authorized fields, rather than explaining stored cross-site scripting.

Question 664

A single approved remediation review covers 3 separately named requirements: (1) Cloud audit logging; (2) Cloud network ACL behavior; (3) Serverless least privilege. Which audit outcomes would directly demonstrate protection for those areas? Choose THREE.

  1. A test policy change produces a timestamped log with principal, action, resource, and outcome.
  2. Reachability checks deny untrusted internet origins and allow the designated management path.
  3. Controlled URL fetches cannot reach instance metadata and temporary credentials remain inaccessible.
  4. The responsibility matrix names owners for IAM, encryption settings, patch scope, and data retention.
  5. Flow logs show requests and return packets pass the intended subnet controls.
  6. Role-policy tests show unrelated administrative API operations denied to the function identity.

Explanation

Correct Answers

A:

This verifies the cloud audit logging component alongside cloud audit logging in the combined audit: cloud control-plane audit trails capture identity and API activity when correctly enabled and retained. For the cloud audit logging audit set, the relevant observed case is that a privileged cloud policy change is discovered but the team cannot identify who made the API request.

E:

This verifies the cloud network acl behavior component alongside cloud audit logging in the combined audit: stateless cloud network ACLs require explicit allowance for both request and response directions. For the cloud audit logging audit set, the relevant observed case is that a subnet-level stateless rule permits inbound application packets but blocks required response traffic.

F:

This verifies the serverless least privilege component alongside cloud audit logging in the combined audit: serverless code still runs with an identity whose permissions determine its possible cloud-side actions. For the cloud audit logging audit set, the relevant observed case is that an event-triggered cloud function can invoke unrelated administrative APIs using its execution role.

Incorrect Answers

B:

Cloud workload firewalls or security groups constrain permitted instance traffic and may track connection state; this result is evidence about cloud network security groups when a virtual machine accepts administrative traffic from every internet address because of an overly broad inbound rule, not a direct closure test for the named cloud audit logging, cloud network acl behavior, serverless least privilege requirements.

C:

Instance metadata endpoints may expose workload credentials when SSRF reaches them without effective isolation; this result is evidence about cloud metadata service exposure when an application URL-fetching feature can connect to instance-local metadata addresses from inside a cloud workload, not a direct closure test for the named cloud audit logging, cloud network acl behavior, serverless least privilege requirements.

D:

Cloud service providers secure assigned infrastructure layers while customers remain accountable for their configurations and data; this result is evidence about cloud shared responsibility when a hosted database customer assumes the provider also determines application user permissions and data retention, not a direct closure test for the named cloud audit logging, cloud network acl behavior, serverless least privilege requirements.

Question 665

The blue team wants an accurate model of reflection amplification. Which statement should it retain?

  1. Volumetric denial-of-service overwhelms network bandwidth before ordinary application controls can respond.
  2. Layer-seven denial-of-service targets application processing resources rather than just raw link bandwidth.
  3. Reflection abuses third-party responders and source-address spoofing; amplification increases response traffic relative to requests.
  4. State-exhaustion attacks consume finite connection resources before useful application work begins.

Explanation

Correct Answer

C:

A service receives a disproportionately large volume of unsolicited replies from unrelated public servers; that situation illustrates the actual operating behavior under review. Its practical safeguard is to filter spoofed-source traffic and work with upstream protection against unwanted reflected replies, with confirmation when edge captures show reflected packets mitigated and anti-spoofing controls prevent forged outbound origins.

Incorrect Answers

A:

An internet circuit saturates with traffic from many unrelated networks while the web application remains healthy locally; those details characterize volumetric DDoS and would call for arrange upstream traffic absorption and routing-level DDoS protection with the connectivity provider, rather than explaining reflection amplification.

B:

A web service exhausts worker capacity under many costly but syntactically valid application requests; those details characterize application-layer request flood and would call for apply per-client rate controls, caching, and resource-aware request limits at the application edge, rather than explaining reflection amplification.

D:

A server accumulates large numbers of unfinished connection attempts and runs out of state-table capacity; those details characterize resource exhaustion through connection state and would call for enable connection protections and tune state capacity while preserving ordinary client sessions, rather than explaining reflection amplification.

Question 666

Consider this security review note: A service receives a disproportionately large volume of unsolicited replies from unrelated public servers. What should the responsible team do first to address the issue?

  1. Arrange upstream traffic absorption and routing-level DDoS protection with the connectivity provider.
  2. Enable connection protections and tune state capacity while preserving ordinary client sessions.
  3. Filter spoofed-source traffic and work with upstream protection against unwanted reflected replies.
  4. Apply per-client rate controls, caching, and resource-aware request limits at the application edge.

Explanation

Correct Answer

C:

Reflection abuses third-party responders and source-address spoofing; amplification increases response traffic relative to requests; this is the specific exposure or dependency that the selected action addresses. After treatment, the assessor should confirm that edge captures show reflected packets mitigated and anti-spoofing controls prevent forged outbound origins.

Incorrect Answers

A:

Volumetric denial-of-service overwhelms network bandwidth before ordinary application controls can respond; the proposed safeguard addresses a case where an internet circuit saturates with traffic from many unrelated networks while the web application remains healthy locally, rather than the reflection amplification finding described here.

B:

State-exhaustion attacks consume finite connection resources before useful application work begins; the proposed safeguard addresses a case where a server accumulates large numbers of unfinished connection attempts and runs out of state-table capacity, rather than the reflection amplification finding described here.

D:

Layer-seven denial-of-service targets application processing resources rather than just raw link bandwidth; the proposed safeguard addresses a case where a web service exhausts worker capacity under many costly but syntactically valid application requests, rather than the reflection amplification finding described here.

Question 667

The team is closing an assessment finding: An analyst maps published organization information without contacting the organization's infrastructure. What measure is most appropriate to implement?

  1. Publish a scoped sender policy and remove unauthorized sending infrastructure from the allowed set.
  2. Reconcile public routing ownership with the authorized assessment scope before probing addresses.
  3. Use published data and approved external sources while documenting provenance and collection limits.
  4. Coordinate with the partner to remove excessive disclosures and limit shared identifiers.

Explanation

Correct Answer

C:

Passive collection uses third-party or already-public information and may be less detectable than direct probing; this is the specific exposure or dependency that the selected action addresses. After treatment, the assessor should confirm that collection logs show no direct queries or connection attempts against the target environment.

Incorrect Answers

A:

SPF is commonly expressed as a DNS TXT policy and describes authorized outbound mail sources; the proposed safeguard addresses a case where a defender examines domain-published text identifying systems allowed to send mail for the domain, rather than the passive reconnaissance finding described here.

B:

Autonomous system registration and routing information connect public prefixes with network operators; the proposed safeguard addresses a case where a network researcher needs to distinguish an organization's routed address prefixes from a vendor's hosting range, rather than the passive reconnaissance finding described here.

D:

Supply-chain footprints include information published by service providers outside the main organization's domain; the proposed safeguard addresses a case where a public partner portal lists customer organization names and private service references, rather than the passive reconnaissance finding described here.

Question 668

A responder documents this evidence: An infected laptop continues contacting internal systems while responders collect screenshots for a report. Which concept is being demonstrated?

  1. Self-propagating worm
  2. Command-and-control beacon
  3. Malicious macro attachment
  4. File-infecting virus
  5. Trojan masquerade
  6. Endpoint containment action

Explanation

Correct Answer

F:

Containment limits active compromise before extensive investigation or full eradication is complete; that mechanism makes this classification more precise than the neighboring terms. The protective follow-up is to isolate the endpoint from normal network paths while preserving authorized forensic evidence, verified when network telemetry shows the isolated laptop cannot reach peers while evidence remains accessible to responders.

Incorrect Answers

A:

Worms can spread automatically through vulnerable network paths without needing a human to launch each copy; this different classification would fit when infected hosts begin transmitting infection attempts to neighboring machines without user-opened attachments, not the evidence pointing to endpoint containment action in the question.

B:

Beaconing can reveal automated communications from compromised endpoints to a remote controller; this different classification would fit when a workstation periodically contacts an unusual external host with similar request sizes at regular intervals, not the evidence pointing to endpoint containment action in the question.

C:

Macro-enabled documents can execute code when users permit active scripting in untrusted files; this different classification would fit when a document asks recipients to enable active content to view a supposedly routine invoice, not the evidence pointing to endpoint containment action in the question.

D:

Viruses reproduce by infecting host files and normally rely on execution to spread infection; this different classification would fit when a malicious program inserts its code into other executable files that later run on the same host, not the evidence pointing to endpoint containment action in the question.

E:

A Trojan relies on deceptive packaging or consent rather than autonomous worm-like replication; this different classification would fit when an executable marketed as a routine system utility installs an unrelated unwanted component when launched, not the evidence pointing to endpoint containment action in the question.

Question 669

When documenting evidence chain of custody, which technical principle belongs in the assessment report?

  1. Confidentiality concerns who may access information, even when the underlying records are accurate and available.
  2. Unexpected active harm is an incident indicator, not a reason to continue routine testing without notifying the owner.
  3. Coordinated disclosure allows the owner or vendor to validate, mitigate, and communicate an issue without reckless publication.
  4. Custody documentation preserves traceability by recording who handled evidence, when, and for what purpose.

Explanation

Correct Answer

D:

A disputed finding relies on a packet capture copied between analysts without transfer records; that situation illustrates the actual operating behavior under review. Its practical safeguard is to record evidence acquisition, cryptographic hashes, controlled storage, and each authorized transfer, with confirmation when hashes and custody logs match the original evidence through every documented handoff.

Incorrect Answers

A:

A captured troubleshooting file contains readable patient records accessible to an unrelated team; those details characterize confidentiality protection and would call for restrict file access to a need-to-know group and remove unnecessary sensitive copies, rather than explaining evidence chain of custody.

B:

The assessor notices suspicious production encryption activity that was not generated by the approved test; those details characterize incident escalation during testing and would call for stop risky testing and alert the agreed incident contact through the engagement escalation channel, rather than explaining evidence chain of custody.

C:

An authorized tester identifies a serious flaw in a supplier product during the agreed assessment; those details characterize responsible disclosure and would call for notify the designated contact privately under the disclosure terms and avoid releasing exploit details, rather than explaining evidence chain of custody.

Question 670

The assessor flags this situation for follow-up: A logged-in user's browser submits a state-changing request after visiting an unrelated malicious page. Select the most appropriate action.

  1. Invalidate server-side session state and revoke relevant refresh tokens on logout.
  2. Use anti-CSRF tokens and suitable SameSite cookie restrictions on state-changing operations.
  3. Protect session cookies with HttpOnly and Secure attributes and enforce TLS transport.
  4. Regenerate the session identifier after successful login or privilege elevation.

Explanation

Correct Answer

B:

CSRF abuses ambient browser credentials when the application fails to verify the user's request intent; this is the specific exposure or dependency that the selected action addresses. After treatment, the assessor should confirm that cross-origin tests cannot cause unauthorized state changes even when a user has an active session.

Incorrect Answers

A:

Client-side cookie deletion alone may not revoke server-recognized sessions or long-lived tokens; the proposed safeguard addresses a case where a user clicks logout, but a copied access token continues authorizing API requests until its original expiry, rather than the cross-site request forgery finding described here.

C:

An accessible session token can be replayed to impersonate an authenticated browser session if stolen; the proposed safeguard addresses a case where a browser extension can read an authentication cookie because the cookie lacks appropriate client-side protections, rather than the cross-site request forgery finding described here.

D:

Failure to rotate session identifiers on privilege change can let a preselected identifier bind to an authenticated session; the proposed safeguard addresses a case where a user keeps the same session identifier after authentication that was assigned before login, rather than the cross-site request forgery finding described here.

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