Skip to content
Benchmarks

redact-secret · Report

OAuth client secret

GOCSPX- + exactly 28 [A-Za-z0-9_-]: the client secret of a Google OAuth client.

  • Google
  • Detectors: google-oauth-client-secret
  • Run 2026-10-07
  • Mode published · redact-secret 0.1.0-beta.14
  • Dossier verdictReady
  • Dossier evidence levelT2 · Tool-corroborated
  • Dossier researched2026-09-29
Registry detector google-oauth-client-secret since redact-secret#1029 (registry pin 4fb7882). Contract in benchmarks/lib/beta8/1012b.ts from the #1012 research record: T2 (Google-authored osv-scalibr rule, noseyparker and CredSweeper; Google documents no format).

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

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

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
GOCSPX- followed by exactly 28 characters from letters, digits, underscore and hyphen, 35 in all.
Basis
T2. Google's own osv-scalibr rule (narrowed to exactly 28 by a Google engineer on 2025-12-03), noseyparker and CredSweeper agree: three dated references, three owners, two classes. Google documents no format. The #1012 research record (google-oauth2-credential.md) is READY-T2, and T1 only if the maintainer applies R2 to the Google-authored rule.
Contract in core
detector-families.md.

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

40 fixtures: 16 expect a redaction, 24 must stay quiet. See every row

redact-secret fixture counts by evidence level
Evidence levelFixturesLeft readableToo muchFalse alarms
T2Tool-corroborated30000
T3Project policy10000

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

Looks like it, but isn't

Values the dossier records as resembling this credential without being one.
Collisions
the OAuth client ID is public. Unprefixed pre-GOCSPX- secrets are caught only by a client_secret name.

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.4gcpapplicationdefaultcredentialsapplication default credentials JSON with a client_secret

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

40 of 40 rows

Fixtures in this family

40 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 OAuth client secret
FixtureKind and evidenceredact-secret
google-oauth-client-secret-bare-prosegoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-bearer-headergoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-chat-pastegoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-dotenvgoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-exportgoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-flask-configgoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-json-api-keygoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-json-client-filegoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-json-tokengoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-json-web-client-filegoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-key-shape-baregoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-key-shape-quotedgoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-key-shape-unicode-crlfgoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-sdk-kwarggoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-token-curlgoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-x-api-key-headergoogle · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
google-oauth-client-secret-actions-secret-referencegoogle · templated-referenceMust not flagT3 · Project policyQuiet
google-oauth-client-secret-angle-placeholdergoogle · documentation-placeholderMust not flagT3 · Project policyQuiet
google-oauth-client-secret-body-27-twingoogle · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
google-oauth-client-secret-body-29-twingoogle · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
google-oauth-client-secret-client-id-public-idgoogle · public-identifierMust not flagT2 · Tool-corroboratedQuiet
google-oauth-client-secret-consent-url-public-idgoogle · public-identifierMust not flagT2 · Tool-corroboratedQuiet
google-oauth-client-secret-console-guidance-prosegoogle · prose-mentionMust not flagT3 · Project policyQuiet
google-oauth-client-secret-dot-in-body-twingoogle · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
google-oauth-client-secret-ellipsis-placeholdergoogle · documentation-placeholderMust not flagT3 · Project policyQuiet
google-oauth-client-secret-env-reference-referencegoogle · templated-referenceMust not flagT3 · Project policyQuiet
google-oauth-client-secret-environ-lookup-referencegoogle · templated-referenceMust not flagT3 · Project policyQuiet
google-oauth-client-secret-label-prosegoogle · benign-lookalikeMust not flagT3 · Project policyQuiet
google-oauth-client-secret-leading-glue-twingoogle · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
google-oauth-client-secret-lowercase-prefix-twingoogle · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
google-oauth-client-secret-maskgoogle · benign-lookalikeMust not flagT3 · Project policyQuiet
google-oauth-client-secret-prefix-onlygoogle · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
google-oauth-client-secret-prefix-without-hyphen-twingoogle · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
google-oauth-client-secret-project-id-public-idgoogle · public-identifierMust not flagT2 · Tool-corroboratedQuiet
google-oauth-client-secret-referencegoogle · benign-lookalikeMust not flagT3 · Project policyQuiet
google-oauth-client-secret-short-bodygoogle · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
google-oauth-client-secret-truncated-marker-twingoogle · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
google-oauth-client-secret-truncated-near-missgoogle · format-near-missMust not flagT2 · Tool-corroboratedQuiet
google-oauth-client-secret-underscore-separator-twingoogle · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
google-oauth-client-secret-x-run-placeholdergoogle · documentation-placeholderMust not flagT3 · Project policyQuiet

Sources

Researched 2026-09-29.

Documentation and code

  • github.com/google/osv-scalibr/blob/5ab8022c6d67ff99d91d9750f2456ed9549fe8cb/veles/secrets/gcpoauth2client/detector.go#L51-L58
  • github.com/redact-secret/redact-secret/blob/4fb78827f1ddf5b3106f25130ca510a836ada186/docs/audits/evidence/1012/google-oauth2-credential.md
  • github.com/praetorian-inc/noseyparker/blob/2e6e7f36ce36619852532bbe698d8cb7a26d2da7/crates/noseyparker/data/default/builtin/rules/google.yml#L17-L29
  • github.com/Samsung/CredSweeper/blob/f21ab2f2553eea288a72273b9658cd297ab1d11f/credsweeper/rules/config.yaml#L463-L475

Research log

Other Google families