Introduction

In early 2026, a security researcher revealed that more than 300 million private chat messages belonging to over 25 million users of a single AI application were accessible online. The database had not been breached through a sophisticated attack. It was simply left open, with Firebase Security Rules configured to allow public access. Anyone who knew the project URL could read, modify, or delete the information.

This was not an isolated incident. The same researcher examined 200 iOS applications and found that 103 of them shared the identical misconfiguration. A separate report from August described another allegedly exposed Firebase Realtime Database containing customer orders and production records, though that claim had not been independently verified at the time.

For developers building on Firebase, especially those adding AI features, these events highlight a critical distinction: a leak does not require a hack. It only requires one incorrect setting.

What Happened

In February 2026, an exposed database tied to an AI chat app put more than 300 million messages from over 25 million users at risk. The root cause was a familiar Firebase misconfiguration: Security Rules had been left open to the public. With no authentication requirement in place, any request to the project could retrieve or alter data. The developer reportedly addressed the issue within hours of being notified.

When the researcher expanded the scan to 200 iOS apps, more than half showed the same vulnerability. That pattern suggests many teams are shipping client-side Firebase configurations without first locking down who can access their collections and documents.

A later allegation involving MyPhoto described a publicly readable Firebase Realtime Database that allegedly exposed customer order data and internal production records. BreachNews had not independently verified the claim, and MyPhoto had not released a public statement when the report was published. Regardless of verification, the underlying risk remains the same: an open database is an invitation for misuse.

Why This Matters

AI applications handle some of the most sensitive data a mobile app can store, including personal conversations and user preferences. When that data sits behind a misconfigured database, the consequences can be severe, ranging from privacy violations to reputational damage.

Firebase Authentication and Security Rules answer one question: is this user allowed to touch this data? They do not answer whether the request is coming from your actual application. Two abuse paths remain open even when rules are perfect:

  • A legitimate user running a custom script to scrape data or consume quota at scale.
  • An outsider who extracts your API key and project ID from the app and targets any resource left open to unauthenticated access.

App Check addresses these scenarios by verifying that requests originate from your genuine, untampered app. It is not a replacement for Authentication; it is a companion layer. Think of App Check as a secondary lock, not the primary one. Firebase now requires App Check enforcement for Firebase AI Logic starting November 2, 2026. New implementations have been steered toward automatic enforcement through the console’s guided setup since early July 2026.

App Check issues short-lived tokens, and replay protection can make those tokens single-use for sensitive calls such as AI requests. This adds a small amount of overhead but is worth enabling for expensive or high-risk operations.

Key Takeaways

  • Fix Security Rules first. App Check is a secondary lock, not the primary one. Rules determine who can read or write data.
  • Avoid public rules. Search for permissive statements such as "if true" in Firestore and Storage, or ".read": true in Realtime Database.
  • Require sign-in and ownership checks. Every collection should verify that the authenticated user is allowed to touch the specific data they request.
  • Use monitoring mode before enforcement. Enable App Check in monitoring mode, review verified versus unverified traffic, and enforce one product at a time.
  • App Check is required for Firebase AI Logic. If you call Gemini directly from a mobile or web app through Firebase AI Logic, enforcement is now mandatory.
  • Protect debug tokens. Treat debug tokens like secrets and never commit them to public repositories.
  • Plan for attestation failure. No valid token means no access, so test how your app behaves when a device cannot obtain a token.

Conclusion

The Firebase leaks of 2026 were not the work of elite attackers. They were open doors created by misconfigured Security Rules. The remedy is straightforward: lock down your rules, confirm that only signed-in users can access their own data, and layer App Check on top to block requests from scripts and impostor clients.

If your project calls Firebase services directly from the client—and especially if it uses Firebase AI Logic—App Check belongs in your security baseline. A small amount of setup now can prevent a large-scale exposure later.