# Sh kb sqli

> Sh kb sqli is an open-source agent skill for security. Guides an agent in hunting SQL injection flaws across codebases and reviews. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/dmdhrumilmistry/indra/tree/main/plugins/indra/skills/sh-kb-sqli
- **Repository:** https://github.com/dmdhrumilmistry/indra
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** sh-kb-sqli
- **Collection:** https://github.com/dmdhrumilmistry/indra
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill is a knowledge base for security hunting and code review focused on SQL injection and query-language injection, mapped to CWE-89 and OWASP A03:2021. It explains where untrusted input becomes part of a query, covering string building in ORM raw escape hatches and dynamic parts such as ORDER BY, LIMIT, IN lists and LIKE patterns.

The material is organized by language ecosystem, listing the sink functions and grep targets to search for in Python, JavaScript, Java, PHP, Go, Ruby, .NET and stored procedures. It also gives a detection workflow: searching for query calls, inspecting whether arguments are bound or concatenated, tracing callers to an entry point, and checking helper functions for missed call sites. Variant hunting advice covers sibling endpoints, copy-pasted DAO classes and second-order storage paths.

The skill includes curated detection payloads, false-positive filters that explain when parameterized or allowlisted code is safe, and defender-side detection signals such as log patterns and database audit behavior. It expects a codebase to search and a shell for grep-style lookups, and it references supporting guides for per-database details.

## When your agent uses it

> Knowledge base for finding SQL injection (and query-language injection). Use when hunting SQLi, or when a hunter/reviewer needs sources, sinks, detection queries, payloads, false-positive filters, detection signals, and remediation for injection into SQL/ORM raw queries. CWE-89, OWASP A03:2021-Injection.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-kb-sqli)
- [License: MIT](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-kb-sqli)

## Features

- **Language-specific sink catalog:** Lists dangerous query functions and grep targets for Python, JavaScript, Java, PHP, Go, Ruby, .NET and database procedures.
- **Detection workflow:** Step-by-step search and tracing process from a query call back to an entry point.
- **False-positive filters:** Explains when parameterized queries, allowlists and ORM builders are safe and should not be flagged.
- **Curated payload templates:** Detection strings for error, boolean, time-based, UNION and second-order injection.
- **Variant hunting guidance:** Advice on finding the same flaw across sibling endpoints, helpers and copied code.
- **Defender detection signals:** Log, audit and behavior indicators of injection attempts, mapped to ATT&CK techniques.

## Good for

- Review a Python codebase for SQL built with f-strings or string concatenation
- Find unsafe ORDER BY or LIMIT inputs in a Rails or Django app
- Trace a raw query call back to user request parameters
- Check whether a sort or filter helper is covered by an allowlist
- Write remediation advice for a SQL injection finding

## Install

### Claude Code

This skill ships in the `indra` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indra
```

Or copy only this skill to `~/.claude/skills/sh-kb-sqli`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-kb-sqli &&
cp -R "$tmp/plugins/indra/skills/sh-kb-sqli" ~/.claude/skills/sh-kb-sqli &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/sh-kb-sqli` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/sh-kb-sqli` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sh-kb-sqli &&
cp -R "$tmp/plugins/indra/skills/sh-kb-sqli" ~/.agents/skills/sh-kb-sqli &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/sh-kb-sqli` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/sh-kb-sqli` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sh-kb-sqli &&
cp -R "$tmp/plugins/indra/skills/sh-kb-sqli" ~/.cursor/skills/sh-kb-sqli &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/sh-kb-sqli` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-kb-sqli
```

Or copy the folder to `~/.gemini/skills/sh-kb-sqli` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/sh-kb-sqli`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-kb-sqli &&
cp -R "$tmp/plugins/indra/skills/sh-kb-sqli" ~/.copilot/skills/sh-kb-sqli &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/sh-kb-sqli` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git
```

Then copy `indra/plugins/indra/skills/sh-kb-sqli` into your agent's skills folder as `sh-kb-sqli`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Sh kb sqli need to run?

It needs no scripts. It relies on the agent searching the codebase with grep-style lookups, and it references an optional graft tool for call tracing.

### Does Sh kb sqli change any code?

No. It is a reference for hunting and reviewing SQL injection and recommends fixes such as parameterized queries and allowlists.

### Which languages does Sh kb sqli cover?

Python, JavaScript and TypeScript, Java, PHP, Go, Ruby, .NET, and stored procedures in database code.

### When does Sh kb sqli trigger?

It triggers when someone is hunting SQL injection or when a hunter or reviewer needs sources, sinks, payloads and remediation for injection into SQL or ORM raw queries.

### How do I install Sh kb sqli in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/sh-kb-sqli to use it in all your projects, or to .claude/skills/sh-kb-sqli in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.

### Does Sh kb sqli run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Sh kb sqli?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Sh kb sqli?

The closest alternatives to Sh kb sqli are Sh kb injection, Sh kb xss, SQL code review, Sh kb deserialization and Injection.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Sh kb injection](https://ai-powered.com/skills/sh-kb-injection): Sh kb injection is an open-source agent skill for security.
- [Sh kb xss](https://ai-powered.com/skills/sh-kb-xss): Sh kb xss is an open-source agent skill for security.
- [SQL code review](https://ai-powered.com/skills/sql-code-review): SQL code review is an open-source agent skill for databases.
- [Sh kb deserialization](https://ai-powered.com/skills/sh-kb-deserialization): Sh kb deserialization is an open-source agent skill for security.
- [Injection](https://ai-powered.com/skills/injection): Injection is an open-source agent skill for security.
- [Sh kb prompt injection](https://ai-powered.com/skills/sh-kb-prompt-injection): Sh kb prompt injection is an open-source agent skill for knowledge and memory.
- [Sh kb file upload](https://ai-powered.com/skills/sh-kb-file-upload): Sh kb file upload is an open-source agent skill for security.
- [Sh kb path traversal](https://ai-powered.com/skills/sh-kb-path-traversal): Sh kb path traversal is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/sh-kb-sqli
