---
title: "detect-secrets: Stores Scanned, Detection and Scan Cost"
description: "detect-secrets on record: Yelp's free Apache-2.0 Python scanner for credentials in code, 2 of 8 store kinds documented, local scans, no price, December 4, 2026."
url: https://sensitivedatadiscoverytools.com/tools/detect-secrets/
canonical: https://sensitivedatadiscoverytools.com/tools/detect-secrets/
reviewed: 2026-12-04
last_updated: 2026-12-04
---

# 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]](https://api.github.com/repos/Yelp/detect-secrets) [[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md). 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]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md) [[1]](https://api.github.com/repos/Yelp/detect-secrets).

Last reviewed December 4, 2026.

## 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]](https://api.github.com/repos/Yelp/detect-secrets/releases/latest) [[4]](https://pypi.org/pypi/detect-secrets/json) [[5]](https://api.github.com/repos/Yelp/detect-secrets/commits?per_page=1).
- The repository was last pushed April 2, 2026, is not archived and had 4,687 GitHub stars on December 4, 2026[[1]](https://api.github.com/repos/Yelp/detect-secrets) [[5]](https://api.github.com/repos/Yelp/detect-secrets/commits?per_page=1).
- The README lists 27 plugins, including detectors for AWS keys, GitHub tokens, JWTs and private keys[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md).
- A detect-secrets-hook command runs in the pre-commit framework against staged files and checks them against the baseline[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md).

## Where detect-secrets can look

By default it scans the files git tracks; the --all-files option adds files git does not track[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md). It scans the current files and new diffs against the baseline, not past commits in git history[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md). It takes local paths and names no remote connector[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md).

Table: Kinds of data store detect-secrets documents

| Kind of store | Named in the documentation | Source |
|---|---|---|
| Object storage | None found in the pages cited | [[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md) |
| Databases | None found in the pages cited | [[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md) |
| Warehouses | None found in the pages cited | [[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md) |
| SaaS apps | None found in the pages cited | [[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md) |
| File shares | None found in the pages cited | [[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md) |
| Endpoints | local files and directories | [[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md) |
| Code repos | git repositories (tracked files) | [[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md) |
| Logs | None found in the pages cited | [[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md) |

## How it detects sensitive data

The plugins use provider-specific token patterns, keyword matching and Shannon-entropy checks on base64 and hex strings[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md). 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]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md). Plugins can be disabled one by one or run alone, and a Python API takes a custom plugin list[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md). 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]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md). 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]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md). An optional Gibberish Detector, installed with detect-secrets[gibberish], is a small ML model that drops word-like values[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md). A comment of # pragma: allowlist secret, or allowlist nextline secret, skips one line[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md). The README says it will not catch multi-line secrets or default passwords that do not trigger KeywordDetector[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md). It lists no precision or recall figure[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md).

Table: 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]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md).

## What a scan costs

detect-secrets is free under the Apache-2.0 license and publishes no price[[1]](https://api.github.com/repos/Yelp/detect-secrets). The baseline file lets later checks report only new findings[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md).

## 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]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md).

## 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]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md). 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]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md).

## Output: exports, APIs and integrations

Findings are written to a JSON baseline file[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md). The README lists no catalog or SIEM integration and no data subject request workflow[[2]](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md).

## Sources

1. [GitHub API repo](https://api.github.com/repos/Yelp/detect-secrets)
2. [README](https://raw.githubusercontent.com/Yelp/detect-secrets/master/README.md)
3. [Latest release](https://api.github.com/repos/Yelp/detect-secrets/releases/latest)
4. [pypi.org: json](https://pypi.org/pypi/detect-secrets/json)
5. [Last commit](https://api.github.com/repos/Yelp/detect-secrets/commits?per_page=1)
