Is an app built with AI tools safe to give to customers?
By Amarjot Gill ·
An app built with AI tools can be safe to give to customers, once someone has checked the parts these tools tend to get wrong: who may see which records, where the keys are kept and how the database is locked down. An app that works when you click through it can still let one customer read another customer’s data.
The answer changes with what the app holds. A page that shows your opening hours carries little risk. An app that stores names, phone numbers, bookings or payment details needs a security review before launch, whoever or whatever wrote the code.
This guide sets out what our team at Base Foundry checks before a web app goes live, whether people or AI tools wrote it.
Why can an app that works still leak data?
An app that works can still leak data because AI tools build what you ask for, and security faults don’t show up when you click through the screens. Ask for a booking page and you get a booking page. Nobody asked the tool to stop a stranger reading everyone else’s bookings, so the page looks finished when it isn’t.
Veracode tested code written by more than 100 AI models in Java, Python, C# and JavaScript and published the results in July 2025. In 45% of the samples, the code failed its security tests and contained a flaw from the OWASP Top 10. That’s a widely used list of the most common weaknesses in web apps. Newer and larger models were no better at writing secure code, though they were better at writing code that runs.
That study tested short coding tasks, not finished apps, so it can’t tell you the odds for your app. It does mean the code needs checking by someone other than the tool that wrote it.
Can one customer see another customer’s data?
One customer seeing another customer’s data is the most common serious flaw in web apps. OWASP ranks it first in its 2025 Top 10 under the name broken access control, which means the app doesn’t check whether the person asking for a record is allowed to have it.
The usual form is simple. A customer opens their invoice at an address ending in /invoices/1041, changes the number to 1040 and sees someone else’s invoice. The app showed the page because the person was signed in, without checking that invoice 1040 was theirs.
You can test this yourself without any technical knowledge:
Passing this test doesn’t prove the app is safe, because the same check has to happen on the server for every kind of record. Failing it proves the app isn’t.
Does the server check permissions, or only the screen?
The server has to check permissions on every request, because anything the screen hides can still be asked for directly. A common fault in AI-built apps is a page that hides the admin buttons from ordinary users while the server behind it still carries out admin actions for anyone who sends the request.
Think of the screen as a shop’s front counter and the server as the stockroom. A “staff only” sign on the counter doesn’t help if the stockroom door is unlocked. Anyone can open the browser’s developer tools and see the requests the app sends. They can then send their own.
Ask whoever built the app to show you where, in the server code, each request checks who the user is and what they’re allowed to do. If the answer is that the page hides the button, that’s the problem.
Is the database open to anyone who has the app’s address?
The database behind an AI-built app is often reachable straight from the browser. When it is, the database’s own rules are the only thing protecting your data. Many AI app builders use Supabase, a hosted database that the app’s pages talk to directly. That set-up is safe only when row level security is turned on and written correctly. Row level security is a set of rules inside the database that decides which rows each signed-in user can read or change.
In March 2025 Matt Palmer, a developer who researched the problem, checked 1,645 apps published through the Lovable app builder and found 170 with data anyone could read. The exposed data included email addresses, phone numbers, payment details and API keys. The cause was missing or wrong row level security rules, and the flaw was recorded as CVE-2025-48757 in May 2025.
Having a rule isn’t enough. Each one has to match who should see what, and someone has to test it by trying to read data they shouldn’t be able to reach.
Are passwords or keys left in the code?
AI tools often put passwords and API keys straight into the code, where anyone who can see the code can copy them. An API key is a password one program uses to reach another service, such as a payment provider, an email service or an AI model. Whoever has the key can use that service on your account and your bill.
GitGuardian’s State of Secrets Sprawl 2025 report counted 23.8 million new secrets, meaning passwords, keys and tokens, pushed to public GitHub projects during 2024. Public projects where GitHub Copilot was used leaked secrets at a 40% higher rate than the average. Those are public projects, so the figures say more about habits than about private business apps.
Code that runs in the browser can be read by anyone who visits the page. Private keys have to live on the server, in settings kept outside the code. Ask the builder to search the code for keys before launch. Any key that was ever exposed should be replaced, because deleting it from the code doesn’t stop someone who already copied it.
What can you check if you’re not a developer?
You can check a few things yourself before any customer signs in:
Write the answers down. If nobody can answer them, you’ve learned who will be left responsible when something goes wrong. Our guide to whether you need a website or a web app explains why an app that holds customer accounts needs more care than a brochure site.
Who should sign off before launch?
A person who reads code and understands web security should sign off before launch. It shouldn’t be the AI tool that wrote it. A tool reviewing its own code has the same blind spots the second time, much like a writer proofreading their own work.
The review should cover the server’s permission checks, the database rules, where keys are kept, how sign-ins work and what gets logged. For an app that holds customer records, that review is part of the cost of building it, whoever did the typing. The guide to questions to ask before hiring a software developer helps you tell whether someone can do that review, and what drives the cost of custom software explains where testing fits in a budget.
Security work doesn’t end at launch either. The libraries an app is built on release fixes for new flaws every month, and someone has to apply them, which is what maintenance and support covers.
What if customer data has already been exposed?
If customer data has already been exposed, close the gap first, then work out what was reached and by whom. Change every key and password that was in the code or the database, and check the hosting and database logs for signs of someone reading records in bulk.
In Canada, PIPEDA, the federal privacy law for businesses, requires you to report a breach to the Privacy Commissioner of Canada and tell the people affected when the breach creates a real risk of significant harm. The Commissioner’s guidance also says to keep a record of every breach for two years, including the ones that don’t reach that threshold. In the United States, the rules depend on the state your customers live in.
Should you fix the app or rebuild it?
Most AI-built apps can be fixed instead of rebuilt, when the problems are in the permission checks, the database rules and where the keys are kept. Those are contained changes to a working app. A rebuild makes sense when the way the data is organized is wrong, for example when every customer’s records sit in one shared table with nothing to say whose they are.
The same goes for AI features inside the app. Anything customers type that gets sent to an AI service leaves your systems, which our guide on how a small business can use AI covers in its section on ChatGPT.
Our web app development and custom software pages explain how we build apps with these checks in from the start. If you have questions about the safety of an app built with AI tools, book a free assessment and bring the app’s address and a test login.