Skip to content

LS-GCP-006: Firebase Admin SDK Key

Severity CRITICAL
Blast radius Full Firebase project compromise (bypasses security rules)
Rotate at https://console.firebase.google.com/

If this leaks

The Admin SDK service account bypasses Firebase security rules entirely, granting full read/write access to Firestore, Realtime Database, Authentication, and Storage.

What to do

  1. Rotate or revoke the credential at https://console.firebase.google.com/.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

"client_email"\s*:\s*"firebase-adminsdk-[a-z0-9]+@[a-z0-9\-]+\.iam\.gserviceaccount\.com"

Suppress

On one line: # leakscan:ignore LS-GCP-006. For the whole project:

disable_rules: [LS-GCP-006]