snailsploit/claude-red/offensive-sqli
Claude Code and agent skill by snailsploit/claude-red
- community
Checking that the SKILL.md file is still in the repository.
SQL injection testing skill for offensive security assessments and bug bounty hunting. Covers error-based, UNION-based, boolean/time-based blind, out-of-band, second-order, NoSQL, GraphQL, WebSocket, and JSON-operator SQLi. Includes WAF bypass techniques, database-specific exploitation (MySQL, MSSQL, PostgreSQL, Oracle), cloud-native attack paths, ORM CVE tracking, and SQLmap automation. Use when performing web application SQL injection testing, database enumeration, privilege escalation via SQLi, or assessing injection vectors in APIs and modern stacks.
Install
npx vskill@latest install snailsploit/claude-red/offensive-sqliSKILL.md
The same SKILL.md was published earlier as snailsploit/claude-red/offensive-sqli.
SQL Injection — Offensive Testing Methodology
Quick Workflow
- Map all input vectors that reach the database (URL params, POST body, cookies, headers, API filters, WebSocket messages)
- Insert probe payloads to detect classic SQLi; fall back to inferential (boolean/time-based) if no visible error
- Identify database type and enumerate schema
- Exploit to extract data, escalate privileges, or achieve RCE where in scope
- Document findings and suggest remediation
Detection
Basic Probes — All Input Vectors
Error-Based Detection
Trigger syntax errors to reveal database type and query structure:
Look for: SQL syntax errors, DB version strings, table/column names leaked in responses.
Boolean-Based Blind
Observe response size/content differences between true and false conditions.
Time-Based Blind
JSON Operator Probes
GraphQL → SQLi Pivot
WebSocket SQLi
REST API Filter Injection
Automation Workflow
Exploitation
Determine Column Count (UNION)
Identify String Columns
Enumerate Schema
Blind Data Extraction
Database-Specific Exploitation
MySQL / MariaDB
MSSQL
PostgreSQL
Oracle
NoSQL & Graph Injection
MongoDB
Neo4j / Cypher (CVE-2024-34517)
Older Neo4j 5.x (<5.18 / <4.4.26) allowed privilege escalation via IMMUTABLE procedures.
WAF Bypass Techniques
| Technique | Example | |||
|---|---|---|---|---|
| Case variation | SeLeCt, UnIoN | |||
| Comment injection | UN/**/ION SE/**/LECT | |||
| URL encoding | UNION → %55%4E%49%4F%4E | |||
| Hex encoding | SELECT → 0x53454C454354 | |||
| Whitespace | UNION/**/SELECT | |||
| Null byte | %00' UNION SELECT password FROM users-- | |||
| Double encoding | %2f → %252f | |||
| String concat | MySQL: CONCAT('a','b'), Oracle: `'a'\ | \ | 'b', MSSQL: 'a'+'b'` | |
| JSON wrapper | Prefix with dummy JSON /**/{"a":1} to confuse WAF parsers |
SQLmap tamper scripts: Use the Atlas tool to suggest tampers; combine multiple (--tamper=space2comment,charencode) for layered WAFs.
HTTP/2 smuggling: Replay payloads over h2/h2c; HPACK compression can obscure payloads from perimeter WAFs.
Cloud-Specific Attack Paths
AWS
Azure
GCP Cloud SQL
Lambda / Serverless Connection Pool Poisoning
ORM CVE Tracking (2023–2025)
| ORM | CVE / Issue | Vulnerable Pattern | |
|---|---|---|---|
| Sequelize | CVE-2023-22578 | sequelize.literal(\name = '${userInput}'\) | |
| TypeORM <0.3.12 | findOne injection | repository.findOne({ where: \id = ${id}\ }) | |
| Hibernate 6.x | Query cache poisoning | session.createQuery("FROM User WHERE name = '" + input + "'") | |
| Prisma <4.11 | Raw query | prisma.$executeRawUnsafe(\SELECT * FROM users WHERE id = ${id}\) |
Safe ORM patterns:
Quick-Reference Cheatsheet
| DB | Version | Time Delay | String Concat | Schema Source | |||
|---|---|---|---|---|---|---|---|
| MySQL | @@version | SLEEP(5) | CONCAT('a','b') | information_schema.tables | |||
| MSSQL | @@version | WAITFOR DELAY '0:0:5' | 'a'+'b' | information_schema.tables, sys.tables | |||
| PostgreSQL | version() | pg_sleep(5) | `'a'\ | \ | 'b'` | information_schema.tables | |
| Oracle | banner FROM v$version | DBMS_PIPE.RECEIVE_MESSAGE('RDS',5) | `'a'\ | \ | 'b'` | all_tables, all_tab_columns |
Detection & Monitoring Queries
Splunk:
AWS CloudWatch Insights (RDS):
Key References
- MITRE ATT&CK: T1190 (Exploit Public-Facing Application)
- OWASP ASVS 4.0: V5.3.4 — parameterized queries required
- PCI DSS 4.0: Requirement 6.2.4 — injection protection mandatory
- CISA KEV Catalog — monitor for actively exploited SQLi CVEs
- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/sql-injection.md
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSkills/web/offensive-sqli/SKILL.md
Popularity
- Repository stars
- 1,288
- Repository forks
- 221
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/snailsploit/claude-red/offensive-sqli)