Until December 31: monthly plans give up to 2.5 times their price in credit. Scale is $200 a month with $400 of usage credit. See plans →

AI reverse engineering: where LLMs help, and the tools that connect them

AI reverse engineering with LLMs: what models do well and badly, MCP servers for Ghidra, IDA, Binary Ninja, x64dbg, jadx, Frida and radare2, and how to connect one.

Published SecurityReverse EngineeringMCPMalware Analysis

Quick answer

AI reverse engineering is the use of large language models to read decompiler output, name functions, triage strings and imports, and write up findings, usually through an MCP server inside Ghidra, IDA or Binary Ninja. In a 2025 study of 2024-2025 Linux and IoT malware, AI-assisted analysis was overall equal to or better than unassisted work, but only with an experienced analyst guiding the model.

What AI reverse engineering means

AI reverse engineering means using a large language model to help understand compiled software you have no source for. In practice the model reads decompiler output and answers questions about it: what a function does, what to call it, which strings and imports matter, and how to write the findings up. Most setups now connect the model to the disassembler through the Model Context Protocol, so it can decompile, follow cross-references and rename symbols itself instead of working from pasted text.

The term covers two kinds of work. Security teams use it to analyze suspicious binaries, audit firmware and solve CTF challenges. Developers use it to understand how an application implements a feature, the use the open-source REA project's README leads with. This page covers both, with the emphasis on security work.

This page is the overview. Step-by-step setup lives in the guides: Ghidra MCP, IDA Pro MCP, and the malware analysis use case for turning findings into indicators and detections.

Only for systems you own or have written permission to test. Respect the software's license and the law where you are, and analyze samples in an isolated VM.

What LLMs do well and badly in reverse engineering

LLMs are good at the reading and writing around reverse engineering and weak at exact arithmetic and at code built to resist analysis. The published evidence, task by task:

Task How well models do Evidence
Cleaning up decompiler output Well, on ordinary compiled code LLM4Decompile (Tan et al., 2024) trained models from 1.3B to 33B parameters that beat GPT-4o and Ghidra by over 100% in re-executability on tests built from HumanEval and ExeBench; its refinement models, which rewrite Ghidra's output, gained a further 16.2%
Naming functions and summarizing code Useful, with gaps A benchmark of function name recovery and binary code summarization (Shang et al., 2024) found that existing LLMs "can understand binary code to a certain extent," enough to make analysis more efficient
String and import triage Well, and easy to check Mechanical sorting of what the tools already extracted. Every server below exposes string and import lists, and the result is easy to check against the listing
Protocol and file-format notes Well when the result can be tested REA's DX-Ball case study checked a reconstructed x86 function against 3,205 cases from the original code. Write a parser or test from the model's notes and run it
Writing the analysis report Faster, but needs review In Apvrille and Nakov, 2025, AI-assisted analysis of Linux and IoT malware was "overall equal or better" than without AI and faster "even when taking account the time to understand AI's hallucinations, exaggerations and omissions"
Number bases, byte order and arithmetic Poor ida-pro-mcp's README says "the conversion between integers and bytes are especially problematic" and tells the model to call a conversion tool instead
Obfuscated or packed code Poor The same README says "LLMs will not perform well on obfuscated code" and advises removing string encryption, import hashing and control-flow flattening first
Working alone Poor Apvrille and Nakov: "the AI cannot operate alone and must constantly be guided by an experienced analyst," and without attention it can "loop without showing progress" and run up cost

Two risks come with agentic setups. Text inside a binary comes from whoever wrote it, so strings and symbol names can be crafted to read like instructions to the model; GhidraMCP has an open security advisory on exactly this. And some servers let the model run scripts: Hex-Rays notes that "IDA does not yet isolate its Python interpreter from the wider system" and recommends a sandbox "when dealing with untrusted data" (announcement). Keep write tools on ask, keep the client's shell tool off, and snapshot the VM.

AI reverse engineering tools compared

Most AI reverse engineering tools are MCP servers: a plugin or bridge that gives an AI client tools inside one host program. A few are assistants built into the host program that call a model directly. The main ones per host, from each repository (stars checked 2026-12-03):

