Sensitive Data Discovery Tools

detect-secrets: free Yelp scanner for secrets in code, not personal data

detect-secrets is a free Apache-2.0 Python tool from Yelp that finds secrets such as keys and tokens in a code base, not personal data[1] [2]. It documents two of the eight kinds of data store, local files and git repositories, scans the paths it is given, and has no price[2] [1].

Last reviewed ยท Markdown version

At a glance

  • The latest release, v1.5.0, was published May 6, 2024, and PyPI lists the same version; commits pushed after that date are not in a packaged release as of December 4, 2026[3] [4] [5].
  • The repository was last pushed April 2, 2026, is not archived and had 4,687 GitHub stars on December 4, 2026[1] [5].
  • The README lists 27 plugins, including detectors for AWS keys, GitHub tokens, JWTs and private keys[2].
  • A detect-secrets-hook command runs in the pre-commit framework against staged files and checks them against the baseline[2].

Where detect-secrets can look

By default it scans the files git tracks; the --all-files option adds files git does not track[2]. It scans the current files and new diffs against the baseline, not past commits in git history[2]. It takes local paths and names no remote connector[2].

Kinds of data store detect-secrets documents
Kind of storeNamed in the documentationSource
Object storageNone found in the pages cited[2]
DatabasesNone found in the pages cited[2]
WarehousesNone found in the pages cited[2]
SaaS appsNone found in the pages cited[2]
File sharesNone found in the pages cited[2]
Endpointslocal files and directories[2]
Code reposgit repositories (tracked files)[2]
LogsNone found in the pages cited[2]

How it detects sensitive data

The plugins use provider-specific token patterns, keyword matching and Shannon-entropy checks on base64 and hex strings[2]. The base64 entropy check flags strings above 4.5 and the hex check above 3.0 by default, each settable from 0.0 to 8.0[2]. Plugins can be disabled one by one or run alone, and a Python API takes a custom plugin list[2]. An audit command lets a reviewer label each finding as a true or false positive, and audit --stats reports per-plugin results from those labels[2]. Filters drop flagged results after detection: --exclude-lines, --exclude-files and --exclude-secrets take regexes, --word-list, installed with detect-secrets[word_list], ignores any secret that contains a word from a given file, and --filter and --disable-filter add or remove filters by Python path[2]. An optional Gibberish Detector, installed with detect-secrets[gibberish], is a small ML model that drops word-like values[2]. A comment of # pragma: allowlist secret, or allowlist nextline secret, skips one line[2]. The README says it will not catch multi-line secrets or default passwords that do not trigger KeywordDetector[2]. It lists no precision or recall figure[2].

The 27 plugins detect-secrets lists
# Plugin
1 ArtifactoryDetector
2 AWSKeyDetector
3 AzureStorageKeyDetector
4 BasicAuthDetector
5 CloudantDetector
6 DiscordBotTokenDetector
7 GitHubTokenDetector
8 GitLabTokenDetector
9 Base64HighEntropyString
10 HexHighEntropyString
11 IbmCloudIamDetector
12 IbmCosHmacDetector
13 IPPublicDetector
14 JwtTokenDetector
15 KeywordDetector
16 MailchimpDetector
17 NpmDetector
18 OpenAIDetector
19 PrivateKeyDetector
20 PypiTokenDetector
21 SendGridDetector
22 SlackDetector
23 SoftlayerDetector
24 SquareOAuthDetector
25 StripeDetector
26 TelegramBotTokenDetector
27 TwilioKeyDetector

Plugin names as printed by --list-all-plugins[2].

What a scan costs

detect-secrets is free under the Apache-2.0 license and publishes no price[1]. The baseline file lets later checks report only new findings[2].

Finding data stores nobody listed

It does not search for stores; it scans only the paths given or the working directory set with -C[2].

Deployment and where the data goes

It is a Python package installed from PyPI or Homebrew and run locally, and no hosted service is described[2]. By default some plugins verify a found secret with a network call; --no-verify turns this off and --only-verified reports only secrets that verify[2].

Output: exports, APIs and integrations

Findings are written to a JSON baseline file[2]. The README lists no catalog or SIEM integration and no data subject request workflow[2].

Sources

  1. GitHub API repo
  2. README
  3. Latest release
  4. pypi.org: json
  5. Last commit