Skip to content
Benchmarks

redact-secret · Report

Project secret API key (phs_)

phs_ + 42–49 of [0-9A-Za-z], the personal-key generator and body.

  • PostHog
  • Detectors: posthog-project-secret-api-key
  • Run 2026-10-07
  • Mode published · redact-secret 0.1.0-beta.14
  • Dossier verdictReady
  • Dossier evidence levelT1 · Provider-documented
  • Dossier researched2026-09-28
Scored arrival family posthog-project-secret-api-key: the product types it inside the shared posthog-token detector as posthog_project_secret_api_key since redact-secret#906 (registry pinned at 1127bf9; scanners/families.mjs arrivalFindingTypes). Authored as a Beta.11 arrival family (#434 slice d, #860 Tier A handoff), contract in benchmarks/lib/beta8/434d.ts. T1.

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

3 events in the review history: 2 observed, 1 reviewed. Latest: observed on 2026-09-28 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
^phs_[0-9A-Za-z]{42,49}$

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
phs_ + the same body band as phx_.
Basis
T1, same generator; a secret by the provider's docs.
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
36
Left readable
0
Redacted too much
0
False alarms
0

36 fixtures: 14 expect a redaction, 22 must stay quiet. See every row

redact-secret fixture counts by evidence level
Evidence levelFixturesLeft readableToo muchFalse alarms
T1Provider-documented14000
T2Tool-corroborated17000
T3Project policy5000

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 it361130
gitleaksRepository scanner · 8.30.1 · Directory scan · default rulesNo rule maps to it36401
redact-secretProduct measured here · 0.1.0-beta.14 · Published npm package · default detectors1 detector mapped36000
trufflehogRepository scanner · 3.97.4 · Filesystem scan · verification disabledNo rule maps to it361400

Looks like it, but isn't

Values the dossier records as resembling this credential without being one.
Collisions
as above.

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.

No peer rule maps to this family

None of the reviewed peer scanners has a rule that can match a credential of this family.

None mapped

36 of 36 rows

Fixtures in this family

36 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 Project secret API key (phs_)
FixtureKind and evidenceredact-secret
posthog-project-secret-api-key-actions-envposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-bare-proseposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-bearer-headerposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-chat-pasteposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-compose-envposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-curl-projectsposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-dotenvposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-exportposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-json-api-keyposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-json-tokenposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-mcp-configposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-project-token-prefix-twinposthog · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
posthog-project-secret-api-key-sdk-kwargposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-x-api-key-headerposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-yaml-configposthog · documented-format-literalMust redactT1 · Provider-documentedRedacted
posthog-project-secret-api-key-actions-secret-referenceposthog · templated-referenceMust not flagT3 · Project policyQuiet
posthog-project-secret-api-key-body-41-twinposthog · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
posthog-project-secret-api-key-body-50-twinposthog · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
posthog-project-secret-api-key-ellipsis-placeholderposthog · documentation-placeholderMust not flagT3 · Project policyQuiet
posthog-project-secret-api-key-env-reference-referenceposthog · templated-referenceMust not flagT3 · Project policyQuiet
posthog-project-secret-api-key-event-uuid-encoded-valueposthog · benign-encoded-valueMust not flagT2 · Tool-corroboratedQuiet
posthog-project-secret-api-key-host-urls-public-idposthog · public-identifierMust not flagT2 · Tool-corroboratedQuiet
posthog-project-secret-api-key-hyphen-in-body-twinposthog · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
posthog-project-secret-api-key-hyphen-prefix-twinposthog · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
posthog-project-secret-api-key-key-guidance-proseposthog · prose-mentionMust not flagT3 · Project policyQuiet
posthog-project-secret-api-key-leading-glue-twinposthog · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
posthog-project-secret-api-key-masked-placeholderposthog · documentation-placeholderMust not flagT3 · Project policyQuiet
posthog-project-secret-api-key-project-token-bare-public-idposthog · public-identifierMust not flagT2 · Tool-corroboratedQuiet
posthog-project-secret-api-key-project-token-html-public-idposthog · public-identifierMust not flagT2 · Tool-corroboratedQuiet
posthog-project-secret-api-key-project-token-init-public-idposthog · public-identifierMust not flagT2 · Tool-corroboratedQuiet
posthog-project-secret-api-key-short-prefix-twinposthog · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
posthog-project-secret-api-key-trailing-glue-twinposthog · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
posthog-project-secret-api-key-truncated-near-missposthog · format-near-missMust not flagT2 · Tool-corroboratedQuiet
posthog-project-secret-api-key-underscore-in-body-twinposthog · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
posthog-project-secret-api-key-unknown-role-prefix-twinposthog · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
posthog-project-secret-api-key-uppercase-prefix-twinposthog · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet

Sources

Researched 2026-09-28.

Documentation and code

  • posthog.com/docs/api/personal-api-keys
  • github.com/redact-secret/redact-secret/blob/270faf84dc12f6a4a4cf61fe3ffab7aadc4f7262/docs/audits/evidence/860/posthog.md
  • github.com/PostHog/posthog/blob/658715dd3b434e0a5ada471981d4053b70e72034/posthog/models/utils.py
  • github.com/PostHog/posthog/pull/52495

Research log

Other PostHog families