Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Detects SQL injection in codebases via recon, parallel batched taint verification, and merged findings in sast/sqli-results.md.
Use this skill ↓59% 64%+5 ptsof test cases passed
Passed 14 of 22 test cases with the skill, and 13 of 22 without it.
3 of 3 safety checks passed
33 agent runs
You are performing a focused security assessment to find SQL injection vulnerabilities in a codebase. This skill uses a three-phase approach with subagents: recon (find vulnerable SQL construction sites), batched verify (taint analysis in parallel batches of 3), and merge (consolidate batch reports into one file).
Prerequisites: sast/architecture.md must exist. Run the analysis skill first if it doesn't.
SQL injection occurs when user-supplied input is incorporated into SQL queries through string concatenation or interpolation rather than parameterized binding. This allows attackers to alter query logic, bypass authentication, extract sensitive data, modify or delete records, and in some configurations execute OS commands.
The core pattern: unvalidated, unparameterized user input reaches a SQL query execution call.
"SELECT * FROM users WHERE name = '" + username + "'"f"SELECT * FROM orders WHERE id = {order_id}"ORDER BY / GROUP BY / table/column names from user input with no allowlist validationUser.objects.raw(f"SELECT * WHERE id={id}"), $queryRawUnsafe(input)Do not flag these as SQLi:
?id=1 to ?id=2 to access another user's data — that's Insecure Direct Object Reference, a separate class<script> tag in the DB that's later rendered unescaped — that's XSS, not SQLiUser.objects.filter(id=user_id) or User.find(params[:id]) — do not flag theseWhen you see these patterns, the code is likely not vulnerable:
1. Parameterized queries / prepared statements (most common fix)
# Python — cursor.execute with tuple binding
cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.