Security for Non-Technical Founders Building With AI: The Five Things That Matter
You do not need to read code to keep an AI-built app reasonably safe. You need to understand five questions: who can see which data, whether the app checks who is asking, where your secret keys live, what happens with money, and whether you would notice a problem. If you can answer each one, and test the first two yourself with a second account, you are ahead of most apps launched this way.
On this page
This post is for founders, designers, marketers and product people who built something real with Lovable, Bolt, Replit, v0, Cursor or Claude Code, and now have users, or are about to. No jargon without an explanation, no code you have to write.
Why AI-built apps leak
AI builders are very good at the path where everything goes right: a user signs up, logs in, sees their dashboard. Security problems live on the other paths. What if someone changes a number in the address bar? What if they call your database directly instead of using your screens? What if a request arrives twice?
Your AI will not think about these unless you ask. Not because it cannot, but because "make a dashboard" does not mention them. The good news is that the problems are predictable, and the same few cover most real incidents.
1. Who can see which data?
Picture every piece of data in your app as a row in a spreadsheet: each user, each order, each message. For every table, you should be able to say in one sentence who may see each row. "Users see only their own orders." "Everyone can see published posts." "Only admins see the payments table."
The trap: in apps built on Supabase or Firebase, the browser talks to the database directly. Your screens might only show a user their own orders, but the database itself decides what it hands out. If the database rules say "anyone can read everything", then anyone can, with no special skill, just by asking the database instead of your screens.
What to do: ask your AI to list every table and who can read and change it. If the answer for anything private is "everyone" or "any logged-in user", that is your first fix. Our post on Supabase RLS mistakes has the technical detail to hand to whoever fixes it.
2. Does the app check who is asking, every time?
Hiding a button is not the same as protecting the action behind it. If your admin page is "only visible to admins", ask what happens when a normal user goes straight to that address. The answer must be "the server refuses", not "they would not find it".
The same goes for IDs. If your invoice page lives at /invoice/1042, what happens when a logged-in user types /invoice/1043? They should get "not found", not someone else's invoice. This single mistake, called IDOR, is behind a large share of real data leaks. More in IDOR explained.
3. Where do your secret keys live?
Your app uses keys to talk to other services: your database, Stripe, OpenAI, email. Some keys are meant to be public and sit in the website safely. Others are like a master password and must never reach the visitor's browser.
The rule of thumb: anything called "secret", "service role" or starting with sk_ belongs on the server only. If your AI ever puts one in the frontend to "fix an error", that is a leak, and the fix is to replace the key, not just move it. See secret keys in the frontend.
4. What happens with money?
If your app takes payments, two questions:
- Who decides the price? It must be your server looking it up, never a number sent from the browser. Otherwise a user can edit the price before paying.
- How does your app know a payment succeeded? It must hear it from Stripe directly (a "webhook" with a verified signature), not from the user landing on a "thank you" page.
Details in the client sets the price and unverified Stripe webhooks.
5. Would you notice?
Most leaks are discovered by someone else: a user, a journalist, a security researcher, or the bill. Set up three cheap alarms:
- error alerts sent to your email or Slack (Sentry or similar)
- spending limits and alerts on every paid service, especially AI APIs
- a way for people to report problems, such as a
security@address
The one test anyone can do
Create two accounts, A and B, in two different browsers (or one normal window and one private window). As B, create some data. As A, try to see or change it: change IDs in the address bar, open B's links, use every screen. If A ever sees B's data, stop and fix that before anything else.
The next posts in this series give you the exact prompts to send your AI, rules to set once, and a 30-minute check you can run without code.
When to bring in a person
Before you take payments, before you store anything sensitive (health, finance, documents, children's data), and before a big launch or investor due diligence. AI scanners catch a lot, but they test what the code does, not whether your rules make sense for your business. That is what our app rescue and security audit is for.
