Skip to main content
Glama

A decompiler CLI built for agents and scripts.

ELF, PE and Mach-O to C · a versioned JSON contract and an MCP server · output checked by running it

CI Release License: Apache-2.0 Try it in your browser Discussions Discord Patreon

Website · Docs · Studio · Blog · FreshBench · Discussions · Discord · Patreon

English · 한국어 · 日本語 · 简体中文


Fission decompiles ELF, PE and Mach-O binaries to C: it lifts machine code through Ghidra's Sleigh processor specifications, then does everything after that (IR, type recovery, control-flow structuring, C output) in its own Rust code. Its main interface is the fission_cli command line, with a versioned JSON contract for agents and scripts. There is no native desktop GUI, by design; Fission Studio runs the same engine, compiled to WebAssembly, in your browser.

Every command and every line of output in it comes from a real run of the current CLI, captured by a script and animated with Remotion; nothing is retyped or edited. The sample, the capture script and the video source are in docs/assets/demo/ (also as MP4).

Highlights

  • Built for agents. --contract v1 --json gives one JSON envelope and a typed exit code; fission_cli schema prints its JSON Schema, fission_cli skill a usage guide compiled into the binary, and fission_cli mcp is an MCP server for Claude Code, Codex and other clients.

  • Checked by execution. fission_cli verify interprets the decompiled function and runs the original machine code in Fission's own emulator on the same inputs, then compares return values, calls and stores. It reports Equivalent or Diverged, with the number of runs it checked (how it works).

  • Its own Rust pipeline. Sleigh processor specifications are read as data; everything after the lift is Fission's own code. It never runs Ghidra.

  • More than a decompiler. Disassembly, cross-references, call graphs, patching, scripting, an emulator sandbox, a debugger, and an analysis project (names, signatures, notes) with undo and redo.

  • Runs where you are. Linux, macOS, Windows, Android (Termux), and the browser. Installed by Homebrew, deb/rpm, Nix, Cargo or a script.

  • Measured in the open. Output quality is scored on FreshBench, a corpus of C projects no decompiler was tuned on; correctness is measured separately, by execution.

Related MCP server: REA (Reverse Engineer Anything)

Try it without installing

Fission Studio is the same engine in your browser. Drop a small ELF or PE file, or open a bundled sample, to see its functions, the decompiled C and verify's verdict. The file stays in the tab: nothing is uploaded, and only Fission's own emulator runs it.

Install

Homebrew (macOS, Linux):

brew install fission-systems/tap/fission-cli

Install script (macOS, Linux, Android/Termux). Installs into ~/.local and checks the download's SHA-256. FISSION_PREFIX changes the prefix; FISSION_VERSION pins a release tag.

curl -fsSL https://raw.githubusercontent.com/fission-systems/Fission/main/install.sh | sh

Release archives for six targets are on the releases page: Linux x86-64 and arm64, Android arm64 (Termux), macOS Apple silicon and Intel, Windows x64. Unpack one anywhere and run bin/fission_cli. From v0.8.0 the binary carries its resources. An older release finds share/fission/ next to itself; on Android it cannot, so pass --resource-root <prefix>/share/fission.

Linux packages: releases after v0.5.0 attach a .deb and an .rpm for x86-64 and arm64 that install under /usr (glibc 2.35 or newer: Debian 12, Ubuntu 22.04, Fedora 36, openSUSE Tumbleweed and later). On arm64, use fission-cli_arm64.deb or fission-cli.aarch64.rpm.

curl -fsSLO https://github.com/fission-systems/Fission/releases/latest/download/fission-cli_amd64.deb
sudo apt install ./fission-cli_amd64.deb
# or
sudo dnf install https://github.com/fission-systems/Fission/releases/latest/download/fission-cli.x86_64.rpm

Verify a download. Every release lists each asset's SHA-256 in SHA256SUMS, and the release workflow attests every asset with a signed build provenance (the commit and workflow run that built it). Check both before installing an archive or package fetched by hand:

