5-minute challenge: a security checklist for vibe-coded apps
The problem, in one line: someone describes an app to an AI, the AI generates it, it works first time, and two days later customers or colleagues are using it. Nobody reviewed it because “the AI built it”.
Working is not the same as being secure. And if the app was built by someone outside IT, it’s the Shadow IT case again, except now the code was written by a third party that answers for nothing.
Five minutes for a first pass. It doesn’t replace a proper security review, but it catches the big stuff.
The fix, in six checks
1. Look for secrets in the code. API keys, database passwords, tokens, connection strings written straight into the code or into a file pushed to the repository. It’s easy for sample values, or a key pasted into the conversation for testing, to end up in the code. Check the repository and its history, not just the latest version. If you find a real one, treat it as compromised and rotate it, even if the repository is private. Secrets belong in a secrets manager or environment variables, never in the code.
2. Check authentication and authorization. Two different questions. Do you have to sign in to get in? And can a signed-in user see only their own data? Try changing an identifier in the URL or in a request and see whether it returns someone else’s data. Check for leftover test accounts, default passwords and open admin routes. If you can, use the corporate sign-in instead of a homemade one.
3. Look at the dependencies. The AI adds libraries without you noticing. Pull the list, remove what isn’t used, and check that each package really exists, is the one you think it is and is maintained. Watch for names almost identical to a well-known package: they may be a typo or a malicious imitation. Run a dependency scan with whatever tool you already have.
4. Apply least privilege. Which account does the app use to connect to the database and the cloud? If it’s the admin one because that’s how it worked before, change it. The app should be able to do what it needs and nothing more. Same for file permissions, storage access and public routes.
5. Review which user data it handles. What it collects, where it stores it, who sees it and how long it keeps it. If there is personal data, whoever handles data protection must know before launch, not after. Check the logs too: they shouldn’t write passwords, tokens or personal data in clear text. And if the app sends data to an external AI service, apply what we covered in the challenge on what data should never go into an AI.
6. Have a person review it before production. A person with judgment, different from whoever asked the AI for it, reads the code that touches access, data and configuration, and signs off on the release. No sign-off, no production. There must also be a named owner: when something breaks at eleven at night, someone has to know the app is theirs.
Final check
Two questions, no cheating:
- Can you say, without opening the code, where each of the app’s secrets lives and who can change it?
- Is there a name and surname for who reviewed the app and who answers for it?
If you hesitate on either, you don’t have to stop the project: put it in a test environment, with fake data, until the answer is clear. And if nobody in your company has said how an AI-built app goes to production, that’s the first thing to write down: one page with these six checks and an owner. If there are only bans, the apps will keep getting built, just without IT knowing.