AI Agents and Coding Assistants
What to Check Before You Publish an App an AI Wrote for You
A pre-launch check of an AI-built app: access rules, secrets, data, bad input, costs, legal pages, backups and a way to fix it.
Key takeaways
- Test with two separate accounts to confirm that neither can reach the other's information.
- Keep keys and passwords on the server, and replace any that may have leaked.
- Collect as little personal information as possible, and say honestly what you do with it.
- Set spending limits and keep backups that you have actually tried restoring.
- Decide who fixes problems and how to switch the app off before anyone else uses it.
Before you publish, check that strangers cannot see or change things they should not, that no secret keys are exposed, that bad input does no damage, that costs have a ceiling, that you can restore lost data and that you can take the app offline quickly. If the app holds sensitive information or takes payments, add a review by someone qualified.
An app that works on your screen has passed one test: a friendly user doing expected things. Publishing invites everyone else, including automated programs that scan the internet for weak sites. The checks below can be understood without programming, though some are easier to carry out with help.
Know what you built
Start with an inventory, in plain words. What does the app do? What information does it store, and where? Who can sign in? Which outside services does it contact? What does it cost to run?
Ask your AI tool to list these, then confirm by looking at the hosting dashboard, the database and the service accounts. Surprises are common: a test table full of real names, an administrator page with no password or an analytics service you do not remember adding.
Check the third-party packages (ready-made pieces of code) the app depends on. AI tools sometimes suggest names that do not exist or are not the one intended, a risk described in invented package names. Remove anything unused, and learn how your host or tool reports known security problems in dependencies.
Check who can see and do what
Authentication confirms who someone is. Authorization decides what that person may do. Apps often get the first right and the second wrong.
Create two ordinary test accounts. Sign in as the first and make a record. Sign in as the second and try to reach it, for instance by changing a number or identifier in the web address. Then sign out entirely and try again. Anything you can reach that way, a stranger can too.
Hiding a button is not protection. The rule must be enforced on the server or in the database, where users cannot edit it. Ask the tool to show where each permission is checked, and have someone verify it if the data matters. Remove default or demonstration accounts, and protect your own administrator, hosting and service accounts with strong unique passwords and multi-factor authentication.
Look for exposed secrets
A secret is any value that grants access or spends money: a database password, a service key, a signing token. Anything sent to a visitor's browser or bundled into a phone app should be considered readable by anyone.
Search your files for words such as "key," "secret," "password" and "token." Secrets belong in the server's protected settings, not in page code and not in a public code repository. If one has been public even briefly, assume it was copied: create a new one and disable the old. Deleting the line is not enough, since version history keeps earlier copies.
Try to break it
Spend an hour being an unhelpful user.
- Submit empty forms and extremely long text.
- Enter letters where numbers belong, negative amounts and dates far in the past or future.
- Click a button twice quickly, or use two tabs at once.
- Upload a large or unexpected file type.
- Paste text containing quotes, angle brackets and symbols, and see that it is displayed as plain text.
- Turn off your connection partway through a save.
The app should refuse politely, without crashing, losing data or showing internal error details. Run these only on your own app and test data. Testing systems that belong to others without permission can be unlawful.
The pre-launch sequence
Write down what passed
Keep a one-page record of your checks. It stops you from relying on memory, and it tells a reviewer where to look. A simple version for an invented sign-up app might look like this.
| Check | How tested | Result to record |
|---|---|---|
| One member cannot read another's profile | Two test accounts, edited address | Refused or not |
| Signed-out visitor sees no member list | Private browser window | Pass or fail |
| No keys in browser code | Searched files and page source | What was found |
| Form rejects oversized input | Pasted a very long text | Behavior seen |
| Backup restores | Restored into a test copy | Date and outcome |
Repeat the relevant rows after every significant change. An AI tool asked to add a feature may quietly rewrite a permission rule that worked last week. A check that passed once says nothing about the new version.
If a check fails, do not publish with a plan to fix it later. Describe the failure to your tool precisely, ask what else uses the same code, apply the fix and test again from a clean sign-in. If two or three attempts do not solve a security problem, that is the point to ask a person with experience.
Be careful with the reassurance you get along the way. Asking "is this secure?" invites a confident yes. Asking "show me how a signed-in user could read someone else's record" gives you something to try.
Put ceilings on cost and abuse
Public apps get hammered, sometimes by accident. Set a limit on how often one user or address can perform expensive actions, especially sending email or text messages and calling paid AI services. Set spending caps or alerts in each service that offers them, and note that an alert only informs you while a cap actually stops charges.
If your app includes an AI feature that accepts public input, expect people to try to redirect it. Give it no access to anything you could not stand to have revealed, and do not let it take consequential actions on its own. Security risks of language model apps explains the main ones, and how AI features connect through an API shows where keys and limits sit.
Handle personal information honestly
The safest personal data is the data you never collected. Remove fields you do not need.
For what remains, say in a clear privacy notice what you collect, why, who receives it and how someone can have it deleted. Do not paste a generated policy without reading it; it may promise things your app does not do. Use an encrypted (HTTPS) connection. Never store passwords as readable text, and prefer a well-established sign-in service over a home-made one.
Rules vary by place and subject. Information about children, health, finances or location often carries extra duties, and some places require consent notices or accessibility. This is general information, not legal advice; ask a qualified adviser when the stakes are real. Also confirm you have rights to the images, fonts, text and code you are publishing, and avoid names or designs that imitate someone else's.
Plan for failure
Turn on backups, then restore one into a separate test copy. A backup that has never been restored is a hope. Keep the previous working version of the app so that you can return to it.
Learn how to take the app offline and how to disable each key. Make sure error logs exist and that you look at them. Logs should not contain passwords or full payment details. Provide a contact so that people can report problems, and decide how you would tell users if their information were exposed, since the law may require it.
Set honest expectations for users
Tell visitors what the app is. A short note saying it is a small project, what it is meant for and what it should not be used for helps people judge how much to rely on it. Do not imply guarantees, certifications or security reviews you do not have.
If the app gives calculations or advice, show how results are reached where you can, and say what a person should confirm elsewhere. A tool that estimates recipe quantities needs little caveat. One that appears to guide health, money or legal decisions needs expert involvement, and it may be better not to publish it at all.
If AI generates answers inside the app, say so where people will see it. Some places require that kind of disclosure. Give users a way to flag a wrong or offensive result, and read those flags.
Check basic accessibility too. Try using the app with only a keyboard, enlarge the text and look for labels on form fields and descriptions on important images. These are quick to test and often quick to fix, and some organizations and jurisdictions require them.
Launch small and keep watching
Invite a handful of people first, and tell them it is new. Watch errors, costs and odd activity for a couple of weeks before wider promotion.
Publishing creates an ongoing duty. Dependencies need updates, services change their terms and prices, and someone has to answer messages. If you do not expect to maintain the app, consider keeping it private, or publishing a version that stores nothing. When you can no longer look after it, shut it down properly: notify users, offer their data if appropriate, delete what you no longer need and cancel keys and paid services.
For a second opinion on the code itself, a developer can work through a review checklist in less time if you hand over your inventory and test results.