Scan a source tree for SQL-injection vulnerable patterns: string
concatenation into queries, f-string interpolation in SQL,
string-format substitution into raw queries, deprecated cursor
methods (cursor.execute with % formatting), Knex / Sequelize raw()
with template interpolation, sequelize.query with replacements.
Use when: pre-commit code review, post-feature SQL-touching
release, inheriting a legacy codebase that predates ORMs, or
post-bug-report investigation.
Threshold: any source line where SQL keywords (SELECT / INSERT /
UPDATE / DELETE / FROM / WHERE) appear in a string that's being
built via concatenation, f-string, %-format, or .format() with
variable input.
Trigger with: "scan for sqli", "sql injection patterns",
"check raw queries", "audit cursor.execute".
☆2.52k repo stars⑂359 repo forks