vibe-security-check
A security audit skill for apps built with AI — covering the app you ship and the pipeline
that built it.
Free, offline, no account. Works with Claude Code, Cursor, Windsurf, Copilot, and with any model
including local open-source ones.
/plugin marketplace add marvinrez/vibe-security-check
/plugin install vibe-security-check@marvinrez-skills
Both skills, updatable in place. Every other install path — plain files, a rules file, a pasted
prompt, a local model — is in INSTALL.md.
Why
An app built with AI usually has decent code and an open perimeter. The model writes the login
function correctly and leaves the database key in the frontend bundle; it writes the parameterized
query and publishes the bucket. Reviewing the diff finds none of that, because none of it is in the
diff — it lives in .env, in the Supabase dashboard, in the bucket policy, in git history.
And when an agent writes the code, the repository becomes an input channel and the agent becomes the
one executing. That is the only surface here where the target can be you, on your machine,
before anything is deployed.
Two skills
The same generated code, examined from two sides. They are kept separate because the findings have
different consequences and different readers, and because a hardcoded hex colour and a hardcoded API
key look alike and are not the same finding.
| Skill | Answers | Read it when |
|---|
vibe-security-check | can someone else read the data? | before publishing, launching, handing off or taking over |
vibe-lint | can an engineer take this over? | before a prototype becomes a sprint estimate |
A prototype heading for production usually needs both, in that order — a component nobody can
maintain is where a fixed check quietly comes back. vibe-lint was
its own repository and now lives here.
What is in the box
A skill that dispatches instead of dumping. A short SKILL.md routes to thirteen domain
references loaded only when they apply — secrets, client code, identity, authorization, data stores,
input and output, payments, mobile, cost, model features, operations, the agent pipeline, and the
generator that wrote it. Nothing loads what an app does not have.
Tool-aware routing. references/generators.md
maps every major generator to where its perimeter usually breaks, in three families that fail in
different ways: builders (Lovable, Bolt.new, v0, Replit, Figma Make, Base44, Tempo) inherit platform
defaults tuned for the screen working first time; editors (Cursor, Windsurf, Copilot) fail by
subtraction or by propagating one bad pattern; agents that run commands (Claude Code, Codex, Gemini
CLI, Devin) add the repository as an input channel. One question to whoever hands you the app
decides what to open first.
Four scripts that produce evidence, not opinion. Each exits 1 on a finding and 2 when it could
not finish the check, so they drop into CI unchanged and a check that did not run never passes.
| Script | Answers |
|---|
anon-key-probe.sh | can an anonymous client read or write the database? |
bundle-secrets.sh | did any secret get inlined into the shipped frontend? |
history-secrets.sh | is there a secret anywhere in git history? |
exposed-paths.sh | is .git, .env or a debug surface served in production? |
Thirteen Semgrep rules for the mistakes specific to AI-generated code: the service-role key that
bypasses every rule, the model and token limit taken from the client, the charge amount posted by
the browser, the webhook signature verified against a parsed body, mass assignment straight from the
request, and a taint rule for a model's response reaching a query, a shell command, raw HTML or
eval without being parsed into a shape the app defined. The rules about client values follow them
through destructuring and await req.json(), so a Next.js route handler is covered as well as an
Express one. Paired fixtures pin the behaviour line by line: each line a rule must fire on is
annotated, a vulnerable fixture may produce no finding that is not, and a safe fixture — Stripe's
documented webhook handler, a parameterized query, an allowlist lookup — may produce none at all.
A rule added without a fixture fails the build.
Tests that run the scripts. scripts/tests/run.sh executes all four against local stand-in
hosts and fixtures, and checks the three answers that matter: it finds what is there, it stays quiet
on what is clean, and a host that could not really be tested — unreachable, redirecting, behind a
login — reports as incomplete rather than as a pass. The stand-in database replays what a real
PostgREST answers for each RLS state, so a locked table is tested as a locked table actually looks.