Hexana
A WebAssembly and binary analysis tool for JetBrains IDEs and Visual Studio Code.

Hexana opens compiled artifacts — .wasm, ELF, Mach-O, PE, JVM
.class, archives, JIT dumps — as structured, navigable documents
inside the IDE. Section-level browsing sits next to a raw hex view;
WebAssembly modules render as editable WAT alongside their imports,
exports, type signatures, and DWARF debug info; native binaries
(experimental) get multi-architecture disassembly via a bundled
Rust/WASM module that needs no host toolchain.
Features
WebAssembly
- Section browser with imports, exports, function types, code
bodies, GC types, and (when present) DWARF 4/5 debug info.
- WIT (Component Model) interface support for nested module trees.
- Editable WAT view: inline row editing, length-changing
insertions / deletions, IDE-keymap undo / redo, sidecar
persistence that restores in-progress edits on next open.
- Size profiler tab showing where the bytes go — by function, by
data segment, by section — with sorting and scrolling for
multi-megabyte modules.
- Run configurations launching modules under Wasmtime, WAMR,
GraalWasm, Node.js, or the browser (Chrome). Per-export
Run / Debug arrows on the Exports tab.
- Source-level debugging (experimental, requires LLVM 22.1 or
newer): line breakpoints, local variable inspection backed by
DWARF, and continue / step controls via wasmtime or WAMR.
Native binaries (experimental)
- ELF, Mach-O, PE detection from magic bytes —
.elf, .so,
.dylib, .bundle, .exe, .dll, .sys, and similar
extensions land in the same structured viewer.
- Multi-architecture disassembly for x86, x86-64, ARM, AArch64,
RISC-V 32 and 64. The disassembler ships as a bundled
Rust / WebAssembly module — no host
objdump, Capstone, or
similar toolchain required. Virtualised rendering keeps the
view responsive on multi-MB .text sections.
- GraalVM Native Image executables and shared libraries (anything
produced by
native-image) are recognised by their SubstrateVM
fingerprint and tagged with a Native Image badge — the
tooltip reports the GraalVM version, edition, and target
platform. Detection survives release stripping.
Disassembler backend: AOT (default) and Redline (experimental)
Two paths exist for executing the bundled Capstone WASM module:
- Bytecode AOT (default) — at build time, the Capstone module is
lowered to JVM bytecode and shipped alongside the plugin. Pure-JVM
execution, no native binaries, works on every platform the IDE
itself runs on.
- Cranelift / Redline (experimental) — the same module is
compiled to native machine code at build time, one binary per
(OS, architecture), and loaded at runtime via Project Panama FFM
(Java 25+) or jffi. Faster on compute-heavy decode workloads on
large binaries; falls back to the bytecode path transparently on
platforms where no native slice is available.
To switch backends at runtime, open Help → Find Action… (Cmd+Shift+A
on macOS, Ctrl+Shift+A on Linux / Windows), type Registry, and
toggle:
| Registry key | Effect |
|---|
hexana.disassembly.backend.redline | When true, use the Cranelift native backend. When false (the default), use the bytecode AOT. |
hexana.disassembly.perf.logging | When true, emit [disasm-perf] timing lines to idea.log per decoded chunk. Useful when comparing the two backends on a specific binary. |
Backend selection takes effect on the next disassembly panel open
(or via the panel's Retry button). Both backends produce the same
disassembly output; the choice is a pure performance trade-off.
The Capstone backend itself is non-thread-safe, so calls are
serialised through a single-slot dispatcher inside the plugin —
the in-flight count is surfaced as a Disassembling: N widget in
the IDE status bar.
GraalVM Native Image SBOM and vulnerability reachability
Native Image binaries built with --enable-sbom (default-on in
Oracle GraalVM for JDK 25+) carry an embedded CycloneDX software
bill of materials. Hexana shows an SBOM badge and a dedicated
SBOM tab: a metadata header (subject, timestamp, generating
tool) over a searchable, sortable component table — type, group,
name, version, licence, PURL — with a View raw JSON action for
the decompressed document.