sha256sum --ignore-missing -c SHA256SUMS      # macOS: shasum -a 256 --ignore-missing -c SHA256SUMS
gh attestation verify fission-x86_64-unknown-linux-gnu.tar.gz --repo fission-systems/Fission

Other channels and their status: docs/DISTRIBUTION.md.

Cargo builds from source. From v0.8.0 the resources are compiled in; the tag still selects the release:

TAG=$(curl -fsSL https://api.github.com/repos/fission-systems/Fission/releases/latest \
  | sed -n 's/.*"tag_name": *"\([^"]*\)".*/\1/p')
cargo install --locked --git https://github.com/fission-systems/Fission --tag "$TAG" fission-cli

A tag before v0.8.0 also needs that release's resources:

mkdir -p ~/.cargo/share/fission
curl -fsSL "https://github.com/fission-systems/Fission/releases/download/$TAG/fission-resources.tar.gz" \
  | tar -xz -C ~/.cargo/share/fission

cargo binstall downloads the release archive instead of compiling. Before v0.8.0 the resources come from the same fission-resources.tar.gz step as above:

cargo binstall fission-cli --git https://github.com/fission-systems/Fission --bin fission_cli

Nix (flakes) builds from source:

nix run github:fission-systems/Fission -- --version
nix profile install github:fission-systems/Fission

fission_cli resources status shows where the binary found its resources.

Quick start

// hello.c
#include <stdio.h>
#include <stdlib.h>

int sum_to(int n)
{
    int s = 0;
    for (int i = 0; i <= n; i++)
        s += i;
    return s;
}

int main(int argc, char **argv)
{
    printf("%d\n", sum_to(argc > 1 ? atoi(argv[1]) : 10));
    return 0;
}

Compiled for x86-64 Linux at -O1 (zig cc -target x86_64-linux-gnu -O1 -fno-inline -o hello hello.c; zig 0.15.2; any compiler works, and the addresses will differ):

$ fission_cli info hello
║ Format:     ELF64                                          ║
║ Arch:       x86 64-bit (default)                           ║
║ Language:   x86:LE:64:default  /  gcc                      ║
║ Entry:      0x10014b0                                      ║

$ fission_cli list hello
Functions (5):
           Address      Size  Name
────────────────────────────────────────────────────────────
  0x0000010014b0      43  _start [export]
  0x0000010014e0      28  sum_to [export]
  0x000001001500      52  main [export]
  0x000001001540     102  __libc_csu_init [export]
  0x0000010015b0       6  __libc_csu_fini [export]

$ fission_cli decomp hello --name sum_to --no-header
int sum_to(int n)
{
    if (n >= 0) {
        return (uint)((n - 1) * n >> 1) + n;
    } else {
        return 0;
    }
}

The compiler replaced the loop with a closed form, and the output says what the binary does, not what the source said. decomp hello --all decompiles every function, disasm shows the instructions.

docs/CLI.md covers every command, including cross-references, call graphs, patching, scripting, the emulator sandbox, debugging and verify, which checks decompiled output against emulated machine code.

For agents and scripts

Add --contract v1 and --json to get one JSON envelope on stdout and a typed exit code (0 ok, 1 failed, 2 usage, 3 input, 4 partial, 5 timeout, 6 environment, 70 internal):

fission_cli --contract v1 decomp hello --name sum_to --json

fission_cli schema prints the envelope's JSON Schema, fission_cli schema --error-codes the stable error codes, and fission_cli skill a usage guide compiled into the binary. The contract is documented in docs/CLI.md; the schemas are in docs/schemas/.

Claude Code, Codex and other MCP clients

Above, a real Claude Code session gets only the binary and this MCP server. It decompiles the key check, inverts it, and runs the program with the key it found. Every prompt, tool call and result in the replay is captured text; the crackme's source, the session and the capture script are in docs/assets/demo/ (also as MP4).

