Introducing Token-Hunter
Dec 20, 2019Greg Johnson

Summary
This post introduces Token-Hunter, a new tool developed by GitLab's Red Team to identify unintentionally leaked secrets (API tokens, usernames, passwords) in public GitLab assets such as issues, snippets, merge requests, and their discussions. It complements existing tools by focusing on these less-indexed public locales. The tool features proxying capabilities and employs request retries and dynamic page-size reduction for data gathering. Future plans include support for more asset types and improved output formatting.
More from the GitLab Secrets Manager trail
- GitLab Secrets Manager adds ESO, Terraform, API support
- Manage CI/CD credentials with GitLab Secrets Manager
- A leaked personal access token shouldn't expose every project its owner can reach. Fine-grained PATs scope each token’s permissions to the job.
- Solving complex challenges with GitLab Duo Workflow
- How to scan a full commit history to detect sensitive secrets