Small apps change hands every day, and more and more of them were written mostly by an AI tool. That is not a problem in itself. The problem is that an app can look finished, have paying users and still hand its data to anyone who knows where to look.
Once you buy it, those problems are yours: the cleanup, the angry users and any notice you owe them. This guide is what to check before you pay, in plain words.
Ask for the code first
You cannot judge an app's security from its pages alone. Before you agree a price, ask the seller for read access to the code, or a copy of it. A repository (the folder that holds the app's code and its history) or a zip file is enough.
A seller who will not share the code before the sale is telling you something. Some sellers share it only once there is a signed letter of intent or a confidentiality agreement, which is fair.
Who can read the data
This is the most common serious problem in apps built with AI tools. For an app on Supabase, a service that keeps an app's data in a database, check:
- Row Level Security (the database's own rules about who may read or change each record) is on for every table that holds private data.
- Each rule really limits who gets in, and is not simply "anyone may read".
- Pages and endpoints that return data check who is asking. An endpoint is an address in the app that programs call to get or change data.
OWASP, a nonprofit that lists common security problems, puts broken access control first in its 2025 Top 10. In a small app, it usually looks like one of the three points above.
Where the keys live
A key is a long password the app uses to prove who it is to another service, such as Supabase or Stripe. Some keys are made to be public. Secret keys are not, and a secret key in code that visitors download lets anyone act as the app on that service.
- A Supabase secret key (the newer form of
service_role) must never sit in browser code. - A Stripe secret key (
sk_) must stay on the server. - In Next.js, any setting whose name starts with
NEXT_PUBLIC_ends up in browser code.
If a secret key ever reached browser code, ask the seller to replace it before the handover, and replace it again yourself after.
What the app runs on
Apps install packages: code other people wrote. Ask for the list with versions, and look for packages that are years out of date or no longer maintained. Old packages are where publicly known weaknesses live.
Signs worth a closer look
You can spot some warning signs in an hour, even without reading much code:
- The app has no sign-in at all, yet it shows or stores personal data.
- Settings files named
.envsit inside the repository. A.envfile is where an app keeps its keys, and it should never be shared with the code. - The code has many unused files, or several copies of the same feature, which often happens when an AI tool rewrote parts many times.
- Nobody can tell you which accounts the app uses, such as hosting, database, payments and email.
None of these is a reason to walk away on its own. Each is a reason to look closer before you agree a price.
The day you take over
Security work does not end at the sale. On the day the app becomes yours:
- Move every outside account (hosting, database, payments, email, domain) into your own name, and remove the seller's access.
- Replace every secret key, even ones that never leaked, because the seller has seen them.
- Turn on two-step sign-in for every account that offers it.
- Write down what you changed and when, so you can trace a problem later.
What to ask the seller for
- Read access to the code before you agree a price.
- A list of every outside service the app uses, and confirmation that every key will be replaced at handover.
- A note of any security incident, leak or complaint so far.
- Fixes for the serious problems before the sale closes, or a lower price to cover them.
A seller can make this easy
If you are selling, an outside review of your code before you list answers a buyer's first question before they ask it. A Nordik audit comes with a mark that has its own page on getnordik.com, and a security answers sheet you can hand a buyer: what was reviewed, and against which published standard.
Buying instead? Nordik reads the code you were given and tells you in plain words how serious each problem is, with a fix for each. It is an AI-performed audit, not a penetration test, and the code is read, never run. See a sample report.