With fission_cli on PATH, the Claude Code plugin in this repository adds the fission-cli skill and an MCP server:

/plugin marketplace add fission-systems/Fission
/plugin install fission@fission

The MCP server is fission_cli mcp. It has five tools: info, list_functions, decompile, xrefs and verify. Each one runs the command it is named for under --contract v1 and returns that envelope, so an agent gets the same answer the command line gives. To add only the server:

claude mcp add fission -- fission_cli mcp
codex mcp add fission -- fission_cli mcp

Other clients take {"mcpServers": {"fission": {"command": "fission_cli", "args": ["mcp"]}}}. Agents that read SKILL.md files can install the guide from the binary, so it matches the installed version:

mkdir -p ~/.codex/skills/fission-cli && fission_cli skill > ~/.codex/skills/fission-cli/SKILL.md

For any other agent, add "Run fission_cli skill before using fission_cli" to its AGENTS.md.

Supported formats

ELF, PE and Mach-O, plus raw images (firmware, shellcode) with --language and --base. ELF x86-64, x86-32 and ARM32 and PE x64 and x86 are tested; AArch64 is also in the FreshBench corpus. Other architectures that Sleigh describes load and decompile on a best-effort basis. The measured matrix is in docs/roadmap/1.0-criteria.md.

How it works and how it is measured

Loader → static facts → Sleigh lift to p-code → SSA, normalization and structuring → one C tree. Fission reads the Sleigh specifications as input data and does not run Ghidra; Ghidra is a reference, not a correctness oracle (ADR 0017). Crates and owners are in docs/PROJECT_MAP.md, the design in docs/architecture/ARCHITECTURE.md.

Output quality is measured on FreshBench; semantic correctness is checked separately by execution (verify and emulator differentials, docs/EVALUATION.md). Per-release notes are in docs/changelog/.

Contributing

Read CONTRIBUTING.md and AGENTS.md first: a change to decompiler output is judged by measurement on real binaries, not by a passing synthetic test.

cargo build -p fission-cli --release
cargo nextest run --workspace
cargo fmt --all --check

Questions and ideas go to Discussions, and quick questions and chat to Discord. A binary and an address where the output is wrong or hard to read is the most useful issue. Write-ups on how Fission is built and checked are on the blog. If Fission is useful to you, you can support it on Patreon; everything stays free and open source either way.

Thanks to @cingxcong for the Android arm64 (Termux) build (#1458).

Fission reads untrusted binaries; sample handling rules are in docs/MALWARE_SAMPLE_POLICY.md, and vulnerabilities are reported privately per SECURITY.md.

License

Apache-2.0. See LICENSE, NOTICE and THIRD_PARTY.md.

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables reverse engineering of binaries (ELF/.so, PE, Mach-O) in-process without a GUI, exposing tools to load and analyze files, list functions, strings, imports, exports and cross-references, decompile to C, view disassembly, and rename functions, variables, labels and comments that persist across restarts. It pairs with a sibling jadx server to move from an Android app to its native libraries.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to inspect and decompile software they have no source for — Android APKs, Electron bundles, .NET assemblies, and Go, Rust or WASM binaries — plus adb device interaction, through a token-guarded Streamable HTTP MCP endpoint, stdio MCP, or a CLI. Ghidra-powered native binary decompilation can be opted in at startup for ELF, PE and Mach-O targets.
      8
      Do What The F*ck You Want To Public
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents (and a matching CLI) to inspect native binaries, JavaScript/Electron apps, .NET assemblies, Go/Rust/WASM artifacts, EVM bytecode, SQLite databases, recorded crashes, and websites without source code, explaining how features work and returning the evidence and limitations behind each conclusion. Analysis runs locally, using optional Hopper, Ghidra, or IDA providers for native targets.
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      Reverse engineering engine built for AI agents, written in Rust from scratch. Turns binaries into readable code checked against the machine, with the analysis an agent needs around it, fast and sized for the context window.
      34
      36
      AGPL 3.0