nerdexam
CompTIA

PT0-002 · Question #214

A penetration tester was able to compromise a server and escalate privileges. Which of the following should the tester perform AFTER concluding the activities on the specified target? (Choose two.)

The correct answer is D. Remove any tools or scripts that were installed. E. Delete any created credentials. After a penetration tester concludes activities on a compromised server, they must clean up any artifacts left behind to prevent unauthorized access or detection.

Post-exploitation and lateral movement

Question

A penetration tester was able to compromise a server and escalate privileges. Which of the following should the tester perform AFTER concluding the activities on the specified target? (Choose two.)

Options

  • ARemove the logs from the server.
  • BRestore the server backup.
  • CDisable the running services.
  • DRemove any tools or scripts that were installed.
  • EDelete any created credentials.
  • FReboot the target server.

How the community answered

(30 responses)
  • A
    10% (3)
  • B
    3% (1)
  • C
    7% (2)
  • D
    80% (24)

Why each option

After a penetration tester concludes activities on a compromised server, they must clean up any artifacts left behind to prevent unauthorized access or detection.

ARemove the logs from the server.

Removing logs is a malicious act that would hide evidence of the penetration test from the client, hindering their ability to identify and remediate vulnerabilities.

BRestore the server backup.

Restoring a server backup is a recovery action typically performed by the client's IT operations, not a post-test cleanup activity by the penetration tester.

CDisable the running services.

Disabling running services would disrupt normal server operations, which is not part of a standard post-exploitation cleanup and could cause service outages.

DRemove any tools or scripts that were installed.Correct

Removing any tools or scripts installed ensures that no lingering malicious software or backdoors remain on the system after the test, maintaining the system's integrity.

EDelete any created credentials.Correct

Deleting any created credentials, such as user accounts or API keys, eliminates potential persistence mechanisms and unauthorized access points that could be exploited post-assessment.

FReboot the target server.

Rebooting the target server would disrupt service availability and is not a necessary or appropriate post-exploitation cleanup step for artifact removal.

Concept tested: Penetration testing post-exploitation cleanup

Topics

#Post-exploitation cleanup#Penetration testing methodology#Footprint removal#Ethical hacking

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice