Question 730
A temporary test DNS record and cloud instance remain active after the engagement even though they no longer support evidence collection. An engineer proposes erasing all security logs to hide the penetration test's benign trial activity from auditors. What is the most appropriate plan for this situation?
- Retire the scoped test infrastructure and reconcile its resource and billing inventory; restore both execution mechanisms and verify there are no lingering startup triggers.
- Remove the tester-created identity and validate that its permissions and sessions are gone; 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; preserve the required evidence and remove only approved test artifacts according to the restoration plan.
Explanation
Correct Answer
C:For requirement (1), Short-lived test resources should have an accountable decommissioning process to avoid abandoned exposure. For requirement (2), Cleanup should reverse changes without destroying audit trails needed for accountability.
Incorrect Answers
A:Cleanup should reverse changes without destroying audit trails needed for accountability.
B:Short-lived test resources should have an accountable decommissioning process to avoid abandoned exposure. Restoring both execution mechanisms and verifying there are no lingering startup triggers does not preserve the required evidence and remove only approved test artifacts according to the restoration plan.
D:Short-lived test resources should have an accountable decommissioning process to avoid abandoned exposure.
Question 731
An internal test shows file shares list names anonymously, but the tester has not demonstrated access to their contents. A tester detects a listening service on a multihomed server, and the owner believes it is reachable only from the administrator VLAN. Which course of action addresses the stated issues?
- 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.
- Record the default-credential control failure using a bounded test account and recommend credential rotation; validate interface binding and approved network paths rather than assume one subnet boundary applies.
- Differentiate anonymous share enumeration from confirmed unauthorized file reads; verify the endpoint identity before attributing exploitability to the internal service.
Explanation
Correct Answer
B:For requirement (1), Directory listing evidence does not establish that protected data can be opened or modified. For requirement (2), Hosts with multiple interfaces can expose services through unexpected trust zones.
Incorrect Answers
A:Directory listing evidence does not establish that protected data can be opened or modified. Verifying the endpoint identity does not validate interface binding and approved network paths rather than assume one subnet boundary applies. Hosts with multiple interfaces can expose services through unexpected trust zones.
C:Directory listing evidence does not establish that protected data can be opened or modified.
D:Hosts with multiple interfaces can expose services through unexpected trust zones.
Question 732
Temporary contractor accounts remain active months after project completion because offboarding records are not reviewed. Staff repeatedly disclose credentials to convincing phone calls, and prior exercises were never followed by education. Which response best addresses these needs?
- Introduce scheduled access reviews and documented joiner-mover-leaver account procedures; Integrate security review and repeatable validation into the software development lifecycle.
- Apply least-privilege role-based access control and controlled privilege elevation; 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; Provide targeted social-engineering awareness training and reinforce reporting procedures.
Explanation
Correct Answer
C:For requirement (1), Administrative lifecycle governance limits stale access even when each individual account has strong authentication. For requirement (2), Awareness and clear reporting workflows reduce repeated human-targeted attack exposure.
Incorrect Answers
A:Awareness and clear reporting workflows reduce repeated human-targeted attack exposure.
B:Administrative lifecycle governance limits stale access even when each individual account has strong authentication. Integrating security review and repeatable validation into the software development lifecycle does not provide targeted social-engineering awareness training and reinforce reporting procedures.
D:Administrative lifecycle governance limits stale access even when each individual account has strong authentication.
Question 733
A web application reads a configurable template file from a local path and accepts a user-controlled include name. An application accepts a remote URL as its server-side code module source and the owner assumes TLS means the code is trusted. What is the most appropriate plan for this situation?
- Assess local file inclusion controls and use an allowlisted template selector; Classify directory traversal and constrain resolved paths to approved storage roots.
- Identify server-side request forgery and restrict backend URL destinations and egress; 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; report remote file inclusion risk and recommend disabling external untrusted code inclusion.
Explanation
Correct Answer
C:For requirement (1), An untrusted include path may expose files that are not authorized web content. For requirement (2), Encrypted transport does not establish that remotely fetched code is authorized for execution.
Incorrect Answers
A:Encrypted transport does not establish that remotely fetched code is authorized for execution.
B:An untrusted include path may expose files that are not authorized web content. Classifying directory traversal and constrain resolved paths to approved storage roots does not report remote file inclusion risk and recommend disabling external untrusted code inclusion. Encrypted transport does not establish that remotely fetched code is authorized for execution.
D:An untrusted include path may expose files that are not authorized web content.
Question 734
A Linux process runs with elevated privileges and loads a plugin directory writable by unprivileged users in the lab. A tester discovers a kiosk app allows users to open a system shell, but the scope excludes bypassing physical access controls. Which course of action addresses the stated issues?
- 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; document the observed kiosk escape and defer further privilege tests to an authorized lab.
- Recommend permission hardening and plugin integrity verification for privileged execution paths; verify both service path parsing and effective write permissions before confirming an escalation path.
- 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
A:For requirement (1), User-controlled libraries introduced into elevated processes can cross an unintended privilege boundary. For requirement (2), A confirmed escape surface need not be pursued into out-of-scope operating-system changes.
Incorrect Answers
B:User-controlled libraries introduced into elevated processes can cross an unintended privilege boundary.
C:A confirmed escape surface need not be pursued into out-of-scope operating-system changes.
D:User-controlled libraries introduced into elevated processes can cross an unintended privilege boundary. Verifying both service path parsing and effective write permissions does not document the observed kiosk escape and defer further privilege tests to an authorized lab.
Question 735
A team removes a finding because its scanner plugin ID changed between software releases, without examining the current underlying condition. An owner disputes a sensitive-data exposure finding because the report lacks the approved proof object identifier and exact principal scope. Which response best addresses these needs?
- 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; Repeat a safe authorized test using synthetic records and record principal, object and policy outcomes.
- Revalidate the actual defect against current configuration and vendor guidance; document risk reduction from segmentation separately from software-level defect remediation.
- 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
A:For requirement (1), A renamed or retired scanner check does not necessarily mean the security weakness has disappeared. For requirement (2), Repeatable least-data evidence supports independent verification without leaking real customer records.
Incorrect Answers
B:A renamed or retired scanner check does not necessarily mean the security weakness has disappeared.
C:Repeatable least-data evidence supports independent verification without leaking real customer records.
D:A renamed or retired scanner check does not necessarily mean the security weakness has disappeared. Documenting risk reduction from segmentation separately from software-level defect remediation does not repeat a safe authorized test using synthetic records and record principal, object and policy outcomes.
Question 736
A helpdesk employee receives a voice call asking for a password reset without completing caller verification. A company uses a simulated phishing tool and wants to report individual employees as negligent based only on one link click. What is the most appropriate plan for this situation?
- Classify the scenario as vishing and reinforce independent identity validation procedures; report training outcomes with context and privacy safeguards rather than unsupported disciplinary conclusions.
- Identify whaling or executive impersonation risk and recommend approval verification training; report training outcomes with context and privacy safeguards rather than unsupported disciplinary conclusions.
- Classify the scenario as vishing and reinforce independent identity validation procedures; keep the smishing simulation limited to consented recipients and approved harmless destinations.
- Identify whaling or executive impersonation risk and recommend approval verification training; keep the smishing simulation limited to consented recipients and approved harmless destinations.
Explanation
Correct Answer
A:For requirement (1), Telephone channel impersonation can exploit support workflows without requiring network intrusion. For requirement (2), Simulation results are education signals and do not directly prove a person's intent or competence.
Incorrect Answers
B:Telephone channel impersonation can exploit support workflows without requiring network intrusion.
C:Simulation results are education signals and do not directly prove a person's intent or competence.
D:Telephone channel impersonation can exploit support workflows without requiring network intrusion. Keeping the smishing simulation limited to consented recipients and approved harmless destinations does not report training outcomes with context and privacy safeguards rather than unsupported disciplinary conclusions.
Question 737
A scanner shows a container uses an old base image, yet the currently deployed workload pulls a different digest. A host reports an unsafe TLS cipher by a scan plugin, while manual handshake tests negotiate only modern suites. Which course of action addresses the stated issues?
- Verify the vendor's patch or package advisory before confirming the finding; Reconcile plugin output against reproducible protocol evidence and current service settings.
- Correlate image-digest inventory with the actually running deployment before claiming exposure; Record evidence of information disclosure and score its actual exploit-enabling significance.
- 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; Reconcile plugin output against reproducible protocol evidence and current service settings.
Explanation
Correct Answer
D:For requirement (1), Registry findings matter only when mapped to deployed images or approved release artifacts. For requirement (2), Tool findings can be stale or misinterpreted, and confirmation requires observed negotiated behavior.
Incorrect Answers
A:Registry findings matter only when mapped to deployed images or approved release artifacts.
B:Tool findings can be stale or misinterpreted, and confirmation requires observed negotiated behavior.
C:Registry findings matter only when mapped to deployed images or approved release artifacts. Recording evidence of information disclosure and score its actual exploit-enabling significance does not reconcile plugin output against reproducible protocol evidence and current service settings. Tool findings can be stale or misinterpreted, and confirmation requires observed negotiated behavior.
Question 738
A tester receives an email from a business manager requesting destructive proof even though the signed engagement prohibits destructive tests. The assessment involves an internet-facing gateway and no agreement identifies who may authorize a temporary firewall exception. Which response best addresses these needs?
- 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; Specify escalation, approval authority and rollback conditions before intrusive testing begins.
- Follow the signed authorization and request formally approved changes before destructive validation; stop the affected testing activity and invoke the agreed safety escalation contact.
- Pause intrusive activity and obtain approval for an additional testing window; stop the affected testing activity and invoke the agreed safety escalation contact.
Explanation
Correct Answer
A:For requirement (1), Informal requests cannot replace the documented legal limits of a penetration test. For requirement (2), Rules of engagement must establish decision rights for changes that can affect service availability.
Incorrect Answers
B:Informal requests cannot replace the documented legal limits of a penetration test.
C:Rules of engagement must establish decision rights for changes that can affect service availability.
D:Informal requests cannot replace the documented legal limits of a penetration test. Stopping the affected testing activity and invoke the agreed safety escalation contact does not specify escalation, approval authority and rollback conditions before intrusive testing begins.
Question 739
A critical administration portal accepts only a password even after authorized testing demonstrates stolen-password replay risk. A critical application uses a private encryption key stored in the source repository without rotation controls. What is the most appropriate plan for this situation?
- Recommend parameterized queries and safe server-side input handling as the primary correction; Recommend managed secret custody, access review and prompt credential rotation.
- Recommend phishing-resistant multifactor authentication and suitable conditional-access restrictions; Recommend an approved upgrade path and compensating controls until the vulnerable component is replaced.
- 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.
- Recommend phishing-resistant multifactor authentication and suitable conditional-access restrictions; Recommend managed secret custody, access review and prompt credential rotation.
Explanation
Correct Answer
D:For requirement (1), Strong independent authentication reduces the value of a disclosed password at the protected service. For requirement (2), A key embedded in broadly copied source material cannot be reliably protected by deleting one repository line.
Incorrect Answers
A:Strong independent authentication reduces the value of a disclosed password at the protected service.
B:A key embedded in broadly copied source material cannot be reliably protected by deleting one repository line.
C:Strong independent authentication reduces the value of a disclosed password at the protected service. Recommending an approved upgrade path and compensating controls until the vulnerable component is replaced does not recommend managed secret custody, access review and prompt credential rotation.
Question 740
A web server directory contains a newly created executable script unrelated to approved deployment artifacts. A system file integrity monitor sees core executables modified but the host reports normal service status. Which course of action addresses the stated issues?
- Treat the artifact as a possible web shell and preserve minimal evidence for controlled removal; investigate whether a bind-style remote shell or legitimate maintenance service owns the listener.
- 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.
- Identify the persistent outbound callback behavior and recommend removing the authorized test implant; investigate possible rootkit or binary tampering using trusted offline validation.
Explanation
Correct Answer
C:For requirement (1), Server-side scripts can provide ongoing application-context access when placed in writable web paths. For requirement (2), Operating-system-level modification can hide malicious persistence from ordinary on-host tools.
Incorrect Answers
A:Operating-system-level modification can hide malicious persistence from ordinary on-host tools.
B:Server-side scripts can provide ongoing application-context access when placed in writable web paths. Investigating whether a bind-style remote shell or legitimate maintenance service owns the listener does not investigate possible rootkit or binary tampering using trusted offline validation.
D:Server-side scripts can provide ongoing application-context access when placed in writable web paths.
CompTIA PenTest+ (PT0-003) Practice Tests