With AI coding tools, building a website or a small app takes hours instead of weeks. That is great news, but it comes with a risk: something working does not mean it is secure. A form that submits data correctly can, at the same time, let in things it shouldn't.

Before launching, these are the three checks I never skip.

1. Keys and secrets out of the code

Database passwords, API keys or tokens must not be written in the code or committed to the repository. If they are there, anyone with access to the repository (or its history) can use them. They belong in environment variables or a secrets manager, and if one was ever published, rotate it: deleting it from the file does not delete it from the history.

2. No input gets in unvalidated

Everything that comes from outside (forms, URL parameters, uploaded files) may have been tampered with. Check type, length and format on the server, not just in the browser, and never build queries or commands by pasting user text. Injection still appears on OWASP's lists of the most common flaws for a reason.

3. Permissions: each user sees only their own data

Check what happens if you change the ID in the URL (/order/124 to /order/125) or call an admin function without being an admin. Access control must be enforced on the server on every request, not by hiding buttons in the interface.

AI as a first filter

AI coding tools now include security reviews themselves:

  • Claude Code has the /security-review command, which reviews your changes for injection, authentication and permission flaws, unvalidated input and dependencies with known vulnerabilities, and explains each issue.
  • Codex lets you request a code review (codex review) with security-focused instructions.

Use them before every launch, with two rules: they do not replace an audit, and you review every fix they suggest before accepting it. A tool that finds problems can also propose incomplete solutions.

A habit, not an event

The security that works is the kind you check before every release, not the kind you look at after something has happened. When do you check yours?