Skip to content
Benchmarks

redact-secret · Report

API key (unprefixed)

40 lowercase hex characters recognised only beside a same-line Deepgram name, host or SDK constructor; sent as Authorization: Token, not Bearer.

  • Deepgram
  • Detectors: deepgram-api-key
  • Run 2026-10-07
  • Mode published · redact-secret 0.1.0-beta.14
  • Dossier verdictReady
  • Dossier evidence levelT2 · Tool-corroborated
  • Dossier researched2026-09-27
Registry detector deepgram-api-key since redact-secret#868 (registry pinned at cfe2aec); graduated from a Beta.10 arrival family (#384, research #789), contract in benchmarks/lib/beta8/384e.ts. T2, context-gated, no bare-value claim; the hex versus base36 alphabet is disputed between the tools and asserted by no fixture.

Research record

From credential-evidence snapshot-2026.10.06.4 · records at 77ce761 · schema 1.8.0. It describes the research on the format, not what any scanner or the product does, and not a support status.
  • Review stateDraft, not reviewed
  • Format revision1 · current
  • ResearchResearched
  • Researched2026-09-27

3 events in the review history: 2 observed, 1 reviewed. Latest: observed on 2026-09-27 by automation, project maintainer. Project-maintained review is not independent validation. The family record at this release.

Format

Provider format research from credential-evidence snapshot-2026.10.06.4 · records at 77ce761 · schema 1.8.0.

What it looks like

Descriptive pattern
^[0-9a-f]{40}$

Parts are shown as recorded. Evidence classes belong to the facts below; no class is assigned to a part.

Format facts

Open questions

No open question is recorded for this revision.

Benchmark dossier notes

