Cursor and Claude Code are force multipliers. They also shift the bottleneck from writing code to reviewing it. The security gaps we see in AI-assisted codebases are not new categories; they are the usual ones, arriving faster and in larger volume.
Authorization that exists but is wrong
The AI adds an authorization check, so the box is ticked. But the check often validates the wrong thing: a role string instead of ownership, or a frontend guard instead of a server check. Review every authorization path by hand, especially anything touching money, data export, or admin actions.
Secrets and configuration drift
Keys get pasted into chat, then into code, then into git. Even when moved to environment variables, the old value remains in history. Rotate anything that touched a prompt or a commit.
Dependencies nobody chose
AI suggestions pull in packages for convenience. Each one is a supply-chain decision. Verify the package exists, has a real publisher, and is pinned. Watch for hallucinated names that an attacker could register.
Tests that assert nothing
AI-generated tests often pass because they assert the happy path or compare a value to itself. A green suite is not evidence of safety. Require tests that fail when authorization or validation is removed.
Code nobody can explain
The most expensive problem is not a bug; it is code the team cannot reason about. If a reviewer cannot explain why a function exists, it is a liability. Refactor before it becomes load-bearing.
Run the 24-point checklist → See the production readiness audit →