Skip to content
Benchmarks

redact-secret · Report

Classic personal access token

Classic PAT, prefixed ghp_.

  • GitHub
  • Detectors: github-token
  • Run 2026-10-07
  • Mode published · redact-secret 0.1.0-beta.14
  • Dossier verdictReady
  • Dossier evidence levelT1 · Provider-documented
  • Dossier researched2026-09-20

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

4 events in the review history: 3 observed, 1 reviewed. Latest: observed on 2026-10-03 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

Shape not recorded.

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.
Basis
prefix and role from the token-formats page; body from GitHub's 2021-04-05 token-format post; contracted per family in #517 (T1; body tool-corroborated).

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

116 fixtures: 43 expect a redaction, 39 must stay quiet, 34 record project policy. See every row

redact-secret fixture counts by evidence level
Evidence levelFixturesLeft readableToo muchFalse alarms
T1Provider-documented43000
T2Tool-corroborated35000
T3Project policy38000

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 it116010
gitleaksRepository scanner · 8.30.1 · Directory scan · default rules1 rule targets it1164000
redact-secretProduct measured here · 0.1.0-beta.14 · Published npm package · default detectors1 detector mapped116000
trufflehogRepository scanner · 3.97.4 · Filesystem scan · verification disabled1 rule targets it1164302

Benchmark dossier questions

Things the sources do not settle. They are listed so nobody reads them as settled.
Open caveat
Only the prefix and token role are provider-documented; the 36-character body follows GitHub's 2021-04-05 token-format post (36-byte body, CRC32 in the last six characters), and core does not verify the checksum.

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.1github_tokenghp_, gho_, ghu_, ghs_, ghr_ + 36 or github_pat_ + 82 characters
gitleaks · rules 8.30.1github-patghp_ + 36 alphanumerics
openredaction · rules 1.1.5GITHUB_TOKENghp_, gho_, ghu_, ghs_ or ghr_ + 36 or more characters
trufflehog · rules 3.97.4github/v2ghp_, gho_, ghu_, ghs_, ghr_ or github_pat_ + 36-255 characters
116 of 116 rows

Fixtures in this family

