Skip to main content
Glama

IDA Pro MCP 서버

AI 어시스턴트가 역엔지니어링 및 바이너리 분석 작업을 위해 IDA Pro와 상호 작용할 수 있도록 하는 MCP(모델 컨텍스트 프로토콜) 서버입니다.

개요

이 프로젝트는 AI 어시스턴트와 소프트웨어 리버스 엔지니어링에 널리 사용되는 디스어셈블러 및 디버거인 IDA Pro를 연결하는 다리 역할을 합니다. 이 프로젝트는 세 가지 주요 구성 요소로 구성됩니다.

  1. IDA Pro 원격 제어 플러그인 ( ida_remote_server.py ): IDA Pro 기능을 원격으로 제어하기 위한 HTTP 서버를 생성하는 IDA Pro 플러그인입니다.

  2. IDA 원격 클라이언트 ( idaremoteclient.ts ): IDA Pro 원격 제어 서버와 상호 작용하기 위한 TypeScript 클라이언트입니다.

  3. MCP 서버 ( index.ts ): AI 어시스턴트에 IDA Pro 기능을 제공하는 모델 컨텍스트 프로토콜 서버입니다.

Related MCP server: Binary Ninja MCP Server

특징

  • AI 어시스턴트에서 IDA Pro의 Python 스크립트 실행

  • 바이너리에 대한 정보를 검색합니다.

    • 문자열

    • 수입품

    • 수출

    • 기능

  • 고급 바이너리 분석 기능:

    • 지침에서 즉시 값 검색

    • 바이너리에서 텍스트 문자열 검색

    • 특정 바이트 시퀀스 검색

    • 주소 범위에 대한 분해를 얻으세요

  • 표준화된 인터페이스를 통해 IDA Pro 작업을 자동화하세요

  • 구성 요소 간 보안 통신

필수 조건

  • IDA Pro 8.3 이상

  • Node.js 18 이상

  • 타입스크립트

예시 사용 ida_remote_server.py

지엑스피1

MCP 서버 사용 예시

루 출력

설치

1. IDA Pro 원격 제어 플러그인 설치

  1. ida_remote_server.py IDA Pro 플러그인 디렉토리에 복사합니다.

    • Windows: %PROGRAMFILES%\IDA Pro\plugins

    • macOS: /Applications/IDA Pro.app/Contents/MacOS/plugins

    • 리눅스: /opt/idapro/plugins

  2. IDA Pro를 시작하고 바이너리 파일을 엽니다.

  3. 플러그인은 자동으로 127.0.0.1:9045 에서 HTTP 서버를 시작합니다.

2. MCP 서버 설치

  1. 이 저장소를 복제하세요:

    git clone <repository-url>
    cd ida-server
  2. 종속성 설치:

    npm install
  3. 프로젝트를 빌드하세요:

    npm run build
  4. AI 어시스턴트의 MCP 설정 파일에서 MCP 서버를 구성하세요.

    {
      "mcpServers": {
        "ida-pro": {
          "command": "node",
          "args": ["path/to/ida-server/dist/index.js"],
          "env": {}
        }
      }
    }

용법

MCP 서버를 설치하고 구성하면 AI 어시스턴트에 다음 도구가 제공됩니다.

run_ida_command

IDA Pro Python 스크립트를 실행합니다.

매개변수:

  • scriptPath (필수): 실행할 스크립트 파일의 절대 경로

  • outputPath (선택 사항): 스크립트 출력을 저장할 절대 경로

예:

# Example IDA Pro script (save as /path/to/script.py)
import idautils

# Count functions
function_count = len(list(idautils.Functions()))
print(f"Binary has {function_count} functions")

# Get the first 5 function names
functions = list(idautils.Functions())[:5]
for func_ea in functions:
    print(f"Function: {ida_name.get_ea_name(func_ea)} at {hex(func_ea)}")

# Return data
return_value = function_count

AI 비서는 이 스크립트를 다음과 함께 사용할 수 있습니다.

