Skip to main content
Glama
MalwareAnalyzerMCP

MalwareAnalyzerMCP

MalwareAnalyzerMCP

专为 Claude Desktop 设计的 MCP 服务器,允许执行终端命令以进行恶意软件分析。

特征

  • 执行具有可配置超时的终端命令

  • 读取正在运行或已完成的进程的输出

  • 专门的恶意软件分析命令( file 、 strings 、 hexdump 、 objdump 、 xxd )

  • 通过优雅关闭实现干净的进程管理

  • 纯 JavaScript 实现 - 无需构建步骤

Related MCP server: Desktop Commander MCP

安装

# Install dependencies
npm install

用法

运行服务器

# Start the server directly
node index.js

# Or use npm script
npm start

# With debugging proxy (logs all communications)
npm run debug

与 Claude Desktop 集成

要将此 MCP 服务器与 Claude Desktop 集成:

  1. 打开 Claude Desktop 的设置(Claude 菜单 → 设置)

  2. 点击“开发者”,然后点击“编辑配置”

  3. 更新您的配置以包括:

{
  "mcpServers": {
    "MalwareAnalysisMCP": {
      "command": "node",
      "args": [
        "/path/to/MalwareAnalysisMCP/index.js"
      ]
    }
  }
}

注意:将/path/to/MalwareAnalysisMCP替换为项目目录的实际路径。

  1. 重启Claude桌面

调试

要查看 Claude Desktop 和 MCP 服务器之间的所有通信:

  1. 更新您的 Claude Desktop 配置以使用调试代理:

{
  "mcpServers": {
    "MalwareAnalysisMCP": {
      "command": "node",
      "args": [
        "/path/to/MalwareAnalysisMCP/mcp-debug-proxy.js"
      ]
    }
  }
}
  1. 检查logs目录中的日志

兼容性说明

  • 需要 Node.js 18 或更高版本

  • 使用 ESM 模块与 Node.js v22+ 兼容

API

基本工具

shell命令

执行终端命令并返回其进程 ID、输出和阻塞状态。

参数:

  • command (字符串):在终端中执行的命令

  • timeout_ms (数字,可选):超时时间(以毫秒为单位)(默认值:30000)

返回:

  • pid (数字):进程 ID

  • output (字符串):命令输出

  • isBlocked (boolean):命令执行是否被阻塞/超时

读取输出

读取正在运行或已完成的进程的输出。

参数:

  • pid (数字):读取输出的进程 ID

返回:

  • output (字符串 | null):流程输出,如果未找到流程则为 null

专用恶意软件分析工具

以下专用工具可用于恶意软件分析:

文件

分析文件并确定其类型。

参数:

  • target (字符串):要分析的目标文件

  • options (字符串,可选):附加命令行选项

例子:

{
  "target": "suspicious.exe",
  "options": "-b"
}

字符串

从文件中提取可打印的字符串。

参数:

  • target (字符串):要分析的目标文件

  • minLength (数字,可选):要显示的最小字符串长度

  • encoding (字符串,可选):字符串编码(s=7 位、S=8 位、b=16 位大端、l=16 位小端等)

  • options (字符串,可选):附加命令行选项

例子:

{
  "target": "suspicious.exe",
  "minLength": 10,
  "encoding": "l"
}

十六进制转储

以十六进制格式显示文件内容。

参数:

  • target (字符串):要分析的目标文件

  • length (数字,可选):要显示的字节数

  • offset (数字,可选):文件中的起始偏移量

  • options (字符串,可选):附加命令行选项

例子:

{
  "target": "suspicious.exe",
  "length": 256,
  "offset": 1024
}

objdump

显示目标文件中的信息。

参数:

  • target (字符串):要分析的目标文件

  • disassemble (布尔值,可选):反汇编可执行部分

  • headers (布尔值,可选):显示部分标题的内容

  • options (字符串,可选):附加命令行选项

例子:

{
  "target": "suspicious.exe",
  "disassemble": true
}

xxd

创建具有 ASCII 表示形式的十六进制转储。

