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.
Question 31
The customer asks the authorized assessor to evaluate this situation: An authorized lab appliance exposes its administration port with factory login credentials that remain unchanged. What is the MOST defensible next step?
- Record the default-credential control failure using a bounded test account and recommend credential rotation.
- Verify the endpoint identity before attributing exploitability to the internal service.
- Differentiate anonymous share enumeration from confirmed unauthorized file reads.
- Validate interface binding and approved network paths rather than assume one subnet boundary applies.
Explanation
Correct Answer
A:Unchanged vendor credentials create predictable administrative access without a sophisticated exploit. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Verifying the endpoint identity would not record the default-credential control failure using a bounded test account and recommend credential rotation.
C:Differentiate anonymous share enumeration from confirmed unauthorized file reads would not record the default-credential control failure using a bounded test account and recommend credential rotation.
D:Validating interface binding and approved network paths rather than assume one subnet boundary applies would not record the default-credential control failure using a bounded test account and recommend credential rotation.
Question 32
The test team is analyzing this evidence from a controlled environment: An assessment finds production administrators have broad standing access to every environment despite narrow job responsibilities. Which recommendation MOST directly fits this evidence?
- Integrate security review and repeatable validation into the software development lifecycle.
- Introduce scheduled access reviews and documented joiner-mover-leaver account procedures.
- Provide targeted social-engineering awareness training and reinforce reporting procedures.
- Apply least-privilege role-based access control and controlled privilege elevation.
Explanation
Correct Answer
D:Task-scoped permissions reduce consequences of compromised or misused administrator identities. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Integrating security review and repeatable validation into the software development lifecycle would not apply least-privilege role-based access control and controlled privilege elevation.
B:Introduce scheduled access reviews and documented joiner-mover-leaver account procedures would not apply least-privilege role-based access control and controlled privilege elevation.
C:Providing targeted social-engineering awareness training and reinforce reporting procedures would not apply least-privilege role-based access control and controlled privilege elevation.
Question 33
In a formally authorized penetration test, the team observes: A backend PDF service can fetch arbitrary URLs provided by users and is observed contacting its own internal metadata endpoint. Which response is MOST appropriate for this finding?
- Classify directory traversal and constrain resolved paths to approved storage roots.
- Assess local file inclusion controls and use an allowlisted template selector.
- Report remote file inclusion risk and recommend disabling external untrusted code inclusion.
- Identify server-side request forgery and restrict backend URL destinations and egress.
Explanation
Correct Answer
D:An application server making attacker-chosen requests can cross internal network trust boundaries. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Classifying directory traversal and constrain resolved paths to approved storage roots would not identify server-side request forgery and restrict backend URL destinations and egress.
B:Assessing local file inclusion controls and using an allowlisted template selector would not identify server-side request forgery and restrict backend URL destinations and egress.
C:Reporting remote file inclusion risk and recommending disabling external untrusted code inclusion would not identify server-side request forgery and restrict backend URL destinations and egress.
Question 34
During a customer-approved security assessment, the tester finds: A test workstation runs a service as SYSTEM while allowing ordinary users to modify its executable, but no escalation has been performed. Which action BEST addresses this specific requirement?
- Recommend permission hardening and plugin integrity verification for privileged execution paths.
- Document the observed kiosk escape and defer further privilege tests to an authorized lab.
- Report the writable privileged service path and recommend restricting file modification rights.
- Verify both service path parsing and effective write permissions before confirming an escalation path.
Explanation
Correct Answer
C:A privileged process that loads user-writable code creates a dangerous trust boundary even without executing a payload. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Recommending permission hardening and plugin integrity verification for privileged execution paths would not report the writable privileged service path and recommend restricting file modification rights.
B:Documenting the observed kiosk escape and deferring further privilege tests to an authorized lab would not report the writable privileged service path and recommend restricting file modification rights.
D:Verifying both service path parsing and effective write permissions would not report the writable privileged service path and recommend restricting file modification rights.
Question 35
A penetration-test report includes the following synthetic observation: A remediation retest checks only a blocked payload that now returns an error but does not assess the vulnerable workflow's legitimate behavior. What is the MOST defensible next step?
- Revalidate the actual defect against current configuration and vendor guidance.
- Repeat a safe authorized test using synthetic records and record principal, object and policy outcomes.
- Validate both safe negative tests and permitted normal business transactions after the fix.
- Document risk reduction from segmentation separately from software-level defect remediation.
Explanation
Correct Answer
C:Secure remediation should block misuse without silently breaking the authorized operation. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Revalidating the actual defect against current configuration and vendor guidance would not validate both safe negative tests and permitted normal business transactions after the fix.
B:Repeat a safe authorized test using synthetic records and record principal, object and policy outcomes would not validate both safe negative tests and permitted normal business transactions after the fix.
D:Documenting risk reduction from segmentation separately from software-level defect remediation would not validate both safe negative tests and permitted normal business transactions after the fix.
Question 36
Within an isolated training lab, the analyst identifies: A finance director receives a simulated message impersonating the chief executive and demanding urgent payment information. Which recommendation MOST directly fits this evidence?
- Identify whaling or executive impersonation risk and recommend approval verification training.
- Keep the smishing simulation limited to consented recipients and approved harmless destinations.
- Classify the scenario as vishing and reinforce independent identity validation procedures.
- Report training outcomes with context and privacy safeguards rather than unsupported disciplinary conclusions.
Explanation
Correct Answer
A:High-profile identity impersonation exploits authority and urgency rather than a software vulnerability. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Keeping the smishing simulation limited to consented recipients and approved harmless destinations would not identify whaling or executive impersonation risk and recommend approval verification training.
C:Classifying the scenario as vishing and reinforce independent identity validation procedures would not identify whaling or executive impersonation risk and recommend approval verification training.
D:Reporting training outcomes with context and privacy safeguards rather than unsupported disciplinary conclusions would not identify whaling or executive impersonation risk and recommend approval verification training.
Question 37
A penetration testing lead reviewing the approved scope learns that: A scanner flags a vulnerable package based on a banner, but the vendor may backport security fixes without incrementing the visible version. Which response is MOST appropriate for this finding?
- Reconcile plugin output against reproducible protocol evidence and current service settings.
- Verify the vendor's patch or package advisory before confirming the finding.
- Record evidence of information disclosure and score its actual exploit-enabling significance.
- Correlate image-digest inventory with the actually running deployment before claiming exposure.
Explanation
Correct Answer
B:Version-only matching can produce false positives when security fixes are backported into older version strings. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Reconciling plugin output against reproducible protocol evidence and current service settings would not verify the vendor's patch or package advisory.
C:Recording evidence of information disclosure and score its actual exploit-enabling significance would not verify the vendor's patch or package advisory.
D:Correlating image-digest inventory with the actually running deployment would not verify the vendor's patch or package advisory.
Question 38
During an approved security validation exercise, the following occurs: An engagement authorizes intrusive checks only overnight, but testers discover a promising service weakness after the permitted window closes. Which action BEST addresses this specific requirement?
- Stop the affected testing activity and invoke the agreed safety escalation contact.
- Follow the signed authorization and request formally approved changes before destructive validation.
- Specify escalation, approval authority and rollback conditions before intrusive testing begins.
- Pause intrusive activity and obtain approval for an additional testing window.
Explanation
Correct Answer
D:A technical opportunity cannot supersede the time boundaries agreed in the rules of engagement. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Patient-facing service disruption is a predefined safety threshold requiring containment and communication before more testing; a technical opportunity cannot supersede the time boundaries agreed in the rules of engagement.
B:Informal requests cannot replace the documented legal limits of a penetration test; a technical opportunity cannot supersede the time boundaries agreed in the rules of engagement.
C:Rules of engagement must establish decision rights for changes that can affect service availability; a technical opportunity cannot supersede the time boundaries agreed in the rules of engagement.
Question 39
The customer asks the authorized assessor to evaluate this situation: An approved web assessment confirms that unsanitized user input is concatenated into a database query. What is the MOST defensible next step?
- Recommend phishing-resistant multifactor authentication and suitable conditional-access restrictions.
- Recommend managed secret custody, access review and prompt credential rotation.
- Recommend parameterized queries and safe server-side input handling as the primary correction.
- Recommend an approved upgrade path and compensating controls until the vulnerable component is replaced.
Explanation
Correct Answer
C:Separating query structure from user-controlled data prevents injection regardless of superficial input filtering. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Recommending phishing-resistant multifactor authentication and suitable conditional-access restrictions would not recommend parameterized queries and safe server-side input handling as the primary correction.
B:Recommending managed secret custody, access review and prompting credential rotation would not recommend parameterized queries and safe server-side input handling as the primary correction.
D:Recommending an approved upgrade path and compensating controls until the vulnerable component is replaced would not recommend parameterized queries and safe server-side input handling as the primary correction.
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.
CompTIA PenTest+ (PT0-003) Practice Tests