Find the holes in your AI-built app before someone else does
Pwnproof is a free skill for Claude Code, Codex, Cursor and ten more coding agents. It maps your app, checks it against 116 real attacks, proves every finding with a file and a line, then fixes them in order of danger.
$ npx skills add Deepshah0308/pwnproof
- CriticalStripe webhook accepts unsigned eventsapp/api/stripe/webhook/route.ts:12PAY-03
- CriticalRow level security off on invoicessupabase/migrations/0003_invoices.sql:1ACC-05
- HighAny signed-in user can read any invoiceapp/api/invoices/[id]/route.ts:9ACC-02
- HighLogin code can be guessed, no attempt limitsupabase/functions/verify-otp/index.ts:22AUTH-02
- MediumChat endpoint has no per-user quotaapp/api/chat/route.ts:5AI-06
How it's exploited: change /invoices/1041 to /invoices/1042 and you get another customer's invoice.
const invoice = await db.invoice.findUnique({ where: { id: params.id },});
- where: { id: params.id },+ // SECURITY: owner scope, blocks IDOR+ where: { id: params.id, userId: session.user.id },
Runs in
- Claude Code
- Codex
- Cursor
- GitHub Copilot
- Gemini CLI
- OpenClaw
- Hermes Agent
- Cline
- OpenCode
- Kiro
- Windsurf
- Lovable
- Bolt
- v0
- Replit
What an attacker tries first on a vibe-coded app
These take minutes and need no special tools. Pwnproof looks for every one of them in your code, under its real vulnerability name, plus 101 more.
- Types /admin into the address barUnprotected admin routeACC-01
- Changes the account ID in the URLIDOR, broken access controlACC-02
- Finds your API key in dev toolsSecret key shipped to the browserPLT-01
- Edits the price to $0.01Server trusts the client's pricePAY-01
- Orders −1 itemsNo server-side range checkPAY-02
- Fakes the "payment succeeded" requestUnverified payment webhookPAY-03
- Redeems one coupon 100 times at onceRedemption race conditionPAY-04
- Signs up with role: "admin"Mass assignmentACC-04
- Guesses the 6-digit login codeOTP brute forceAUTH-02
- Tells the support bot to issue a refundPrompt injection with real powersAI-01
- Puts a script in their usernameStored XSSINJ-03
- Uploads selfie.jpg.phpExecutable file uploadUPL-01
- Searches your git history for passwordsSecrets committed to the repoPLT-02
- Types DROP TABLE users into a search boxSQL injectionINJ-01
And the harder ones: JWT algorithm confusion, SAML bypass, GraphQL batch brute force, request smuggling, cache poisoning, Unicode account takeover, WebSocket hijacking. Read all 116 checks
How a run goes
Ask your agent to run a Pwnproof audit. It works through four phases and stops before changing anything risky.
Map
Stack, auth, database, payments, storage, AI providers, every route and webhook, and which secrets reach the browser.
Audit
Loads five checklists one at a time and searches your code with the exact patterns each check lists.
Report
A table sorted by severity. Every row has a file, a line and how it's exploited. Leaked keys come first with rotation steps.
Fix
Critical first, one category at a time, with your build and tests run after each. Guards get a SECURITY comment so later AI edits keep them.
116 checks in five checklists
Each check says what the hole is, how it gets exploited, what to search for in code and the exact secure pattern for Next.js, Supabase, Firebase, Stripe and common backends.
| Checklist | Checks | Covers |
|---|---|---|
| Auth and access | 35 | Admin routes, IDOR, Supabase RLS, Firebase rules, OTP, JWT, OAuth, SAML, sessions, tenants, WebSockets |
| Platform | 29 | Leaked keys, rate limits, CORS, headers, debug endpoints, dependencies, smuggling, cache poisoning |
| Injection and uploads | 22 | SQL, NoSQL, XSS, SSRF, path traversal, XXE, ReDoS, prototype pollution, file uploads |
| Payments and logic | 15 | Price tampering, webhooks, coupons, races, quotas, refunds, trial farming |
| AI and LLM | 15 | Prompt injection, RAG leaks, model keys in the browser, cost abuse, agent and MCP permissions |
| Total | 116 |
Rules it won't break
Security tools that cry wolf or break production get uninstalled. These rules keep Pwnproof trustworthy.
- Evidence or it didn't happenNo file and line, no finding. Anything it can't confirm from code is marked Unverified, with the exact setting to check.
- Rotate firstA leaked key stays leaked after you delete it from code. You get the list of keys to rotate before anything else.
- Never prints a secretKeys are referred to by name and location, never by value, in reports, commits and tests.
- Asks before anything irreversibleDatabase migrations, auth provider changes, git history rewrites and production config wait for your yes.
- Never fixes by switching security offNo disabling row level security, CSRF checks, signatures or tests to make a build pass.
- Honest about the hosting layerDDoS, request smuggling and DNS problems get fixed where your config lives and flagged where it doesn't.
Questions
Is my vibe-coded app secure?
Probably not yet. Apps built with AI tools tend to ship with the same few holes: secret keys in the browser bundle, tables without row level security, unverified payment webhooks, prices trusted from the browser and API routes that never check who is calling. Pwnproof checks for those and 110 more.
Which tools does it work with?
It's a standard Agent Skill, so it runs natively in Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenClaw, Hermes Agent, Cline, OpenCode and Kiro. Windsurf gets a workflow file. Lovable, Bolt, v0, Replit and Base44 get a compact version you paste into their skills or project instructions.
Does it send my code anywhere?
No. It's instructions and checklists. Your own agent reads your code wherever you already run it. No server, no account, no telemetry.
Will it break my app?
It fixes one category at a time, runs your build and tests after each, makes the smallest correct change and asks before migrations, auth changes or history rewrites.
Does this replace a penetration test?
No. It catches the common, high-impact mistakes in code it can see. For apps holding money or sensitive data, a human pentest is still worth paying for, and a Pwnproof pass first makes it cheaper.
Run it before you launch, not after the tweet
$ npx skills add Deepshah0308/pwnproof