参数:

  • target (字符串):要分析的目标文件

  • length (数字,可选):要显示的字节数

  • offset (数字,可选):文件中的起始偏移量

  • cols (数字,可选):将输出格式化为指定数量的列

  • bits (布尔值,可选):切换到位(二进制)转储

  • options (字符串,可选):附加命令行选项

例子:

{
  "target": "suspicious.exe",
  "cols": 16,
  "bits": true
}

执照

国际学习中心

Available Tools

7 tools
fileC

Analyze a file and determine its type

Example usage:

  • Basic file identification: { "target": "suspicious.exe" }

  • With options: { "target": "suspicious.exe", "options": "-b" }

Inputs: target (required), options.

hexdumpA

Display file contents in hexadecimal format

Example usage:

  • Standard hexdump: { "target": "suspicious.exe" }

  • With length limit: { "target": "suspicious.exe", "length": 256 }

  • With offset: { "target": "suspicious.exe", "offset": 1024 }

Inputs: target (required), options, length, offset.

objdumpB

Display information from object files

Example usage:

  • Display file headers: { "target": "suspicious.o" }

  • Disassemble code: { "target": "suspicious.exe", "disassemble": true }

  • Show section headers: { "target": "suspicious.exe", "headers": true }

Inputs: target (required), options, disassemble, headers.

read_outputC

Read output from a running or completed process.

Inputs: pid (required).

shell_commandB

Execute a command in the terminal with timeout. Command will continue running in background if it doesn't complete within timeout.

Inputs: command (required), timeout_ms.

stringsB

Extract printable strings from a file

Example usage:

  • Basic strings extraction: { "target": "suspicious.exe" }

  • With minimum length: { "target": "suspicious.exe", "minLength": 10 }

  • With encoding: { "target": "suspicious.exe", "encoding": "l" }

Inputs: target (required), options, minLength, encoding.

xxdA

Create a hexdump with ASCII representation

Example usage:

  • Standard xxd dump: { "target": "suspicious.exe" }

  • With length limit: { "target": "suspicious.exe", "length": 256 }

  • With column formatting: { "target": "suspicious.exe", "cols": 16 }

  • Binary bits mode: { "target": "suspicious.exe", "bits": true }

Inputs: target (required), options, length, offset, +2 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 7 tools

    Disambiguation2/5

    Several tools have overlapping purposes that could cause confusion. The 'hexdump' and 'xxd' tools both create hexadecimal representations of files with similar options, making them difficult to distinguish. Additionally, 'read_output' and 'shell_command' both deal with process execution but have unclear boundaries, as 'shell_command' mentions background execution while 'read_output' focuses on output reading.

    Naming Consistency3/5

    The naming conventions are mixed but still readable. Most tools use descriptive names like 'file', 'hexdump', 'objdump', and 'strings', which follow a consistent noun-based pattern. However, 'read_output' uses a verb_noun format while 'shell_command' uses a noun_noun format, creating minor inconsistency. The overall naming is functional but lacks a unified pattern.

    Tool Count4/5

    With 7 tools, the count is reasonable for a malware analysis server, falling within the typical 3-15 range. It covers core analysis tasks like file identification, hex dumping, and string extraction. However, it feels slightly thin for comprehensive malware analysis, as it lacks tools for network analysis, behavior monitoring, or threat intelligence integration, which are common in this domain.

    Completeness2/5

    There are significant gaps in the tool surface for malware analysis. While basic file inspection tools are present, there is no coverage for dynamic analysis (e.g., sandbox execution), network traffic analysis, registry monitoring, or malware classification. The server focuses on static analysis only, leaving agents unable to perform common malware investigation workflows, which will likely cause failures in real-world scenarios.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A server that lets Claude desktop app execute terminal commands on your computer and edit files through Model Context Protocol, featuring command execution, process management, and advanced file operations.
      19
      6
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server that provides 294 malware analysis tools behind an AI-driven interface, enabling natural language investigation of binaries.
      265
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server that integrates Ghidra for binary analysis, enabling decompilation, disassembly, and advanced reverse engineering tasks through Claude Code.
      17
      MIT