Attacks and Exploits
A tester has cloned a client's private Git repository and suspects developers committed API keys that were later deleted. Which tool should the tester use to search the full commit history for them?
Show the answer
Correct answerA. TruffleHog
AWhy this is right: TruffleHog searches every commit in a Git history for secrets such as API keys, even ones later removed.
BWhy not this: WPScan enumerates WordPress plugins, themes and users; it does not search code repositories.
CWhy not this: Gobuster brute-forces directories, files and DNS names on a target; it does not inspect repository contents.
DWhy not this: sqlmap automates SQL injection against web parameters; it does not look for committed credentials.
TruffleHog scans Git repositories, including past commits and branches, for high-entropy strings and known secret patterns, so deleted keys still turn up. Gobuster only brute-forces web paths and DNS names and does not read repository history.