Question 540
A lab monitoring report shows a compromised test host initiating an outbound command channel after each reboot. A web server directory contains a newly created executable script unrelated to approved deployment artifacts. Which response best addresses these needs?
- Investigate whether a bind-style remote shell or legitimate maintenance service owns the listener; Treat the artifact as a possible web shell and preserve minimal evidence for controlled removal.
- Identify the persistent outbound callback behavior and recommend removing the authorized test implant; investigate possible rootkit or binary tampering using trusted offline validation.
- Investigate whether a bind-style remote shell or legitimate maintenance service owns the listener; investigate possible rootkit or binary tampering using trusted offline validation.
- Identify the persistent outbound callback behavior and recommend removing the authorized test implant; Treat the artifact as a possible web shell and preserve minimal evidence for controlled removal.
Explanation
Correct Answer
D:For requirement (1), A repeated outbound channel can sustain access after a session ends and requires explicit cleanup. For requirement (2), Server-side scripts can provide ongoing application-context access when placed in writable web paths.
Incorrect Answers
A:A repeated outbound channel can sustain access after a session ends and requires explicit cleanup.
B:Investigating possible rootkit or binary tampering using trusted offline validation would not treat the artifact as a possible web shell and preserve minimal evidence for controlled removal. Server-side scripts can provide ongoing application-context access when placed in writable web paths.
C:A repeated outbound channel can sustain access after a session ends and requires explicit cleanup. Investigating possible rootkit or binary tampering using trusted offline validation does not treat the artifact as a possible web shell and preserve minimal evidence for controlled removal.
Question 541
A vulnerable app depends on a third-party component whose source version has a known flaw, but a developer insists only custom input code matters. An API has no rate limits for expensive report-generation calls, but the tester is prohibited from stress testing production. What is the most appropriate plan for this situation?
- Classify insecure deserialization and restrict untrusted object types and parsing behavior; verify protective coverage per route while recommending correction of the source weakness.
- Include dependency security assessment alongside runtime web application testing; document resource-abuse risk and validate throttling safely in a disposable test environment.
- Classify insecure deserialization and restrict untrusted object types and parsing behavior; document resource-abuse risk and validate throttling safely in a disposable test environment.
- Include dependency security assessment alongside runtime web application testing; verify protective coverage per route while recommending correction of the source weakness.
Explanation
Correct Answer
B:For requirement (1), Web attack surface includes library code and supplier updates as well as custom controllers. For requirement (2), Availability protections should be tested with agreed limits instead of uncontrolled load on a live service.
Incorrect Answers
A:Web attack surface includes library code and supplier updates as well as custom controllers. Verifying protective coverage per route while recommending correction of the source weakness does not document resource-abuse risk and validate throttling safely in a disposable test environment.
C:Web attack surface includes library code and supplier updates as well as custom controllers.
D:Verifying protective coverage per route while recommending correction of the source weakness would not document resource-abuse risk and validate throttling safely in a disposable test environment. Availability protections should be tested with agreed limits instead of uncontrolled load on a live service.
Question 542
A CVSS 9.8 issue affects an isolated test lab, while a lower-scored defect exposes the client's public customer sign-in portal. A penetration test team selects a public exploit using only a matching CWE category, although the deployed product has no matching vulnerable release. Which course of action addresses the stated issues?
- Explain that a CVE names a vulnerability while EPSS estimates exploitation likelihood; validate actual system version and configuration before setting test priority and recommending upgrades.
- Rank authorized tests by reachability and business criticality alongside published severity scores; confirm the specific affected product and patch state before judging exploit applicability.
- Explain that a CVE names a vulnerability while EPSS estimates exploitation likelihood; confirm the specific affected product and patch state before judging exploit applicability.
- Rank authorized tests by reachability and business criticality alongside published severity scores; validate actual system version and configuration before setting test priority and recommending upgrades.
Explanation
Correct Answer
B:For requirement (1), Environment context can make a moderate but publicly reachable finding more urgent than an isolated high base score. For requirement (2), A weakness taxonomy class is not evidence that every related product contains the same disclosed defect.
Incorrect Answers
A:Environment context can make a moderate but publicly reachable finding more urgent than an isolated high base score. Validating actual system version and configuration does not confirm the specific affected product and patch state before judging exploit applicability.
C:Environment context can make a moderate but publicly reachable finding more urgent than an isolated high base score.
D:Validating actual system version and configuration would not confirm the specific affected product and patch state before judging exploit applicability. A weakness taxonomy class is not evidence that every related product contains the same disclosed defect.
Question 543
A scan export lists CVSS 9.8 but no externally reachable path, while another moderate issue is actively exposed to customers. A vulnerability scan reports a browser plug-in vulnerable based on a stale inventory entry after a device replacement. Which response best addresses these needs?
- Prioritize with observed reachability, exploit maturity and business impact alongside CVSS; Ignore tool-output instructions that are unrelated to assessment evidence and protect credential material.
- Normalize timestamps, asset versions and scan coverage before comparing result histories; Ignore tool-output instructions that are unrelated to assessment evidence and protect credential material.
- Prioritize with observed reachability, exploit maturity and business impact alongside CVSS; confirm the affected software exists on the current asset before treating the report as open.
- Normalize timestamps, asset versions and scan coverage before comparing result histories; confirm the affected software exists on the current asset before treating the report as open.
Explanation
Correct Answer
C:For requirement (1), Base scores are context-free and do not replace environment-specific risk assessment. For requirement (2), Asset lifecycle changes can leave stale findings that need reconciliation against observed state.
Incorrect Answers
A:Credential management would not confirm the affected software exists on the current asset before treating the report as open. Asset lifecycle changes can leave stale findings that need reconciliation against observed state.
B:Base scores are context-free and do not replace environment-specific risk assessment. Credential management does not confirm the affected software exists on the current asset before treating the report as open. Asset lifecycle changes can leave stale findings that need reconciliation against observed state.
D:Base scores are context-free and do not replace environment-specific risk assessment.
Question 544
A synthetic cloud app can reach an instance metadata endpoint, and the team proposes exposing its credentials in the final report. A tenant finds an access key in a public repository, but the associated cloud resource is an old archived bucket. What is the most appropriate plan for this situation?
- Validate metadata access safely and redact tokens while recommending workload identity and egress protections; Revoke the exposed credential and determine its effective current rights before closing the finding.
- Classify excessive IAM permissions and recommend a tightly scoped service role; Revoke the exposed credential and determine its effective current rights before closing the finding.
- Validate metadata access safely and redact tokens while recommending workload identity and egress protections; review trust-policy principals and narrow allowed assumptions to approved identities.
- Classify excessive IAM permissions and recommend a tightly scoped service role; review trust-policy principals and narrow allowed assumptions to approved identities.
Explanation
Correct Answer
A:For requirement (1), Metadata credentials can expand access, but their raw value is not necessary to prove risky reachability. For requirement (2), Published keys can remain valid and may authorize resources beyond the originally named bucket.
Incorrect Answers
B:Metadata credentials can expand access, but their raw value is not necessary to prove risky reachability.
C:Reviewing trust-policy principals and narrow allowed assumptions to approved identities would not revoke the exposed credential and determine its effective current rights before closing the finding. Published keys can remain valid and may authorize resources beyond the originally named bucket.
D:Metadata credentials can expand access, but their raw value is not necessary to prove risky reachability. Reviewing trust-policy principals and narrow allowed assumptions to approved identities does not revoke the exposed credential and determine its effective current rights before closing the finding.
Question 545
A Python reconnaissance script retries the same host indefinitely when DNS does not resolve, exhausting the lab time window. A PowerShell report repeatedly overwrites all prior discovery results when processing the next approved server. Which course of action addresses the stated issues?
- Filter blank and comment records before iterating over permitted hosts; Branch on explicit success and failure conditions before adding hosts to the live inventory.
- Add bounded retry counts and explicit timeout/error handling to the collection loop; Append structured result records with unique host identifiers rather than replacing the entire output.
- Filter blank and comment records before iterating over permitted hosts; Append structured result records with unique host identifiers rather than replacing the entire output.
- Add bounded retry counts and explicit timeout/error handling to the collection loop; Branch on explicit success and failure conditions before adding hosts to the live inventory.
Explanation
Correct Answer
B:For requirement (1), Reliable scripting should terminate safely on unreachable targets rather than continue unbounded probing. For requirement (2), Correct data handling preserves per-target findings for later reconciliation and audit.
Incorrect Answers
A:Reliable scripting should terminate safely on unreachable targets rather than continue unbounded probing. Branch on explicit success and failure conditions does not append structured result records with unique host identifiers rather than replacing the entire output. Correct data handling preserves per-target findings for later reconciliation and audit.
C:Reliable scripting should terminate safely on unreachable targets rather than continue unbounded probing.
D:Branch on explicit success and failure conditions would not append structured result records with unique host identifiers rather than replacing the entire output. Correct data handling preserves per-target findings for later reconciliation and audit.
Question 546
A dynamic test must exercise a deployed web application from outside without access to its source code. A dependency manifest includes a library version with a published vulnerability even though the application source contains no obvious unsafe function. Which response best addresses these needs?
- Select DAST for the running application with a safe authenticated test account when authorized; run software composition analysis against the resolved dependency versions.
- Use SAST to review source-level data flows and flag potential code defects; run software composition analysis against the resolved dependency versions.
- Select DAST for the running application with a safe authenticated test account when authorized; Consider IAST under the supported runtime instrumentation and test conditions.
- Use SAST to review source-level data flows and flag potential code defects; Consider IAST under the supported runtime instrumentation and test conditions.
Explanation
Correct Answer
A:For requirement (1), Dynamic testing evaluates externally observable web behavior against a live configured service. For requirement (2), SCA detects exposure from third-party packages that custom source scanning might overlook.
Incorrect Answers
B:Dynamic testing evaluates externally observable web behavior against a live configured service.
C:Consider IAST under the supported runtime instrumentation and test conditions would not run software composition analysis against the resolved dependency versions. SCA detects exposure from third-party packages that custom source scanning might overlook.
D:Dynamic testing evaluates externally observable web behavior against a live configured service. Consider IAST under the supported runtime instrumentation and test conditions does not run software composition analysis against the resolved dependency versions. SCA detects exposure from third-party packages that custom source scanning might overlook.
Question 547
An authorized physical assessment shows visitors can follow employees through a secure entry door without badge checks. A security review observes certificate expiration causing authentication outages across several business applications. What is the most appropriate plan for this situation?
- Segment privileged management traffic and constrain allowed administrative sources; assign accountable administrative identities and centralize privileged auditing with periodic review.
- Recommend an access control vestibule with staff escort and visitor-verification procedures; Introduce certificate inventory, expiration alerts and tested renewal processes.
- Segment privileged management traffic and constrain allowed administrative sources; Introduce certificate inventory, expiration alerts and tested renewal processes.
- Recommend an access control vestibule with staff escort and visitor-verification procedures; assign accountable administrative identities and centralize privileged auditing with periodic review.
Explanation
Correct Answer
B:For requirement (1), Physical separation and identity checks reduce unauthorized entry by tailgating. For requirement (2), Certificate lifecycle controls protect both service trust and operational availability.
Incorrect Answers
A:Physical separation and identity checks reduce unauthorized entry by tailgating. Assigning accountable administrative identities and centralize privileged auditing with periodic review does not introduce certificate inventory, expiration alerts and tested renewal processes. Certificate lifecycle controls protect both service trust and operational availability.
C:Segment privileged management traffic and constrain allowed administrative sources would not recommend an access control vestibule with staff escort and visitor-verification procedures. Physical separation and identity checks reduce unauthorized entry by tailgating.
D:Assigning accountable administrative identities and centralize privileged auditing with periodic review would not introduce certificate inventory, expiration alerts and tested renewal processes. Certificate lifecycle controls protect both service trust and operational availability.
Question 548
A vulnerability database provides a public exploit that would erase a database table as its proof condition. An analyst wants to run unknown code from an untrusted exploit repository directly on the testing workstation. Which course of action addresses the stated issues?
- Confirm platform, patch state and prerequisites before declaring exploit applicability; review the code and isolate any authorized evaluation in a disposable laboratory environment.
- Reject destructive validation and choose an approved non-destructive evidence method; validate with synthetic test objects and document denied/allowed outcomes without real data access.
- Confirm platform, patch state and prerequisites before declaring exploit applicability; validate with synthetic test objects and document denied/allowed outcomes without real data access.
- Reject destructive validation and choose an approved non-destructive evidence method; review the code and isolate any authorized evaluation in a disposable laboratory environment.
Explanation
Correct Answer
D:For requirement (1), Availability and data-integrity constraints still apply to published proof-of-concept code. For requirement (2), Proof-of-concept content can contain malicious or destructive behavior unrelated to the target weakness.
Incorrect Answers
A:Availability and data-integrity constraints still apply to published proof-of-concept code.
B:Validating with synthetic test objects and documenting denied/allowed outcomes without real data access would not review the code and isolate any authorized evaluation in a disposable laboratory environment. Proof-of-concept content can contain malicious or destructive behavior unrelated to the target weakness.
C:Availability and data-integrity constraints still apply to published proof-of-concept code. Validating with synthetic test objects and documenting denied/allowed outcomes without real data access does not review the code and isolate any authorized evaluation in a disposable laboratory environment. Proof-of-concept content can contain malicious or destructive behavior unrelated to the target weakness.
Question 549
The rules of engagement permit a narrow host discovery sweep, but a tester proposes intrusive full-port scans against a fragile industrial controller. A tester sees a service banner claiming a vulnerable version but has not verified that the exposed application is actually that version. Which response best addresses these needs?
- Interpret TCP and UDP discovery results separately and document filtering uncertainty; Record the protocol exposure with minimal sensitive evidence and recommend authenticated encrypted transport.
- Select non-disruptive discovery approved for the OT segment and confirm the safety contact; Treat the banner as preliminary fingerprint evidence requiring safe corroboration.
- Interpret TCP and UDP discovery results separately and document filtering uncertainty; Treat the banner as preliminary fingerprint evidence requiring safe corroboration.
- Select non-disruptive discovery approved for the OT segment and confirm the safety contact; Record the protocol exposure with minimal sensitive evidence and recommend authenticated encrypted transport.
Explanation
Correct Answer
B:For requirement (1), Industrial devices may not tolerate ordinary enterprise scanning intensity and require constrained methods. For requirement (2), Banners can be hidden, changed or misleading and should not alone justify an exploitation claim.
Incorrect Answers
A:Industrial devices may not tolerate ordinary enterprise scanning intensity and require constrained methods. Recording the protocol exposure with minimal sensitive evidence and recommending authenticated encrypted transport does not treat the banner as preliminary fingerprint evidence requiring safe corroboration.
C:Industrial devices may not tolerate ordinary enterprise scanning intensity and require constrained methods.
D:Recording the protocol exposure with minimal sensitive evidence and recommending authenticated encrypted transport would not treat the banner as preliminary fingerprint evidence requiring safe corroboration. Banners can be hidden, changed or misleading and should not alone justify an exploitation claim.
Question 550
An authorized industrial segment produces Modbus-like traffic, but an analyst applies conventional web scanning based solely on a port number. A service advertises HTTPS but presents an expired TLS certificate while client authentication succeeds through a different proxy endpoint. What is the most appropriate plan for this situation?
- Verify protocol context and coordinate OT-safe read-only observation before further probes; separate certificate hygiene findings from evidence of an exploitable authentication weakness.
- Use packet-header and protocol decoding evidence from an approved passive capture; separate certificate hygiene findings from evidence of an exploitable authentication weakness.
- Verify protocol context and coordinate OT-safe read-only observation before further probes; Deduplicate wildcard resolutions before reporting thousands of supposedly distinct servers.
- Use packet-header and protocol decoding evidence from an approved passive capture; Deduplicate wildcard resolutions before reporting thousands of supposedly distinct servers.
Explanation
Correct Answer
A:For requirement (1), Protocol identification is necessary because industrial control equipment has different failure and safety constraints. For requirement (2), An expired certificate affects trust and availability but does not by itself demonstrate a login bypass.
Incorrect Answers
B:Protocol identification is necessary because industrial control equipment has different failure and safety constraints.
C:Deduplicate wildcard resolutions would not separate certificate hygiene findings from evidence of an exploitable authentication weakness. An expired certificate affects trust and availability but does not by itself demonstrate a login bypass.
D:Protocol identification is necessary because industrial control equipment has different failure and safety constraints. Deduplicate wildcard resolutions does not separate certificate hygiene findings from evidence of an exploitable authentication weakness. An expired certificate affects trust and availability but does not by itself demonstrate a login bypass.
CompTIA PenTest+ (PT0-003) Practice Tests