Question 140
In a formally authorized penetration test, the team observes: An approved server has an unexplained inbound listener that accepts a command connection from the training subnet. Which response is MOST appropriate for this finding?
- 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.
- Identify the persistent outbound callback behavior and recommend removing the authorized test implant.
Explanation
Correct Answer
A:A listening port alone is ambiguous; process ownership and authorization determine its significance. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Treat the artifact as a possible web shell and preserve minimal evidence for controlled removal would not investigate whether a bind-style remote shell or legitimate maintenance service owns the listener.
C:Investigating possible rootkit or binary tampering using trusted offline validation would not investigate whether a bind-style remote shell or legitimate maintenance service owns the listener.
D:Identifying the persistent outbound callback behavior and recommending removing the authorized test implant would not investigate whether a bind-style remote shell or legitimate maintenance service owns the listener.
Question 141
During a customer-approved security assessment, the tester finds: A web framework accepts user-controlled serialized objects that cause unintended state changes during deserialization in a synthetic test. Which action BEST addresses this specific requirement?
- 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.
- Document resource-abuse risk and validate throttling safely in a disposable test environment.
Explanation
Correct Answer
C:Unsafe object reconstruction can invoke behavior beyond the intended data format. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Verifying protective coverage per route while recommending correction of the source weakness would not classify insecure deserialization and restrict untrusted object types and parsing behavior.
B:Including dependency security assessment alongside runtime web application testing would not classify insecure deserialization and restrict untrusted object types and parsing behavior.
D:Documenting resource-abuse risk and validating throttling safely in a disposable test environment would not classify insecure deserialization and restrict untrusted object types and parsing behavior.
Question 142
A penetration-test report includes the following synthetic observation: An analyst treats a CVE identifier as the numeric likelihood that an exploit will be observed in the wild. What is the MOST defensible next step?
- 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.
- Confirm the specific affected product and patch state before judging exploit applicability.
Explanation
Correct Answer
C:A tracking identifier and a probability estimate answer different questions and must not be conflated. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Validating actual system version and configuration would not explain that a CVE names a vulnerability while EPSS estimates exploitation likelihood.
B:Rank authorized tests by reachability and business criticality alongside published severity scores would not explain that a CVE names a vulnerability while EPSS estimates exploitation likelihood.
D:Confirming the specific affected product and patch state would not explain that a CVE names a vulnerability while EPSS estimates exploitation likelihood.
Question 143
Within an isolated training lab, the analyst identifies: An analyst combines tool outputs from two dates and mistakes a fixed finding for a newly introduced weakness. Which recommendation MOST directly fits this evidence?
- 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
D:Historical differences can reflect a change in collection rather than new exploitation risk. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Confirming the affected software exists on the current asset would not normalize timestamps, asset versions and scan coverage.
B:Credential management would not normalize timestamps, asset versions and scan coverage. Historical differences can reflect a change in collection rather than new exploitation risk.
C:Prioritizing with observed reachability, exploit maturity and business impact alongside CVSS would not normalize timestamps, asset versions and scan coverage.
Question 144
A penetration testing lead reviewing the approved scope learns that: An IAM policy permits an application to create administrator-role assignments even though the service only reads objects. Which response is MOST appropriate for this finding?
- 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.
- Classify excessive IAM permissions and recommend a tightly scoped service role.
Explanation
Correct Answer
D:Broad role management capability creates privilege escalation paths beyond the workload's approved operation. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Revoking the exposed credential and determining its effective current rights would not classify excessive IAM permissions and recommend a tightly scoped service role.
B:Reviewing trust-policy principals and narrow allowed assumptions to approved identities would not classify excessive IAM permissions and recommend a tightly scoped service role.
C:Validating metadata access safely and redacting tokens while recommending workload identity and egress protections would not classify excessive IAM permissions and recommend a tightly scoped service role.
Question 145
During an approved security validation exercise, the following occurs: A Bash script reads IPs from an approved scope file but also includes blank lines and comment lines as scan targets. Which action BEST addresses this specific requirement?
- 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.
- Add bounded retry counts and explicit timeout/error handling to the collection loop.
Explanation
Correct Answer
A:Input validation prevents malformed records from becoming unintended test commands. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Append structured result records with unique host identifiers rather than replacing the entire output would not filter blank and comment records.
C:Branch on explicit success and failure conditions would not filter blank and comment records. Input validation prevents malformed records from becoming unintended test commands.
D:Adding bounded retry counts and explicit timeout/error handling to the collection loop would not filter blank and comment records. Input validation prevents malformed records from becoming unintended test commands.
Question 146
The customer asks the authorized assessor to evaluate this situation: A code repository contains a vulnerable input-handling function that cannot be reached in the current staging deployment. What is the MOST defensible next step?
- 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
B:Static analysis can identify risky source paths regardless of whether current runtime tests execute them. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Dynamic testing evaluates externally observable web behavior against a live configured service; static analysis can identify risky source paths regardless of whether current runtime tests execute them.
C:SCA detects exposure from third-party packages that custom source scanning might overlook; static analysis can identify risky source paths regardless of whether current runtime tests execute them.
D:Interactive application security testing observes internal execution context during real test traffic; static analysis can identify risky source paths regardless of whether current runtime tests execute them.
Question 147
The test team is analyzing this evidence from a controlled environment: A network penetration test demonstrates that user workstations can directly reach domain controller management ports without a business need. Which recommendation MOST directly fits this evidence?
- 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.
- Introduce certificate inventory, expiration alerts and tested renewal processes.
Explanation
Correct Answer
C:Management-plane isolation reduces the ability to pivot from an ordinary compromised client. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Individual attribution and traceable operations help detect misuse that shared credentials conceal; management-plane isolation reduces the ability to pivot from an ordinary compromised client.
B:Physical separation and identity checks reduce unauthorized entry by tailgating; management-plane isolation reduces the ability to pivot from an ordinary compromised client.
D:Management-plane isolation reduces the ability to pivot from an ordinary compromised client.
Question 148
In a formally authorized penetration test, the team observes: A public exploit names a software release, but the installed service has vendor fixes and different runtime configuration. Which response is MOST appropriate for this finding?
- 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
C:Similar version labels are not proof that the exact exploit conditions exist on the assessed host. 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 confirm platform, patch state and prerequisites.
B:Rejecting destructive validation and choosing an approved non-destructive evidence method would not confirm platform, patch state and prerequisites.
D:Reviewing the code and isolate any authorized evaluation in a disposable laboratory environment would not confirm platform, patch state and prerequisites.
Question 149
During a customer-approved security assessment, the tester finds: A network test captures traffic to a service using TCP, and an analyst mistakenly assumes a missing UDP response proves the entire host is offline. Which action BEST addresses this specific requirement?
- 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
B:Stateful behavior and lack of UDP responses do not establish absence of the target host. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Selecting non-disruptive discovery approved for the OT segment and confirming the safety contact would not interpret TCP and UDP discovery results separately and document filtering uncertainty.
C:Treat the banner as preliminary fingerprint evidence requiring safe corroboration would not interpret TCP and UDP discovery results separately and document filtering uncertainty.
D:Recording the protocol exposure with minimal sensitive evidence and recommending authenticated encrypted transport would not interpret TCP and UDP discovery results separately and document filtering uncertainty.
Question 150
A penetration-test report includes the following synthetic observation: A network team needs to tell whether suspicious UDP data is an industrial telemetry protocol or general corporate DNS traffic. What is the MOST defensible next step?
- 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
B:Packet context, ports and parsers can distinguish traffic families without injecting additional traffic. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Protocol identification is necessary because industrial control equipment has different failure and safety constraints; packet context, ports and parsers can distinguish traffic families without injecting additional traffic.
C:An expired certificate affects trust and availability but does not by itself demonstrate a login bypass; packet context, ports and parsers can distinguish traffic families without injecting additional traffic.
D:Wildcard DNS can make nonexistent names appear live, distorting attack-surface inventory; packet context, ports and parsers can distinguish traffic families without injecting additional traffic.
CompTIA PenTest+ (PT0-003) Practice Tests