Question 20
Within an isolated training lab, the analyst identifies: A scanner reports an open database port from an internet location, but packet capture shows a protective proxy answering instead of the backend. Which recommendation MOST directly fits this evidence?
- Treat the database as directly internet-exposed based only on the scanner label, without checking the proxy responder.
- Attempt authenticated login to the purported backend before establishing whether the scope permits that test.
- Validate service identity and the actual exposed target before confirming database exposure.
- Assume that an open public port proves the backend service itself is reachable, even though the capture shows a proxy response.
Explanation
Correct Answer
C:The capture identifies an intermediary rather than the backend server. Validate the responder, forwarding path and permitted origin-side evidence before concluding that the database is exposed to the internet.
Incorrect Answers
A:The scanner may label a port as a database service even when a reverse proxy or other intermediary terminates the connection. The capture contradicts a direct-exposure claim.
B:Testing credentials against a supposed backend is premature when service identity is uncertain, and it may exceed the approved testing scope.
D:A TCP response from a public endpoint does not establish that the database daemon is directly reachable; the observed responder is the proxy.
Question 21
A penetration testing lead reviewing the approved scope learns that: An identity team sees repeated MFA push approvals requested late at night from an unfamiliar client, with no employee-initiated sign-in. Which response is MOST appropriate for this finding?
- Assess excessive consent grants and recommend restricting approved scopes to the service need.
- Report missing audience validation and recommend strict assertion issuer, audience and signature checks.
- Identify token audience validation as the missing authentication control.
- Classify likely MFA fatigue and recommend number matching or phishing-resistant methods plus user reporting.
Explanation
Correct Answer
D:Repeated unsolicited prompts attempt to exploit approval habits rather than crack the primary password. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:OAuth tokens can create durable access paths when application permissions exceed business justification. Repeated unsolicited prompts attempt to exploit approval habits rather than crack the primary password.
B:Federation trust requires binding assertions to the appropriate recipient and verified identity provider. Repeated unsolicited prompts attempt to exploit approval habits rather than crack the primary password.
C:Valid token signatures alone do not make a token appropriate for every client or resource. Repeated unsolicited prompts attempt to exploit approval habits rather than crack the primary password.
Question 22
During an approved security validation exercise, the following occurs: The authorized customer supplies a domain but a discovered subdomain resolves to a vendor-owned service not listed in the rules of engagement. Which action BEST addresses this specific requirement?
- Exclude the out-of-range address until the scope owner approves an amendment.
- Design test cases that stop at the excluded payment processor boundary.
- Reconcile the target inventory to the contracting entity and documented asset ownership.
- Obtain explicit authorization for the vendor-hosted asset before testing it.
Explanation
Correct Answer
D:Discovering an address beneath a customer's domain does not establish authority over another organization's infrastructure. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Excluding the out-of-range address until the scope owner approves an amendment would not obtain explicit authorization for the vendor-hosted asset.
B:Designing test cases that stop at the excluded payment processor boundary would not obtain explicit authorization for the vendor-hosted asset.
C:Reconciling the target inventory to the contracting entity and documented asset ownership would not obtain explicit authorization for the vendor-hosted asset.
Question 23
The customer asks the authorized assessor to evaluate this situation: An authorized AWS lab requires a read-only evaluation of privilege relationships and misconfigured trust conditions. What is the MOST defensible next step?
- Separate the discovered external account from the approved cloud test scope.
- Keep offensive framework use in the permitted lab and request an explicit cloud authorization amendment.
- Use approved cloud posture or permission-analysis tooling with the least-required API permissions.
- Interpret benchmark results as security posture observations requiring context.
Explanation
Correct Answer
C:Control-plane inspection should not require unrestricted credentials or attempts to exploit live services. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Aggregated reports can include inherited or third-party assets that must not receive unauthorized follow-up tests; control-plane inspection should not require unrestricted credentials or attempts to exploit live services.
B:A cloud testing framework can mutate real resources and must respect provider and client engagement limits; control-plane inspection should not require unrestricted credentials or attempts to exploit live services.
D:A hardening recommendation does not establish that an adversary has executed code or accessed data; control-plane inspection should not require unrestricted credentials or attempts to exploit live services.
Question 24
The test team is analyzing this evidence from a controlled environment: A permitted network capture shows credentials transmitted on an unencrypted legacy management protocol in a training environment. Which recommendation MOST directly fits this evidence?
- Keep spoofing experiments in the isolated authorized environment and report production exposure as untested.
- Identify the on-path credential exposure and recommend authenticated encrypted transport.
- Document the relay preconditions and recommend signing or channel-binding controls where applicable.
- Reconcile certificate issuance and authorized interception before declaring hostile on-path activity.
Explanation
Correct Answer
B:Plaintext protocols allow a network observer to see information that protected sessions should conceal. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Keeping spoofing experiments in the isolated authorized environment and reporting production exposure as untested would not identify the on-path credential exposure and recommend authenticated encrypted transport.
C:Documenting the relay preconditions and recommending signing or channel-binding controls where applicable would not identify the on-path credential exposure and recommend authenticated encrypted transport.
D:Reconciling certificate issuance and authorized interception would not identify the on-path credential exposure and recommend authenticated encrypted transport.
Question 25
In a formally authorized penetration test, the team observes: A Windows authentication trace shows a reusable NTLM hash being accepted without the original plaintext password during a synthetic lab demonstration. Which response is MOST appropriate for this finding?
- Identify pass-the-hash risk and recommend reducing credential exposure and privileged lateral access.
- Identify pass-the-ticket behavior and review ticket protection and session containment.
- Evaluate service account key strength and ticket-use risk without collecting production credential material.
- Treat the token as a secret exposure and restrict validation to explicitly authorized test principals.
Explanation
Correct Answer
A:Acceptance of an NTLM-derived authenticator can permit credential replay without recovering the original password. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Identifying pass-the-ticket behavior and reviewing ticket protection and session containment would not identify pass-the-hash risk and recommend reducing credential exposure and privileged lateral access.
C:Acceptance of an NTLM-derived authenticator can permit credential replay without recovering the original password.
D:Treat the token as a secret exposure and restrict validation to explicitly authorized test principals would not identify pass-the-hash risk and recommend reducing credential exposure and privileged lateral access.
Question 26
During a customer-approved security assessment, the tester finds: The website advertises a sitemap with application endpoints that are not linked from the navigation menu. Which action BEST addresses this specific requirement?
- Stop collection and apply account/data minimization rules for approved web enumeration.
- Validate access control separately instead of inferring it from crawler directives.
- Review sitemap entries as candidate paths and verify target scope before requesting them.
- Establish ownership and test authorization before checking whether the origin bypasses the WAF.
Explanation
Correct Answer
C:A sitemap is a discovery aid, not assurance that all listed resources are safe or accessible. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Stopping collection and applying account/data minimization rules for approved web enumeration would not review sitemap entries as candidate paths and verify target scope.
B:Validating access control separately would not review sitemap entries as candidate paths and verify target scope.
D:Establishing ownership and testing authorization would not review sitemap entries as candidate paths and verify target scope.
Question 27
A penetration-test report includes the following synthetic observation: A new team needs an organized methodology spanning pre-engagement, intelligence, exploitation, reporting and cleanup. What is the MOST defensible next step?
- Review the relevant CREST-aligned testing standards and assessor competence requirements.
- Use MITRE ATT&CK to describe the relevant observed attacker behaviors.
- Use the Penetration Testing Execution Standard as a lifecycle reference for the authorized engagement.
- Evaluate the Open Source Security Testing Methodology Manual approach for the assessment design.
Explanation
Correct Answer
C:PTES describes a structured sequence for conducting and communicating a penetration test across phases. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Professional testing assurance includes provider processes and tester competence, not solely tool output; pTES describes a structured sequence for conducting and communicating a penetration test across phases.
B:ATT&CK organizes adversarial tactics and techniques and is not a substitute for authorization or vulnerability severity scoring; pTES describes a structured sequence for conducting and communicating a penetration test across phases.
D:OSSTMM emphasizes repeatable assessment of operational security interactions and controls; pTES describes a structured sequence for conducting and communicating a penetration test across phases.
Question 28
Within an isolated training lab, the analyst identifies: A customer's main website omits development subdomains, but issued TLS certificate names can reveal additional approved corporate hosts. Which recommendation MOST directly fits this evidence?
- Query the zone's NS records through a permitted DNS lookup.
- Use a reverse-DNS PTR lookup and treat the returned name as a clue.
- Distinguish CDN edge addresses from customer-owned origins before defining the assessment inventory.
- Review certificate-transparency records and reconcile names against the authorized target list.
Explanation
Correct Answer
D:Public certificate issuance may disclose alternate hostnames, but each discovered host still needs scope validation. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Querying the zone's NS records through a permitted DNS lookup would not review certificate-transparency records and reconcile names against the authorized target list.
B:Public certificate issuance may disclose alternate hostnames, but each discovered host still needs scope validation.
C:Distinguishing CDN edge addresses from customer-owned origins would not review certificate-transparency records and reconcile names against the authorized target list.
Question 29
A penetration testing lead reviewing the approved scope learns that: An attack storyboard jumps from an exposed web app to domain-admin privileges without showing any credential or permission relationship. Which response is MOST appropriate for this finding?
- Revalidate the chain's component existence and required privilege conditions.
- Separate proven findings from unverified pivots in the attack path documentation.
- Exclude the controller and document the untested risk and safety reason.
- Examine dependencies, side effects and network destinations before controlled lab execution.
Explanation
Correct Answer
B:A plausible narrative is not a confirmed compromise sequence without observed intermediate evidence. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Revalidating the chain's component existence and required privilege conditions would not separate proven findings from unverified pivots in the attack path documentation.
C:Excluding the controller and documenting the untested risk and safety reason would not separate proven findings from unverified pivots in the attack path documentation.
D:Examining dependencies, side effects and network destinations would not separate proven findings from unverified pivots in the attack path documentation.
Question 30
During an approved security validation exercise, the following occurs: An authorized penetration test created a temporary administrator in the isolated lab but the team plans to close the project without removing the account. Which action BEST addresses this specific requirement?
- Restore both execution mechanisms and verify there are no lingering startup triggers.
- Retire the scoped test infrastructure and reconcile its resource and billing inventory.
- Preserve the required evidence and remove only approved test artifacts according to the restoration plan.
- Remove the tester-created identity and validate that its permissions and sessions are gone.
Explanation
Correct Answer
D:Test accounts left behind can become an unauthorized future access path. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Restoring both execution mechanisms and verifying there are no lingering startup triggers would not remove the tester-created identity and validate that its permissions and sessions are gone.
B:Retiring the scoped test infrastructure and reconciling its resource and billing inventory would not remove the tester-created identity and validate that its permissions and sessions are gone.
C:Preserving the required evidence and removing only approved test artifacts according to the restoration plan would not remove the tester-created identity and validate that its permissions and sessions are gone.
CompTIA PenTest+ (PT0-003) Practice Tests