Question 40
The test team is analyzing this evidence from a controlled environment: A lab monitoring report shows a compromised test host initiating an outbound command channel after each reboot. Which recommendation MOST directly fits this evidence?
- Investigate possible rootkit or binary tampering using trusted offline validation.
- Identify the persistent outbound callback behavior and recommend removing the authorized test implant.
- 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.
Explanation
Correct Answer
B:A repeated outbound channel can sustain access after a session ends and requires explicit cleanup. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Investigating possible rootkit or binary tampering using trusted offline validation would not identify the persistent outbound callback behavior and recommend removing the authorized test implant.
C:Investigating whether a bind-style remote shell or legitimate maintenance service owns the listener would not identify the persistent outbound callback behavior and recommend removing the authorized test implant.
D:Treat the artifact as a possible web shell and preserve minimal evidence for controlled removal would not identify the persistent outbound callback behavior and recommend removing the authorized test implant.
Question 41
In a formally authorized penetration test, the team observes: 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. Which response is MOST appropriate for this finding?
- Document resource-abuse risk and validate throttling safely in a disposable test environment.
- Verify protective coverage per route while recommending correction of the source weakness.
- Include dependency security assessment alongside runtime web application testing.
- Classify insecure deserialization and restrict untrusted object types and parsing behavior.
Explanation
Correct Answer
C:Web attack surface includes library code and supplier updates as well as custom controllers. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Documenting resource-abuse risk and validating throttling safely in a disposable test environment would not include dependency security assessment alongside runtime web application testing.
B:Verifying protective coverage per route while recommending correction of the source weakness would not include dependency security assessment alongside runtime web application testing.
D:Classifying insecure deserialization and restricting untrusted object types and parsing behavior would not include dependency security assessment alongside runtime web application testing.
Question 42
During a customer-approved security assessment, the tester finds: A CVSS 9.8 issue affects an isolated test lab, while a lower-scored defect exposes the client's public customer sign-in portal. Which action BEST addresses this specific requirement?
- Explain that a CVE names a vulnerability while EPSS estimates exploitation likelihood.
- Confirm the specific affected product and patch state before judging exploit applicability.
- 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.
Explanation
Correct Answer
D:Environment context can make a moderate but publicly reachable finding more urgent than an isolated high base score. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:A tracking identifier and a probability estimate answer different questions and must not be conflated; environment context can make a moderate but publicly reachable finding more urgent than an isolated high base score.
B:A weakness taxonomy class is not evidence that every related product contains the same disclosed defect; environment context can make a moderate but publicly reachable finding more urgent than an isolated high base score.
C:Product lifecycle and observed configuration influence whether a disclosed weakness is present and actionable; environment context can make a moderate but publicly reachable finding more urgent than an isolated high base score.
Question 43
A penetration-test report includes the following synthetic observation: A scan export lists CVSS 9.8 but no externally reachable path, while another moderate issue is actively exposed to customers. What is the MOST defensible next step?
- Prioritize with observed reachability, exploit maturity and business impact alongside CVSS.
- 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.
- Ignore tool-output instructions that are unrelated to assessment evidence and protect credential material.
Explanation
Correct Answer
A:Base scores are context-free and do not replace environment-specific risk assessment. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Normalizing timestamps, asset versions and scaning coverage would not prioritize with observed reachability, exploit maturity and business impact alongside CVSS.
C:Confirming the affected software exists on the current asset would not prioritize with observed reachability, exploit maturity and business impact alongside CVSS.
D:Credential management would not prioritize with observed reachability, exploit maturity and business impact alongside CVSS.
Question 44
Within an isolated training lab, the analyst identifies: A synthetic cloud app can reach an instance metadata endpoint, and the team proposes exposing its credentials in the final report. Which recommendation MOST directly fits this evidence?
- 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.
- Review trust-policy principals and narrow allowed assumptions to approved identities.
- Validate metadata access safely and redact tokens while recommending workload identity and egress protections.
Explanation
Correct Answer
D:Metadata credentials can expand access, but their raw value is not necessary to prove risky reachability. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Classifying excessive IAM permissions and recommending a tightly scoped service role would not validate metadata access safely and redact tokens while recommending workload identity and egress protections.
B:Revoking the exposed credential and determining its effective current rights would not validate metadata access safely and redact tokens while recommending workload identity and egress protections.
C:Reviewing trust-policy principals and narrow allowed assumptions to approved identities would not validate metadata access safely and redact tokens while recommending workload identity and egress protections.
Question 45
A penetration testing lead reviewing the approved scope learns that: A Python reconnaissance script retries the same host indefinitely when DNS does not resolve, exhausting the lab time window. Which response is MOST appropriate for this finding?
- Add bounded retry counts and explicit timeout/error handling to the collection loop.
- Filter blank and comment records before iterating over permitted hosts.
- Append structured result records with unique host identifiers rather than replacing the entire output.
- Branch on explicit success and failure conditions before adding hosts to the live inventory.
Explanation
Correct Answer
A:Reliable scripting should terminate safely on unreachable targets rather than continue unbounded probing. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Filtering blank and comment records would not add bounded retry counts and explicit timeout/error handling to the collection loop.
C:Append structured result records with unique host identifiers rather than replacing the entire output would not add bounded retry counts and explicit timeout/error handling to the collection loop.
D:Branch on explicit success and failure conditions would not add bounded retry counts and explicit timeout/error handling to the collection loop.
Question 46
During an approved security validation exercise, the following occurs: A dynamic test must exercise a deployed web application from outside without access to its source code. Which action BEST addresses this specific requirement?
- Select DAST for the running application with a safe authenticated test account when authorized.
- Use SAST to review source-level data flows and flag potential code defects.
- Run software composition analysis against the resolved dependency versions.
- Consider IAST under the supported runtime instrumentation and test conditions.
Explanation
Correct Answer
A:Dynamic testing evaluates externally observable web behavior against a live configured service. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Static analysis can identify risky source paths regardless of whether current runtime tests execute them; dynamic testing evaluates externally observable web behavior against a live configured service.
C:SCA detects exposure from third-party packages that custom source scanning might overlook; dynamic testing evaluates externally observable web behavior against a live configured service.
D:Interactive application security testing observes internal execution context during real test traffic; dynamic testing evaluates externally observable web behavior against a live configured service.
Question 47
The customer asks the authorized assessor to evaluate this situation: An authorized physical assessment shows visitors can follow employees through a secure entry door without badge checks. What is the MOST defensible next step?
- Segment privileged management traffic and constrain allowed administrative sources.
- Introduce certificate inventory, expiration alerts and tested renewal processes.
- Assign accountable administrative identities and centralize privileged auditing with periodic review.
- Recommend an access control vestibule with staff escort and visitor-verification procedures.
Explanation
Correct Answer
D:Physical separation and identity checks reduce unauthorized entry by tailgating. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Segment privileged management traffic and constrain allowed administrative sources would not recommend an access control vestibule with staff escort and visitor-verification procedures.
B:Physical separation and identity checks reduce unauthorized entry by tailgating.
C:Assigning accountable administrative identities and centralize privileged auditing with periodic review would not recommend an access control vestibule with staff escort and visitor-verification procedures.
Question 48
The test team is analyzing this evidence from a controlled environment: A vulnerability database provides a public exploit that would erase a database table as its proof condition. Which recommendation MOST directly fits this evidence?
- Review the code and isolate any authorized evaluation in a disposable laboratory environment.
- 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.
- Confirm platform, patch state and prerequisites before declaring exploit applicability.
Explanation
Correct Answer
C:Availability and data-integrity constraints still apply to published proof-of-concept code. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Reviewing the code and isolate any authorized evaluation in a disposable laboratory environment would not reject destructive validation and choose an approved non-destructive evidence method.
B:Validating with synthetic test objects and documenting denied/allowed outcomes without real data access would not reject destructive validation and choose an approved non-destructive evidence method.
D:Confirming platform, patch state and prerequisites would not reject destructive validation and choose an approved non-destructive evidence method.
Question 49
In a formally authorized penetration test, the team observes: The rules of engagement permit a narrow host discovery sweep, but a tester proposes intrusive full-port scans against a fragile industrial controller. Which response is MOST appropriate for this finding?
- Select non-disruptive discovery approved for the OT segment and confirm the safety contact.
- Interpret TCP and UDP discovery results separately and document filtering uncertainty.
- Treat the banner as preliminary fingerprint evidence requiring safe corroboration.
- Record the protocol exposure with minimal sensitive evidence and recommend authenticated encrypted transport.
Explanation
Correct Answer
A:Industrial devices may not tolerate ordinary enterprise scanning intensity and require constrained methods. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Stateful behavior and lack of UDP responses do not establish absence of the target host; industrial devices may not tolerate ordinary enterprise scanning intensity and require constrained methods.
C:Banners can be hidden, changed or misleading and should not alone justify an exploitation claim; industrial devices may not tolerate ordinary enterprise scanning intensity and require constrained methods.
D:Unencrypted management traffic creates information disclosure even when no intrusive exploitation is performed; industrial devices may not tolerate ordinary enterprise scanning intensity and require constrained methods.
Question 50
During a customer-approved security assessment, the tester finds: An authorized industrial segment produces Modbus-like traffic, but an analyst applies conventional web scanning based solely on a port number. Which action BEST addresses this specific requirement?
- Use packet-header and protocol decoding evidence from an approved passive capture.
- Separate certificate hygiene findings from evidence of an exploitable authentication weakness.
- Deduplicate wildcard resolutions before reporting thousands of supposedly distinct servers.
- Verify protocol context and coordinate OT-safe read-only observation before further probes.
Explanation
Correct Answer
D:Protocol identification is necessary because industrial control equipment has different failure and safety constraints. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:The proposed action “Use packet-header and protocol decoding evidence from an approved passive capture” does not directly resolve the reported condition: An authorized industrial segment produces Modbus-like traffic, but an analyst applies conventional web scanning based solely on a port number. Protocol identification is necessary because industrial control equipment has different failure and safety constraints. The corresponding corrective action is “Verify protocol context and coordinate OT-safe read-only observation before further probes”.
B:The proposed action “Separate certificate hygiene findings from evidence of an exploitable authentication weakness” does not directly resolve the reported condition: An authorized industrial segment produces Modbus-like traffic, but an analyst applies conventional web scanning based solely on a port number. Protocol identification is necessary because industrial control equipment has different failure and safety constraints. The corresponding corrective action is “Verify protocol context and coordinate OT-safe read-only observation before further probes”.
C:The proposed action “Deduplicate wildcard resolutions before reporting thousands of supposedly distinct servers” does not directly resolve the reported condition: An authorized industrial segment produces Modbus-like traffic, but an analyst applies conventional web scanning based solely on a port number. Protocol identification is necessary because industrial control equipment has different failure and safety constraints. The corresponding corrective action is “Verify protocol context and coordinate OT-safe read-only observation before further probes”.
CompTIA PenTest+ (PT0-003) Practice Tests