Skip to content
Benchmarks

redact-secret · Report

API key

gsk_ prefixed API key; the 52-character alphanumeric body is tool-corroborated, not provider-stated.

  • Groq
  • Detectors: groq-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-24
Registry detector groq-api-key since redact-secret#727 (registry pinned at dad7868); graduated from a Beta.8 arrival family (#208, research #218), contract in benchmarks/lib/beta8/208.ts. The observed WGdyb3FY body segment is a four-sample maintainer observation recorded as unresolved, not a grammar requirement; the community 48-character body proposal is unsupported. Not Grok/xAI.

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-24

3 events in the review history: 2 observed, 1 reviewed. Latest: observed on 2026-09-24 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
^gsk_[A-Za-z0-9]{52}$

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
prefix gsk_ followed by 52 letters and digits (56 in total). The provider pages show the prefix only as a placeholder and state no length or alphabet. TruffleHog (since 2024-05), secretlint, betterleaks and noseyparker agree on 52; a gitleaks proposal and blogs that copy it say 48 with no primary source. A four-sample maintainer observation of public .env files found an internal WGdyb3FY segment at body offsets 20 to 27; it is unconfirmed and is not a grammar requirement.
Basis
T2. Provider docs and the Python SDK give the prefix, env var (GROQ_API_KEY) and Bearer header, and the SDK validates nothing. Body: scanner rules and the observation report, so the body claim is empirical.
Issuance
not attempted; needs a GroqCloud account. The console checklist is in benchmarks#218.
Contract in core
detector-families.md (frozen in the #726 record; the internal segment is not required).

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
41
Left readable
0
Redacted too much
0
False alarms
0

41 fixtures: 19 expect a redaction, 22 must stay quiet. See every row

redact-secret fixture counts by evidence level
Evidence levelFixturesLeft readableToo muchFalse alarms
T2Tool-corroborated34000
T3Project policy7000

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 engine1 rule targets it41012
gitleaksRepository scanner · 8.30.1 · Directory scan · default rulesNo rule maps to it41501
redact-secretProduct measured here · 0.1.0-beta.14 · Published npm package · default detectors1 detector mapped41000
trufflehogRepository scanner · 3.97.4 · Filesystem scan · verification disabled1 rule targets it41000

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 52-character body is tool-corroborated plus a four-sample maintainer observation (checklist in benchmarks#218).

Looks like it, but isn't

Values the dossier records as resembling this credential without being one.
Collisions
xAI xai- keys (the GROK_API_KEY vs GROQ_API_KEY mix-up is seen in the wild). Groq response ids (chatcmpl-, req_, file_, batch_) are public. gsk_ also occurs in unrelated identifiers, so the prefix alone is weak.

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
flare-redact · rules 1.6.1groq_keygsk_ + 40-60 characters
trufflehog · rules 3.97.4groqgsk_ + 52 characters

No rule maps to this family in gitleaks, openredaction.

41 of 41 rows

Fixtures in this family

41 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
FixtureKind and evidenceredact-secret
groq-api-key-bearer-long-body-twingroq · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
groq-api-key-curl-modelsgroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-env-short-body-twingroq · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
groq-api-key-key-shape-baregroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-key-shape-quotedgroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-key-shape-unicode-crlfgroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-secrets-listgroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-short-body-twingroq · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
groq-api-key-space-appgroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-base64-config-encoded-valuegroq · benign-encoded-valueMust not flagT2 · Tool-corroboratedQuiet
groq-api-key-bearer-headergroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-chat-pastegroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-compose-envgroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-docs-prosegroq · prose-mentionMust not flagT3 · Project policyQuiet
groq-api-key-envgroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-env-lookup-referencegroq · templated-referenceMust not flagT3 · Project policyQuiet
groq-api-key-env-template-placeholdergroq · documentation-placeholderMust not flagT3 · Project policyQuiet
groq-api-key-exportgroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-identifier-near-missgroq · format-near-missMust not flagT2 · Tool-corroboratedQuiet
groq-api-key-label-prosegroq · benign-lookalikeMust not flagT3 · Project policyQuiet
groq-api-key-maskgroq · benign-lookalikeMust not flagT3 · Project policyQuiet
groq-api-key-masked-console-placeholdergroq · documentation-placeholderMust not flagT3 · Project policyQuiet
groq-api-key-models-and-endpoint-public-idgroq · public-identifierMust not flagT2 · Tool-corroboratedQuiet
groq-api-key-openai-compatiblegroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-prefix-onlygroq · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
groq-api-key-prefix-separator-twingroq · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
groq-api-key-printenvgroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-printenv-glued-twingroq · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
groq-api-key-python-dash-body-twingroq · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
groq-api-key-python-sdkgroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-referencegroq · benign-lookalikeMust not flagT3 · Project policyQuiet
groq-api-key-response-ids-public-idgroq · public-identifierMust not flagT2 · Tool-corroboratedQuiet
groq-api-key-settings-hyphen-prefix-twingroq · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
groq-api-key-settings-jsongroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-short-bodygroq · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
groq-api-key-space-no-separator-twingroq · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
groq-api-key-startup-loggroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-toml-providergroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-truncated-near-missgroq · format-near-missMust not flagT2 · Tool-corroboratedQuiet
groq-api-key-twin-base-dotenvgroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
groq-api-key-twin-base-pythongroq · documented-format-literalMust redactT2 · Tool-corroboratedRedacted

Sources

Researched 2026-09-24.

Documentation and code

  • console.groq.com/docs/production-readiness/security-onboarding
  • github.com/trufflesecurity/trufflehog/blob/v3.97.4/pkg/detectors/groq/groq.go
  • github.com/trufflesecurity/trufflehog/blob/363923b901c911a9164f50b6c423f47c15372b1c/pkg/detectors/groq/groq.go

Research log