For a tool for detecting secrets in code, the first results are yelp/detect-secrets, dxa4481/trufflehog (TruffleHog is a secret scanning tool that thoroughly covers git history scanning, credential verification for false positive reduction, and CI/pre-commit integrations, making it a comprehensive fit for detecting leaked credentials in source code) and trufflesecurity/trufflehog. gitleaks/gitleaks and zricethezav/gitleaks round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
Automated security tools that scan source code repositories to identify and prevent exposed sensitive credentials.
detect-secrets is a modular secret scanning tool that identifies hard-coded credentials and sensitive information in source code. It combines multiple detection strategies—regular expression pattern matching, Shannon entropy calculation, and a machine learning classifier—to find potential secrets, and uses a baseline-driven delta analysis to distinguish newly introduced secrets from pre-existing ones, reducing noise from legacy credentials. The tool integrates directly into development workflows through a git pre-commit hook that blocks commits introducing unbaselined secrets, and can be inco
yelp/detect-secrets is a modular secret scanning tool that uses pattern matching, entropy analysis, and a machine learning classifier to find credentials, with git history scanning, pre-commit hooks, baseline-driven noise reduction, and support for custom rules — directly matching every key feature of this search.
TruffleHog is a secret scanning tool designed to identify leaked credentials and API keys across version control systems, cloud storage, and filesystems. It functions as a git secret detector that enumerates hidden commits and a cloud storage security auditor for inspecting container images and storage buckets. The project is distinguished by a credential verification engine that tests discovered secrets against service APIs to confirm they are active, which eliminates false positive alerts. It further analyzes these verified credentials to determine the specific access levels and resources t
TruffleHog is a secret scanning tool that thoroughly covers git history scanning, credential verification for false positive reduction, and CI/pre-commit integrations, making it a comprehensive fit for detecting leaked credentials in source code.
Trufflehog is a security tool designed to continuously monitor code repositories and cloud environments to detect, verify, and remediate exposed sensitive credentials and API keys. It functions as a comprehensive secret scanning engine that integrates directly into deployment pipelines and version control systems to intercept sensitive data before it is committed or pushed. By utilizing read-only operations and volatile memory processing, the system ensures that discovered credentials are never stored persistently, maintaining strict data privacy throughout the scanning lifecycle. The platfor
Trufflehog is a purpose-built secret scanning engine that detects credentials, API keys, and sensitive data in git repositories and cloud environments, with deep git history scanning, pre-commit hooks, and CI pipeline integration — exactly the kind of comprehensive tool this search is looking for.
Gitleaks is a security scanning engine designed to identify hardcoded credentials, API keys, and other sensitive information within version control systems and local file structures. It functions as a static analysis tool that automates the detection of secrets, helping to prevent the accidental exposure of sensitive data during the development lifecycle. The tool distinguishes itself through its ability to perform deep forensic analysis of git history, allowing users to audit entire project timelines or enforce security gates within continuous integration pipelines. It supports complex detec
Gitleaks is a dedicated, battle-tested secret scanner built for git history analysis and CI integration, covering the full workflow of detection, custom rules, and reporting that this search calls for.
Gitleaks is a static analysis security tool and secret detection engine designed to find hardcoded passwords, API keys, and authentication tokens. It functions as a Git secret scanner that analyzes both local file systems and Git commit history to prevent credential leaks. The tool distinguishes itself through a decoding pipeline that transforms base64 and hex strings into plaintext to find obfuscated secrets. It further reduces false positives using proximity-based validation and fingerprint-based suppression to filter out known or baseline findings. The system covers a broad range of detec
Gitleaks is a purpose-built Git secret scanner that detects hardcoded passwords, API keys, and tokens across file systems and commit history, with pattern-based detection, entropy analysis, custom rules, false-positive suppression, and CI integration — squarely meeting the request.
Detect and validate 500+ types of hardcoded secrets with advanced checks. Use it as a pre-commit hook, GitHub Action, or CLI for proactive secret detection and security.
ggshield is a command-line tool that scans code and git history for 500+ types of hardcoded secrets, supports pre-commit hooks and CI integration, and validates findings to reduce false positives—exactly the kind of open‑source secret detector this search requires.
Bearer is a static analysis security testing tool and privacy compliance auditor. It identifies security vulnerabilities, hard-coded secrets, and privacy risks in source code through static analysis and data flow tracing. The tool distinguishes itself by tracking the movement of sensitive data through code to identify leaks and by mapping personal and health-related information flows to generate evidence for privacy impact assessments. It also provides differential scanning for pull requests and uses fingerprint-based suppression to exclude known false positives from reports. The platform co
Bearer is a static analysis security tool that explicitly identifies hard-coded secrets alongside other vulnerabilities, and includes features like PR scanning and false-positive suppression, making it a valid secret scanner for codebases.
Git-secrets is a security utility designed to prevent the accidental exposure of sensitive credentials by integrating automated scanning directly into the version control commit lifecycle. It functions as a commit scanner that evaluates staged files and commit messages against defined security policies before changes are finalized in a repository. The tool utilizes regular expression pattern matching to identify potential secrets and supports the registration of custom patterns to address specific organizational security requirements. To manage operational friction, it includes mechanisms for
git-secrets is a commit hook tool that scans staged files and messages with regex patterns to block secrets, matching the need for a pattern-based detector with pre-commit integration and custom rules, though it omits entropy analysis and explicit reporting outputs.
shhgit is a static analysis security tool and secret detection scanner designed to identify leaked credentials, API tokens, and private keys. It functions as a security auditor for version control systems, analyzing both local files and remote repositories across platforms including GitHub, GitLab, and Bitbucket. The tool utilizes a detection engine based on signature-matching, custom regular expressions, and entropy checks to locate sensitive data. It allows for the use of custom search signatures and queries to identify non-standard secrets that may not be covered by predefined patterns. T
Shhgit is a dedicated tool for finding secrets in your code across GitHub, GitLab, and Bitbucket repositories, making it directly fit your need for scanning accidentally committed sensitive data.
Reviewdog is a linter result posting tool and a diff-aware static analysis filter. It parses the output of various linters and posts findings as comments on pull requests within code hosting platforms. It also functions as a quality gate for CI pipelines, failing builds when findings exceed specified severity thresholds. The project distinguishes itself by isolating static analysis issues to only those introduced within the current git code diff, preventing the reporting of legacy errors. It unifies tool findings by processing industry-standard SARIF and XML diagnostic formats alongside custo
Reviewdog is a linter result poster and diff-aware static analysis filter for code review, not a dedicated secret scanning tool—it does not detect credentials, API keys, or other leaked secrets in your codebase or git history.
SecretScanner is a security tool designed to search filesystems and container images for unprotected passwords, API keys, and other sensitive data. It functions as a static secret detector and container image scanner that identifies hardcoded credentials by matching content against a database of known secret types. The tool inspects container image layers to find secrets hidden within the filesystem hierarchy and parses local directories and host-mounted paths. It provides the ability to export scan findings in machine-readable JSON format for automated analysis and processing. The scanning
SecretScanner scans filesystems and container images for secrets, but it does not target git history or commit scanning, so it is better suited for inspecting deployed artifacts than for detecting secrets accidentally committed to source code repositories.
DefectDojo is a vulnerability management system and application security orchestration tool. It serves as a centralized platform for importing, deduplicating, and tracking security findings from multiple scanners and tools to manage an organization's overall security posture. The system distinguishes itself by aggregating findings from various security tools into a single report and normalizing that data to prioritize remediation. It provides specific workflows for vulnerability triage and deduplication to reduce noise and redundant manual work across the software development lifecycle. The
DefectDojo is a vulnerability management and orchestration platform that aggregates findings from other security scanners, not a tool that scans source code for secrets itself.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| yelp/detect-secrets | 4.4K | Python | apache-2.0 | |
| dxa4481/trufflehog | 26.8K | Go | AGPL-3.0 | |
| trufflesecurity/trufflehog | 24.6K | Go | agpl-3.0 | |
| gitleaks/gitleaks | 25K | Go | mit | |
| zricethezav/gitleaks | 27.7K | Go | MIT | |
| gitguardian/ggshield | 2K | Python | MIT | |
| bearer/bearer | 2.6K | Go | other | |
| awslabs/git-secrets | 13.2K | Shell | apache-2.0 | |
| eth0izzle/shhgit | 4K | JavaScript | MIT | |
| reviewdog/reviewdog | 9.1K | Go | mit |