idasql

Query IDA Pro databases with SQL to extract functions, strings, and xrefs.

2|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/0xeb/anthropic-xsql-tools-plugin --skill idasql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: idasql
Source: https://github.com/0xeb/anthropic-xsql-tools-plugin/tree/main/skills/idasql
Command: npx skills add https://github.com/0xeb/anthropic-xsql-tools-plugin --skill idasql

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables analysts to query and analyze IDA Pro databases using SQL through idasql, enabling rapid extraction of functions, cross-references, strings, and decompiled data without manual scripting.

Core Features & Use Cases

  • Direct SQL access: Run SQL queries against IDA databases (.idb/.i64) to list functions, strings, xrefs, and segments.
  • Flexible modes: Use direct CLI mode for ad-hoc queries or HTTP/server mode for persistent analysis across sessions.
  • Use Case: Quickly inventory all functions with their start addresses and names, or search for all strings matching a pattern across multiple binaries.

Quick Start

  • Start by loading a database and run a sample query: idasql -s test.i64 -q "SELECT name, address FROM funcs LIMIT 5"
  • Or run in HTTP mode: idasql -s test.i64 --http 8080 and query with curl.

Frequently Asked Questions about idasql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query IDA Pro databases using SQL?

You can query IDA Pro databases using SQL by utilizing the idasql CLI, which allows you to retrieve functions, strings, cross-references, and decompiled data without manual scripting.

Can I extract cross-references and decompiled data from multiple binaries at once?

Yes, the idasql skill supports multi-database reconnaissance tasks, enabling rapid SQL-based analysis to extract cross-references and decompiled data across multiple binaries and IDA databases.

Do I need IDA Pro installed to use SQL queries on IDA databases?

Yes, you need IDA Pro installed with ida.exe in your PATH and idasql available next to ida.exe to execute SQL queries against IDA databases using this skill.

What is the best way to run persistent SQL queries across multiple analysis sessions?

For persistent analysis across sessions, run idasql in HTTP server mode using the command `idasql -s test.i64 --http 8080` and query it with tools like curl for continuous database interaction.

How do I list all functions and strings from an IDA database via command line?

You can list functions and strings from an IDA database by running a direct CLI query, such as `idasql -s test.i64 -q "SELECT name, address FROM funcs LIMIT 5"` to quickly inventory binary data.