idasql
NewSQL interface to IDA Pro databases for querying functions, xrefs, strings, and decompiled code
Overview
Claude Code and Codex plugin packaging for bnsql — a live SQL interface to Binary Ninja databases.
Prerequisites
- •Binary Ninja installed with
BN_INSTALL_DIRset (or Binary Ninja's install dir onPATH) - •bnsql from Releases placed on
PATH(or next tobinaryninja.exe) - •Verify:
bnsql -h
Installation
Claude Code
/plugin marketplace add 0xeb/bnsql-skillsCodex
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.
- Clone this repo anywhere temporary:
git clone https://github.com/0xeb/bnsql-skills- Copy the plugin directory into your home plugins folder:
mkdir -p ~/plugins
cp -R bnsql-skills/plugins/bnsql ~/plugins/- Create or update
~/.agents/plugins/marketplace.jsonso it contains:
{
"name": "bnsql-tools",
"interface": {
"displayName": "BNSQL"
},
"plugins": [
{
"name": "bnsql",
"source": {
"source": "local",
"path": "./plugins/bnsql"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Reverse Engineering"
}
]
}- 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.mdis the canonical skill contract and remains the source of truth. - •Per-skill Codex UI metadata lives in each skill's optional
agents/openai.yamland does not replaceSKILL.md. - •Codex plugin packaging lives alongside the Claude packaging so this repo can support both without renaming the underlying skills.
Skills
| Skill | Description | When to Use |
|---|---|---|
connect | Connection, CLI, HTTP, MCP, routing index | Starting a session, CLI options, HTTP/MCP server, pragmas |
disassembly | Functions, segments, instructions, blocks | Querying disassembly, instruction analysis |
data | Strings, bytes, binary pattern search (search_bytes) | String search, byte access, binary pattern search |
xrefs | Cross-references and imports | Caller/callee analysis (callers/callees views), import queries |
decompiler | HLIL decompiler reference | Decompilation, HLIL variables, function calls |
annotations | Edit and annotate decompilation | Comments, renames, type application, explicit save |
types | Type system mechanics | Structs, enums, typedefs, function signatures |
functions | SQL functions reference | Look up any bnsql SQL function signature |
analysis | Analysis workflows and scenarios | Security audits, library detection, advanced SQL patterns |
Notes
- •The supported Codex path is plugin-based installation. Flat installs into
~/.codex/skillsare possible, but only if you manually rename every skill with abnsql-prefix to avoid collisions. - •The plugin-based layout keeps the repo's natural
bnsqlownership model intact.
Links
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
mkdir -p .claude/skillsmkdir -p .claude/skills && curl -o .claude/skills/idasql.md https://raw.githubusercontent.com/0xeb/anthropic-xsql-tools-plugin/main/SKILL.md/idasqlFrequently 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.