Question 430
An authorized penetration test created a temporary administrator in the isolated lab but the team plans to close the project without removing the account. A tester installed a service and scheduled task for an approved lab demonstration, then deleted only the service executable. What is the most appropriate plan for this situation?
- 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.
- 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; restore both execution mechanisms and verify there are no lingering startup triggers.
- Retire the scoped test infrastructure and reconcile its resource and billing inventory; restore both execution mechanisms and verify there are no lingering startup triggers.
Explanation
Correct Answer
C:For requirement (1), Test accounts left behind can become an unauthorized future access path. For requirement (2), Removal of one payload does not reverse the configuration that could recreate or launch it.
Incorrect Answers
A:Preserving the required evidence and removing only approved test artifacts according to the restoration plan would not restore both execution mechanisms and verify there are no lingering startup triggers. Removal of one payload does not reverse the configuration that could recreate or launch it.
B:Test accounts left behind can become an unauthorized future access path. Preserving the required evidence and removing only approved test artifacts according to the restoration plan does not restore both execution mechanisms and verify there are no lingering startup triggers.
D: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. Test accounts left behind can become an unauthorized future access path.
Question 431
An authorized lab appliance exposes its administration port with factory login credentials that remain unchanged. A network service advertises a vulnerable release, but an administrator says an edge proxy is the actual endpoint accepting connections. Which course of action addresses the stated issues?
- 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; 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; verify the endpoint identity before attributing exploitability to the internal service.
- Differentiate anonymous share enumeration from confirmed unauthorized file reads; verify the endpoint identity before attributing exploitability to the internal service.
Explanation
Correct Answer
C:For requirement (1), Unchanged vendor credentials create predictable administrative access without a sophisticated exploit. For requirement (2), Intermediary infrastructure can make banners and target assumptions unreliable.
Incorrect Answers
A:Validating interface binding and approved network paths rather than assume one subnet boundary applies would not verify the endpoint identity before attributing exploitability to the internal service. Intermediary infrastructure can make banners and target assumptions unreliable.
B:Unchanged vendor credentials create predictable administrative access without a sophisticated exploit. Validating interface binding and approved network paths rather than assume one subnet boundary applies does not verify the endpoint identity before attributing exploitability to the internal service.
D: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. Unchanged vendor credentials create predictable administrative access without a sophisticated exploit.
Question 432
An assessment finds production administrators have broad standing access to every environment despite narrow job responsibilities. Multiple production deployments skip peer review and introduce previously known security flaws. Which response best addresses these needs?
- 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; Integrate security review and repeatable validation into the software development lifecycle.
- 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; Provide targeted social-engineering awareness training and reinforce reporting procedures.
Explanation
Correct Answer
B:For requirement (1), Task-scoped permissions reduce consequences of compromised or misused administrator identities. For requirement (2), Development process controls prevent recurring weaknesses more effectively than reactive patching alone.
Incorrect Answers
A:Task-scoped permissions reduce consequences of compromised or misused administrator identities. Providing targeted social-engineering awareness training and reinforce reporting procedures does not integrate security review and repeatable validation into the software development lifecycle.
C:Introduce scheduled access reviews and documented joiner-mover-leaver account procedures would not apply least-privilege role-based access control and controlled privilege elevation. Task-scoped permissions reduce consequences of compromised or misused administrator identities.
D:Providing targeted social-engineering awareness training and reinforce reporting procedures would not integrate security review and repeatable validation into the software development lifecycle. Development process controls prevent recurring weaknesses more effectively than reactive patching alone.
Question 433
A backend PDF service can fetch arbitrary URLs provided by users and is observed contacting its own internal metadata endpoint. A file download handler joins a client-supplied filename to a local directory without checking whether the normalized path escapes that directory. What is the most appropriate plan for this situation?
- Identify server-side request forgery and restrict backend URL destinations and egress; report remote file inclusion risk and recommend disabling external untrusted code inclusion.
- 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; Classify directory traversal and constrain resolved paths to approved storage roots.
- Assess local file inclusion controls and use an allowlisted template selector; Classify directory traversal and constrain resolved paths to approved storage roots.
Explanation
Correct Answer
C:For requirement (1), An application server making attacker-chosen requests can cross internal network trust boundaries. For requirement (2), Path normalization flaws can redirect file operations outside the intended document directory.
Incorrect Answers
A:Reporting remote file inclusion risk and recommending disabling external untrusted code inclusion would not classify directory traversal and constrain resolved paths to approved storage roots. Path normalization flaws can redirect file operations outside the intended document directory.
B:An application server making attacker-chosen requests can cross internal network trust boundaries. Reporting remote file inclusion risk and recommending disabling external untrusted code inclusion does not classify directory traversal and constrain resolved paths to approved storage roots.
D: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. An application server making attacker-chosen requests can cross internal network trust boundaries.
Question 434
A test workstation runs a service as SYSTEM while allowing ordinary users to modify its executable, but no escalation has been performed. A Windows service path contains spaces and lacks quotation marks, but an analyst ignores whether ordinary users can write to any candidate directory. Which course of action addresses the stated issues?
- 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; 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.
- 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.
Explanation
Correct Answer
C:For requirement (1), A privileged process that loads user-writable code creates a dangerous trust boundary even without executing a payload. For requirement (2), An unquoted path is exploitable only when the necessary path and privilege conditions coexist.
Incorrect Answers
A:Documenting the observed kiosk escape and deferring further privilege tests to an authorized lab would not verify both service path parsing and effective write permissions before confirming an escalation path. An unquoted path is exploitable only when the necessary path and privilege conditions coexist.
B:A privileged process that loads user-writable code creates a dangerous trust boundary even without executing a payload. Documenting the observed kiosk escape and deferring further privilege tests to an authorized lab does not verify both service path parsing and effective write permissions before confirming an escalation path.
D: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. A privileged process that loads user-writable code creates a dangerous trust boundary even without executing a payload.
Question 435
A remediation retest checks only a blocked payload that now returns an error but does not assess the vulnerable workflow's legitimate behavior. A firewall change hides an old service from an outside scanner, while a permitted internal scanner still observes the same flawed code. Which response best addresses these needs?
- 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; 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.
- Revalidate the actual defect against current configuration and vendor guidance; document risk reduction from segmentation separately from software-level defect remediation.
Explanation
Correct Answer
C:For requirement (1), Secure remediation should block misuse without silently breaking the authorized operation. For requirement (2), Reduced reachability is a compensating control rather than proof that the underlying vulnerability was patched.
Incorrect Answers
A:Repeat a safe authorized test using synthetic records and record principal, object and policy outcomes would not document risk reduction from segmentation separately from software-level defect remediation. Reduced reachability is a compensating control rather than proof that the underlying vulnerability was patched.
B:Secure remediation should block misuse without silently breaking the authorized operation. Repeat a safe authorized test using synthetic records and record principal, object and policy outcomes does not document risk reduction from segmentation separately from software-level defect remediation.
D: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. Secure remediation should block misuse without silently breaking the authorized operation.
Question 436
A finance director receives a simulated message impersonating the chief executive and demanding urgent payment information. An authorized exercise sends a fraudulent-looking SMS to a dedicated test phone, while staff propose sending the same link to unrelated personal numbers. What is the most appropriate plan for this situation?
- 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; report training outcomes with context and privacy safeguards rather than unsupported disciplinary conclusions.
- 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; keep the smishing simulation limited to consented recipients and approved harmless destinations.
Explanation
Correct Answer
C:For requirement (1), High-profile identity impersonation exploits authority and urgency rather than a software vulnerability. For requirement (2), Social engineering tests require specific recipient authorization and should not expose outsiders to deceptive messages.
Incorrect Answers
A:Reporting training outcomes with context and privacy safeguards rather than unsupported disciplinary conclusions would not keep the smishing simulation limited to consented recipients and approved harmless destinations. Social engineering tests require specific recipient authorization and should not expose outsiders to deceptive messages.
B:High-profile identity impersonation exploits authority and urgency rather than a software vulnerability. Reporting training outcomes with context and privacy safeguards rather than unsupported disciplinary conclusions does not keep the smishing simulation limited to consented recipients and approved harmless destinations.
D:Classifying the scenario as vishing and reinforce independent identity validation procedures would not identify whaling or executive impersonation risk and recommend approval verification training. High-profile identity impersonation exploits authority and urgency rather than a software vulnerability.
Question 437
A scanner flags a vulnerable package based on a banner, but the vendor may backport security fixes without incrementing the visible version. An assessor finds a publicly accessible status endpoint that leaks precise software details but no sensitive customer information. 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; 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; Record evidence of information disclosure and score its actual exploit-enabling significance.
Explanation
Correct Answer
C:For requirement (1), Version-only matching can produce false positives when security fixes are backported into older version strings. For requirement (2), Exposed metadata can aid attacks without being equivalent to direct unauthorized access.
Incorrect Answers
A:Reconciling plugin output against reproducible protocol evidence and current service settings would not record evidence of information disclosure and score its actual exploit-enabling significance. Exposed metadata can aid attacks without being equivalent to direct unauthorized access.
B:Version-only matching can produce false positives when security fixes are backported into older version strings. Reconciling plugin output against reproducible protocol evidence and current service settings does not record evidence of information disclosure and score its actual exploit-enabling significance. Exposed metadata can aid attacks without being equivalent to direct unauthorized access.
D:Correlating image-digest inventory with the actually running deployment would not verify the vendor's patch or package advisory before confirming the finding. Version-only matching can produce false positives when security fixes are backported into older version strings.
Question 438
An engagement authorizes intrusive checks only overnight, but testers discover a promising service weakness after the permitted window closes. A scan causes unexpected latency in a clinical scheduling system that was approved only for non-disruptive assessment. 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; stop the affected testing activity and invoke the agreed safety escalation contact.
- 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; Specify escalation, approval authority and rollback conditions before intrusive testing begins.
Explanation
Correct Answer
B:For requirement (1), A technical opportunity cannot supersede the time boundaries agreed in the rules of engagement. For requirement (2), Patient-facing service disruption is a predefined safety threshold requiring containment and communication before more testing.
Incorrect Answers
A:A technical opportunity cannot supersede the time boundaries agreed in the rules of engagement. Specifying escalation, approval authority and rollback conditions does not stop the affected testing activity and invoke the agreed safety escalation contact. Patient-facing service disruption is a predefined safety threshold requiring containment and communication before more testing.
C:Follow the signed authorization and request formally approved changes would not pause intrusive activity and obtain approval for an additional testing window. A technical opportunity cannot supersede the time boundaries agreed in the rules of engagement.
D:Specifying escalation, approval authority and rollback conditions would not stop the affected testing activity and invoke the agreed safety escalation contact. Patient-facing service disruption is a predefined safety threshold requiring containment and communication before more testing.
Question 439
An approved web assessment confirms that unsanitized user input is concatenated into a database query. A public service exposes an end-of-life framework with a vendor-supplied supported replacement available. What is the most appropriate plan for this situation?
- 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.
- 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 managed secret custody, access review and prompt credential rotation.
Explanation
Correct Answer
B:For requirement (1), Separating query structure from user-controlled data prevents injection regardless of superficial input filtering. For requirement (2), Unsupported or vulnerable software generally requires lifecycle remediation rather than indefinite scanner exceptions.
Incorrect Answers
A:Separating query structure from user-controlled data prevents injection regardless of superficial input filtering. Recommending managed secret custody, access review and prompting credential rotation does not recommend an approved upgrade path and compensating controls until the vulnerable component is replaced.
C: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. Separating query structure from user-controlled data prevents injection regardless of superficial input filtering.
D:Recommending managed secret custody, access review and prompting credential rotation would not recommend an approved upgrade path and compensating controls until the vulnerable component is replaced. Unsupported or vulnerable software generally requires lifecycle remediation rather than indefinite scanner exceptions.
Question 440
A lab monitoring report shows a compromised test host initiating an outbound command channel after each reboot. An approved server has an unexplained inbound listener that accepts a command connection from the training subnet. 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 possible rootkit or binary tampering using trusted offline validation.
- 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 whether a bind-style remote shell or legitimate maintenance service owns the listener.
Explanation
Correct Answer
D:For requirement (1), A repeated outbound channel can sustain access after a session ends and requires explicit cleanup. For requirement (2), A listening port alone is ambiguous; process ownership and authorization determine its significance.
Incorrect Answers
A: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. A repeated outbound channel can sustain access after a session ends and requires explicit cleanup.
B: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. A listening port alone is ambiguous; process ownership and authorization determine its significance.
C:A repeated outbound channel can sustain access after a session ends and requires explicit cleanup. Investigating possible rootkit or binary tampering using trusted offline validation does not investigate whether a bind-style remote shell or legitimate maintenance service owns the listener.
CompTIA PenTest+ (PT0-003) Practice Tests