QuestionQ87

VerifiedSecurity Engineering

A security analyst is reviewing the following code in a public repository for potential security concerns:

Question Image

Which of the following should the security analyst recommend first to remediate the vulnerability?

Explanation

A hard-coded access token exposed in a public repository should be revoked or rotated immediately, because removing the code does not prevent use of copies that may already have been obtained. GitHub guidance likewise identifies revoking or rotating an exposed secret as the first step.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!