Your AI writes code. Veilguard makes sure it doesn't get you hacked.
Free security scanner for AI-generated code. Catches leaked API keys, SQL injection, broken database policies, and supply chain attacks — while you vibe.
✓Done. Created app/api/checkout/route.ts with your payment logic.
Anyone who can see your GitHub repo — or just right-clicks “View Source” on your live site — can grab this key and charge real money on your customers' cards.
.envfile and never touch it again✓Moved to .env. Gone from your code and your git history.
AI-generated code has a security problem
Vibe coding ships products in days. It also ships vulnerabilities. Tools like Cursor, Claude Code, and Windsurf generate functional code fast — but they don't check for hardcoded secrets, SQL injection, broken database policies, or malicious dependencies. Veilguard does.
Install once. Code normally. Sleep well.
Install in 30 seconds
Add one MCP config block to your IDE — the same JSON everywhere, only the file path changes. Claude Code installs with a single command.
Code like you always do
Your AI agent calls Veilguard's tools as it writes code — automatically once you add the rules file, or any time you ask. If everything is clean, total silence. You never know it's there.
Get a nudge when something's wrong
Found a leaked Stripe key? Your AI agent flags it right in the chat — in plain English, with the real-world consequence — then offers you the exact fix with Pro. SQL injection in an API route? Same thing. Clean code stays silent.
60+ patterns. Zero leaks.
Catches 60+ API key patterns: Stripe, OpenAI, Supabase, Paystack, Flutterwave, M-Pesa, AWS, and more. Detects the #1 vibe coding mistake: AI adding live keys as fallback values.
Every file modification is checked in milliseconds. Before the commit even happens.
FOR UPDATE USING (auth.uid() IS NOT NULL);
FOR UPDATE USING (auth.uid() = id);
Catches the flaws behind real breaches.
Deep analysis of Row Level Security policies. Catches the exact patterns behind the Moltbook breach (1.5M leaked keys) and Lovable CVE-2025-48757 (170 apps exposed). Detects USING(true), auth.uid() IS NOT NULL bypass, and missing policies.
Breach Context
This exact flaw caused the Moltbook breach in January 2026, leaking 1.5M API keys and 35,000 emails.
Unverified webhooks = free money for attackers.
Finds webhook endpoints missing signature verification for Stripe (constructEvent), Paystack (HMAC), M-Pesa (IP check), GitHub, and Flutterwave. AI will happily skip these critical checks.
14 scanners. Every vulnerability AI introduces.
Secret Detection
Catches 60+ API key patterns: Stripe, OpenAI, Supabase, Paystack, Flutterwave, M-Pesa, AWS, and more. Detects fallback trap keys.
SQL Injection
Detects template literal injection, unsanitized req.body, command injection, NoSQL injection, IDOR, and mass assignment.
Webhook Verification
Finds webhook endpoints missing signature verification for Stripe, Paystack, M-Pesa, GitHub, and Flutterwave.
Environment Security
Checks .env is in .gitignore, detects secrets exposed via NEXT_PUBLIC_ or VITE_ prefixes.
CORS Misconfiguration
Catches cors({ origin: '*' }) on apps with authentication.
Supply Chain
Detects malicious and typosquatted npm packages against a known-bad database.
Dependency CVEs
Checks every npm dependency against Google OSV.dev for known vulnerabilities.
Auth Configuration
Validates Clerk, NextAuth, and Supabase Auth. Catches getSession() spoofing and missing rate limiting.
Security Headers
Checks CSP, HSTS, X-Frame-Options on deployed URLs.
Git Security
Scans for secrets in git history, .gitignore gaps, and tracked .env files.
Supabase RLS Audit
Deep analysis of Row Level Security policies. Catches USING(true), auth.uid() IS NOT NULL bypass, and missing policies.
Firebase Rules Audit
Analyzes Firebase security rules for allow if true, client-controlled userId, and auth-only policies without ownership checks.
App Security
Rate limiting, IDOR, password storage, file uploads, error exposure, sensitive logging, open redirects, mass assignment.
AI Rules File Scanner
Scans .cursorrules, .windsurfrules, and CLAUDE.md for hidden Unicode backdoors, base64 payloads, and malicious instructions that hijack your AI agent.
Full Security Audit
ProRuns all scanners, scores your project 0-100, assigns a grade A+ to F, and generates an AI-ready fix prompt. Pro only — unlimited.
Based on real breaches. Not theoretical risks.
One command. Every IDE.
{
"mcpServers": {
"veilguard": {
"command": "npx",
"args": ["-y", "--package=veilguard", "veilguard-mcp"],
"env": { "VEILGUARD_KEY": "your_key_here" }
}
}
}claude mcp add veilguard -- npx -y --package=veilguard veilguard-mcpFree is powerful. Pro is complete.
Free
- All 14 scanners (including RLS & Firebase)
- Every vulnerability flagged — plain-English alerts
- MCP server — works in Cursor, Claude Code, Windsurf, VS Code & Antigravity
- Fixes & solutions — upgrade to unlock
- Full security audit & letter grade (Pro only)
Pro
- Everything in Free
- The exact fix for every vulnerability
- Full audit with letter grade (A+ to F)
- AI-ready fix prompt (paste to fix everything at once)
- Full security audit — unlimited
- Breach context on every finding
Works in every AI coding IDE
Cursor
Add the MCP config, ask it to scan — it just works.
Claude Code
One command to connect. Then just ask Claude to check your code.
Windsurf
Drop in the config file, restart, and you're good.
VS Code
MCP server connects via Copilot Chat in one config file.
Antigravity
Add via the MCP Settings Panel, no extra setup.
100% local. Your code never leaves your machine.
Veilguard runs entirely on your laptop. It reads your files locally, matches patterns locally, and returns results locally. The only outbound calls are to Google's OSV.dev API (sends package names only, never code) and veilguard.dev for Pro license validation. No telemetry. No data collection. Open source on GitHub.
View on GitHub ↑Questions vibe coders ask before installing
Everything you need to know about securing AI-generated code, vibe coding security risks, and how Veilguard works.
What is vibe coding?
Is vibe coding safe?
What security vulnerabilities does AI-generated code typically introduce?
How do I secure a vibe-coded app?
What is an MCP security server?
Can using Cursor or Claude Code result in my app being hacked?
Is Veilguard free?
Does Veilguard send my code to the cloud?
Ship fast. Ship secure.
Install Veilguard in 30 seconds. Free forever for indie developers.