Skip to content
OverKnightsOverKnights home
Open checklist

What AI coding tools quietly leave behind

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.

Security

Issues that let the wrong person read, change or spend something.

HighSEC-04

Injection through string-built queries

Look for: SQL or NoSQL queries assembled with string concatenation.

Why AI does it: The fastest working path wins over parameterised queries.

HighSEC-06

Server-side request forgery

Look for: The server fetches a URL supplied by the user.

Why AI does it: The feature is implemented literally.

HighSEC-07

Wildcard CORS with credentials

Look for: Access-Control-Allow-Origin * alongside cookies or auth headers.

Why AI does it: A CORS error gets fixed the quickest way.

HighSEC-08

Unescaped HTML

Look for: dangerouslySetInnerHTML or raw HTML built from user data.

Why AI does it: Rich text is rendered the quick way.

CriticalSEC-09

JWTs decoded, not verified

Look for: Tokens decoded without signature checks, or weak default secrets.

Why AI does it: Decode and verify look alike in examples.

MediumSEC-10

Sensitive data in logs

Look for: Tokens, emails or payloads in logs and error responses.

Why AI does it: Debug logging is left in.

MediumSEC-11

Open redirects

Look for: Redirect targets taken straight from query parameters.

Why AI does it: A naive return-to feature.

Correctness

Code that runs, passes review and quietly does the wrong thing.

HighCOR-01

Swallowed errors

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.

HighCOR-02

Unawaited promises

Look for: Floating promises and forEach with async callbacks.

Why AI does it: Async control flow is easy to get subtly wrong.

MediumCOR-03

Silent fallbacks

Look for: Defaults that hide a failure instead of surfacing it.

Why AI does it: The model optimises for no crash.

HighCOR-04

Read-then-write races

Look for: Check-then-update logic without a transaction or lock.

Why AI does it: Code is written with a sequential mental model.

MediumCOR-05

Time and boundary bugs

Look for: Off-by-one errors, timezone mistakes, local time on the server.

Why AI does it: Common patterns in training data.

HighCOR-06

Money as floats

Look for: Prices and balances stored or summed as floating point.

Why AI does it: The default number type gets used.

MediumCOR-07

Retries without limits

Look for: Retry loops without backoff or a maximum.

Why AI does it: Naive resilience.

AI drift

Patterns that only appear when many AI sessions write one codebase.

HighAID-01

Hallucinated APIs

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.

LowAID-02

Duplicate helpers

Look for: The same helper written twice under different names.

Why AI does it: Each session lacks the whole codebase.

LowAID-03

Dead code

Look for: Unused exports, orphaned files, abandoned attempts.

Why AI does it: Regenerated attempts are left behind.

MediumAID-04

Three ways to do one thing

Look for: Several wrappers, stores or clients for one concern.

Why AI does it: Each session invents its own.

MediumAID-05

Tests that test nothing

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.

HighAID-06

Placeholders that shipped

Look for: return true where a check belongs, fake data behind a flag.

Why AI does it: Stubs are never replaced.

MediumAID-07

Silencing the compiler

Look for: Broad any types and ts-ignore comments.

Why AI does it: A shortcut past type errors.

LowAID-08

Comments that lie

Look for: Comments that contradict the code beneath them.

Why AI does it: The code changed, the comment stayed.

Dependencies

What you pulled in, and what came with it.

By CVSSDEP-01

Known vulnerabilities

Look for: CVEs in direct dependencies.

Why AI does it: Versions are suggested from memory, not from advisories.

LowDEP-03

Abandoned packages

Look for: Libraries with no maintenance.

Why AI does it: Older answers recommend older libraries.

LowDEP-04

Two libraries, one job

Look for: Multiple libraries doing the same work.

Why AI does it: Different sessions pick different tools.

Performance

Cost and latency that grow with every user.

MediumPERF-01

N+1 queries

Look for: Database calls inside loops.

Why AI does it: The simplest loop is generated first.

MediumPERF-02

Unbounded queries

Look for: Queries without a limit or pagination.

Why AI does it: Fine on seed data, not in production.

HighPERF-03

Server code in the bundle

Look for: Server-only modules imported into client components.

Why AI does it: Module boundaries are easy to cross by accident.

MediumPERF-04

Blocking work on the hot path

Look for: Heavy synchronous work on the request path or main thread.

Why AI does it: It works in development.

Framework checks

Stack-specific traps in Next.js, Python and Swift.

HighNX-02Next.js

Open server actions

Look for: Server actions without auth and validation.

Why AI does it: Server actions look like local functions.

HighNX-03Next.js

User data in shared caches

Look for: Per-user data cached where other users can receive it.

Why AI does it: Caching defaults are easy to misread.

HighNX-04Next.js

Middleware-only auth

Look for: Auth enforced in middleware while API routes stay open.

Why AI does it: One check feels like enough.

CriticalPY-01Python

Unsafe deserialisation

Look for: pickle or yaml.load on untrusted data.

Why AI does it: The shortest loader is used.

CriticalPY-02Python

Shell injection

Look for: subprocess with shell=True and user input.

Why AI does it: A shell string is quicker to write.

MediumSW-01Swift

Force unwraps on external data

Look for: ! on values from the network or disk.

Why AI does it: It compiles.

MediumSW-02Swift

Main actor misuse

Look for: UI work off the main actor, blocking calls on it.

Why AI does it: Concurrency rules changed across Swift versions.

HighSW-03Swift

Secrets in UserDefaults

Look for: Tokens in UserDefaults or Info.plist, keychain misuse.

Why AI does it: UserDefaults is the first storage API that works.

Run this checklist on your repo tonight

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.