Skip to content
Benchmarks

redact-secret · Report

Legacy FCM server key

Legacy Firebase Cloud Messaging HTTP/XMPP server key: literal AAAA prefix, 7 bytes, a literal ":", then 140 bytes.

  • Firebase
  • Detectors: firebase-server-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
#81 backfilled the firebase-server-key detector (redact-secret#543). Service-account JSON exports and AIza-prefixed keys are covered elsewhere (private-key, google-api-key), not this family.

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

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

Descriptive pattern
^AAAA[A-Za-z0-9_-]{7}:[A-Za-z0-9_-]{140}$

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
literal AAAA plus 7 characters (an 11-character head that base64url-decodes to the 64-bit Firebase project number), a literal :, then a 140-character body from [A-Za-z0-9_-]. Every real key measured has APA91b right after the colon; the contract does not require it. Late-2016 keys have 162 to 183-character bodies (8 of 66 unique real keys measured); about 88% of keys from 2017 onward have 140.
Basis
T2, not T1. Google's only length statement (Firebase blog, 2017-01-31) is "a giant 175-character string", which the 140 contract does not match, and its only published Authorization: key= example is the older AIza form. Corroboration: a real key in the Firebase JS SDK's own integration test (measured 11 + : + 140), nuclei-templates, Burp BCheck, titus (ported from Nosey Parker rules; Nosey Parker itself has no Firebase rule), a Laravel scrubber and PyRIT. All tool regexes copy one 2020 write-up.
Issuance
impossible: the legacy API is closed.
Contract in core
detector-families.md; evidence #649 record. Core's detector comments call the prefix and lengths "documented"; no provider does.

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

45 fixtures: 18 expect a redaction, 27 must stay quiet. See every row

redact-secret fixture counts by evidence level
Evidence levelFixturesLeft readableToo muchFalse alarms
T1Provider-documented1000
T2Tool-corroborated31000
T3Project policy13000

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

Benchmark dossier questions

Things the sources do not settle. They are listed so nobody reads them as settled.
Open caveat
No Google page states the shape; tool regexes trace to one 2020 write-up. The legacy FCM API was shut down in 2024, so a fresh key cannot be issued to check.

Looks like it, but isn't

Values the dossier records as resembling this credential without being one.
Collisions
FCM registration tokens (the 2017 Firebase blog calls a 153-character one a string that looks a lot like a server key) look similar and use the same APA91b body start; the AIza Google API key form belongs to google:generic-api-key.

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

45 of 45 rows

Fixtures in this family

45 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 Legacy FCM server key
FixtureKind and evidenceredact-secret
firebase-server-key-actions-envfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-compose-envfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-curl-sendfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-envfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-fcm-nodefirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-functions-config-getfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-handoff-notefirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-java-constantfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-k8s-secretfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-laravel-fcm-configfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-push-yamlfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-raw-requestfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-request-logfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-server-key-barefirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-server-key-quotedfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-server-key-unicode-crlffirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-settings-jsonfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-shell-exportfirebase · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
firebase-server-key-vapid-public-key-encoded-valuefirebase · benign-encoded-valueMust not flagT1 · Provider-documentedQuiet
firebase-server-key-actions-secret-referencefirebase · templated-referenceMust not flagT3 · Project policyQuiet
firebase-server-key-config-lookup-referencefirebase · templated-referenceMust not flagT3 · Project policyQuiet
firebase-server-key-docs-ellipsis-placeholderfirebase · documentation-placeholderMust not flagT3 · Project policyQuiet
firebase-server-key-dotted-body-cli-twinfirebase · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
firebase-server-key-dotted-body-twinfirebase · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
firebase-server-key-head-only-near-missfirebase · format-near-missMust not flagT2 · Tool-corroboratedQuiet
firebase-server-key-impossible-head-near-missfirebase · format-near-missMust not flagT2 · Tool-corroboratedQuiet
firebase-server-key-long-head-twinfirebase · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
firebase-server-key-maskfirebase · benign-lookalikeMust not flagT3 · Project policyQuiet
firebase-server-key-masked-placeholderfirebase · documentation-placeholderMust not flagT3 · Project policyQuiet
firebase-server-key-message-id-public-idfirebase · public-identifierMust not flagT3 · Project policyQuiet
firebase-server-key-migration-note-prosefirebase · prose-mentionMust not flagT3 · Project policyQuiet
firebase-server-key-missing-separatorfirebase · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
firebase-server-key-prefix-onlyfirebase · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
firebase-server-key-project-number-public-idfirebase · public-identifierMust not flagT3 · Project policyQuiet
firebase-server-key-referencefirebase · benign-lookalikeMust not flagT3 · Project policyQuiet
firebase-server-key-registration-log-public-idfirebase · public-identifierMust not flagT3 · Project policyQuiet
firebase-server-key-registration-token-public-idfirebase · public-identifierMust not flagT3 · Project policyQuiet
firebase-server-key-sender-id-public-idfirebase · public-identifierMust not flagT3 · Project policyQuiet
firebase-server-key-server-key-bare-twinfirebase · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
firebase-server-key-server-key-quoted-twinfirebase · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
firebase-server-key-server-key-unicode-crlf-twinfirebase · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
firebase-server-key-short-bodyfirebase · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
firebase-server-key-short-body-json-twinfirebase · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
firebase-server-key-short-body-twinfirebase · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
firebase-server-key-your-server-key-placeholderfirebase · documentation-placeholderMust not flagT3 · Project policyQuiet

Sources

Researched 2026-09-24.

Documentation and code

  • github.com/projectdiscovery/nuclei-templates/blob/8cf94b93a389a47bef77b89f8c8915b2755018f0/http/exposures/tokens/firebase-fcm-server-key-disclosure.yaml
  • firebase.googleblog.com/2017/01/debugging-firebase-cloud-messaging-on.html
  • firebase.google.com/support/releases
  • github.com/firebase/firebase-js-sdk/blob/5ab2fc6f889be5226f44d2e50c7eb20144f69338/integration/messaging/test/utils/sendMessage.js

Research log