<use_mcp_tool>
<server_name>ida-pro</server_name>
<tool_name>run_ida_command</tool_name>
<arguments>
{
  "scriptPath": "/path/to/script.py"
}
</arguments>
</use_mcp_tool>

검색_즉시_값

이진법 명령어에서 즉각적인 값을 검색합니다.

매개변수:

  • value (필수): 검색할 값(숫자 또는 문자열)

  • radix (선택 사항): 숫자 변환을 위한 기수(기본값: 16)

  • startAddress (선택 사항): 검색 시작 주소

  • endAddress (선택 사항): 검색 종료 주소

예:

<use_mcp_tool>
<server_name>ida-pro</server_name>
<tool_name>search_immediate_value</tool_name>
<arguments>
{
  "value": "42",
  "radix": 10
}
</arguments>
</use_mcp_tool>

검색_텍스트

바이너리에서 텍스트 문자열을 검색합니다.

매개변수:

  • text (필수): 검색할 텍스트

  • caseSensitive (선택 사항): 검색 시 대소문자를 구분하는지 여부(기본값: false)

  • startAddress (선택 사항): 검색 시작 주소

  • endAddress (선택 사항): 검색 종료 주소

예:

<use_mcp_tool>
<server_name>ida-pro</server_name>
<tool_name>search_text</tool_name>
<arguments>
{
  "text": "password",
  "caseSensitive": false
}
</arguments>
</use_mcp_tool>

검색_바이트_시퀀스

바이너리에서 특정 바이트 시퀀스를 검색합니다.

매개변수:

  • bytes (필수): 검색할 바이트 시퀀스(예: 3개의 NOP의 경우 "90 90 90")

  • startAddress (선택 사항): 검색 시작 주소

  • endAddress (선택 사항): 검색 종료 주소

예:

<use_mcp_tool>
<server_name>ida-pro</server_name>
<tool_name>search_byte_sequence</tool_name>
<arguments>
{
  "bytes": "90 90 90"
}
</arguments>
</use_mcp_tool>

get_disassembly

주소 범위에 대한 디스어셈블리를 가져옵니다.

매개변수:

  • startAddress (필수): 분해 시작 주소

  • endAddress (선택 사항): 분해를 위한 종료 주소

  • count (선택 사항): 분해할 명령어 수

예:

<use_mcp_tool>
<server_name>ida-pro</server_name>
<tool_name>get_disassembly</tool_name>
<arguments>
{
  "startAddress": "0x401000",
  "count": 10
}
</arguments>
</use_mcp_tool>

get_functions

바이너리에서 함수 목록을 가져옵니다.

매개변수:

  • 필요 없음

예:

<use_mcp_tool>
<server_name>ida-pro</server_name>
<tool_name>get_functions</tool_name>
<arguments>
{}
</arguments>
</use_mcp_tool>

내보내기

바이너리에서 내보내기 목록을 가져옵니다.

매개변수:

  • 필요 없음

예:

<use_mcp_tool>
<server_name>ida-pro</server_name>
<tool_name>get_exports</tool_name>
<arguments>
{}
</arguments>
</use_mcp_tool>

문자열 가져오기

바이너리에서 문자열 목록을 가져옵니다.

매개변수:

  • 필요 없음

예:

<use_mcp_tool>
<server_name>ida-pro</server_name>
<tool_name>get_strings</tool_name>
<arguments>
{}
</arguments>
</use_mcp_tool>

IDA Pro 원격 제어 API

IDA Pro 원격 제어 플러그인은 다음과 같은 HTTP 엔드포인트를 제공합니다.

  • GET /api/info : 플러그인 정보 가져오기

  • GET /api/strings : 바이너리에서 문자열을 가져옵니다.

  • GET /api/exports : 바이너리에서 내보내기 가져오기

  • GET /api/imports : 바이너리에서 가져오기

  • GET /api/functions : 함수 목록 가져오기

  • GET /api/search/immediate : 명령어에서 즉시 값을 검색합니다.

  • GET /api/search/text : 바이너리에서 텍스트 검색

  • GET /api/search/bytes : 바이너리에서 바이트 시퀀스를 검색합니다.

  • GET /api/disassembly : 주소 범위에 대한 디스어셈블리를 가져옵니다.

  • POST /api/execute : Python 스크립트(JSON/Form) 실행

  • POST /api/executebypath : 파일 경로에서 Python 스크립트 실행

  • POST /api/executebody : 원시 본문에서 Python 스크립트 실행

