Install and use Pwnproof
Pwnproof is a folder of instructions (a SKILL.md plus five checklists) that your coding agent loads when you ask for a security audit. Installing it means copying that folder to where your agent looks for skills. It takes under a minute.
Quick install
The skills CLI detects which agents you have and installs into each of them:
npx skills add Deepshah0308/pwnproof
Or clone the repo and use the installer, which does the same thing without npm:
git clone https://github.com/Deepshah0308/pwnproof.git
cd pwnproof
./install.sh # every agent found on this machine
./install.sh claude codex # only these agents
./install.sh --project # into the current project (commit it so your team gets it)
On Windows, run .\install.ps1 in PowerShell with the same arguments. Restart your agent after installing so it picks up the new skill.
Install per tool
If you'd rather copy the folder yourself, these are the locations each agent reads. Copy SKILL.md and the references folder into a folder named pwnproof there.
| Agent | User-wide | Per project |
|---|---|---|
| Claude Code | ~/.claude/skills/ | .claude/skills/ |
| OpenAI Codex | ~/.agents/skills/ | .agents/skills/ |
| Cursor | ~/.cursor/skills/ | .cursor/skills/ |
| GitHub Copilot | ~/.copilot/skills/ | .github/skills/ |
| Gemini CLI | ~/.gemini/skills/ | .gemini/skills/ |
| OpenClaw | ~/.openclaw/skills/ | skills/ in the workspace |
| Hermes Agent | ~/.hermes/skills/security/ | user-wide only |
| Cline | ~/.cline/skills/ | .cline/skills/ |
| OpenCode | ~/.config/opencode/skills/ | .opencode/skills/ |
| Kiro | ~/.kiro/skills/ | .kiro/skills/ |
Tool-specific commands
# OpenClaw
openclaw skills install git:Deepshah0308/pwnproof
# Hermes Agent (from the cloned repo)
./install.sh hermes
Windsurf and rule-based setups
Install the skill into the project with ./install.sh --project agents, then add the matching adapter from the repo's adapters folder:
- Windsurf: copy
adapters/windsurf/pwnproof.mdto.windsurf/workflows/, then type/pwnproofin Cascade. - Copilot prompt file: copy
adapters/copilot/pwnproof.prompt.mdto.github/prompts/, then type/pwnproofin Copilot Chat. - Cursor rule: copy
adapters/cursor/pwnproof.mdcto.cursor/rules/. - Anything that reads
AGENTS.md: appendadapters/agents-md/AGENTS.snippet.md. It also adds standing security rules for every future change.
Lovable, Bolt, v0 and Replit
Browser-based builders don't read skill folders from your repo, so they get Pwnproof Lite: one file with the rules, the four phases and the 42 checks that matter most for apps built on Supabase, Firebase and Stripe. It's about 6,700 characters, under Lovable's 10,000-character limit.
- Open pwnproof-lite.md and copy all of it.
- Paste it into the builder:
- Lovable: workspace Settings, Skills, Add. Or Project settings, Instructions.
- Bolt: Account settings, Skills. Or Project settings, Knowledge.
- v0: the project's Instructions.
- Replit: save it as
replit.mdin the project root.
- Ask:
Run a Pwnproof security audit on this app and show me the findings before fixing anything.
If your Lovable or Bolt project syncs to GitHub, clone it and run the full 116-check skill with Claude Code, Codex or Cursor as well. It reads migrations and edge functions the builder's agent may not look at.
Run an audit
Open your project in the agent and ask in plain words. Any of these work:
Run a Pwnproof security audit on this app.
Audit this app for security vulnerabilities before I launch, then fix them.
/pwnproof # Claude Code and Codex ($pwnproof) let you call it by name
The agent works through four phases:
- Map. It reads your config, routes and migrations and shows you the stack, auth, data, payments, storage, AI providers, every entry point and which env vars reach the browser.
- Audit. It loads the five checklists one at a time, starting with platform and secrets, and searches your code with the patterns each check lists, then reads the code around every hit to confirm it.
- Report. It shows the findings table and stops to ask before fixing, unless you said "audit and fix".
- Fix. Critical first, one category at a time, running your build and tests after each.
Read the report
The report has up to five parts, in this order:
- Rotate now. Only if a secret leaked: each key, where it leaked and where to rotate it. Do this first. Deleting a key from code doesn't un-leak it.
- Summary. Counts by severity and the three most dangerous issues.
- Findings. One row per issue:
| Severity | Finding | Location | How it's exploited |
|---|---|---|---|
| Critical | PAY-03 webhook not signature-verified | app/api/stripe/webhook/route.ts:12 | Anyone can POST a fake "payment completed" event and get Pro free |
| High | ACC-02 invoice readable by ID | app/api/invoices/[id]/route.ts:9 | Change the ID in the URL to read another customer's invoice |
| Medium | PLT-07 no clickjacking protection, Unverified | hosting config | Check with curl -sI that frame-ancestors is set |
- Clean areas. What was checked and came up empty.
- Plan. The fix order and anything that needs your approval.
Unverified means the agent couldn't confirm it from code, usually because the setting lives in a dashboard (Supabase, Firebase, Vercel, Cloudflare). Each one comes with the exact thing to check.
Severity, briefly: Critical means anyone can take over accounts, read everyone's data, get paid features free or use your keys. High needs a small precondition like an account. Medium needs chaining or has limited impact. Low is hardening.
How fixing works
- It makes the smallest correct change and prefers built-in protections: Supabase row level security, Firebase rules, Stripe signature verification, your auth library's session helpers.
- It asks before database migrations (enabling row level security without policies can lock your app out), auth provider changes, git history rewrites and production config.
- It never fixes something by turning a security control off.
- Every guard it adds or confirms gets a comment like
// SECURITY: owner scope, blocks IDOR. AI edits tend to delete code they don't understand, and the comment tells future agents why it's there. - It ends with a fix log: what changed, which files, how it was verified and what's left for you, like rotating keys or flipping a dashboard setting.
Smaller runs
Quick Pwnproof scan of this app. # only the 35 highest-yield checks
Use Pwnproof to check just the payment flow. # one area, same evidence rules
Pwnproof audit, report only, don't change anything.
Update and remove
npx skills update # if you installed with the skills CLI
cd pwnproof && git pull && ./install.sh # if you used the installer
./install.sh --uninstall claude codex # remove from specific agents
Troubleshooting
The agent doesn't use the skill
Restart the agent after installing, and name it in the request: "Run a Pwnproof audit". In Claude Code check that ~/.claude/skills/pwnproof/SKILL.md exists. In Codex type /skills to see what loaded.
The audit stops partway on a big codebase
Run it one checklist at a time: "Pwnproof audit, platform checklist only", then auth and access, and so on.
A finding looks wrong
Ask the agent to show the exact code it based the finding on. If it can't, it isn't a finding. Please open an issue with the pattern so the check can be tightened.
I want a check that isn't there
Open an issue with the "New check" template, or send a pull request adding an entry in the same four-part format: What, Exploit, Detect, Fix.