Sitral.AI
← Blog
Guides

Is it safe to publish an app built with AI? What to check first

A short, concrete list of what to check before you put a site or app you built with Lovable, Bolt, v0, or Cursor on the internet.

· 3 min read

You built your app with AI, you tested it, and it works. The question almost nobody asks at that point is the most important one: is it ready to be used by people you don't know?

Working and being secure are two different things. An app can look flawless and still let anyone read all of your users' data. You won't notice it by using the app. You'll notice it when someone takes advantage of it.

This is the list to go through before you publish.

1. Are there secret keys in the code the browser sees?

Everything that runs in the browser is public. If the secret key for your payment provider, your database, or an AI service ended up in that code, anyone can copy it.

How to check: open your site, right-click → "View page source" and search for text like sk_live, sk-, service_role, or secret. Run the same search in the Sources tab of the developer tools.

2. Does the database have access rules?

This is the most serious mistake and the most common one. If you use Supabase or Firebase, your app talks to the database directly from the browser. Without access rules, anyone can use that same door to read or delete everything.

How to check: in Supabase, open each table and confirm that it says RLS enabled and that it has policies written. A table with RLS turned off is a public table.

3. Are permissions checked on the server?

Hiding the "Admin" button doesn't protect anything. If the function is still available to anyone who calls it directly, hiding the button only fools honest users.

How to check: for each sensitive action, ask yourself where the app checks who is making the request. If the answer is "on the screen," the real check is missing.

4. Does the login limit the number of attempts?

Without a limit, a program can try thousands of passwords a minute until it gets one right.

5. Do the forms validate what they receive?

Anything a user types can be an attack attempt. Data has to be validated on the server, not just in the form.

6. Are the libraries up to date?

AI often suggests old versions with known flaws. And sometimes it recommends packages that don't exist: attackers register those names and put malicious code inside.

How to check: run npm audit in your project and look at what it reports.

7. Do you have backups, and is anyone watching?

If the database gets deleted tomorrow, can you get it back? If the site goes down at three in the morning, who finds out?

If you don't know where to start

You can start with what's visible from the outside. Ask us for a free check: we look at your site and tell you if we see exposed keys, sensitive files that are publicly accessible, or basic protections that are missing. What can't be seen from the outside, like the database rules, we review in the full audit.

Does your site have any of these problems?

Send us your site: we'll look at it ourselves and, within one business day, tell you what's visible from the outside.

Check my site for free

Keep reading