보안 고려 사항

기본적으로 IDA Pro 원격 제어 플러그인은 보안상의 이유로 127.0.0.1 (로컬호스트)에서만 수신 대기합니다. 이로 인해 IDA Pro 인스턴스에 대한 원격 접근이 차단됩니다.

원격 액세스를 허용해야 하는 경우 ida_remote_server.py 에서 DEFAULT_HOST 변수를 수정할 수 있지만 보안에 영향을 미칠 수 있다는 점을 알고 있어야 합니다.

개발

소스에서 빌드

npm run build

테스트 실행

npm test

특허

이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 라이선스 파일을 참조하세요.

작가

플로리안 드레흐슬러(@fdrechsler) fd@fdrechsler.com

Available Tools

12 tools
get_disassemblyC

Get disassembly for an address range

Inputs: startAddress (required), endAddress, count.

get_exportsB

Get list of exports from the binary

Inputs: no named parameters.

get_functionsB

Get list of functions from the binary

Inputs: no named parameters.

get_stringsB

Get list of strings from the binary

Inputs: no named parameters.

get_xrefs_fromC

Get cross-references from an address

Inputs: address (required), type.

get_xrefs_toC

Get cross-references to an address

Inputs: address (required), type.

run_ida_commandC

Execute an IDA Pro Script (IdaPython, Version IDA 8.3)

Inputs: script (required).

run_ida_command_filebasedB

(FOR IDE USAGE) Execute an IDA Pro Script (IdaPython, Version IDA 8.3)

Inputs: scriptPath (required), outputPath.

search_byte_sequenceB

Search for a byte sequence in the binary

Inputs: bytes (required), startAddress, endAddress.

search_immediate_valueC

Search for immediate values in the binary

Inputs: value (required), radix, startAddress, endAddress.

search_in_namesC

Search for names/symbols in the binary

Inputs: pattern (required), caseSensitive, type.

search_textC

Search for text in the binary

Inputs: text (required), caseSensitive, startAddress, endAddress.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 12 tools

    Disambiguation4/5

    Most tools have distinct purposes, but the two 'run_ida_command' variants could cause confusion as they differ only in file-based execution for IDE usage, which might not be clear to an agent without careful reading. The search tools (search_byte_sequence, search_immediate_value, search_in_names, search_text) are well-differentiated by their targets.

    Naming Consistency5/5

    Tool names follow a consistent snake_case pattern with clear verb_noun structures (e.g., get_disassembly, get_exports, search_byte_sequence). The two 'run_ida_command' tools maintain this pattern with descriptive suffixes, ensuring overall predictability.

    Tool Count5/5

    With 12 tools, this server is well-scoped for binary analysis in IDA Pro, covering core functions like disassembly, exports, functions, strings, cross-references, searches, and script execution. Each tool serves a specific purpose without bloat.

    Completeness4/5

    The toolset provides comprehensive coverage for static analysis tasks, including retrieval, searching, and script execution. A minor gap is the lack of tools for modifying the binary (e.g., patching or annotating), but this is reasonable for a read-focused analysis server.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables Large Language Models to interact with Binary Ninja for reverse engineering tasks like viewing assembly code, decompiled code, renaming functions, and adding comments.
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An Model Context Protocol server that enables LLMs to autonomously reverse engineer applications by exposing Ghidra's decompilation and analysis tools. It allows AI agents to list code structures, rename methods, and analyze binaries directly through MCP-compatible clients.
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that runs inside IDA Pro for AI tools, exposing reverse-engineering capabilities like function listing, decompilation, and analysis via HTTP.
      MIT