# sql-injection

sql-injection is a Claude Code skill that evaluates untrusted inputs reaching database statements. Runs during audits of login parameters, report filters, and sorting clauses.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 73 repo stars
- Author: W4L33Dx
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/W4L33Dx/Cyber-Monster/tree/HEAD/red-team/web-and-application/sql-injection/SKILL.md
- Updated: 2026-11-15
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/sql-injection

## What it does

This skill inspects database statements where unescaped input breaks SQL syntax. It assesses CWE-89 weaknesses by checking whether query parameters alter parse structures through database errors, row count discrepancies, or timing delays.

Execution follows an IF / THEN decision workflow. The skill verifies whether driver bindings protect the parameter. Because database drivers cannot bind identifier slots like table names or sort directions, it marks them for server-side map enforcement. Target-specific checks route to dedicated companion guides for MySQL, PostgreSQL, MSSQL, or Oracle.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill sql-injection -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/sql-injection/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/sql-injection/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill sql-injection -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/sql-injection/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill sql-injection -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/sql-injection/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install W4L33Dx/Cyber-Monster red-team/web-and-application/sql-injection
```

2. **Manually: put the files in place**
- File: `.github/skills/sql-injection/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill sql-injection -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/W4L33Dx/Cyber-Monster --path red-team/web-and-application/sql-injection
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/sql-injection/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/W4L33Dx/Cyber-Monster/tree/HEAD/red-team/web-and-application/sql-injection/SKILL.md

## When to use it
- find concatenated user parameters in database queries
- inspect identifier slots and sort clauses in query builders
- evaluate database error and timing feedback channels
- route dialect checks across MySQL, PostgreSQL, MSSQL, or Oracle

## Example prompts
- Check report filter parameters for sql injection vulnerabilities
- Inspect this query builder method for identifier injection risks

## Similar
- [sql-injection-prevention](https://affpapa.org/en/nevibecode/skills/sql-injection-prevention.md) — skill · 537 installs
- [sqli-sql-injection](https://affpapa.org/en/nevibecode/skills/sqli-sql-injection.md) — skill · 4400 installs
- [sql-injection-testing](https://affpapa.org/en/nevibecode/skills/sql-injection-testing.md) — skill · 605 installs
- [exploiting-sql-injection-vulnerabilities](https://affpapa.org/en/nevibecode/skills/exploiting-sql-injection-vulnerabilities.md) — skill · 566 installs
- [exploiting-sql-injection-with-sqlmap](https://affpapa.org/en/nevibecode/skills/exploiting-sql-injection-with-sqlmap.md) — skill · 355 installs
- [sqlmap-database-pentesting](https://affpapa.org/en/nevibecode/skills/sqlmap-database-pentesting.md) — skill · 116 installs

From the same set: [w4l33dx/cyber-monster](https://affpapa.org/en/nevibecode/by/w4l33dx/cyber-monster.md) — 61 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
