Security Scanner for Vibe-Coded Apps
Shipped fast with an AI coding tool? Run a 10-second passive check on your live URL to catch leaked private keys, exposed source maps, Supabase RLS risks, and missing security headers — with copy-paste fix prompts.
01 · Exact Passive Checks
What LeakRay inspects on your live URL
| Rule ID & Check | What It Inspects | Why It's Passive & Safe |
|---|---|---|
secret-private-keysClient-Side API Key & Token Leaks | Scans HTML and first-party JS bundles for OpenAI, Anthropic, Stripe, AWS, GitHub, and Supabase service_role secrets accidentally placed in VITE_ or NEXT_PUBLIC_ env vars. | Public client keys (Supabase anon, Stripe pk_live_) stay informational; real private keys are redacted before storage. |
supabase-context-checkSupabase Anon vs. Service Role & RLS Signals | Decodes Supabase JWTs in client bundles and checks whether PostgREST OpenAPI metadata exposes sensitive table names. | Passive read-only inspection only — never reads, writes, or modifies database rows. |
exposed-sourcemapsPublic Production Source Maps | Checks whether compiled JS bundles ship accessible .js.map files that expose original TypeScript source, internal comments, and server route structure. | Follows only sourceMappingURL headers/comments declared by your own first-party scripts. |
security-headers-coreMissing Production Security Headers | Checks for CSP, HSTS, X-Content-Type-Options, clickjacking protection, Referrer-Policy, and Permissions-Policy that rapid AI templates often omit. | Reads standard HTTP response headers from a single GET request. |
02 · Vulnerable vs. Fixed
Common production leak pattern and the exact fix
// Vulnerable: AI-generated Vite/React component calling OpenAI directly
const res = await fetch("https://api.openai.com/v1/responses", {
method: "POST",
headers: {
Authorization: `Bearer ${import.meta.env.VITE_OPENAI_API_KEY}`,
},
body: JSON.stringify({ model: "gpt-4.1-mini", input: userPrompt }),
});// Fixed: Call your own backend route; keep OPENAI_API_KEY server-only
// Client component:
const res = await fetch("/api/generate", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ prompt: userPrompt }),
});
// Server route (Next.js Route Handler / Cloudflare Worker / Supabase Edge Function):
// Uses process.env.OPENAI_API_KEY + auth/rate-limiting on the server.03 · AI Fix Prompt
Paste into Cursor, Claude Code, Lovable, or Bolt
Run a pre-launch security cleanup on this AI-generated web app:
1. Move any private API keys (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `STRIPE_SECRET_KEY`, `SUPABASE_SERVICE_ROLE_KEY`) out of `VITE_*` / `NEXT_PUBLIC_*` and behind authenticated server routes.
2. Confirm Row Level Security (RLS) is enabled with least-privilege policies on every public Supabase table.
3. Disable public production source maps unless uploaded privately to an error tracker.
4. Add baseline security headers (CSP, HSTS, X-Content-Type-Options, Referrer-Policy, Permissions-Policy) and verify cookies use HttpOnly, Secure, and SameSite.04 · Developer FAQ
Frequently asked questions
- What are the most common security bugs in vibe-coded apps?
- The top four issues seen in Cursor, Lovable, Bolt, and v0 projects are private API keys placed in VITE_ or NEXT_PUBLIC_ variables, Supabase tables created without Row Level Security, public production source maps, and missing HTTP security headers.
- How do LeakRay's copy-paste AI fix prompts work?
- Every finding in a LeakRay report includes both a human code/config fix and a structured prompt tailored to the detected stack. You can click Copy AI Fix Prompt and paste it directly into Cursor, Claude Code, Lovable, or Bolt.
- Is it safe to scan my live Lovable, Vercel, or Netlify app?
- Yes. LeakRay is strictly passive and read-only (GET/HEAD only), never sends attack payloads or modifies data, and locks every /r/[id] report page with noindex headers so your scan results stay out of search engines.
- Does a 100/100 score mean my app is completely unhackable?
- No passive URL scanner can replace backend authorization testing or code review. LeakRay eliminates the most common public-facing leaks and misconfigurations in seconds so you do not ship obvious mistakes.
More Passive Scanners
Explore related LeakRay checks
Supabase RLS & Key Exposure Checker
Passively scan your live app for leaked Supabase service_role keys, exposed PostgREST schemas, and missing RLS signals. Zero signup, <15s.
Open scanner Next.js · App Router & Pages Router · Passive AuditNext.js Production Security Scanner
Audit live Next.js apps for __NEXT_DATA__ secret leaks, debug stack traces, exposed source maps, .env files, and missing security headers.
Open scanner JS Bundles · Entropy + Context Validation · Passive AuditLeaked API Key & Frontend Secret Scanner
Scan your live HTML and JavaScript bundles for leaked Stripe, OpenAI, Anthropic, Gemini, AWS, and GitHub keys—without false-positive noise.
Open scanner Server Config · Dotfiles · Passive AuditExposed .env & .git File Checker
Check if your live website publicly exposes /.env, /.git/HEAD, or backup config files. Passive read-only URL scan with instant fixes. Zero signup.
Open scanner Firebase · Firestore · Passive AuditFirebase & Firestore Security Scanner
Passively audit live Firebase apps for leaked Admin SDK keys, exposed .env files, public source maps, and weak security headers without public apiKey noise.
Open scanner JavaScript Bundles · .js.map · Passive AuditProduction Source Map Exposure Checker
Check if your live Next.js, Vite, or React app publicly exposes .js.map source maps. Passive URL scan with framework-specific fixes and AI prompts.
Open scanner Headers · CORS · Cookies · Passive AuditHTTP Security Headers & CORS Checker
Check HSTS, CSP, SRI, COOP, CORS credential reflection, and cookie flags — plus JS secret & file checks that header-only scanners miss. Zero signup.
Open scanner