Hard-coded secrets
Look for: Keys, tokens and connection strings committed in code or config.
Why AI does it: Assistants copy examples and fill placeholders with real values to make a demo run.
44 weaknesses we check every night, each with a stable ID. Use it in your own reviews, link to it from your AI tool rules, or let our knights run it for you.
Issues that let the wrong person read, change or spend something.
Look for: Keys, tokens and connection strings committed in code or config.
Why AI does it: Assistants copy examples and fill placeholders with real values to make a demo run.
Look for: API routes, server actions and RPCs that never check who is calling.
Why AI does it: Generated code covers the happy path and skips the caller.
Look for: Supabase or Firebase tables without RLS, or a service role key in client code.
Why AI does it: The admin key makes the query pass, so it stays.
Look for: SQL or NoSQL queries assembled with string concatenation.
Why AI does it: The fastest working path wins over parameterised queries.
Look for: Server actions and route handlers with no schema validation.
Why AI does it: The typed client looks safe, so the server trusts it.
Look for: The server fetches a URL supplied by the user.
Why AI does it: The feature is implemented literally.
Look for: Access-Control-Allow-Origin * alongside cookies or auth headers.
Why AI does it: A CORS error gets fixed the quickest way.
Look for: dangerouslySetInnerHTML or raw HTML built from user data.
Why AI does it: Rich text is rendered the quick way.
Look for: Tokens decoded without signature checks, or weak default secrets.
Why AI does it: Decode and verify look alike in examples.
Look for: Tokens, emails or payloads in logs and error responses.
Why AI does it: Debug logging is left in.
Look for: Redirect targets taken straight from query parameters.
Why AI does it: A naive return-to feature.
Look for: Stripe, GitHub or other webhooks processed without verifying the signature.
Why AI does it: The verify step is skipped in the generated handler.
Code that runs, passes review and quietly does the wrong thing.
Look for: Empty catch blocks, or catch blocks that log and carry on.
Why AI does it: Making the error disappear looks like fixing it.
Look for: Floating promises and forEach with async callbacks.
Why AI does it: Async control flow is easy to get subtly wrong.
Look for: Defaults that hide a failure instead of surfacing it.
Why AI does it: The model optimises for no crash.
Look for: Check-then-update logic without a transaction or lock.
Why AI does it: Code is written with a sequential mental model.
Look for: Off-by-one errors, timezone mistakes, local time on the server.
Why AI does it: Common patterns in training data.
Look for: Prices and balances stored or summed as floating point.
Why AI does it: The default number type gets used.
Look for: Retry loops without backoff or a maximum.
Why AI does it: Naive resilience.
Patterns that only appear when many AI sessions write one codebase.
Look for: Imports, methods or config keys that do not exist in the installed version.
Why AI does it: Model memory differs from the version you run.
Look for: The same helper written twice under different names.
Why AI does it: Each session lacks the whole codebase.
Look for: Unused exports, orphaned files, abandoned attempts.
Why AI does it: Regenerated attempts are left behind.
Look for: Several wrappers, stores or clients for one concern.
Why AI does it: Each session invents its own.
Look for: Assertions that always pass, mocks of the unit under test, skipped suites.
Why AI does it: Tests are written to turn CI green.
Look for: return true where a check belongs, fake data behind a flag.
Why AI does it: Stubs are never replaced.
Look for: Broad any types and ts-ignore comments.
Why AI does it: A shortcut past type errors.
Look for: Comments that contradict the code beneath them.
Why AI does it: The code changed, the comment stayed.
What you pulled in, and what came with it.
Look for: CVEs in direct dependencies.
Why AI does it: Versions are suggested from memory, not from advisories.
Look for: Names one letter off a popular library, or packages that do not exist.
Why AI does it: Models can suggest package names that were never published.
Look for: Libraries with no maintenance.
Why AI does it: Older answers recommend older libraries.
Look for: Multiple libraries doing the same work.
Why AI does it: Different sessions pick different tools.
Cost and latency that grow with every user.
Look for: Database calls inside loops.
Why AI does it: The simplest loop is generated first.
Look for: Queries without a limit or pagination.
Why AI does it: Fine on seed data, not in production.
Look for: Server-only modules imported into client components.
Why AI does it: Module boundaries are easy to cross by accident.
Look for: Heavy synchronous work on the request path or main thread.
Why AI does it: It works in development.
Stack-specific traps in Next.js, Python and Swift.
Look for: Private keys exposed to the browser through public env vars.
Why AI does it: The prefix fixes an undefined variable on the client.
Look for: Server actions without auth and validation.
Why AI does it: Server actions look like local functions.
Look for: Per-user data cached where other users can receive it.
Why AI does it: Caching defaults are easy to misread.
Look for: Auth enforced in middleware while API routes stay open.
Why AI does it: One check feels like enough.
Look for: pickle or yaml.load on untrusted data.
Why AI does it: The shortest loader is used.
Look for: subprocess with shell=True and user input.
Why AI does it: A shell string is quicker to write.
Look for: ! on values from the network or disk.
Why AI does it: It compiles.
Look for: UI work off the main actor, blocking calls on it.
Why AI does it: Concurrency rules changed across Swift versions.
Look for: Tokens in UserDefaults or Info.plist, keychain misuse.
Why AI does it: UserDefaults is the first storage API that works.
Free sample: three verified findings on one public repo, with fix prompts.
You may quote and link this checklist with attribution to OverKnights. IDs are stable and never reused.