**English** · [한국어](README.ko.md) · [日本語](README.ja.md) · [简体中文](README.zh-CN.md)

# Reversecore MCP
### AI-Powered Binary Reverse Engineering, Malware Analysis & Vulnerability Research via MCP
**An enterprise-grade Model Context Protocol server for malware triage, decompilation, modern runtime security auditing (Go/Rust, Electron, Unity), crash analysis, and digital forensics — backed by verifiable byte-level evidence.**
---
[](https://github.com/sjkim1127/Reversecore_MCP/actions/workflows/main.yml)
[](https://www.python.org/)
[](LICENSE)
[](#testing)
[](#testing)
[](https://github.com/jlowin/fastmcp)
[](https://pypi.org/project/reversecore-mcp/)
[](https://github.com/sjkim1127/Reversecore_MCP/pkgs/container/reversecore_mcp)
[](https://skills.sh)
[](https://scorecard.dev/viewer/?uri=github.com/sjkim1127/Reversecore_MCP)
[](https://hvtracker.net/agents/reversecore-mcp)
[](https://youtu.be/wJGW2bp3c5A)
[](https://safeskill.dev/scan/sjkim1127-reversecore-mcp)
**[Quick Start](#quick-start) · [Security Analysis Workflows](#-security-analysis-workflows) · [Supported Targets](#what-you-can-analyze) · [Context Efficiency](#-context-efficiency-tiered-router-compact-schema--paging) · [Tool Catalog (186 Tools)](#tool-catalog-186-tools) · [FAQ](#faq)**
### ⚡ Instant One-Line Setup
Automatically detects installed AI clients (**Cursor, Claude Code, Windsurf, Claude Desktop, OpenAI Codex, Antigravity, Cline/Roo Code**) and registers Reversecore MCP with automatic configuration backups:
```bash
# Option 1: Zero-install CLI setup (Recommended)
pipx run reversecore-mcp setup
# Option 2: One-line shell installer (macOS / Linux)
curl -fsSL https://raw.githubusercontent.com/sjkim1127/Reversecore_MCP/main/install.sh | bash
# Option 3: Install Agent Skill (skills.sh / Cursor / Claude Code / Codex)
npx skills add sjkim1127/Reversecore_MCP
```
> 💡 **Reduce LLM context token usage by 94.4%:** Run `pipx run reversecore-mcp setup --tiered` to expose 15 core security tools + 8 domain sub-agents while keeping all 186 tools callable on demand.
---
## Table of Contents
- [What is Reversecore MCP?](#what-is-reversecore-mcp)
- [🛡️ Security Analysis Workflows](#-security-analysis-workflows)
- [What You Can Analyze](#what-you-can-analyze)
- [⚡ Context Efficiency: Tiered Router, Compact Schema & Paging](#-context-efficiency-tiered-router-compact-schema--paging)
- [Architecture](#architecture)
- [Tool Catalog (196 Tools)](#tool-catalog-196-tools)
- [Guided Analysis Prompts (34 Modes)](#guided-analysis-prompts-34-modes)
- [MCP Resources (11 URIs)](#mcp-resources-11-uris)
- [Quick Start](#quick-start)
- [Connect to Your AI Client](#connect-to-your-ai-client)
- [Configuration](#configuration)
- [Security Model](#security-model)
- [Development](#development)
- [CI/CD Pipeline](#cicd-pipeline)
- [Docker Build Architecture](#docker-build-architecture)
- [System Requirements](#system-requirements)
- [Project Structure](#project-structure)
- [Error Handling](#error-handling)
- [Adding New Tools](#adding-new-tools)
- [Contributing](#contributing)
- [Documentation](#documentation)
- [License](#license)
---
## What is Reversecore MCP?
Reversecore MCP is a [Model Context Protocol](https://modelcontextprotocol.io/) server that wraps **196 analysis tools** into a unified interface for AI-assisted security research, malware triage, vulnerability discovery, and digital forensics.
Instead of manually switching between disassemblers, decompilers, YARA scanners, and forensics utilities, you describe your investigation goal in natural language:
```text
"Decompile the main payload of this suspicious sample, recover its custom string decryption
routine, extract all C2 IOCs, map behaviors to MITRE ATT&CK, and generate a triage report."
```
Each tool runs locally (or inside an isolated Docker container) and returns a structured `ToolResult` (`ToolSuccess` or `ToolError`) with byte-level provenance so the AI can chain multi-step security investigations without hallucinating findings.
---
## 🛡️ Security Analysis Workflows
### Workflow 1: Malware Cryptor / DGA Recovery & Safe Emulation Verification
Modern malware families encrypt C2 configurations or generate domains dynamically (DGA). Translating decompiled C into a Python decryptor by hand is error-prone due to subtle 32/64-bit integer wrap-around and bitwise shifts. Reversecore MCP reconstructs the routine and **verifies 100% behavioral equivalence inside Radare2's ESIL CPU emulator** without executing live malware on the host.
**Prompt:**
```text
"Analyze the config decryption function at 0x401180 in sample.bin, write a safe Python
decryptor script, and verify with ESIL emulation that its output matches the binary."
```
**Agent Tool Chain & Verified Output:**
```
1. r2_decompile("sample.bin", "0x401180", detail="summary")
└─ Returns compact complexity/API summary + cache handle: evidence_id="ev_9a4c102f8b11"
2. inspect_analysis_view(evidence_id="ev_9a4c102f8b11", facet="lines", offset=0, limit=40)
└─ Streams exact pseudo-C lines on demand without exhausting context window
3. reconstruct_feature_code(
file_path="sample.bin",
address_or_symbol="sym.decrypt_word",
target_language="python",
test_inputs=["0x0", "0xff", "0xffff"]
)
├─ Decompilation & Synthesis: r2ghidra -> clean Python function (decrypt_word)
├─ Binary Emulation: Radare2 ESIL VM (isolated register/memory state, zero host execution)
├─ Equivalence Verdict: VERIFIED (branch_parity: true, test_vectors_evaluated: 3, emulation_successful: true)
└─ Reconstructed Code:
def decrypt_word(param_1: Any = 0, param_2: Any = 0, *args: Any, **kwargs: Any) -> Any:
uVar1 = (param_1 ^ param_2) * 0x45d9f3b
return uVar1 >> 0x10 ^ uVar1
```
---
### Workflow 2: Modern Runtime Threat & Supply-Chain Auditing (Go/Rust, Electron ASAR, Unity)
Threat actors increasingly write cross-platform ransomware in **stripped Go/Rust** or distribute trojanized **Electron (`app.asar`)** desktop installers. Reversecore MCP provides built-in pure-Python static parsers to recover stripped symbols and audit runtime security boundaries:
**Prompt:**
```text
"Audit this suspicious installer's app.asar for insecure BrowserWindow settings and
suspicious IPC handlers, and recover function symbols from its bundled stripped Go helper."
```
**Agent Tool Chain & Verified Output:**
```
1. inspect_electron_asar("app.asar", search_pattern="ipcMain|child_process|shell")
├─ Format: Chromium Pickle ASAR (header_size: 48,210 bytes, 642 files)
├─ Exposed IPC Handlers: 14 channels mapped across main and preload scripts
└─ Security Audit Findings:
• [HIGH] nodeIntegration: true detected in BrowserWindow configuration
• [MEDIUM] sandbox: false detected in renderer window options
2. inspect_go_rust_binary("helper_daemon.elf")
├─ Runtime Detected: Go (gopclntab magic 0xfffffff1, Go 1.22)
├─ Symbol Recovery: 148 stripped package/function names recovered from .gopclntab
└─ Suspicious Packages Identified:
• main.establishBeaconLoop @ 0x48a200
• main.encryptLocalVolume @ 0x48b940
```
---
### Workflow 3: Zero-Day Crash Triage, Taint Analysis & Adaptive YARA/Vaccine Generation
From an ASan/GDB crash log or a packed binary with dormant logic bombs, Reversecore MCP chains crash classification, source-to-sink taint reachability, and automated detection rule synthesis.
**Prompt:**
```text
"Triage this ASan crash log on daemon.bin, verify whether untrusted network input reaches
the vulnerable memcpy sink, scan for dormant backdoors, and generate a YARA rule."
```
**Agent Tool Chain & Verified Output:**
```
1. cve_triage_crash(crash_log_or_text=asan_log)
└─ Bug Class: heap-buffer-overflow (READ) | CWE-125 | Faulting Function: parse_packet+0x84
2. taint_trace("daemon.bin", function_name="parse_packet", verify_with_angr=True)
└─ Source→Sink Confirmed: recv() → memcpy() at 0x402190 (unbounded length field)
3. dormant_detector("daemon.bin")
└─ Discovered 1 orphan function (0x404800) with time-bomb trigger (cmp eax, 0x67758ac0)
4. adaptive_vaccine(threat_report={...}, action="both")
├─ Generated YARA detection rule with wildcarded address displacement masking
└─ Synthesized binary mitigation patch neutralizing the vulnerable/malicious branch
```
---
## What You Can Analyze
| Target Category | Security & Reverse Engineering Capabilities | Engine / Requirement |
|---|---|---|
| **Native Binaries (PE / ELF / Mach-O)** | Disassembly, r2ghidra C decompilation, CFG, C++ RTTI, struct recovery, imports/exports, section entropy, Authenticode/certificates | **Radare2 + r2ghidra + LIEF** (x86, x64, ARM32, ARM64, MIPS, RISC-V, PowerPC) |
| **Malware & Packed Executables** | Packer/compiler identification, CAPA behavioral capability mapping, dormant backdoor/time-bomb detection, IOC extraction, YARA & Sigma rules, binary vaccines | **YARA + CAPA + DIE + Custom Heuristics** |
| **Stripped Go & Rust Malware / Binaries** | Go `.gopclntab` (`go1.2`–`go1.20+`) symbol recovery, Rust `.dep-v0` (`cargo-auditable`) dependency tree & vulnerable crate auditing, `_ZN...E` demangling | **Built-in pure Python** (`inspect_go_rust_binary`) — no Go/Rust SDK required |
| **Electron Desktop Apps (`app.asar`)** | Supply-chain & client security audit: Chromium Pickle VFS parser, `ipcMain`/`contextBridge` surface mapping, `nodeIntegration`/`contextIsolation` checks | **Built-in pure Python** (`inspect_electron_asar`) — zero external dependencies |
| **Unity IL2CPP Binaries** | Mobile/client security audit: `global-metadata.dat` (`0xFAB11BAF`, v24–v31+) header encryption/entropy detection, C# class/method/string recovery, `libil2cpp.so` correlation | **Built-in pure Python** (`inspect_unity_il2cpp`) — no Unity required |
| **Cryptor / Routine Reconstruction** | Decompiled routine translation into safe C/Python scripts with ESIL register/memory equivalence verification and Obligation Ledger | **r2ghidra + ESIL Simulator** (`reconstruct_feature_code`) |
| **Vulnerabilities & Crash Dumps** | ASan/GDB crash triage, delta-debugging PoC minimization, source-to-sink taint analysis, angr symbolic path solving, ROP gadget chains | **angr + pwntools + ROPgadget + GDB** |
| **Memory, Network & Disk Forensics** | Process & code-injection hunting in RAM dumps, PCAP DNS/C2/stream reconstruction, NTFS MFT & deleted file recovery, artifact timeline correlation | **Volatility3 + Scapy + Sleuth Kit + Binwalk** |
---
## ⚡ Context Efficiency: Tiered Router, Compact Schema & Paging
Large reverse-engineering MCP servers often suffer from **context window bloat**: advertising 180+ verbose tool schemas and returning 50,000-line decompilations can exhaust an LLM's context in 2 turns. Reversecore MCP solves this with a 4-layer optimization architecture:
| Optimization Layer | How to Enable | Context Savings & Behavior |
|---|---|---|
| **1. Tiered Router Mode** | `REVERSECORE_PROFILE=tiered`