Skip to content
Skill

Sh kb sqli

Guides an agent in hunting SQL injection flaws across codebases and reviews

Sh kb sqli is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
44
Last commit
License
MIT
Listing updated

Similar skills

About Sh kb sqli

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (12 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Sh kb sqli 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.

More from dmdhrumilmistry/indra

  1. Lets an agent triage SIEM alerts and logs, sweep indicators and build evidenced timelines

    • Open source
    • 44 GitHub stars
    • Security
  2. Gives a security review agent persistent Markdown memory of past findings and learnings

    • Open source
    • 44 GitHub stars
    • Knowledge and memory
  3. Security-reviews a GitHub pull request and reports findings as inline comments

    • Open source
    • 44 GitHub stars
    • Developer tools
  4. Publishes security review findings as de-duplicated Jira, GitHub, Confluence or Notion

    • Open source
    • 44 GitHub stars
    • Knowledge and memory
  5. Plans and runs approved purple-team tests to check whether SIEM detections fire

    • Open source
    • 44 GitHub stars
    • Security
  6. Re-checks one earlier security finding against current code or recorded traffic

    • Open source
    • 44 GitHub stars
    • Security