Host tool Project Stars Transport What to know
Ghidra LaurieWired/GhidraMCP 12,134 stdio, streamable HTTP Most starred Ghidra server; 30 tools; release 2.0 targets Ghidra 12.1.4. Alternatives with Ghidra 12.2 builds: bethington/ghidra-mcp (6,417), ReVa (992), GhidrAssistMCP (823). Setup: Ghidra MCP
Ghidra GhidrAssist, OGhidra (LLNL) 786, 474 In-tool assistants GhidrAssist calls "any OpenAI v1-compatible API" from inside Ghidra; OGhidra runs local models through Ollama or cloud APIs
IDA Pro mrexodia/ida-pro-mcp 13,675 stdio, streamable HTTP, SSE 88 tools, IDA Pro 8.3 or later, headless idalib-mcp mode. Hex-Rays' official IDA MCP (1,720) has 6 tools and needs IDA 9.4. Setup: IDA Pro MCP
Binary Ninja Built-in MCP server, Vector 35 (docs) Part of the product HTTP in the GUI; stdio headless Ships with Binary Ninja 6.0 and later; the GUI server is in every edition, Free included. Community servers: fosdickio/binary_ninja_mcp (482), mrphrazer/binary-ninja-headless-mcp (264). Setup: Binary Ninja MCP
Binary Ninja Sidekick, Vector 35 Commercial service Plugin plus hosted or self-hosted service Vector 35's own agents for Binary Ninja; a free monthly allowance with active support, not in the Free edition
x64dbg (Windows debugger) duty1g/x64dbg-mcp-server 2,941 Streamable HTTP, SSE MIT, written in Zig, 80 tools, mandatory bearer token. It listens on 0.0.0.0:9094 (x64) and 0.0.0.0:9095 (x32) by default, so bind it to loopback. Older: Wasdubya/x64dbgMCP (620, GPL-3.0). Setup: x64dbg MCP
jadx (Android) zinja-coder/jadx-ai-mcp with jadx-mcp-server 3,072 and 865 stdio, or HTTP with --http A jadx plugin (Java 11+) and a Python 3.10+ MCP server; Apache-2.0; release v6.5.0 of 2026-10-19. Setup: JADX MCP
Frida (dynamic instrumentation) dnakov/frida-mcp 496 stdio MIT; process and device management and an interactive JavaScript REPL; no commits since 2025-05-12. FuzzySecurity/kahlo-mcp (141) focuses on Android. Setup: Frida MCP
radare2 radareorg/radare2-mcp (r2mcp) 383 stdio, or HTTP with -H The radare2 project's own server, in C; read-only mode and sandbox options; needs radare2 6.2.6 or later. The same project's r2ai (551) is an in-tool assistant for local and remote models
Cutter restkhz/CutterMCP-plus 59 Python MCP server, to a plugin's HTTP API on 127.0.0.1:8000 GPL-3.0; last commit 2026-03-17. Cutter's 2.5.0 release notes mention no MCP server; this community plugin is the most starred we found
Several at once REA (Reverse Engineer Anything) 487,310 Local MCP server MIT; one MCP server that drives Hopper, Ghidra, IDA or Kuna for native code and also covers JavaScript and Electron apps, .NET and websites; npm package rea-agents 7.0.0 of 2026-11-30

Star counts measure attention more than fit. REA's is far above every disassembler-specific server, and its README aims it at understanding how an app implements a feature. Check a server's last commit before you rely on it: several popular ones have not changed in months.

How the model connects

An MCP server has no model of its own. The MCP client that runs it, such as Claude Code, OpenCode or Cline, sends the tool results to a model and runs the calls the model asks for. So any server in the table works with any model the client can reach, and three clients document a custom endpoint:

  • Claude Code speaks the Anthropic Messages API, which Abliterator serves at https://abliterator.ai. Set ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN and the pinned model variables from the Claude Code guide, then add the server with claude mcp add.
  • OpenCode takes an OpenAI-compatible provider with base URL https://abliterator.ai/v1 in opencode.jsonc, and starts the MCP servers listed under mcp.servers in the same file (OpenCode guide).
  • Cline in VS Code uses its OpenAI Compatible provider with base URL https://abliterator.ai/v1 (Cline guide), and adds servers under mcpServers in its MCP settings: command and args for a local server, "type": "streamableHttp" and url for a remote one.

For Claude Code, the whole connection is these variables plus one command per server. This example adds radare2's server, started through r2pm as its README shows:

export ANTHROPIC_BASE_URL="https://abliterator.ai"
export ANTHROPIC_AUTH_TOKEN="$ABL_API_KEY"
unset ANTHROPIC_API_KEY
export ANTHROPIC_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_OPUS_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_SONNET_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4.1-flash-abliterated"
export CLAUDE_CODE_SUBAGENT_MODEL="kimi-k3.1-pro-abliterated"

claude mcp add --transport stdio radare2 -- r2pm -r r2mcp

The in-tool assistants skip the MCP client. GhidrAssist and BinAssist, for Binary Ninja, take an API host and key in their settings, and r2ai takes a custom API root in r2ai.baseurl, so each can call https://abliterator.ai/v1 directly. Many READMEs show a Claude Desktop configuration; this site's guides use the clients above because they document a custom model endpoint. Whatever the route, the model needs native tool calling, which both Abliterator models support.

Why hosted models sometimes stop on suspicious samples

Hosted frontier models run cyber safeguards that judge each request, and decompiled code from a suspicious binary can trip them even when the work is defensive. Hex-Rays wrote in its September 2026 IDA MCP announcement that with Opus 5.5 in Claude Code, "cybersecurity safeguards frequently interrupt work," and that "some models refuse cybersecurity tasks without onerous additional approval by the vendor."

