Security Operations

A scanner finds a live database password in a repository's commit history. The developer already deleted the file from the latest commit. What should the security team do FIRST?

Show the answer

Correct answerD. Revoke and rotate the password

AWhy not this: A block list of the path does not invalidate a credential already in history and in any clones.

BWhy not this: HIDS monitors host changes and does not neutralize a credential that has already been exposed.

CWhy not this: The password remains in earlier commits and clones, so deleting the latest file leaves it exposed.

DWhy this is right: Rotating the credential makes the exposed value useless, whatever copies of the history exist.

Secrets scanning findings in history mean the credential is already exposed, and deleting the file from the latest commit leaves it in earlier commits and clones. The password must be revoked and rotated first; history cleanup comes afterward. A block list or HIDS does not make an exposed credential safe.