Ingenious AI

Guides · Agent safety and control

Vibe-code security audit: check the app your AI built

The code works. That is exactly the problem: AI-generated apps are usually audited by whether the demo runs, and the flaws that matter — a key in the bundle, an endpoint with no auth — demo beautifully. This is the audit that runs before your users find them.

By the Ingenious AI team · Published 21 November 2026 · Facts checked on 21 November 2026 against the product's own Gumroad listing record in our catalogue

Try the free surface first: Vibe-Code Audit — run the free scan on your shipped app. This guide is the method underneath it, and the local scanner for teams who need to run the audit themselves.

Why AI-generated apps fail in predictable places

A model generating an app optimises for the visible requirement: the feature working on screen. Security properties are invisible in a demo, so they are the first thing traded away — an auth check stubbed “for now”, a storage rule set to public so the upload feature stops erroring, the API key pasted into the front-end because that is where the call is made. None of this is carelessness unique to AI; it is the standard shortcut set of every rushed build, produced at machine speed and machine scale. The saving grace is that the set is short and stable — which means it can be audited mechanically, every time, before launch.

The audit, in order

1. Secrets. Grep the repository and the shipped bundle for key-shaped strings: cloud keys, API tokens, service passwords, private endpoints. Check the git history too — a secret removed in the latest commit is still in the history, and still a secret. Any hit is a rotation, not just a deletion.

2. Authentication and authorisation. For every endpoint and data rule, ask who the code believes the caller is, and what proves it. The vibe-code signature flaw is the check that exists on the page and not on the API beneath it.

3. Storage and data exposure. Bucket and database rules as deployed, not as intended. Public-read storage left over from development is the single most common finding class in this audit's experience set.

4. Production posture. Debug flags, verbose errors, test routes and sample data still live. The app you demoed and the app you shipped should differ in exactly these settings — verify that they do.

5. Dependencies. Versions the model remembered versus versions that exist and are maintained. A remembered version can be years stale, with known vulnerabilities that have public write-ups.

Score it, fix it, re-run it

An audit that ends in a vibe is not an audit. Score the result (our scanner reports 0–100), write each finding with its evidence, fix in severity order, and re-run to prove the fix — the same discipline as any other security work, compressed to the scale of a shipped side-project or a client's first app. The fix-prompt pattern deserves its own note: for AI-generated code, the remediation artefact that works is a precise prompt — the finding, the file, the bounded change — pasted back into the generator, then verified by the re-scan rather than by the generator's assurance.

The scanner

The Vibe-Code Audit Scanner ($49, checkout on Gumroad) packages this method: the Python scanner (exposed-secrets patterns, OWASP basics, live-site checks, 0–100 scored report with a copy-paste fix prompt per finding), the audit guide including the playbook for selling $99 one-time audits as a service, a sample audit report, and its test log — 11 of 11 planted flaws caught in testing. Run it locally on your own code or a client's. The whole-shelf option is The Vault at $99, which bundles the store's paid packs and kits.

Make the audit a habit, not an event

One audit before launch is the minimum, not the finish. AI-generated apps change the way they were built — in regeneration sessions, where a model rewrites a working file to add a feature and quietly re-stubs the auth check that was in its way, or swaps a pinned dependency for the version it remembers better. The flaw set is short and stable, which is what makes re-running cheap: the same scan, on every release, scored the same way, with the scores kept in a row. A score that drops after a build session is the signal to read the findings before anything ships; a score that holds is the evidence the session did not trade security for the feature. Teams that sell audits as a service run the same rhythm for clients — the re-scan is the recurring artefact, and the fix prompt is the deliverable the client actually uses.

Sources

Frequently asked questions

What flaws show up most in AI-generated code?

The same short list, project after project: secrets committed in source or shipped in the client bundle, endpoints that trust the caller's identity without checking it, storage rules left permissive from development, debug and verbose error modes still on in production, and dependencies pinned to whatever version the model remembered. The scanner in this guide was tested against a planted-flaw suite and caught 11 of 11 — the flaws are predictable, which is what makes them auditable.

Can't I just ask the AI to check its own code?

Ask — then verify independently. The model that generated a pattern is a poor witness against it, and a chat answer produces no artefact you can re-run after the next change. An audit you can re-run, with a score and a written finding per flaw, is a different thing from a reassuring paragraph.

What does the scanner actually check?

Exposed-secrets patterns, OWASP basics and live-site checks, reported as a 0–100 scored report with a copy-paste fix prompt per finding — the fix prompt matters, because the fastest safe remediation for AI-generated code is usually handing the generator a precise, bounded correction. It is a Python scanner (3.8+, standard library plus requests), not a hosted service: your code stays on your machine.

Is a scanner a substitute for a professional audit?

No, and the guide that ships with it says so by structure: it also contains the playbook for selling $99 one-time audits as a service, which only makes sense if human review remains a real tier. The scanner's job is catching the predictable flaw set before launch and on every re-scan — the flaws that embarrass, leak keys and hand attackers the first rung.

How does this relate to the free Vibe-Code Audit platform?

The platform at vibe-audit.getingeniousai.com runs the free scan as a hosted service. The Gumroad product is the scanner itself — the Python file, the audit guide and a sample report — for running locally, on client code, or as the engine of an audit service you sell.

Related guides and tools