Skip to content
Keyhole

See your app the way a stranger does.

Find leaked keys and open databases in your Lovable, Bolt, Cursor or v0 app. Get a fix prompt for each.

We look through the keyhole. We never pick the lock.

Thirty seconds later.

A real report layout on a made-up app. Plain words, the exact place, and a prompt you paste straight into your editor.

F
Score
0/100
Quick scan

tiny-crm.lovable.app

LovableVite + ReactSupabase2 Critical3 Medium1 Info

Fix everything in one go

One prompt for all issues, most dangerous first. Paste it into Lovable.

You are fixing a security issue in this Vite + React app, built with Lovable, using Supabase. Be careful not to break existing features.

A security scan found 6 issue(s). Fix them strictly in this order, most dangerous first. After each task, briefly say what you changed, then continue.

### 1. [CRITICAL] Your Supabase master key is public
PROBLEM: a secret Supabase key (eyJh…k9Qz) is shipped in code that is sent to the browser. Any visitor can copy it. Found at: /assets/index-Bx9f2.js (char 18432).
  1. The service_role key skips every security rule (RLS) in your database. It is meant for servers only, but it's in your website's JavaScript.

    What a stranger could do: Anyone can read, change or delete every row in every table, including user accounts, with a few lines of code.
    Where
    tiny-crm.lovable.app/assets/index-Bx9f2.js @18432
    What we saw
    …const admin=createClient("https://xyzcompany.supabase.co",eyJh…k9Qz);admin.from("profiles").select("*")…

Passed checks (6)

  • Served over HTTPS
  • .env files are not downloadable
  • Your .git folder is not exposed
  • Errors don't reveal internals
  • X-Content-Type-Options is set
  • Server versions are hidden

Observe, don't exploit

We look through the keyhole. We never pick the lock.

Keyhole only sees what your site already shows every visitor. That keeps your app safe during the scan and keeps us on the right side of the law.

What we do

  • Read the JavaScript your site already sends to every visitor
  • Check response headers, HTTPS and cookies
  • Ask for a few well-known files and read only their first bytes
  • After you prove ownership: one header-only request per database table

What we never do

  • Guess passwords or log in anywhere
  • Send injections or exploit payloads
  • Write, change or delete anything
  • Download your data or keep your keys

What Keyhole checks

Secrets in your JavaScript

35 key formats, from OpenAI and Anthropic to Stripe, AWS and Supabase service_role, plus entropy analysis for the unknown ones.

sk-proj-…Xa9f
Critical
eyJh…k9Qz
Critical
sk_live_…Q2mB
Critical
AKIA…7QXM
High
OpenAIAnthropicOpenRouterGroqxAI (Grok)ReplicateHugging FacePerplexityGoogleStripeAWSGitHubGitLabSlackDiscordSendGridTwilioMailgunResendGoogle OAuthMapboxPrivate keyDatabaseSupabase

Open databases

Supabase RLS and Firebase rules, verified without reading a single row.

Files that shouldn't be public

.env, .git, SQL dumps and source maps that rebuild your code.

/.env /.git/HEAD /backup.sql *.js.map

Dev servers in production

Vite and Next.js dev mode belong on your laptop.

Headers and HTTPS

CSP, HSTS, clickjacking, cookie flags, mixed content.

Same bug, different fix.

Keyhole recognises how your app was built and writes the prompt in your editor's terms.

Leaked OpenAI key in the bundle

You are fixing a security issue in this Vite + React app, built with Lovable, using Supabase. Be careful not to break existing features.

PROBLEM: a secret OpenAI key (sk-proj-…Xa9f) is shipped in code that is sent to the browser. Any visitor can copy it. Found at: /assets/index-Bx9f2.js (char 20117).

DO:
1. Find every place this OpenAI key is used (search for the ending "Xa9f" and for its variable name).
2. Move this call into a Supabase Edge Function (supabase/functions/<name>/index.ts). Store the key in Supabase secrets (Project Settings → Edge Functions → Secrets) and read it with Deno.env.get(). The frontend calls the function via supabase.functions.invoke().
3. Remove the key from all client-side files, from any VITE_ or NEXT_PUBLIC_ variables, and from git history if the repo is public.
4. Add a per-user rate limit to the new server endpoint so nobody can abuse it through your app either.

DON'T: hide the key with base64, obfuscation or by splitting it into pieces. That does not protect it; it still reaches the browser.

When you're done, list the files you changed and confirm that the value no longer appears anywhere in client-side code, public/ or any VITE_/NEXT_PUBLIC_ variable.

FOR YOU (not the AI): the old key is already compromised. Create a new one in your OpenAI dashboard and delete the old one right away. Code changes without rotating the key do not fix this.

Free to look. Paid to keep watching.

Free

$0

See what's exposed right now.

  • Quick scan of any site you own
  • Full report with fix prompts
  • 1 verified domain, 1 deep scan a day

Monitor

Most picked
$19/mo

Catch leaks on every deploy.

  • 3 verified domains
  • Deep scan on every deploy
  • Daily re-scan and alerts on new issues
  • Share links for clients

Studio

$49/mo

For people who ship many apps.

  • 15 verified domains
  • Everything in Monitor
  • Priority scan queue
  • Early access to GitHub checks

Prices in US dollars. Sales tax or VAT is added at checkout where it applies. Paid plans renew monthly until you cancel, and any payment can be refunded within 14 days.

Questions

Is it legal to scan my site?+

Scanning your own site is fine. Keyhole only reads what any visitor can already see, and you must confirm you own the site or are allowed to test it. Scanning other people's sites is forbidden by our acceptable use policy and gets accounts blocked.

Do you store the keys you find?+

No. We keep a masked preview (like sk_live_…AB12) and a one-way fingerprint, so we can tell you when a key disappears. The key itself is never written to our database or logs.

Why do I need to verify my domain?+

Checks that touch your database or probe more files are only safe for the real owner. A DNS record, a meta tag or a small file proves it's yours, and we re-check it before every deep scan.

My Supabase anon key was flagged. Is that bad?+

Not by itself: the anon key is designed to be public. It's only safe if Row Level Security protects every table. Verify your domain and Keyhole checks that with one header-only request per table.

Will a scan slow down or break my site?+

No. A quick scan sends about 20 to 45 ordinary requests, spaced out, and backs off if your site asks it to. It never sends anything that could change data.

Which editors do the fix prompts work with?+

Any AI editor. Keyhole tunes the wording for Lovable, Bolt, v0, Replit and Cursor, and for your framework (Next.js, Vite and others).