AI app builders are very good at the first 80 percent: screens, flows and a working demo. They are much weaker at the parts nobody sees in a demo, such as access rules, error handling, cost limits and backups. Those gaps do not matter with ten friendly testers. They matter a great deal once you have paying customers, real personal data or an investor asking for a security review.
This guide is the checklist a senior engineer runs before an AI-built app grows. You can work through most of it yourself in an afternoon. Where a check needs an engineer, we say so.
Why do AI-built apps break when real users arrive?
AI-built apps break at scale because the tools optimise for a working demo, not for hostile users, messy data or growth. The code usually runs. What is missing is the defensive layer: access rules, input checks, rate limits, error handling and backups that an experienced engineer adds without being asked.
There is now good evidence for this. In its 2025 GenAI Code Security Report, Veracode tested code from more than 100 large language models on 80 coding tasks and found that 45 percent of the samples introduced a known security weakness. Newer and larger models did not do meaningfully better on security, even when they wrote more correct code.
A 2023 study from Stanford researchers, "Do Users Write More Insecure Code with AI Assistants?", found that participants using an AI assistant wrote less secure code than those without one, and were more likely to believe their code was secure. That second finding is the real risk for founders: the app feels finished.
A real example: exposed databases in AI-built apps
In 2025 a security researcher found that many apps generated with Lovable had database access rules (Supabase row level security) that were missing or too loose, so data could be read or changed by people who should not have access. The issue was published as CVE-2025-48757, and public write-ups reported more than 170 affected apps. The fix was not exotic. It was the access rules a senior engineer checks first.
Security and access: can a stranger see someone else's data?
Start here, because this is where the damage is largest. The question is simple: if I sign up as a new user, or do not sign in at all, can I read or change anything that belongs to someone else? In AI-built apps the answer is often yes, because the database trusts the browser.
Database access rules are on for every table.
If you use Supabase, row level security must be enabled on every table that holds user data, with policies that tie each row to its owner. If you use Firebase, the security rules must not allow open reads or writes.
No secret keys in the browser.
Open your site, view the page source and the network tab, and search for "sk_", "secret", "service_role" and your API provider names. Service-role keys, payment secret keys and AI provider keys belong only on the server.
Every admin action is checked on the server.
Hiding an admin button in the interface is not protection. The server must refuse the action for non-admins.
Sign-up and password reset are rate limited.
Otherwise bots can create thousands of accounts or flood your email provider.
File uploads are restricted.
Limit file types and sizes, and make sure uploaded files are not public unless they should be.
Inputs are validated on the server.
Forms that only check inputs in the browser can be bypassed in seconds.
Built your app with AI and not sure it is ready? Book a free 20-minute call with a senior engineer.
Data and backups: what happens if the database is wiped tonight?
If you cannot answer "we restore from last night's backup and lose at most a day", you are not ready for paying customers. AI app builders rarely set up backups, restore tests or separate development and production databases by default.
This is not theoretical. In July 2025 the founder of SaaStr reported that Replit's AI agent deleted his production database during a code freeze, and Replit's chief executive apologised publicly. The lesson is not about one tool. Any agent or person with write access to production can make that mistake, so production needs backups and guard rails that do not depend on anyone being careful.
Automatic daily backups
are switched on, kept for at least a week, and stored outside the main database.
A restore has actually been tested
, not just configured. A backup you have never restored is a hope, not a backup.
Development and production are separate.
Experiments and AI agents work on a copy, never on live customer data.
Personal data is mapped.
You know which tables hold names, emails, payments or health data, and who can read them.
Deletion works.
When a customer asks to be deleted, you can do it completely, including backups on their normal schedule.
Cost: could one user or one bug run up a large bill?
AI-built apps often call paid services, such as AI models, email, SMS and maps, directly from code with no limits. One loop, one abusive user or one leaked key can turn a small monthly bill into a large one overnight. The fix is spending caps and per-user limits set before you grow.
| Cost risk | What to check | Who can fix it |
|---|---|---|
| AI model calls | Per-user and daily limits on prompts; the key lives on the server; usage alerts are set in the provider dashboard | Founder sets alerts; engineer adds limits |
| Email and SMS | Rate limits on sign-up, password reset and invites; provider spending cap | Engineer |
| Database and hosting | Plan limits understood; slow queries found before traffic grows | Engineer |
| Leaked keys | All keys rotated after any exposure; keys scoped to the minimum permissions | Founder can rotate; engineer scopes |
| Third-party APIs | Retries cannot loop forever; failed calls are logged | Engineer |
Reliability: will you know when it breaks?
You are ready when you hear about errors from your monitoring before you hear about them from customers. Most AI-built apps have no error tracking, no uptime checks and no logs anyone reads, so failures show up as silent churn.
Error tracking
(for example Sentry or your host's equivalent) is installed on both the front end and the server, and alerts reach a person.
An uptime check
pings the site and the main API every few minutes and alerts you when they fail.
The critical paths have tests
Sign-up, sign-in, payment and the one action your customers pay for. Even five automated tests catch most regressions.
Deployments can be rolled back
in minutes, and you know how.
Slow pages are found early.
Check the main screens with real data volumes, not the ten demo rows.
Code ownership: do you actually own your app?
You own your app when the code is in a repository under your company's account, the hosting, database, domain and app-store accounts are in your company's name, and someone other than the original builder can run it. Many founders discover they own none of these when a freelancer or a builder subscription disappears.
The code is in your own GitHub or GitLab organisation
, not only inside the builder tool or a freelancer's account.
Hosting, database, domain and email accounts
are owned by a company email you control, with two people having access.
There is a short README
that explains how to run the app locally and how to deploy it.
Environment variables are listed
(names, not values) so a new engineer can set the app up.
Licences are clean.
Paid templates or components used by the builder are licensed to you.
Should you fix the AI-built app or rebuild it?
Fix it in place in most cases. A rebuild throws away working features and the lessons your users already taught you, and it usually takes far longer than planned. Rebuild only when the data model is fundamentally wrong for your business, or when the code cannot be run outside the builder at all.
| Situation | Usually the right call |
|---|---|
| Access rules missing, keys in the browser | Fix in place, this week |
| No backups, no monitoring, no tests | Fix in place; add them before new features |
| Messy code that works | Keep it; clean up the parts you change most |
| Data model does not fit how the business works | Plan a staged rebuild of that part only |
| Code cannot be exported or run outside the builder | Rebuild, using the current app as the specification |
How long does it take to make an AI-built app production-ready?
For a typical small AI-built app, a senior engineer can review it and fix the most serious risks in about two weeks, then keep improving it while you add features. Larger apps, or apps with payments, health or financial data, take longer. The order matters more than the speed: data exposure first, then backups, then monitoring, then cost limits, then everything else.
At Hyparz this is exactly what a two-week start is for. One senior engineer reviews the code, writes down what is risky in plain English, fixes what matters most, and you decide whether to keep them by the month. You keep the written list either way.
Frequently asked questions
Is code from Lovable, Bolt or Replit safe for production?
It can be, once it has been checked. The tools produce working code quickly, but they often leave out access rules, server-side checks, backups and cost limits. Treat the output as a first draft and have an experienced engineer review security and data access before real customers rely on it.
What is the most common security problem in AI-built apps?
Data access. Database rules that are missing or too loose let signed-in users, or anyone, read or change other people's records. Secret keys exposed in the browser are a close second. Both can be checked in an afternoon and fixed quickly.
Do I need to rebuild my vibe-coded app from scratch?
Usually not. Most AI-built apps can be fixed in place, starting with the risks that expose customer data. A rebuild makes sense only when the data model does not fit the business or the code cannot run outside the builder.
How do I check if my Supabase database is exposed?
In the Supabase dashboard, confirm that row level security is enabled on every table with user data and that each policy limits rows to their owner. Then sign up as a new test user and try to read another user's records through the app and the public API. If you can, it is exposed.
What should I show investors or enterprise customers about my app's security?
A short written summary: how data access is controlled, where secrets are stored, how backups and restores work, how errors are monitored, and who owns the code and accounts. A dated review by an experienced engineer, listing what was checked and fixed, answers most early security questionnaires.
Can Hyparz review and fix an app built with AI tools?
Yes. One senior engineer reviews the code, security and data, gives you a plain-English list of risks, and fixes what matters most, usually starting with a fixed two-week piece of work. A second senior engineer reviews the changes. You own the code and accounts throughout.
Ask an AI about this guide
Open it in your favourite assistant with this page already attached, then ask follow-up questions about your own case.
About this guide
Written by the Hyparz engineering team and reviewed by a senior engineer with 10 to 16 years of experience shipping software since 2013. Statistics link to their original source. Last reviewed December 5, 2026.
