Vulnerability Discovery and Analysis

A developer committed a cloud access key and deleted it in the next commit. The tester must find it in the repository history and confirm it still works. Which approach fits best?

Show the answer

Correct answerA. Run TruffleHog on the Git history with credential verification enabled

AWhy this is right: TruffleHog scans past commits and can verify whether a found credential is still valid.

BWhy not this: Grype matches packages to known CVEs; it does not search commit history for secrets.

CWhy not this: Nikto tests a web server for known issues; it does not read repository history.

DWhy not this: OpenVAS scans network hosts for vulnerabilities; it does not inspect repository commits.

TruffleHog walks the full commit history, so a key removed later is still found, and it can test detected credentials against the provider to confirm they are live. Grype only matches packages to known CVEs and never looks for secrets.