/sql-injection-detector:detecting-sql-injection-vulnerabilitiesfrom sql-injection-detector
Scans application source code for SQL injection vulnerabilities by tracing user input through data flows into database queries. Detects string concatenation, interpolation, and inadequate parameterization across raw SQL and ORM methods.
Ships in sql-injection-detector. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Scan application source code for SQL injection vulnerabilities (CWE-89, OWASP A03:2021) by tracing user input from entry points through data flows into database query construction. Detect string concatenation, format string interpolation, and inadequate parameterization across raw SQL, ORM raw query methods, stored procedure calls, and dynamic query builders.
${CLAUDE_SKILL_DIR}/${CLAUDE_SKILL_DIR}/security-reports/SELECT, INSERT, UPDATE, DELETE, EXEC) and ORM raw query methods (raw(), execute(), createNativeQuery(), $wpdb->query()) across all source files."SELECT * FROM users WHERE id=" + userId`SELECT * FROM users WHERE id=${req.params.id}`Model.objects.raw("SELECT * FROM t WHERE x='" + val + "'")xp_cmdshell or LOAD_FILE()).%s placeholders for Python DB-API, ? for Node.js, $1 for PostgreSQL, named parameters for Spring JPA.${CLAUDE_SKILL_DIR}/security-reports/sqli-scan-YYYYMMDD.md with per-finding severity, CWE-89 mapping, file path and line number, vulnerable code snippet, attack vector demonstration, and remediated code.See references/implementation.md for the detection pattern library. See references/critical-findings.md for example vulnerability write-ups with attack demonstrations.
${CLAUDE_SKILL_DIR}/security-reports/sqli-scan-YYYYMMDD.md with all findings classified by severity| Error | Cause | Solution |
|---|---|---|
| Unknown ORM or database framework | Custom or uncommon data access library | Apply generic SQL injection pattern detection; note limited framework-specific guidance |
| Cannot analyze compiled/minified code | Production bundles or bytecode instead of source | Request unminified source; document reduced detection accuracy |
| False positive on sanitized input | Proper sanitization exists but not recognized | Trace sanitization implementation manually; whitelist verified-safe patterns |
| Complex dynamic query builder logic | Multi-step query construction across modules | Trace full data flow manually; flag for manual security review |
| Cannot analyze stored procedure definitions | SQL source files not available in ${CLAUDE_SKILL_DIR}/ | Request .sql files or database schema exports; focus on application-layer code |
references/critical-findings.md -- example vulnerability write-ups with attack vectorsreferences/errors.md -- full error handling referencereferences/examples.md -- additional usage examplesassets/README.md (opens in a new tab)assets/sqli_payloads.json (opens in a new tab)references/README.md (opens in a new tab)references/critical-findings.md (opens in a new tab)references/errors.md (opens in a new tab)references/examples.md (opens in a new tab)references/implementation.md (opens in a new tab)scripts/README.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin sql-injection-detectorOther plugins' skills for the same job