116 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 Classic personal access token
FixtureKind and evidenceredact-secret
github-tokenauthored-github · early-filler-token-assignmentsProject policyT3 · Project policyRedacted
quoted-tokenauthored-github · early-filler-token-contextsProject policyT3 · Project policyRedacted
unicode-prefixauthored-github · early-filler-token-contextsProject policyT3 · Project policyRedacted
github-classic-pat-base-acontext-and-large-input-bases-authored · environment-assignmentProject policyT3 · Project policyRedacted
github-classic-pat-base-bcontext-and-large-input-bases-authored · environment-assignmentProject policyT3 · Project policyRedacted
github-classic-pat-bare-valuecontext-carrier-projections-generated · value-at-input-edgesProject policyT3 · Project policyRedacted
github-classic-pat-bearer-headercontext-carrier-projections-generated · partial-span-leakageProject policyT3 · Project policyRedacted
github-classic-pat-bom-prefixcontext-carrier-projections-generated · multibyte-text-offsetsProject policyT3 · Project policyRedacted
github-classic-pat-crlf-linescontext-carrier-projections-generated · crlf-line-endingsProject policyT3 · Project policyRedacted
github-classic-pat-emoji-prefixcontext-carrier-projections-generated · multibyte-text-offsetsProject policyT3 · Project policyRedacted
github-classic-pat-json-fieldcontext-carrier-projections-generated · structured-text-valueProject policyT3 · Project policyRedacted
github-classic-pat-korean-text-prefixcontext-carrier-projections-generated · multibyte-text-offsetsProject policyT3 · Project policyRedacted
github-classic-pat-log-linecontext-carrier-projections-generated · environment-assignmentProject policyT3 · Project policyRedacted
github-classic-pat-markdown-code-spancontext-carrier-projections-generated · markdown-and-comment-valueProject policyT3 · Project policyRedacted
github-classic-pat-nbsp-before-valuecontext-carrier-projections-generated · multibyte-text-offsetsProject policyT3 · Project policyRedacted
github-classic-pat-shell-export-quotedcontext-carrier-projections-generated · quoted-value-extentProject policyT3 · Project policyRedacted
github-classic-pat-url-querycontext-carrier-projections-generated · partial-span-leakageProject policyT3 · Project policyRedacted
github-classic-pat-xml-elementcontext-carrier-projections-generated · structured-text-valueProject policyT3 · Project policyRedacted
github-classic-pat-yaml-scalarcontext-carrier-projections-generated · structured-text-valueProject policyT3 · Project policyRedacted
default-literaldocker-compose-resolution-authored · compose-default-value-holds-literal-credentialMust redactT1 · Provider-documentedRedacted
resolved-config-literaldocker-compose-resolution-authored · compose-resolved-config-renders-referenced-credentialMust redactT1 · Provider-documentedRedacted
github-token-ghp-prefix-plain-twingithub · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
github-token-ghp-prefix-unicode-crlf-twingithub · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
github-classic-pat-head-of-1miblarge-and-repeated-input-projections-generated · credential-after-long-inputProject policyT3 · Project policyRedacted
github-classic-pat-head-of-256kiblarge-and-repeated-input-projections-generated · credential-after-long-inputProject policyT3 · Project policyRedacted
github-classic-pat-head-of-64kiblarge-and-repeated-input-projections-generated · credential-after-long-inputProject policyT3 · Project policyRedacted
github-classic-pat-middle-of-1miblarge-and-repeated-input-projections-generated · credential-after-long-inputProject policyT3 · Project policyRedacted
github-classic-pat-middle-of-256kiblarge-and-repeated-input-projections-generated · credential-after-long-inputProject policyT3 · Project policyRedacted
github-classic-pat-middle-of-64kiblarge-and-repeated-input-projections-generated · credential-after-long-inputProject policyT3 · Project policyRedacted
github-classic-pat-tail-of-1miblarge-and-repeated-input-projections-generated · credential-after-long-inputProject policyT3 · Project policyRedacted
github-classic-pat-tail-of-256kiblarge-and-repeated-input-projections-generated · credential-after-long-inputProject policyT3 · Project policyRedacted
github-classic-pat-tail-of-64kiblarge-and-repeated-input-projections-generated · credential-after-long-inputProject policyT3 · Project policyRedacted
github-classic-pat-three-occurrences-in-1miblarge-and-repeated-input-projections-generated · multiple-credentials-per-inputProject policyT3 · Project policyRedacted
github-classic-pat-three-occurrences-in-256kiblarge-and-repeated-input-projections-generated · multiple-credentials-per-inputProject policyT3 · Project policyRedacted
github-classic-pat-three-occurrences-in-64kiblarge-and-repeated-input-projections-generated · multiple-credentials-per-inputProject policyT3 · Project policyRedacted
github-classic-pat-two-distinct-keys-in-1miblarge-and-repeated-input-projections-generated · multiple-credentials-per-inputProject policyT3 · Project policyRedacted
github-classic-pat-two-distinct-keys-in-256kiblarge-and-repeated-input-projections-generated · multiple-credentials-per-inputProject policyT3 · Project policyRedacted
github-classic-pat-two-distinct-keys-in-64kiblarge-and-repeated-input-projections-generated · multiple-credentials-per-inputProject policyT3 · Project policyRedacted
attribute-stringopentelemetry-log-records-authored · credential-in-opentelemetry-log-record-fieldsMust redactT1 · Provider-documentedRedacted
body-nested-map-and-arrayopentelemetry-log-records-authored · credential-in-opentelemetry-log-record-fieldsMust redactT1 · Provider-documentedRedacted
body-stringopentelemetry-log-records-authored · credential-in-opentelemetry-log-record-fieldsMust redactT1 · Provider-documentedRedacted
body-string-holding-serialized-jsonopentelemetry-log-records-authored · credential-in-opentelemetry-log-record-fieldsMust redactT1 · Provider-documentedRedacted
exception-message-and-stacktraceopentelemetry-log-records-authored · credential-in-opentelemetry-log-record-fieldsMust redactT1 · Provider-documentedRedacted
resource-attributeopentelemetry-log-records-authored · credential-in-opentelemetry-log-record-fieldsMust redactT1 · Provider-documentedRedacted
two-secrets-with-upper-case-trace-idopentelemetry-log-records-authored · credential-in-opentelemetry-log-record-fieldsMust redactT1 · Provider-documentedRedacted
crlfauthored-github · crlf-line-endingsMust redactT1 · Provider-documentedRedacted
crlf-twinauthored-github · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
envauthored-github · environment-assignmentMust redactT1 · Provider-documentedRedacted
env-twinauthored-github · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
jsonauthored-github · structured-text-valueMust redactT1 · Provider-documentedRedacted

Sources

Researched 2026-09-20.

Documentation and code

  • docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-authentication-to-github#githubs-token-formats

Research log

Other GitHub families