Your AI-built app probably leaks secrets. I wrote a CLI that checks before you launch
I keep seeing the same thing in AI-built apps. Someone vibes an app into existence over a weekend. It works, it looks good, and then they launch it with the database password sitting in a config file. Nobody checked.
I wrote a small CLI that checks. It's called vibe-code-rescue, and it reads your code and writes a plain-language report with a grade. I built it because I kept finding the same mistakes in AI-built apps, including my own, and I wanted the checker I wished existed.
The fastest way to see what it does is the demo. The repo ships with a deliberately vulnerable app, and the audit takes ten seconds:
git clone https://github.com/vietdat/vibe-code-rescue.git cd vibe-code-rescue node bin/vibe-rescue.js audit demo/vulnerable-app That demo scores F, 17 out of 100, with 19 findings, nine of them critical. The tool estimates 27.5 hours to fix all of it by hand. An app that works fine can still be a mess underneath, and "works fine" is a bad way to decide something is ready.
What it actually catches
The checks fall into a few families. Here is one real finding from each, from that demo run, with the file and line where it lives.
Secrets. The demo commits its .env file, line 1, and hardcodes a JWT secret, an API key, and a database password in config.js, lines 5, 6, and 8. AI tools write secrets into code because the prompt never said not to, and the code runs fine either way. The fix is boring and non-negotiable: move them to environment variables and rotate everything that was exposed.
Auth. In auth.js, line 11, the demo decodes a JWT by splitting the token on dots and base64-decoding the payload by hand. That trusts any token at all, including one someone made up in a text editor. The right call is jwt.verify() with the secret and an expiry check. And in server.js, line 27, there is an admin route with no login check in front of it. Anyone who guesses the URL is an admin.
Data access. db.js builds SQL by gluing strings together, lines 5 and 11. That is textbook SQL injection. And server.js, line 40, fetches a resource by ID with no ownership check, so one user can open another user's data by changing a number in the URL. The CLI calls that BOLA. It is the kind of bug that doesn't show up until someone actually tries it.
Payments and platform config. The Stripe webhook handler in server.js, line 76, never verifies the webhook signature, so anyone can send it fake payment events. The Supabase queries in server.js, line 69, run with no Row Level Security policy file in the project. And server.js, line 17, sets CORS to allow any origin.
Dependencies. package.json contains a package called "lodahs", lodash with the letters swapped, plus a real lodash 4.17.20 with a known CVE and minimist 1.2.5 with another one. AI tools hallucinate package names, and a typo in a dependency name is exactly how supply-chain attacks start.
That is the whole list of families. The report gives you each finding with the file, the line, the exact code, and what to do about it. No jargon where plain words will do.
What --fix does, and what it won't
The CLI has a --fix flag. It applies only the safe, reversible fixes. On the demo it moves the score from 17 to 47 out of 100, and the finding count drops from 19 to 13. Still an F, and that's honest. The remaining 13 are the ones a tool can't fix for you: the admin route needs a real login check, the SQL needs parameterised queries, the BOLA endpoint needs an ownership check. Those are design decisions, not typos. I left them for a human on purpose. A tool that rewrites your auth logic for you is a tool that will break your app in ways you won't notice until production.
And --live
There is a second mode. --live probes a running app instead of reading code: it tries the admin route without logging in, asks for another user's record, sends a fake Stripe event, that sort of thing. On the demo, all five probes fail and the grade drops to F, 2 out of 100. Static checks tell you what's wrong in the code. Live probes tell you what's actually reachable. I run both, because an app can look clean in a code review and still answer requests it shouldn't.
Limits, stated plainly. The checks are heuristics, and heuristics false-positive. A good grade doesn't prove an app is secure. This is not a penetration test, and I don't pretend it is. The docs say where each check can be wrong. If you run it on a real codebase, expect a few findings you'll disagree with. That's fine. The point is the conversation it starts, not a perfect score.
How to run it
Three commands, no install beyond Node 18:
git clone https://github.com/vietdat/vibe-code-rescue.git cd vibe-code-rescue node bin/vibe-rescue.js audit demo/vulnerable-app There is also a Claude Code skill in the repo, if you use Claude Code: npx skills add vietdat/vibe-code-rescue. And a Spring Boot profile if your backend is Java. The Spring sample in the repo scores D, 60 out of 100, with 8 findings. The test suite is 18 tests, all passing.
Try it on your own vibe-coded app. Tell me what it misses. The repo is MIT licensed: https://github.com/vietdat/vibe-code-rescue

