Security Operations

A scanner finds a live cloud access key in a private repository's commit history from three months ago. The current code no longer contains it. What should the team do FIRST?

Show the answer

Correct answerB. Revoke the key and reissue it from a secrets manager

AWhy not this: Cleaning history helps, but existing clones, forks and backups keep the key, so it stays usable until revoked.

BWhy this is right: Revoking invalidates every copy of the exposed key, and a secrets manager keeps the replacement out of code.

CWhy not this: Fewer people with access does not undo exposure that has already happened; the key still works.

DWhy not this: Encryption at rest protects stored data, not a credential already readable by anyone with repository access.

A secret that has been committed must be treated as compromised, because clones and backups may still hold it. Revoking it and issuing a replacement closes the exposure. Purging history is worthwhile later, but it cannot recall copies that already exist.