Threats, Vulnerabilities, and Attacks
A developer pushed a cloud access key to a public repository, then removed the file in a new commit ten minutes later. What should security do NEXT?
Show the answer
Correct answerC. Revoke the key and issue a replacement
AWhy not this: An ignore list only affects future commits and does not invalidate the exposed key.
BWhy not this: Renaming does not remove the history, and anyone who already copied the key keeps it.
CWhy this is right: The key remains in history and may have been scraped, so only revocation and replacement removes its value.
DWhy not this: The old commit still contains the key, so deleting the file does not undo the exposure.
The key stays in the repository's commit history and may already have been copied or scraped, so it must be treated as compromised. Revoking and replacing it is the only step that removes the attacker's access.