xamirhamza77/reverseops-skill/ida-reverse

Claude Code and agent skill by xamirhamza77/reverseops-skill

Trust tier 3
  • community
Source check pending

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-reverse

SKILL.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)

  1. NOW: Read ../field-journal/precedent-reverse.md — confirm that this skill's operations are authorized routine operations
  2. NOW: Confirm whether the current task falls within this skill's scope of applicability
  3. NEXT: Read ../tool-index.md to verify tool availability and actual paths
  4. NEXT: If tools are missing, invoke bootstrap; do not guess paths
  5. ACT: 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
  1. `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.ps1 script 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
  1. Files under `C:\Windows\System32\` cannot be opened due to permissions
  • idalib cannot directly read files in the System32 directory
  • Solution: open.ps1 automatically detects this and copies the file to a temporary directory before opening
  1. Server startup command blocks the conversation
  • After idalib-mcp starts, 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
  1. MCP server names cannot contain hyphens
  • Previously ida-pro-mcp was used as the server name, which could cause tool registration issues
  • Current configuration: server name idapro, tool prefix idapro_*
  1. Remote HTTP vs Local Stdio
  • type:"local" (stdio) mode: idalib_open has the same schema validation problem
  • type:"remote" (HTTP) mode: you can open the file directly with the script first, then use the MCP tools
  • Current approach: Remote HTTP mode
  1. 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 main branch version is installed
  1. idalib timeouts leave orphaned worker processes holding lock files
  • After the first open.ps1 times 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.ps1 now uses taskkill /F /T to kill the process tree, leaving no orphans
  • Fallback: open.ps1 has automatic degradation — when it detects that the old database is locked, it automatically copies the file to Temp with a GUID prefix
  1. 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.ps1 adds -TimeoutSeconds and 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 returns ERR:open_timeout_xxs
Workflow principles
StepWhat to doWhat to use
1Ensure the HTTP server is runningscripts/start.ps1 (no arguments)
2Open the target binary filescripts/open.ps1 -Path "xxx.exe"
3Use all 72 MCP toolsCall the idapro_* tools directly
4Analysis completeTools 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) → starts idalib-mcp in the background → waits for readiness (up to 15 seconds)
  • Outputs OK:72 on success, ERR:timeout on failure
  • The server runs in the background and does not block the conversation

Usage:

powershell -File "<skill-root>\ida-reverse\scripts\start.ps1"
open.ps1 — Open a binary file

Path: scripts/open.ps1

  • Calls idalib_open directly 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 returns ERR:open_timeout_xxs instead of hanging forever
  • Outputs INFO:opening:elapsed/timeout-seconds every 10 seconds so you can tell analysis is still in progress
  • Outputs OK:filename:session_id on success, with a (temp copy) marker when degraded
  • Automatically retries with a Temp copy on failure

Usage:

powershell -File "<skill-root>\ida-reverse\scripts\open.ps1" -Path "C:\path\to\file.exe"

Optional parameters:

# Specify a SessionId
powershell -File "scripts\open.ps1" -Path "file.exe" -SessionId "my_session"
# Skip auto-analysis (recommended for large files)
powershell -File "scripts\open.ps1" -Path "large.exe" -NoAutoAnalysis
# Set a timeout to avoid long periods without a response when auto-analysis is enabled
powershell -File "scripts\open.ps1" -Path "file.exe" -TimeoutSeconds 600

Output conventions:

# Analysis in progress (printed every 10 seconds)
INFO:opening:11/600s
# Opened successfully
OK:sample.exe:abcd1234
# Opened successfully, but degraded to a Temp copy due to lock files
OK:1234abcd-sample.exe:abcd1234 (temp copy)
# Timeout limit reached
ERR:open_timeout_600s

Measured results:

  • Snipaste.exe with auto-analysis took about 324s to 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 600 is 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 variables
  • idapro_entity_query(kind, filter) — Unified query: functions/globals/imports/strings/names
Decompilation and disassembly
  • idapro_decompile(addr) — Decompile to pseudocode
  • idapro_disasm(addr, max_instructions=N) — Disassemble
  • idapro_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 address
  • idapro_xref_query(addr, direction) — Advanced xref query (direction/type filtering)
  • idapro_callees(addrs) — List of subfunctions
  • idapro_callgraph(roots, max_depth) — Call graph
  • idapro_trace_data_flow(addr, direction, max_depth) — Data flow tracing (forward/backward)
Search
  • idapro_find_regex(pattern, limit) — Regex string search
  • idapro_search_text(pattern) — Search text in the disassembly listing
  • idapro_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 bytes
  • idapro_get_string(addrs) — Read strings
  • idapro_get_int(queries) — Read integer values
  • idapro_get_global_value(queries) — Read global variable values
  • idapro_read_struct(queries) — Read struct field values
  • idapro_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 comments
  • idapro_rename(batch) — Batch rename (functions/globals/locals/stack variables)
  • idapro_patch_asm(items) — Patch assembly instructions
  • idapro_patch(patches) — Patch bytes
  • idapro_define_func(items) — Define a function
  • idapro_undefine(items) — Undefine
  • idapro_define_code(items) — Convert bytes to code
Type system
  • idapro_declare_type(decls) — Declare C structs/enums/unions
  • idapro_set_type(edits) — Apply types to functions/globals/locals
  • idapro_infer_types(addrs) — Infer types
  • idapro_type_query(queries) — Query declared types
  • idapro_type_inspect(queries) — View type details
Stack frames
  • idapro_stack_frame(addrs) — View stack frame variables
  • idapro_declare_stack(items) — Declare stack variables
  • idapro_delete_stack(items) — Delete stack variables
Signatures
  • idapro_make_signature(addrs) — Generate a unique byte signature for an address
  • idapro_make_signature_for_function(addrs) — Generate a signature for a function
  • idapro_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 the open.ps1 script instead
  • idapro_idalib_list() — List all sessions
  • idapro_idalib_current() — The session bound to the current context
  • idapro_idalib_switch(session_id) — Switch to another session
  • idapro_idalib_close(session_id) — Close a session
  • idapro_idalib_save(path) — Save the database
  • idapro_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 context
  • idapro_server_health() — Server health check
  • idapro_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.

powershell -File "scripts/start.ps1"

Output of OK:72 indicates readiness.

Step 2: Open the file
powershell -File "scripts/open.ps1" -Path "C:\TARGET.exe" -TimeoutSeconds 600

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
idapro_survey_binary(detail_level="minimal")

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
idapro_analyze_function(addr="key_function_name")

or:

idapro_decompile(addr="function_name")
idapro_disasm(addr="function_name", max_instructions=50)

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/xamirhamza77/reverseops-skill/ida-reverse/badge)](https://verified-skill.com/skills/xamirhamza77/reverseops-skill/ida-reverse)

Something wrong with this skill or its page? Tell us.