Question 240
During a customer-approved security assessment, the tester finds: A web server directory contains a newly created executable script unrelated to approved deployment artifacts. Which action BEST addresses this specific requirement?
- 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.
- Investigate possible rootkit or binary tampering using trusted offline validation.
Explanation
Correct Answer
C:Server-side scripts can provide ongoing application-context access when placed in writable web paths. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:A repeated outbound channel can sustain access after a session ends and requires explicit cleanup; server-side scripts can provide ongoing application-context access when placed in writable web paths.
B:A listening port alone is ambiguous; process ownership and authorization determine its significance; server-side scripts can provide ongoing application-context access when placed in writable web paths.
D:Operating-system-level modification can hide malicious persistence from ordinary on-host tools; server-side scripts can provide ongoing application-context access when placed in writable web paths.
Question 241
A penetration-test report includes the following synthetic observation: An API has no rate limits for expensive report-generation calls, but the tester is prohibited from stress testing production. What is the MOST defensible next step?
- Classify insecure deserialization and restrict untrusted object types and parsing behavior.
- 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.
Explanation
Correct Answer
B:Availability protections should be tested with agreed limits instead of uncontrolled load on a live service. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Classifying insecure deserialization and restricting untrusted object types and parsing behavior would not document resource-abuse risk and validate throttling safely in a disposable test environment.
C: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.
D:Including dependency security assessment alongside runtime web application testing would not document resource-abuse risk and validate throttling safely in a disposable test environment.
Question 242
Within an isolated training lab, the analyst identifies: A penetration test team selects a public exploit using only a matching CWE category, although the deployed product has no matching vulnerable release. Which recommendation MOST directly fits this evidence?
- 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.
- Explain that a CVE names a vulnerability while EPSS estimates exploitation likelihood.
Explanation
Correct Answer
A:A weakness taxonomy class is not evidence that every related product contains the same disclosed defect. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Validating actual system version and configuration would not confirm the specific affected product and patch state.
C:Rank authorized tests by reachability and business criticality alongside published severity scores would not confirm the specific affected product and patch state.
D:Explaining that a CVE names a vulnerability while EPSS estimates exploitation likelihood would not confirm the specific affected product and patch state.
Question 243
A penetration testing lead reviewing the approved scope learns that: A vulnerability scan reports a browser plug-in vulnerable based on a stale inventory entry after a device replacement. Which response is MOST appropriate for this finding?
- 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.
- Prioritize with observed reachability, exploit maturity and business impact alongside CVSS.
- Normalize timestamps, asset versions and scan coverage before comparing result histories.
Explanation
Correct Answer
A:Asset lifecycle changes can leave stale findings that need reconciliation against observed state. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Credential management would not confirm the affected software exists on the current asset.
C:Prioritizing with observed reachability, exploit maturity and business impact alongside CVSS would not confirm the affected software exists on the current asset.
D:Normalizing timestamps, asset versions and scaning coverage would not confirm the affected software exists on the current asset.
Question 244
During an approved security validation exercise, the following occurs: A tenant finds an access key in a public repository, but the associated cloud resource is an old archived bucket. Which action BEST addresses this specific requirement?
- 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.
- 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.
Explanation
Correct Answer
D:Published keys can remain valid and may authorize resources beyond the originally named bucket. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Reviewing trust-policy principals and narrow allowed assumptions to approved identities would not revoke the exposed credential and determine its effective current rights.
B:Validating metadata access safely and redacting tokens while recommending workload identity and egress protections would not revoke the exposed credential and determine its effective current rights.
C:Classifying excessive IAM permissions and recommending a tightly scoped service role would not revoke the exposed credential and determine its effective current rights.
Question 245
The customer asks the authorized assessor to evaluate this situation: A PowerShell report repeatedly overwrites all prior discovery results when processing the next approved server. What is the MOST defensible next step?
- 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.
- Add bounded retry counts and explicit timeout/error handling to the collection loop.
- Filter blank and comment records before iterating over permitted hosts.
Explanation
Correct Answer
A:Correct data handling preserves per-target findings for later reconciliation and audit. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Conditional logic prevents error messages from being mislabeled as discovered services; 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; correct data handling preserves per-target findings for later reconciliation and audit.
D:Input validation prevents malformed records from becoming unintended test commands; correct data handling preserves per-target findings for later reconciliation and audit.
Question 246
The test team is analyzing this evidence from a controlled environment: A dependency manifest includes a library version with a published vulnerability even though the application source contains no obvious unsafe function. Which recommendation MOST directly fits this evidence?
- Consider IAST under the supported runtime instrumentation and test conditions.
- 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.
Explanation
Correct Answer
D:SCA detects exposure from third-party packages that custom source scanning might overlook. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Consider IAST under the supported runtime instrumentation and test conditions would not run software composition analysis against the resolved dependency versions.
B:Selecting DAST for the running application with a safe authenticated test account when authorized would not run software composition analysis against the resolved dependency versions.
C:Using SAST to review source-level data flows and flag potential code defects would not run software composition analysis against the resolved dependency versions.
Question 247
In a formally authorized penetration test, the team observes: A security review observes certificate expiration causing authentication outages across several business applications. Which response is MOST appropriate for this finding?
- 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.
- Segment privileged management traffic and constrain allowed administrative sources.
Explanation
Correct Answer
A:Certificate lifecycle controls protect both service trust and operational availability. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Individual attribution and traceable operations help detect misuse that shared credentials conceal. Certificate lifecycle controls protect both service trust and operational availability.
C:Physical separation and identity checks reduce unauthorized entry by tailgating. Certificate lifecycle controls protect both service trust and operational availability.
D:Management-plane isolation reduces the ability to pivot from an ordinary compromised client. Certificate lifecycle controls protect both service trust and operational availability.
Question 248
During a customer-approved security assessment, the tester finds: An analyst wants to run unknown code from an untrusted exploit repository directly on the testing workstation. Which action BEST addresses this specific requirement?
- 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.
- Review the code and isolate any authorized evaluation in a disposable laboratory environment.
Explanation
Correct Answer
D:Proof-of-concept content can contain malicious or destructive behavior unrelated to the target weakness. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A: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.
B:Rejecting destructive validation and choosing an approved non-destructive evidence method would not review the code and isolate any authorized evaluation in a disposable laboratory environment.
C:Confirming platform, patch state and prerequisites would not review the code and isolate any authorized evaluation in a disposable laboratory environment.
Question 249
A penetration-test report includes the following synthetic observation: A tester sees a service banner claiming a vulnerable version but has not verified that the exposed application is actually that version. What is the MOST defensible next step?
- 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.
- Interpret TCP and UDP discovery results separately and document filtering uncertainty.
- Treat the banner as preliminary fingerprint evidence requiring safe corroboration.
Explanation
Correct Answer
D:Banners can be hidden, changed or misleading and should not alone justify an exploitation claim. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Unencrypted management traffic creates information disclosure even when no intrusive exploitation is performed; banners can be hidden, changed or misleading and should not alone justify an exploitation claim.
B:Industrial devices may not tolerate ordinary enterprise scanning intensity and require constrained methods; banners can be hidden, changed or misleading and should not alone justify an exploitation claim.
C:Stateful behavior and lack of UDP responses do not establish absence of the target host; banners can be hidden, changed or misleading and should not alone justify an exploitation claim.
Question 250
Within an isolated training lab, the analyst identifies: A service advertises HTTPS but presents an expired TLS certificate while client authentication succeeds through a different proxy endpoint. Which recommendation MOST directly fits this evidence?
- Verify protocol context and coordinate OT-safe read-only observation before further probes.
- 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.
Explanation
Correct Answer
C:An expired certificate affects trust and availability but does not by itself demonstrate a login bypass. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Verifying protocol context and coordinate OT-safe read-only observation would not separate certificate hygiene findings from evidence of an exploitable authentication weakness.
B:Using packet-header and protocol decoding evidence from an approved passive capture would not separate certificate hygiene findings from evidence of an exploitable authentication weakness.
D:Deduplicate wildcard resolutions would not separate certificate hygiene findings from evidence of an exploitable authentication weakness.
CompTIA PenTest+ (PT0-003) Practice Tests