Cybersecurity

Detecting SQL Injection Patterns

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".

Publisher / source
jeremylongshore/tons-of-skills-marketplace (found on GitHub top repositories)
Upstream record
jeremylongshore/tons-of-skills-marketplace
Version
Version 1
Published
Publication review
Approved for publication
Content fingerprint
9e4e49419536a5e34a2e424f0ff57326afcd99b81d0ed8369cedf98ec47e5eef