Fission
OfficialREADME.md
<div align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/fission-systems/Fission/main/image/fission-logo-dark.svg" />
<img src="https://raw.githubusercontent.com/fission-systems/Fission/main/image/fission-logo.svg" alt="Fission" width="760" />
</picture>
**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
[](https://github.com/fission-systems/Fission/actions/workflows/ci.yml)
[](https://github.com/fission-systems/Fission/releases/latest)
[](LICENSE)
[](https://studio.fission-systems.dev)
[](https://github.com/fission-systems/Fission/discussions)
[](https://discord.gg/grDMvFfDRx)
[](https://www.patreon.com/c/Fissionsystem)
[**Website**](https://fission-systems.dev) · [**Docs**](https://docs.fission-systems.dev) · [**Studio**](https://studio.fission-systems.dev) · [**Blog**](https://fission-systems.dev/blog/) · [**FreshBench**](https://bench.fission-systems.dev) · [**Discussions**](https://github.com/fission-systems/Fission/discussions) · [**Discord**](https://discord.gg/grDMvFfDRx) · [**Patreon**](https://www.patreon.com/c/Fissionsystem)
**English** · [한국어](README.ko.md) · [日本語](README.ja.md) · [简体中文](README.zh-CN.md)
</div>
---
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](https://studio.fission-systems.dev) runs the same
engine, compiled to WebAssembly, in your browser.
<p align="center">
<img src="docs/assets/demo/fission-demo.gif" alt="fission_cli on a small x86-64 Linux sample: listing its functions, decompiling a switch next to its source, the same call through the JSON contract, and verify checking the result in the emulator" width="900" />
</p>
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/`](docs/assets/demo/) (also as [MP4](docs/assets/demo/fission-demo.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](#claude-code-codex-and-other-mcp-clients)
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](https://fission-systems.dev/blog/checking-a-decompiler-by-running-it.html)).
- **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](https://bench.fission-systems.dev), a corpus of C projects no
decompiler was tuned on; correctness is measured separately, by execution.
## Try it without installing
[Fission Studio](https://studio.fission-systems.dev) 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):
```bash
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.
```bash
curl -fsSL https://raw.githubusercontent.com/fission-systems/Fission/main/install.sh | sh
```
**Release archives** for six targets are on the
[releases page](https://github.com/fission-systems/Fission/releases/latest):
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`.
```bash
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:
```bash
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](docs/DISTRIBUTION.md).
**Cargo** builds from source. From v0.8.0 the resources are compiled in; the
tag still selects the release:
```bash
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:
```bash
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:
```bash
cargo binstall fission-cli --git https://github.com/fission-systems/Fission --bin fission_cli
```
**Nix** (flakes) builds from source:
```bash
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
```c
// 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):
```text
$ 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`](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):
```bash
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`](docs/CLI.md#machine-contract---contract-v1); the schemas are
in [`docs/schemas/`](docs/schemas/).
### Claude Code, Codex and other MCP clients
<p align="center">
<img src="docs/assets/demo/fission-agent-demo.gif" alt="Claude Code cracking a small x86-64 Linux crackme through fission_cli mcp: it lists the functions, decompiles check_key, inverts the check with python3 to get the key, and runs the binary, which prints Access granted" width="900" />
</p>
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/`](docs/assets/demo/) (also as [MP4](docs/assets/demo/fission-agent-demo.mp4)).
With `fission_cli` on PATH, the Claude Code plugin in this repository adds the
`fission-cli` skill and an MCP server:
```text
/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:
```bash
claude mcp add fission -- fission_cli mcp
```
```bash
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:
```bash
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`](docs/roadmap/1.0-criteria.md#support-matrix-measured-2026-11-13).
## 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](docs/adr/0017-ghidra-is-not-an-oracle.md)). Crates and owners are in
[`docs/PROJECT_MAP.md`](docs/PROJECT_MAP.md), the design in
[`docs/architecture/ARCHITECTURE.md`](docs/architecture/ARCHITECTURE.md).
Output quality is measured on [FreshBench](docs/BENCHMARK_FRESHBENCH.md);
semantic correctness is checked separately by execution (`verify` and emulator
differentials, [`docs/EVALUATION.md`](docs/EVALUATION.md)). Per-release notes
are in [`docs/changelog/`](docs/changelog/).
## Contributing
Read [`CONTRIBUTING.md`](CONTRIBUTING.md) and [`AGENTS.md`](AGENTS.md) first: a
change to decompiler output is judged by measurement on real binaries, not by a
passing synthetic test.
```bash
cargo build -p fission-cli --release
cargo nextest run --workspace
cargo fmt --all --check
```
Questions and ideas go to [Discussions](https://github.com/fission-systems/Fission/discussions),
and quick questions and chat to [Discord](https://discord.gg/grDMvFfDRx).
A binary and an address where the output is wrong or hard to read is the most
useful [issue](https://github.com/fission-systems/Fission/issues). Write-ups on
how Fission is built and checked are on the [blog](https://fission-systems.dev/blog/).
If Fission is useful to you, you can support it on [Patreon](https://www.patreon.com/c/Fissionsystem);
everything stays free and open source either way.
Thanks to [@cingxcong](https://github.com/cingxcong) for the Android arm64 (Termux) build ([#1458](https://github.com/fission-systems/Fission/pull/1458)).
Fission reads untrusted binaries; sample handling rules are in
[`docs/MALWARE_SAMPLE_POLICY.md`](docs/MALWARE_SAMPLE_POLICY.md), and
vulnerabilities are reported privately per [`SECURITY.md`](SECURITY.md).
## License
Apache-2.0. See [`LICENSE`](LICENSE), [`NOTICE`](NOTICE) and
[`THIRD_PARTY.md`](THIRD_PARTY.md).
This server cannot be deployed
Maintenance
ActivityActive
ResponsivenessSyncing