Your Firebase config is in your front-end code, so anyone can copy it and call your Firebase backend from a script, not just from your app. Firebase App Check is the feature built for that gap. It is often skipped in AI-built apps. Here is what it does, what it does not do, and how to turn it on without breaking your own users.
The problem
A Firebase web config (API key, project ID, app ID) is not a secret. Firebase documents that it identifies your project. Any visitor can read it from your bundle and send requests to Firestore, Realtime Database or Storage directly, with no browser and no UI. Security rules decide what those requests can do. App Check adds a second question: is this request coming from your real app?
What App Check does
Per the Firebase docs, your app gets an attestation from a provider (reCAPTCHA Enterprise on the web, Play Integrity on Android, DeviceCheck or App Attest on Apple platforms). The App Check server turns it into a short-lived token, and the SDK attaches that token to requests. When you turn on enforcement, requests without a valid token are rejected. It works with Cloud Firestore, Realtime Database, Cloud Storage and callable Cloud Functions, among others.
What it does not do
The docs say it plainly: App Check prevents some, but not all, abuse. It is not a login system. It does not replace security rules. A real user with a real signed-in session can still read data the rules allow. If your rules say allow read, write: if true, App Check will not make that table private to the right people.
The 6 steps
- Fix your rules first. App Check sits on top of rules, not instead of them. Remove any
if true. - Register your web app with a provider. For the web that means reCAPTCHA Enterprise, set up in the Firebase console under App Check.
- Initialize App Check in your client before other Firebase calls. Use the SDK's initialization with your site key.
- Run in monitoring mode first. The console shows how many requests carry a valid token before you enforce anything. Old app versions and cached pages will show up as unverified.
- Turn on enforcement per service. Do Firestore, Storage and the others one at a time and watch for errors.
- Use the debug provider for local development only. Keep debug tokens out of your public repo and revoke them when you are done.
Test it
After you enforce, open a private window, copy a request from the Network tab and replay it without the App Check header. It should be rejected. Then sign in as a second test user and confirm your rules still block cross-user reads, since App Check does not cover that.
What an outside scan can and cannot tell you
ProofForge checks your live site from the outside, the way a stranger would. It can see what ships in your public code and which endpoints answer without a login. It cannot tell whether App Check is enforced on your Firebase project or what your rules allow, so it will say inconclusive about those. The checks above are yours to run.
Sources
- Firebase App Check overview: https://firebase.google.com/docs/app-check
Check your own app from the outside, free. Run the free ProofForge scan on your live URL. No account needed for the first scan. It looks at your public site the way a stranger would and says pass, fail or inconclusive, so you know what is confirmed and what it could not see. One-time reports start at $9: see pricing. Building with an AI agent? There is an MCP server so it can check before it deploys.