The providers document what they permit:

  • Anthropic. Its Usage Policy, effective November 12, 2026, "does not prohibit security research, testing, or tool development conducted on systems you own or operate," and "encountering a block does not by itself indicate a violation." Its Cyber Verification Program lists malware analysis under Defense Access, which individuals on paid plans can apply for; enrolled users "may experience some model refusals and classifier blocks for allowed security work."
  • OpenAI. Its Usage Policies, effective November 20, 2026, prohibit "circumventing our safeguards." Its Daybreak Trusted Access program lists malware analysis under Daybreak Blue, requires approval, and says "Some safeguards can still apply after approval, even with Daybreak Red."

Neither program mentions reverse engineering by name. If your team works under one of them, use it. Abliterator serves models with the refusal behavior removed from the weights, so the same MCP setup runs against a model that refuses far less. Some uses are always prohibited; see the acceptable use policy. More on each provider: Claude refused and ChatGPT refused.

Which model to pick

Use kimi-k3.1-pro-abliterated (Kimi K3.1 Pro Abliterated) for long agent sessions and deepseek-v4.1-flash-abliterated (DeepSeek V4.1 Flash Abliterated) for cheap, high-volume calls. Both support tool calling and a 1,048,576-token context, enough for a large decompiler export in one request. Refusals fell from 94% to 1% on DeepSeek V4.1 Flash and from 94% to 3% on Kimi K3.1 Pro (benchmarks).

Model Use it for Measured after abliteration
kimi-k3.1-pro-abliterated Whole-binary passes that decompile, rename, retype and comment over dozens of tool calls; report drafts Terminal-Bench 4.0 66.6 → 62.3, a drop that is plausible but not statistically shown (benchmarks); test it on a binary you know first
deepseek-v4.1-flash-abliterated String and import triage, single-function questions, many small binaries CyberMetric-2000 94.2 → 93.8, InterCode-CTF 94.2 → 95.5, Cybench 98.3 → 96.6, all within noise (security suites)

Agent sessions resend the conversation, including earlier decompiler output, on every turn. Abliterator caches the repeated prefix automatically and bills it at $0.40 per 1M tokens on kimi-k3.1-pro-abliterated and $0.10 on deepseek-v4.1-flash-abliterated (prompt caching). For how these models compare with security-tuned and frontier models, see best LLM for cybersecurity.

A safe first exercise

The best first target is a program you compiled yourself, because you know the right answer to every question. A crackme or CTF binary you are allowed to use works too: ida-pro-mcp ships tests/crackme03.elf, and fosdickio's Binary Ninja server ships example/chal.c.

  1. Build an isolated VM with snapshots: the disassembler, the MCP server and the client inside it, and no network access beyond the client's calls to the API. Create an Abliterator key for this VM only, with a spend limit (authentication).
  2. Compile a small program and strip it. A checksum or hash utility of 30 to 50 lines is ideal: it has a few helpers, recognizable constants and printable strings. Build with -O1 -fno-inline so the helpers stay separate functions.
  3. Connect one server and one client. The Ghidra MCP, IDA Pro MCP and Binary Ninja MCP guides each walk through this with a sample program and prompts.
  4. Ask read-only questions first. Triage the binary, list strings and imports, then ask the model to explain one function and propose names without renaming anything.
  5. Check every answer against your source. If the model names an algorithm, compute the same value with a second implementation. Then let it rename, with each write on ask, and compare the result with what you wrote.

When the model gets your own program right, move to a CTF binary, then to real samples under your team's handling rules. The malware analysis use case covers extracting indicators, writing YARA rules and the cost of long sessions.

Frequently asked questions

What is reverse engineering with AI?

It is the use of a large language model to help understand compiled software: explaining decompiled functions, proposing names and types, sorting strings and imports, and drafting the report. The model usually works through an MCP server that gives it tools inside a disassembler such as Ghidra, IDA or Binary Ninja, and an analyst checks what it concludes.

Does Ghidra have built-in AI?

No. The release notes for Ghidra 12.2, the current release, mention no AI assistant or MCP server (checked 2026-12-03). AI support comes from community extensions: MCP servers such as LaurieWired's GhidraMCP, and in-tool assistants such as GhidrAssist and LLNL's OGhidra.

Does IDA Pro have AI?

Yes, as an add-on. Hex-Rays announced an official, open-source IDA MCP server on September 25, 2026, for IDA 9.4 or later on IDA Home, Pro and Classroom. The community ida-pro-mcp server supports IDA Pro 8.3 or later. Both connect IDA to an AI client; the client supplies the model.

Can AI reverse engineer a binary on its own?

Not reliably. The 2025 r2ai study found the model had to be guided by an experienced analyst, and its results included hallucinations, exaggerations and omissions. ida-pro-mcp's README warns that models do poorly on obfuscated code. Use the model to go faster, then verify every claim in the disassembler.

Is reverse engineering software with AI legal?

Using AI does not change the legal question. Whether you may reverse engineer a program depends on its license and the law where you are. Analyzing software you wrote, samples you are authorized to handle and CTF challenges is the safe ground; ask counsel about anything else.

Try it in your browser.

Ask it something your usual model refuses.

Start a chat

No sign-up to try. $10 free when you verify your email.