Question 1
Post-exploitation and Lateral MovementA tester added their own public key to the authorized_keys file of the existing backup user on a Linux host, creating no new account. Which cleanup action removes only what the tester added?
Show the answer
Correct answerC. Remove the tester's public key entry from authorized_keys and keep the account
AWhy not this: Deleting the private key on the tester's machine leaves the public key authorizing access on the host.
BWhy not this: The backup account belongs to the client; deleting it causes damage beyond the tester's changes.
CWhy this is right: Deleting only the tester's key line revokes the added access and leaves the client's account intact.
DWhy not this: A password reset does not invalidate an authorized SSH key, so key access would remain.
The injected key is a tester-created credential tied to an existing client account, so removing that entry revokes the access without harming the client's account. Resetting the password does not affect key-based login.