From the provider dossier, as written. The evidence level above says how well the format is backed; a fact the dossier does not record is not shown.
Shape
no prefix; 40 characters, lowercase hexadecimal in the benchmark taxonomy and [0-9a-z] in core's spec (see Open questions), recognised only beside a same-line Deepgram name, host or SDK constructor. Never a bare 40-character run (a Git SHA-1 has the same shape). Length and alphabet are not provider-stated.
Basis
T2 at best; #868 records no provider T1. The docs' create-key example shows 32 ascending hex digits for both key and api_key_id, which reads as a placeholder and conflicts with every other source, pointing to 40. trufflehog ([0-9a-z]{40}, keyword deepgram) and betterleaks ([a-f0-9]{40}, entropy filter; Kingfisher aliases it) agree on length and disagree on alphabet. A GitHub discussion user reports a working 40-character key, and one archived Reddit post held three 40-hex runs. GitGuardian says "Prefixed: No" with no length. gitleaks, noseyparker, secretlint and osv-scalibr have no rule.
Issuance
not attempted. The #789 checklist records total length (32 versus 40), charset class, a second key, the shape of the visible key id, an expiring or temporary key, and the grant JWT structure.
Contract in core
detector-families.md, section Keyword-gated provider keys (#868). The spec keeps [0-9a-z]{40}, the wider of the two tools. #932 recognised the HTTPie Authorization:Token and Go deepgram.NewRESTWithDefaults forms, and #936 made the Token header high confidence when the line names a Deepgram API host.

In this benchmark

Fixture rows on the current run. Counts are for redact-secret in published · redact-secret 0.1.0-beta.14 mode.
Fixtures
82
Left readable
0
Redacted too much
0
False alarms
0

82 fixtures: 53 must stay quiet, 29 record project policy. See every row

redact-secret fixture counts by evidence level
Evidence levelFixturesLeft readableToo muchFalse alarms
T2Tool-corroborated20000
T3Project policy61000
T0Pending review1000

Every scanner on the same fixtures

In run order. Counts are what each scanner recorded on this family's fixtures, whichever rules it has; a scanner with no rule for the family has nothing to report on it.

Counts per scanner on this family's fixtures
ScannerFixturesLeft readableToo muchFalse alarms
flare-redactRuntime library · 1.6.1 · Published npm package · secrets-only (pii, generic_assignment disabled) · JavaScript engineNo rule maps to it822900
gitleaksRepository scanner · 8.30.1 · Directory scan · default rulesNo rule maps to it82601
redact-secretProduct measured here · 0.1.0-beta.14 · Published npm package · default detectors1 detector mapped82000
trufflehogRepository scanner · 3.97.4 · Filesystem scan · verification disabled1 rule targets it82506

Benchmark dossier questions

Things the sources do not settle. They are listed so nobody reads them as settled.
Open caveat
No provider source states length or alphabet; the docs example is a 32-hex placeholder that contradicts the observed 40. Hex versus base36 is disputed between tools. Needs one issued key (checklist in #789).

Looks like it, but isn't

Values the dossier records as resembling this credential without being one.
Collisions
api_key_id uses the same example shape as key, so a stored key id is a lookalike. Project ids and request ids are UUIDs. The grant access_token is a JWT, a different credential.

Scanner rules for this family

Mapped by hand (reviewed 2026-09-30) from each scanner's pinned rule file, never from what a scanner found on the fixtures.
Peer scanner rules that target this family
ScannerRuleWhat the rule matches
trufflehog · rules 3.97.4deepgramdeepgram keyword + 40 alphanumerics

No rule maps to this family in flare-redact, gitleaks, openredaction.

82 of 82 rows

Fixtures in this family

82 rows, redact-secret's outcome on each. Rows that need a look come first (0), then the rest in corpus order. Choose "Every scanner" to see each scanner's outcome for the same rows.
Fixtures in API key (unprefixed)
FixtureKind and evidenceredact-secret
deepgram-api-key-actions-env-literaldeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-agent-stt-yamldeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-auth-failure-logdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-compose-envdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-create-clientdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-curl-headerdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-docker-run-envdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-docker-run-env-documented-format-literaldeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-dotenvdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-dotenv-altdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-exportdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-gitlab-ci-variablesdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-go-client-literaldeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-http-request-headerdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-httpie-tokendeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-id-named-compose-twindeepgram · missing-context-markerMust not flagT3 · Project policy · twinQuiet
deepgram-api-key-id-named-env-twindeepgram · missing-context-markerMust not flagT3 · Project policy · twinQuiet
deepgram-api-key-id-named-export-twindeepgram · missing-context-markerMust not flagT3 · Project policy · twinQuiet
deepgram-api-key-id-named-tool-call-twindeepgram · missing-context-markerMust not flagT3 · Project policy · twinQuiet
deepgram-api-key-inline-env-commanddeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-json-header-tokendeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-k8s-env-valuedeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-key-shape-baredeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-key-shape-quoteddeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-key-shape-unicode-crlfdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-model-revision-field-twindeepgram · missing-context-markerMust not flagT3 · Project policy · twinQuiet
deepgram-api-key-other-host-curl-twindeepgram · missing-context-markerMust not flagT3 · Project policy · twinQuiet
deepgram-api-key-printenv-outputdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-proxy-logdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-python-ctordeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-toml-config-keydeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-tool-calldeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-ts-ctordeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-unrelated-python-ctor-twindeepgram · missing-context-markerMust not flagT3 · Project policy · twinQuiet
deepgram-api-key-websocket-subprotocoldeepgram · documented-format-literalProject policyT3 · Project policyRedacted
deepgram-api-key-worker-json-logdeepgram · documented-format-literalProject policyT3 · Project policyRedacted
sdk-bump-commit-lineauthored-prefixless-key-shape-discrimination · git-object-name-on-a-line-naming-a-providerPending reviewT0 · PendingUnscored
deepgram-api-key-actions-secret-expression-placeholderdeepgram · documentation-placeholderMust not flagT3 · Project policyQuiet
deepgram-api-key-actions-secret-referencedeepgram · templated-referenceMust not flagT3 · Project policyQuiet
deepgram-api-key-angle-key-placeholderdeepgram · documentation-placeholderMust not flagT3 · Project policyQuiet
deepgram-api-key-assemblyai-keyword-twindeepgram · missing-context-markerMust not flagT3 · Project policy · twinQuiet
deepgram-api-key-bare-in-prose-near-missdeepgram · format-near-missMust not flagT2 · Tool-corroboratedQuiet
deepgram-api-key-bare-line-near-missdeepgram · format-near-missMust not flagT2 · Tool-corroboratedQuiet
deepgram-api-key-base64-text-encoded-valuedeepgram · benign-encoded-valueMust not flagT2 · Tool-corroboratedQuiet
deepgram-api-key-bearer-scheme-twindeepgram · missing-context-markerMust not flagT3 · Project policy · twinQuiet
deepgram-api-key-data-uri-encoded-valuedeepgram · benign-encoded-valueMust not flagT2 · Tool-corroboratedQuiet
deepgram-api-key-docs-ctor-placeholderdeepgram · documentation-placeholderMust not flagT3 · Project policyQuiet
deepgram-api-key-embedded-run-near-missdeepgram · format-near-missMust not flagT2 · Tool-corroboratedQuiet
deepgram-api-key-env-reference-referencedeepgram · templated-referenceMust not flagT3 · Project policyQuiet
deepgram-api-key-id-named-env-alt-twindeepgram · missing-context-markerMust not flagT3 · Project policy · twinQuiet

Sources

Researched 2026-09-27.

Documentation and code

  • developers.deepgram.com/guides/fundamentals/authenticating
  • github.com/trufflesecurity/trufflehog/blob/v3.97.4/pkg/detectors/deepgram/deepgram.go
  • github.com/trufflesecurity/trufflehog/blob/363923b901c911a9164f50b6c423f47c15372b1c/pkg/detectors/deepgram/deepgram.go