# What ProofForge checks ProofForge scans the public surface of an app: the pages, scripts, and responses any unauthenticated visitor can already reach. It never logs in, never asks for repo access, and never receives your source code. Everything it reports was visible to the open internet before the scan ran. ## 1. Leaked keys and secrets in client-side code AI builders put keys where the code needs them, and the code that runs in the browser ships to every visitor. The scan reads the app's client bundles and looks for credential material that should never be public: - Cloud and API keys with service-level privileges (the Supabase `service_role` key is the classic case: it bypasses row-level security entirely, so a leaked one is full database access) - Private keys, signing secrets, and webhook secrets embedded in JavaScript - Tokens for payment, email, and AI providers left in shipped code A publishable or anonymous key in client code is normal and is not flagged as a leak. The check is about privilege: what can whoever holds this key actually do? ## 2. Open Supabase exposure A Supabase project's anonymous key is public by design. What protects the data is row-level security (RLS). When RLS is off or a policy is wide open, the public key reads the table. The scan tests, with the project's own public key, whether representative tables return rows an anonymous visitor should never see. This is the CVE-2025-48757 pattern: in the studied set, 170 of 1,645 Lovable apps had data exposed this way. The app works fine in testing, because the developer's own key reads everything. So does everyone else's. ## 3. Open Firebase exposure Same shape, different defaults: a Firebase Realtime Database or Firestore instance whose rules allow public read. The scan checks whether the database answers anonymous reads. If it does, the data is public whether or not anyone has linked to it yet. ## 4. Missing security headers The scan reads the app's response headers and reports the absent basics: content security policy, frame protection, strict transport security, content-type options, and referrer policy. Headers are the cheapest layer of defense an app has, and AI-generated deployments routinely ship with none of them. ## What a scan never does - It never writes, modifies, or deletes anything on the scanned app - It never logs in or uses credentials, even public demo ones - It never exfiltrates data: exposure checks confirm readability, they do not download your tables - It never guesses: a finding the scan cannot confirm from the public surface is reported as **inconclusive**, with the reason, instead of being dressed up as a vulnerability or silently dropped ## After the scan Every finding comes with the fix, in the order an AI builder can apply it. The first fix is free. Fixing usually takes minutes: enable RLS and add a policy, rotate the leaked key and move it server-side, tighten the database rules, add the headers at the platform level.