Skip to content
Benchmarks

redact-secret · Report

API token

r8_ prefixed API token; the provider documents a 40-character total (a 37-character body) and does not state the body alphabet.

  • Replicate
  • Detectors: replicate-api-token
  • Run 2026-10-07
  • Mode published · redact-secret 0.1.0-beta.14
  • Dossier verdictReady
  • Dossier evidence levelT1 · Provider-documented
  • Dossier researched2026-09-24
Registry detector replicate-api-token since redact-secret#727 (registry pinned at dad7868); graduated from a Beta.8 arrival family (#208, research #217), contract in benchmarks/lib/beta8/208.ts. The body alphabet is peer-contested (TruffleHog admits - and _; flare-redact alphanumeric only) and stays provisional. The cog/r8.im login token's relation to this token is undocumented and not claimed.

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
^r8_[A-Za-z0-9_-]{37}$

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

Format facts

  • Provider documented · provider-source · current · observed 2026-09-24

    Replicate API tokens page ("40-character strings that always start with r8_"): Replicate states that API tokens are 40-character strings that always start with r8_, fixing the prefix and a 37-character body. The page states no body alphabet.

    • replicate.com/docs/topics/security/api-tokensprovider-documentation · last read 2026-09-24 · latest outcome read · supports Replicate states that API tokens are 40-character strings that always start with r8_, fixing the prefix and a 37-character body. The page states no body alphabet.
  • Unresolved · tool-corroboration · current · observed 2026-09-24

    Pinned scanner rules are consistent with the contract grammar (1 artifact: trufflehog 3.97.4).

  • Provider documented · field-prefix · current · observed 2026-09-24

    prefix: r8_

  • Provider documented · field-total-length · current · observed 2026-09-24

    total-length: 40 characters (37-character body after r8_)

  • Tool corroborated · field-body-alphabet · current · observed 2026-09-24

    body-alphabet: [A-Za-z0-9] in every positive; TruffleHog also admits - and _, flare-redact and agent-sweep admit alphanumerics only (The provider does not state a charset. The contract pattern admits the union so only a non-word byte counts as an alphabet mutation.)

  • Provider documented · field-header-scheme · current · observed 2026-09-24

    header-scheme: Authorization: Bearer <token>; the legacy Authorization: Token <token> is still accepted

    • replicate.com/changelog/2024-04-03-bearer-tokensprovider-documentation · last read 2026-09-24 · latest outcome read · supports header-scheme: Authorization: Bearer <token>; the legacy Authorization: Token <token> is still accepted
    • replicate.com/docs/reference/httpprovider-documentation · last read 2026-09-24 · latest outcome read · supports header-scheme: Authorization: Bearer <token>; the legacy Authorization: Token <token> is still accepted
  • Unresolved · field-sibling-tokens · current · observed 2026-09-24

    sibling-tokens: Whether the cog login token (replicate.com/auth/token) or org-owned and default tokens differ in shape from a created API token

  • Unresolved · listed-references · current · observed 2026-09-24

    The legacy contract lists 3 references without stating which property each supports.

  • Provider documented · dossier-research · current · observed 2026-09-24

    Legacy dossier research (verdict ready, tier T1) cited 3 sources; the dossier does not attribute sources to individual properties.

  • Provider documented · taxonomy-sources · current · observed 2026-09-24

    The legacy taxonomy lists 2 sources for this family. The taxonomy records no date; the dossier researchedAt is used as the observed-at date.

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 r8_, 40 characters in total (a 37-character body). The provider states the prefix and the total length. It states no body alphabet. TruffleHog accepts letters, digits, - and _; flare-redact accepts letters and digits only. No checksum or embedded account id is documented.
Basis
T1 for prefix and length (the API-tokens page). Alphabet: scanner rules only, contested. Both Authorization: Bearer and the older Authorization: Token header are accepted (2024-04-03 changelog), and the docs show a masked example (r8_, two visible characters, asterisks).
Issuance
not attempted. Free accounts can create tokens. Replicate scans public GitHub repositories for committed tokens and disables the ones it finds (it joined the GitHub Secret Scanning Partner Program in 2024-04).
Contract in core
detector-families.md (Beta.8 arrival contracts, frozen in the #726 record linked above; the provider-stated length is exact and the alphabet is provisional).

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

32 fixtures: 12 expect a redaction, 20 must stay quiet. See every row

redact-secret fixture counts by evidence level
Evidence levelFixturesLeft readableToo muchFalse alarms
T1Provider-documented12000
T2Tool-corroborated13000
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 it32001
gitleaksRepository scanner · 8.30.1 · Directory scan · default rulesNo rule maps to it32601
redact-secretProduct measured here · 0.1.0-beta.14 · Published npm package · default detectors1 detector mapped32000
trufflehogRepository scanner · 3.97.4 · Filesystem scan · verification disabled1 rule targets it32000

Benchmark dossier questions

Things the sources do not settle. They are listed so nobody reads them as settled.
Open caveat
Body alphabet is not provider-stated (TruffleHog admits - and _, flare-redact does not); one issued token would settle it (checklist in benchmarks#217).

Looks like it, but isn't

Values the dossier records as resembling this credential without being one.
Collisions
r8.im/<owner>/<model> container registry references and 64-hex model version ids are public and share the r8 stem or sit next to tokens. The cog login token from replicate.com/auth/token may be a different credential; the relation is undocumented and not claimed.

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.1replicate_tokenr8_ + 30-45 characters
trufflehog · rules 3.97.4replicater8_ + 37 characters

No rule maps to this family in gitleaks, openredaction.

32 of 32 rows

Fixtures in this family

32 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 token
FixtureKind and evidenceredact-secret
replicate-api-token-bearer-long-body-twinreplicate · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
replicate-api-token-chat-pastereplicate · documented-format-literalMust redactT1 · Provider-documentedRedacted
replicate-api-token-env-short-body-twinreplicate · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
replicate-api-token-go-sdkreplicate · documented-format-literalMust redactT1 · Provider-documentedRedacted
replicate-api-token-legacy-token-headerreplicate · documented-format-literalMust redactT1 · Provider-documentedRedacted
replicate-api-token-token-shape-barereplicate · documented-format-literalMust redactT1 · Provider-documentedRedacted
replicate-api-token-token-shape-quotedreplicate · documented-format-literalMust redactT1 · Provider-documentedRedacted
replicate-api-token-token-shape-unicode-crlfreplicate · documented-format-literalMust redactT1 · Provider-documentedRedacted
replicate-api-token-actions-literalreplicate · documented-format-literalMust redactT1 · Provider-documentedRedacted
replicate-api-token-actions-secret-referencereplicate · templated-referenceMust not flagT3 · Project policyQuiet
replicate-api-token-base64-input-encoded-valuereplicate · benign-encoded-valueMust not flagT2 · Tool-corroboratedQuiet
replicate-api-token-bearer-headerreplicate · documented-format-literalMust redactT1 · Provider-documentedRedacted
replicate-api-token-docs-prosereplicate · prose-mentionMust not flagT3 · Project policyQuiet
replicate-api-token-envreplicate · documented-format-literalMust redactT1 · Provider-documentedRedacted
replicate-api-token-env-template-placeholderreplicate · documentation-placeholderMust not flagT3 · Project policyQuiet
replicate-api-token-go-uppercase-prefix-twinreplicate · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
replicate-api-token-identifier-near-missreplicate · format-near-missMust not flagT2 · Tool-corroboratedQuiet
replicate-api-token-label-prosereplicate · benign-lookalikeMust not flagT3 · Project policyQuiet
replicate-api-token-maskreplicate · benign-lookalikeMust not flagT3 · Project policyQuiet
replicate-api-token-masked-docs-placeholderreplicate · documentation-placeholderMust not flagT3 · Project policyQuiet
replicate-api-token-mcp-configreplicate · documented-format-literalMust redactT1 · Provider-documentedRedacted
replicate-api-token-mcp-hyphen-prefix-twinreplicate · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
replicate-api-token-model-version-public-idreplicate · public-identifierMust not flagT2 · Tool-corroboratedQuiet
replicate-api-token-prefix-onlyreplicate · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
replicate-api-token-printenvreplicate · documented-format-literalMust redactT1 · Provider-documentedRedacted
replicate-api-token-printenv-glued-twinreplicate · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
replicate-api-token-python-dot-body-twinreplicate · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
replicate-api-token-python-sdkreplicate · documented-format-literalMust redactT1 · Provider-documentedRedacted
replicate-api-token-referencereplicate · benign-lookalikeMust not flagT3 · Project policyQuiet
replicate-api-token-registry-image-public-idreplicate · public-identifierMust not flagT2 · Tool-corroboratedQuiet
replicate-api-token-short-bodyreplicate · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
replicate-api-token-truncated-near-missreplicate · format-near-missMust not flagT2 · Tool-corroboratedQuiet

Sources

Researched 2026-09-24.

Documentation and code

Research log