Why it finds more
Each file passes. Together they leak every invoice.
Pattern matching flags what looks familiar in one file; the flaws that cost money sit between files. Kelrova is an AI security scanner that reads your code the way a security reviewer does, following a check in one place to the gap in another.
A sample finding from a Standard scan of northwind/payments-api.
A drawing of three files from northwind/payments-api, each fine on its own: src/routes/invoices.ts line 18, behind requireUser, so it looks protected. src/auth/require-user.ts line 12, turns away anyone who is not signed in. Correct. src/services/invoices.ts line 30, a plain lookup by id. Nothing unusual. Read together, they make one critical finding at src/routes/invoices.ts line 43: Any signed-in customer can download another customer's invoices. The route trusts requireUser, which only checks that someone is signed in, and the lookup never asks whose invoice it is. Change the id in the URL and any invoice downloads.