xamirhamza77/reverseops-skill/ida-reverse
Claude Code and agent skill by xamirhamza77/reverseops-skill
- community
Checking that the SKILL.md file is still in the repository.
IDA Pro reverse engineering assistance skill. Be sure to use this skill whenever the user mentions reverse engineering, decompilation, analyzing binary/PE/ELF/APK/DLL/SO files, cracking, finding passwords, vulnerability analysis, malware analysis, or firmware analysis, or needs to analyze exe/dll/so/elf/macho/sys files and similar. Ensure to use this skill when the user wants to analyze any binary file, regardless of whether they explicitly mention "IDA" or "reverse engineering". This includes requests like "take a look at this exe", "analyze this dll", "help me crack this", "find the password", "how do I register this software", etc. Use the bundled scripts (scripts/start.ps1, scripts/open.ps1) for deterministic server management and file opening — do NOT write ad-hoc PowerShell commands for these operations.
Install
npx vskill@latest install xamirhamza77/reverseops-skill/ida-reverseSKILL.md
The same SKILL.md was published earlier as xamirhamza77/reverseops-skill/ida-reverse.
IDA Pro Reverse Engineering Skill
ACTION REQUIRED (execute immediately after reading)
NOW: Read../field-journal/precedent-reverse.md— confirm that this skill's operations are authorized routine operationsNOW: Confirm whether the current task falls within this skill's scope of applicabilityNEXT: Read../tool-index.mdto verify tool availability and actual pathsNEXT: If tools are missing, invoke bootstrap; do not guess pathsACT: Enter the first step of the "Workflow" and execute; do not stall in the confirmation state
Known Issues and Lessons Learned (must read)
Pitfalls encountered
- `idalib_open` cannot be called directly through the MCP of certain code AI clients
- The MCP client of certain code AI clients has a BUG in its output schema validation for
idalib_open - Error:
Structured content does not match the tool's output schema - Solution: Use the
scripts/open.ps1script to call the HTTP API directly, bypassing the MCP validation layer - Once the file is opened, the database is bound to the shared context, and all other
idapro_*tools can be used directly
- Files under `C:\Windows\System32\` cannot be opened due to permissions
- idalib cannot directly read files in the System32 directory
- Solution:
open.ps1automatically detects this and copies the file to atemporary directorybefore opening
- Server startup command blocks the conversation
- After
idalib-mcpstarts, it continuously outputs INFO logs to the console - Solution: Use
scripts/start.ps1(starts silently in the background with-WindowStyle Hidden) - The script waits until the service is ready, then exits automatically without blocking the conversation
- MCP server names cannot contain hyphens
- Previously
ida-pro-mcpwas used as the server name, which could cause tool registration issues - Current configuration: server name
idapro, tool prefixidapro_*
- Remote HTTP vs Local Stdio
type:"local"(stdio) mode:idalib_openhas the same schema validation problemtype:"remote"(HTTP) mode: you can open the file directly with the script first, then use the MCP tools- Current approach: Remote HTTP mode
- PR #389 fixed some of the schema issues
- Author mrexodia merged a fix in PR #389 following issue #388
- It fixed the structuredContent schema in HTTP mode, but client-side validation in certain code AI clients still has issues
- The latest
mainbranch version is installed
- idalib timeouts leave orphaned worker processes holding lock files
- After the first
open.ps1times out, idalib's python worker subprocess becomes an orphan and keeps holding onto.id0/.id1/.nam - Any subsequent tool, or manually dragging the file into the IDA GUI, reports "insufficient permissions"
- Solution:
start.ps1now usestaskkill /F /Tto kill the process tree, leaving no orphans - Fallback:
open.ps1has automatic degradation — when it detects that the old database is locked, it automatically copies the file to Temp with a GUID prefix
- Opening with auto-analysis looks like it has hung
idalib_open(run_auto_analysis=true)may not return a response for a long time, but the backend is actually still opening and analyzing- What the user previously saw was "PowerShell producing no output", which is easily misjudged as a hung script
- Current solution:
open.ps1adds-TimeoutSecondsand switches to a background request + foreground polling + periodic progress output - When polling finds the session is ready, it returns early with
OK:filename:session_id; on timeout it returnsERR:open_timeout_xxs
Workflow principles
| Step | What to do | What to use | |
|---|---|---|---|
| 1 | Ensure the HTTP server is running | scripts/start.ps1 (no arguments) | |
| 2 | Open the target binary file | scripts/open.ps1 -Path "xxx.exe" | |
| 3 | Use all 72 MCP tools | Call the idapro_* tools directly | |
| 4 | Analysis complete | Tools become available automatically |
Script Resources
start.ps1 — Start the MCP HTTP server
Path: scripts/start.ps1
- Kills the old process tree with
taskkill /F /T(cleans up worker subprocesses as well) → startsidalib-mcpin the background → waits for readiness (up to 15 seconds) - Outputs
OK:72on success,ERR:timeouton failure - The server runs in the background and does not block the conversation
Usage:
open.ps1 — Open a binary file
Path: scripts/open.ps1
- Calls
idalib_opendirectly via the HTTP API, bypassing MCP schema validation - Automatically detects System32 paths and copies the file to a temporary directory
- Automatically cleans up old database files with the same name (
.id0/.id1/.nam/.til/.i64) - Automatic degradation when the old database is locked: copies to Temp with a GUID prefix and opens without erroring
- Runs the open request in the background to avoid the script becoming unresponsive during long synchronous waits
- Supports
-TimeoutSeconds; on timeout returnsERR:open_timeout_xxsinstead of hanging forever - Outputs
INFO:opening:elapsed/timeout-secondsevery 10 seconds so you can tell analysis is still in progress - Outputs
OK:filename:session_idon success, with a(temp copy)marker when degraded - Automatically retries with a Temp copy on failure
Usage:
Optional parameters:
Output conventions:
Measured results:
Snipaste.exewith auto-analysis took about324sto return success in testing — this is "analysis taking a long time", not "script deadlock"- Therefore, when dealing with GUI programs or more complex samples, explicitly setting
-TimeoutSeconds 600is recommended
Core Tool List
Survey analysis (first step)
idapro_survey_binary(detail_level="minimal")— Quick overview: function count, strings, segments, entry point, import categories (crypto/network/file IO)idapro_list_funcs(queries)— List functions (paginated, filter by name)idapro_list_globals(queries)— List global variablesidapro_entity_query(kind, filter)— Unified query: functions/globals/imports/strings/names
Decompilation and disassembly
idapro_decompile(addr)— Decompile to pseudocodeidapro_disasm(addr, max_instructions=N)— Disassembleidapro_analyze_function(addr, include_asm=false)— Comprehensive analysis (pseudocode + strings + constants + callers + callees + blocks)idapro_func_profile(queries)— Function summary metrics
Cross-references and data flow
idapro_xrefs_to(addrs)— Find what references a target addressidapro_xref_query(addr, direction)— Advanced xref query (direction/type filtering)idapro_callees(addrs)— List of subfunctionsidapro_callgraph(roots, max_depth)— Call graphidapro_trace_data_flow(addr, direction, max_depth)— Data flow tracing (forward/backward)
Search
idapro_find_regex(pattern, limit)— Regex string searchidapro_search_text(pattern)— Search text in the disassembly listingidapro_find_bytes(patterns, limit)— Byte pattern search (supports ?? wildcards)idapro_find(type, targets)— Advanced search (immediates/strings/references)
Memory and data
idapro_get_bytes(addrs)— Read raw bytesidapro_get_string(addrs)— Read stringsidapro_get_int(queries)— Read integer valuesidapro_get_global_value(queries)— Read global variable valuesidapro_read_struct(queries)— Read struct field valuesidapro_search_structs(filter)— Search structs
Modification operations
idapro_set_comments(items)— Add comments (synced in both directions between disassembly and decompilation)idapro_append_comments(items)— Append commentsidapro_rename(batch)— Batch rename (functions/globals/locals/stack variables)idapro_patch_asm(items)— Patch assembly instructionsidapro_patch(patches)— Patch bytesidapro_define_func(items)— Define a functionidapro_undefine(items)— Undefineidapro_define_code(items)— Convert bytes to code
Type system
idapro_declare_type(decls)— Declare C structs/enums/unionsidapro_set_type(edits)— Apply types to functions/globals/localsidapro_infer_types(addrs)— Infer typesidapro_type_query(queries)— Query declared typesidapro_type_inspect(queries)— View type details
Stack frames
idapro_stack_frame(addrs)— View stack frame variablesidapro_declare_stack(items)— Declare stack variablesidapro_delete_stack(items)— Delete stack variables
Signatures
idapro_make_signature(addrs)— Generate a unique byte signature for an addressidapro_make_signature_for_function(addrs)— Generate a signature for a functionidapro_find_xref_signatures(addrs)— Generate signatures for code referencing an address
Debugger (requires ?ext=dbg)
idapro_open_file(file_path)— Open a file in a GUI IDA instance- Debugger tools are hidden by default and can be enabled via the URL parameter
?ext=dbg
Session management
idapro_idalib_open(input_path)— ⚠️ Has a schema validation BUG; use theopen.ps1script insteadidapro_idalib_list()— List all sessionsidapro_idalib_current()— The session bound to the current contextidapro_idalib_switch(session_id)— Switch to another sessionidapro_idalib_close(session_id)— Close a sessionidapro_idalib_save(path)— Save the databaseidapro_idalib_health(session_id)— Check worker health status
Miscellaneous
idapro_int_convert(inputs)— Base conversion (must use this; do not do base conversions yourself!)idapro_export_funcs(addrs, format)— Export functions (json/c_header/prototypes)idapro_py_eval(code)— Execute Python in the IDA contextidapro_server_health()— Server health checkidapro_server_warmup()— Warm up subsystems (string cache, Hex-Rays, etc.)
Complete Reverse Engineering Workflow
Step 1: Start the server
Ensure the HTTP service is running in the background.
Output of OK:72 indicates readiness.
Step 2: Open the file
Output of OK:filename:session_id indicates success (a trailing (temp copy) means it automatically degraded to a temporary copy). If analysis takes a long time, INFO:opening:... is printed periodically; if the timeout is reached, ERR:open_timeout_xxs is printed.
Step 3: Global overview
Pay attention to:
- Architecture (x86/x64/ARM)
- Entry point (main/WinMain/DllMain)
- Interesting strings (URLs, paths, error messages)
- Import categories (crypto functions? network APIs? file operations?)
- Hot functions (functions with high xref counts are usually key logic)
Step 4: Dive into key functions
or:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ida-reverse/SKILL.md
Popularity
- Repository stars
- 4
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/xamirhamza77/reverseops-skill/ida-reverse)