BeClaude

idasql

New
1Community RegistryDevelopmentby Elias Bachaalany

SQL interface to IDA Pro databases for querying functions, xrefs, strings, and decompiled code

Community PluginView Source

Overview

Claude Code and Codex plugin packaging for bnsql — a live SQL interface to Binary Ninja databases.

Prerequisites

  • Binary Ninja installed with BN_INSTALL_DIR set (or Binary Ninja's install dir on PATH)
  • bnsql from Releases placed on PATH (or next to binaryninja.exe)
  • Verify: bnsql -h

Installation

Claude Code

bash
/plugin marketplace add 0xeb/bnsql-skills

Codex

Use the plugin packaging, not a flat copy into ~/.codex/skills. The plugin path preserves the bnsql namespace so generic skill names like xrefs, data, and types do not collide with other skills.

  1. Clone this repo anywhere temporary:
bash
git clone https://github.com/0xeb/bnsql-skills
  1. Copy the plugin directory into your home plugins folder:
bash
mkdir -p ~/plugins
cp -R bnsql-skills/plugins/bnsql ~/plugins/
  1. Create or update ~/.agents/plugins/marketplace.json so it contains:
json
{
  "name": "bnsql-tools",
  "interface": {
    "displayName": "BNSQL"
  },
  "plugins": [
    {
      "name": "bnsql",
      "source": {
        "source": "local",
        "path": "./plugins/bnsql"
      },
      "policy": {
        "installation": "AVAILABLE",
        "authentication": "ON_INSTALL"
      },
      "category": "Reverse Engineering"
    }
  ]
}
  1. Restart Codex.

The Codex plugin manifest lives at plugins/bnsql/.codex-plugin/plugin.json, and the skills live under plugins/bnsql/skills/.

If you want to test directly from a checkout, keep the repo where it is and use the bundled marketplace file at .agents/plugins/marketplace.json. Codex should resolve ./plugins/bnsql relative to the repo root.

Compatibility

  • SKILL.md is the canonical skill contract and remains the source of truth.
  • Per-skill Codex UI metadata lives in each skill's optional agents/openai.yaml and does not replace SKILL.md.
  • Codex plugin packaging lives alongside the Claude packaging so this repo can support both without renaming the underlying skills.

Skills

SkillDescriptionWhen to Use
connectConnection, CLI, HTTP, MCP, routing indexStarting a session, CLI options, HTTP/MCP server, pragmas
disassemblyFunctions, segments, instructions, blocksQuerying disassembly, instruction analysis
dataStrings, bytes, binary pattern search (search_bytes)String search, byte access, binary pattern search
xrefsCross-references and importsCaller/callee analysis (callers/callees views), import queries
decompilerHLIL decompiler referenceDecompilation, HLIL variables, function calls
annotationsEdit and annotate decompilationComments, renames, type application, explicit save
typesType system mechanicsStructs, enums, typedefs, function signatures
functionsSQL functions referenceLook up any bnsql SQL function signature
analysisAnalysis workflows and scenariosSecurity audits, library detection, advanced SQL patterns

Notes

  • The supported Codex path is plugin-based installation. Flat installs into ~/.codex/skills are possible, but only if you manually rename every skill with a bnsql- prefix to avoid collisions.
  • The plugin-based layout keeps the repo's natural bnsql ownership model intact.

Links

  • bnsql — CLI and plugin
  • libxsql — Core SQLite virtual table framework

Author

Elias Bachaalany (@0xeb)

License

This project and all its contents — including skill definitions, reference documentation, and configuration files — are licensed under the MIT License.

Install & Usage

1
Create the skills directory
mkdir -p .claude/skills
2
Download the skill file
mkdir -p .claude/skills && curl -o .claude/skills/idasql.md https://raw.githubusercontent.com/0xeb/anthropic-xsql-tools-plugin/main/SKILL.md
3
Invoke in Claude Code
/idasql
View source on GitHub
idareverse-engineeringsqldecompilation

Frequently Asked Questions

What is idasql?

SQL interface to IDA Pro databases for querying functions, xrefs, strings, and decompiled code

How to install idasql?

To install idasql, create the .claude/skills directory in your project, then run the curl command to download the skill file. Once installed, invoke it in Claude Code with /idasql.

What is idasql best for?

idasql is a community categorized under Development. It is designed for: ida, reverse-engineering, sql, decompilation. Created by Elias Bachaalany.