1. Most Common Vulnerabilities Found Across 55 Newly Shipped Apps
2. Security Posture by Hosting Platform
| Hosting Platform | Apps Audited | Average VibeShield Score | Apps Scoring Below 70 | Primary Gap Observed |
|---|---|---|---|---|
| Custom Domain | 9 | 79 / 100 | 11% | Highest variance — includes exposed /.DS_Store, weak HSTS & client-side API key leaks |
| Vercel | 41 | 82 / 100 | 0% | Default deployments ship without CSP, Permissions-Policy, COOP/CORP, or security.txt |
| GitHub Pages | 4 | 78 / 100 | 0% | Cannot set custom HTTP security headers without a Cloudflare/edge proxy |
| Cloudflare Pages | 1 | 98 / 100 | 0% | Strong edge defaults; verify CSP & backend RLS policies |
3. Why AI Code Generators Miss These 4 Controls by Default
1. Zero HTTP Security Headers on Default Deployments
Vercel, Netlify, and Lovable provide automatic HTTPS, which lulls builders into thinking transport and browser security are finished. In our sample, 74.5% of apps shipped without Content-Security-Policy, X-Frame-Options, Permissions-Policy, or Cross-Origin-Opener-Policy, leaving apps exposed to XSS script injection and clickjacking.
2. Client-Side Secret Leaks in Bundled JS
When AI assistants wire Stripe, OpenAI, or Gemini SDKs quickly, they occasionally import server secrets into client components or NEXT_PUBLIC_ / VITE_ variables. Even a 3.6% live key leak rate (including a live Stripe secret key in our 55-app batch) translates to catastrophic billing or data exposure.
3. Unprotected Supabase Tables (Missing RLS)
20.0% of freshly launched apps shipped with Supabase. Creating a table in the SQL editor or via an AI migration prompt without ENABLE ROW LEVEL SECURITY and explicit auth.uid() policies allows anyone holding the public anon key to query or mutate rows via PostgREST.
4. Forgotten Static Files & Source Maps
Pushing local build directories without strict ignore rules leaves /.DS_Store, .env backups, or full production .js.map source maps reachable on public hosts — handing attackers your entire folder layout and unminified business logic.
4. Copy-Paste 60-Second Hardening Snippets (Free MIT)
A. Baseline Security Headers for vercel.json (Fixes 7 of 10 Observatory Checks Immediately)
{
"headers": [
{
"source": "/(.*)",
"headers": [
{ "key": "Strict-Transport-Security", "value": "max-age=63072000; includeSubDomains; preload" },
{ "key": "X-Content-Type-Options", "value": "nosniff" },
{ "key": "X-Frame-Options", "value": "DENY" },
{ "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" },
{ "key": "Permissions-Policy", "value": "camera=(), microphone=(), geolocation=()" },
{ "key": "Cross-Origin-Opener-Policy", "value": "same-origin" },
{ "key": "Content-Security-Policy", "value": "default-src 'self'; base-uri 'self'; object-src 'none'; frame-ancestors 'none'; upgrade-insecure-requests" }
]
}
]
}
B. Mandatory Supabase Row Level Security Baseline SQL
ALTER TABLE public.profiles ENABLE ROW LEVEL SECURITY; CREATE POLICY "Users read own profile only" ON public.profiles FOR SELECT USING (auth.uid() = id); CREATE POLICY "Users update own profile only" ON public.profiles FOR UPDATE USING (auth.uid() = id) WITH CHECK (auth.uid() = id);
Stack-Specific Hardening Guides & Live Scanners
Lovable App Security Checklist
Live scanner + RLS SQL lockdown for .lovable.app and custom domains.
Cursor & Next.js Hardening Guide
Drop-in next.config.mjs headers(), .cursor/rules & source-map lockdown.
Bolt.new & Netlify Security Audit
Fix VITE_ secret leaks & deploy public/_headers cleanly.
Supabase RLS Audit & SQL Guide
Two-query audit catching every public table missing Row Level Security.
Complete Your Pre-Launch Checklist (Zero-Install Free Web Tools)
Moving Off .vercel.app or .lovable.app?
Check 78+ domain extensions via direct IANA RDAP, live USPTO Class 009/042 trademarks, and aftermarket availability on BrandShield v6.2.
Signup Emails Landing in Spam?
Verify SPF <=10 lookup limits, 24 DKIM selectors, DMARC policy, and 5 DNSBL blacklists in 2 seconds on InboxShield v7.0.
Invisible to ChatGPT & Perplexity?
Check 10 global & China AI crawlers, score Schema.org Entity Graph depth, and generate /llms.txt on CiteReady v6.0.