/idasql:grepfrom idasql
Searches named IDA entities (functions, labels, structs, enums, members) by pattern using SQL. Use to find entities by name before pivoting to xrefs or decompiler.
Ships in idasql. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Links: for a GUI-connected target on IDA 9.4+ builds, make named functions, addresses, strings or types clickable. For a known fully headless target (including a background CLI server you launched), do not query
deep_linksor emitida://links; use plain names and addresses, without remarking on links or their omission. For GUI targets:[name](uri)from thedeep_linkstable, outside code blocks (skilldeep-links).
grep is IDASQL's entity-search surface. Use it to discover named functions, labels, segments, structs, enums, and members before pivoting into xrefs, decompiler, or type work.
Use this skill when user asks to:
sub_, EH, Zw, CreateFile, or mainRoute to:
xrefs after locating a candidate callee/import/function and needing callers/callees/referencesdecompiler after choosing a candidate function to inspect semanticallytypes when the hit is a struct/enum/member you need to inspect or edit-- 1) Start with a structured search while you learn the result shape
SELECT name, kind, addr
FROM grep
WHERE pattern = 'main'
ORDER BY kind, name
LIMIT 20;
-- 2) Narrow immediately when the result set is noisy
SELECT name, ordinal, full_name
FROM grep
WHERE pattern = 'EH%' AND kind = 'struct'
ORDER BY name;
-- 3) Page with ordinary SQL
SELECT name, kind, addr
FROM grep
WHERE pattern = 'sub_%'
ORDER BY kind, name
LIMIT 10 OFFSET 10;
Interpretation guidance:
grep is a table. Use normal SQL for filtering, sorting, joining, grouping, and paging.grep exposes named IDA entities as rows:
namekindaddrordinalparent_namefull_nameCommon kind values:
functionlabelsegmentstructunionenummemberenum_member% matches any substring._ matches a single character.* is accepted and normalized to %.byte_search.Examples:
-- Contains-match
SELECT name, kind
FROM grep
WHERE pattern = 'main'
LIMIT 20;
-- Prefix wildcard
SELECT name, kind, addr
FROM grep
WHERE pattern = 'sub_%'
ORDER BY name
LIMIT 20;
-- Shell-style star is accepted too
SELECT name, kind
FROM grep
WHERE pattern = 'Zw*'
LIMIT 20;
SELECT name, addr
FROM grep
WHERE pattern = 'main%' AND kind = 'function'
ORDER BY name;
SELECT module, name, addr
FROM imports
WHERE name LIKE 'CreateFile%'
ORDER BY module, name;
SELECT name, kind, ordinal, full_name
FROM grep
WHERE pattern = 'EH%' AND kind IN ('struct', 'enum')
ORDER BY kind, name;
SELECT name, parent_name, ordinal
FROM grep
WHERE pattern = 'flag%' AND kind = 'member'
ORDER BY parent_name, name
LIMIT 30;
SELECT g.name, f.size, f.prototype
FROM grep g
JOIN funcs f ON f.addr = g.addr
WHERE g.pattern = 'sub_%' AND g.kind = 'function'
ORDER BY f.size DESC
LIMIT 20;
SELECT caller_name, printf('0x%X', caller_addr) AS from_addr
FROM callers
WHERE func_addr = (
SELECT addr
FROM imports
WHERE name = 'CreateFileW'
ORDER BY name
LIMIT 1
);
grep for named entities discovered by IDA.strings when you need literal string contents.byte_search when you need raw bytes or opcode patterns.xrefs after discovery when the real question is "who references this?"kind = ..., tighten the prefix, or switch from plain text to a more specific wildcard pattern.imports if the target may only exist as an imported API.grep is the wrong surface; pivot to strings, decompiler tables, or other domain tables.byte_search instead of grep.xrefs — who references a symbol once grep has found it.disassembly — a found function's body, chunks and calls (disasm_func, func_summary).data — string contents and byte patterns, which grep does not search.types — a found type's members and declaration.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ida-pro, reverse-engineering, binary-analysis, entity-search
npx claudepluginhub allthingsida/idasql-skills --plugin idasql16 skills in this plugin
/analysisTriage and audit IDA binaries. Use when asked to analyze a binary, find suspicious behavior, detect crypto/network activity, review decompiled code against source, or run multi-table queries./annotationsEdit IDA databases. Use when asked to add comments, rename symbols, apply types, create bookmarks, write the database notepad, clean up decompiled code for review, or take undo checkpoints and roll edits back./connectConnect to IDA databases and bootstrap sessions. Use when starting analysis, routing to other skills, setting up CLI/HTTP/MCP connections, or reading and changing IDA configuration options.Other plugins' skills for the same job