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¶
- Rotate or revoke the credential at https://console.firebase.google.com/.
- Check the provider's audit logs for use you don't recognise.
- 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]