Reconnaissance and Enumeration
A tester finds a client's public repository in which a developer removed a cloud access key in a later commit. What should the tester do to recover the key?
Show the answer
Correct answerD. Scan the full commit history for secrets
AWhy not this: Password dumps hold breached credentials, not keys committed to a repository.
BWhy not this: Cached pages show web content, not repository commits or their history.
CWhy not this: Current files no longer contain the deleted key, so this scan would miss it.
DWhy this is right: Deleted secrets remain in earlier commits, so scanning all history finds the key.
Version control keeps every earlier commit, so a secret deleted later is still in the history. A secrets scan of the full history recovers it. Scanning only current files misses it because the key is no longer there.