A local-first reverse-engineering tool for PE, ELF and Mach-O.
PSB-C · SIGNED · ATTESTED · SBOM · NO-TELEMETRY · LOCAL-FIRST · AUDIT:NONE · DISCLOSURE:OK (what these mean)
Paranoia does disassembly, control-flow graphs, decompilation, debugging and scripting, with keys and scripting names that IDA users will recognise. It remembers the functions you name and recognises them in the next file you open, and it compares two versions of a program function by function. It runs entirely on your machine: no account, no telemetry, no background network traffic. The engine is written in Rust and the same engine is used by the desktop app, the command-line tool, a browser build (WebAssembly) and an MCP server for AI agents.
- Formats: PE/PE32+ (forwarders, TLS callbacks,
.pdata, .NET detection), ELF (PIE, PLT/GOT, symbol versions), Mach-O (universal binaries, bind opcodes, chained fixups, export trie). Firmware and raw images: flat.bin, Intel HEX and S-record, with a Cortex-M vector table reader (docs/FIRMWARE.md). - Architectures: x86, x86-64, AArch64, ARM32/Thumb-2, RISC-V, MIPS, PowerPC.
- Analysis: functions from entry points, exports, symbols and unwind tables (so stripped ELF and Mach-O files keep their functions), Go's function table (stripped Go programs keep their functions and names), switch tables, cross references, auto names in the IDA style.
- Function memory: compare two binaries (what changed, was added or removed, both versions side by side) and keep a local database of the functions you named, so their names and comments carry over to new versions and related samples — together with the struct types their variables need. Nothing leaves your machine. See docs/FUNCTION-MEMORY.md.
- Decompiler: x86 and x64, with typed variables, API constants, loops and
switch, struct member access (Yon a variable), prototypes you set (Yon the function: return type, convention, parameter types and names) and types that follow calls. AArch64 is experimental: it applies your variable types and renames, and types follow calls there too. - Measured: a reproducible benchmark compares the decompiler, symbol recovery and call-name agreement with Ghidra on real binaries, includes the failures and commits the raw results (docs/BENCHMARK.md).
- Case studies: three real walk-throughs — a stripped Go binary, an MSVC
/MTbinary and a version diff — with commands and hashes (docs/CASE-STUDIES.md). - Editing: rename, comments, bookmarks, define code/data/strings, create functions, local C types, undo and redo. Everything is saved per file hash.
- Patching: hex view, byte patches, NOP/invert/force-jump, an x86 assembler, save the patched file.
- Debug info: PDB and DWARF names and types, FLIRT signatures (
.sigand.pat), and built-in signature packs for the MSVC static CRT, Rust std and musl libc (docs/SIGNATURES.md). - Debugger: local Windows (x64 and 32-bit), Linux x86-64 and Linux ARM64 programs. Not macOS or ARM32 locally. Any other target can be debugged through a GDB server (
gdbserver, QEMU): docs/REMOTE-DEBUGGING.md. - Scripting: Python in your own interpreter (
idcandidautilswork for common calls), JavaScript, plugins, and a headless batch mode. - AI: an optional assistant in the app (local or hosted model: Ollama, LM Studio, llama.cpp, Claude, OpenAI, OpenCode and others), and
paranoia mcpfor agents such as Claude Code, which can hide the sample's strings and IP-like numbers from the model and keep a log of everything the agent was shown. The in-app assistant has the same opt-in redaction and keeps a local hash-chained disclosure ledger. See docs/MCP.md and docs/ASSISTANT.md.
Speed, measured on a Core i5-12450H with a release build: notepad.exe is analysed in 45 ms, shell32.dll (7.7 MB, 24 449 functions) in about a second.
- Pseudocode exists for x86 and x64. Thumb-2 pseudocode is experimental too: its generated C is executed against QEMU's Cortex-M model and agrees on 40 000 random functions of the supported instructions (docs/VERIFICATION.md); it has not been compared with real firmware, and
itblocks stay as text. AArch64 pseudocode is experimental: it has been measured on Go binaries only and tested on system programs of the CI's ARM runners. Types come from known library calls and from the types you set, and flow from caller to callee. Other architectures have disassembly and graphs only. - MIPS has only been tested on known instruction encodings, not on a full binary.
- On a 32-bit PE, functions that nothing calls are found by a scan for prologues and relocation targets, not from an unwind table, so that list is a heuristic. Against the functions Microsoft's public symbols name it finds 99.3 % on four system DLLs and 81.7 % on a fifth (
ole32, whose misses are a table of a thousand tiny stubs), and it agrees with Ghidra's list at about 98 % in both directions. Public symbols do not name static functions, so extra functions are not counted as errors (docs/BENCHMARK.md). - The debugger runs local programs only: Windows (x64, 32-bit), Linux x86-64 and Linux ARM64 (the last one is new and covered by one automated test on CI's ARM runner). There is no local macOS or ARM32 debugger. The GDB remote client is tested in CI against a fake server and was run by hand against a real
gdbserver(x86-64) and QEMU (Cortex-M); other servers are untested. - The desktop app is built for Windows (x64), Linux (x64 and ARM64) and macOS (arm64 and x64). The Linux and macOS packages are new. CI starts each of them for real (Windows, Linux x64 and ARM64 under a virtual display, macOS Apple silicon): the app opens a file and a script checks the window, the packaged engine and the version. No one has used them by hand beyond that, so expect rough edges the Windows build no longer has; the Intel macOS package is built and checked but not started, because CI has no Intel runner. The command-line tool (with
diff, function memory and the MCP server) is released for Windows, Linux and macOS. - Firmware and raw images (
.bin, Intel HEX, S-record) load when you give the CPU and, for a.bin, the base address; Cortex-M images get their handlers from the vector table and a guessed base, and for other CPUs--arch autoguesses from machine-code patterns (36 of 37 real files right, none wrong; MIPS, PowerPC, RISC-V, ARM and Thumb only on synthetic data). Functions in a raw x86-64 or AArch64 dump are found at 95–99.8 % on most of the real code measured, 64 % on MinGW Rust. SVD files give peripheral and register names in ARM and Thumb listings. The base-address guess, the Cortex-M logic and SVD loading have been tested on synthetic data only, and Thumb pseudocode has been checked on random functions run in QEMU but not on real firmware (docs/FIRMWARE.md, docs/VERIFICATION.md). - The Windows executables aren't Authenticode-signed yet (SmartScreen may warn), and the macOS app is signed ad-hoc rather than with a Developer ID, so it isn't notarised (Gatekeeper will warn). The checksums, Sigstore signature and attestations cover every platform.
The roadmap has the full list.
Download the file for your system from Releases and check it against the signed checksums before running it. Every platform is covered by SHA256SUMS, its Sigstore signature and the GitHub attestations, even where the OS vendor signature is still missing.
Paranoia-Setup-<version>.exe (installer) or Paranoia-<version>-portable.exe. They aren't Authenticode-signed yet, so SmartScreen may warn on first start.
Paranoia-<version>-linux-x86_64.AppImage or Paranoia-<version>-linux-amd64.deb for x64, and Paranoia-<version>-linux-arm64.AppImage or Paranoia-<version>-linux-arm64.deb for ARM64. The AppImage is a single file: make it executable and run it. The deb installs the app and a paranoia launcher:
chmod +x Paranoia-<version>-linux-x86_64.AppImage
./Paranoia-<version>-linux-x86_64.AppImage
sudo apt install ./Paranoia-<version>-linux-amd64.debParanoia-<version>-mac-arm64.dmg for Apple Silicon and Paranoia-<version>-mac-x64.dmg for Intel Macs; .zip archives of the same apps are in the release too. The app is signed ad-hoc rather than with a Developer ID and is not notarised, so Gatekeeper blocks the first launch. After checking the checksum, clear the quarantine flag (the reliable way on every macOS version):
xattr -dr com.apple.quarantine /Applications/Paranoia.appOn macOS versions that still offer it, right-clicking the app in Finder and choosing Open has the same effect.
There is no Apple Developer ID yet; if one is added, later releases can be signed and notarised normally (docs/SIGNING.md).
PowerShell:
Get-FileHash .\Paranoia-<version>-portable.exe -Algorithm SHA256 # compare with SHA256SUMScosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json \
--certificate-identity-regexp '^https://github\.com/Altumptic/paranoia/\.github/workflows/ci\.yml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
gh attestation verify Paranoia-<version>-portable.exe --repo Altumptic/paranoiaMore in docs/VERIFY.md.
The command-line tool for Linux and macOS is in the same release, as paranoia-cli-<version>-<os>-<arch>.tar.gz (Linux x64 and ARM64, macOS ARM64 and x64), checked the same way:
tar -xzf paranoia-cli-v0.9.0-linux-x64.tar.gz
./paranoia-cli-v0.9.0-linux-x64/paranoia --versionOn macOS, the CLI binary is quarantined too because it isn't notarised; xattr -d com.apple.quarantine paranoia clears that after you have checked the checksum.
The app makes no network connections on its own. Two things reach the network, and only when you start them: Help → Check for updates (one request to GitHub's release list; nothing is downloaded or installed) and the AI assistant, after you point it at a server. Your names, comments and recent files are stored in the app's data folder (or PARANOIA_DATA_DIR, if set) — %APPDATA%\Paranoia on Windows, ~/.config/Paranoia on Linux, ~/Library/Application Support/Paranoia on macOS — and nowhere else. When you ask the assistant, its request and answer are recorded in a hash-chained assistant-ledger.jsonl in that folder, and the file's strings and IP-like numbers can be hidden from the request.
The renderer is sandboxed, the engine runs in its own process and only opens files you chose, and starting the debugger or a Python script asks for confirmation first. The debugger runs the program you're analysing, so use a VM for malware. There has been no independent audit.
Details: docs/SECURITY-DESIGN.md. To report a vulnerability, see SECURITY.md.
| Key | Action | Key | Action |
|---|---|---|---|
Ctrl O |
Open file | Space |
Listing / graph |
Ctrl K, G |
Go to address or name | Tab, F5 |
Pseudocode |
Esc, Alt ← |
Back | Alt → |
Forward |
Enter |
Follow operand | X |
Cross references |
N |
Rename | ; |
Comment |
Y |
Type a variable | Alt M, Ctrl M |
Bookmark, list bookmarks |
P |
Create function | Ctrl Z, Ctrl Y |
Undo, redo |
C D A U |
Code, data, string, undefine | Ctrl ` |
Script console |
H R B M |
Hex/decimal, char, binary, enum | 1–6 |
Switch view |
Alt B Alt T Alt I |
Search bytes, text, immediate | Ctrl B, Ctrl J |
Sidebar, inspector |
F2 F9 F7 F8 F4 |
Breakpoint, run, step into, step over, run to cursor |
paranoia info sample.exe
paranoia functions sample.exe
paranoia disasm sample.exe --at main -n 40
paranoia pseudo sample.exe main
paranoia xrefs sample.exe CreateFileW
paranoia strings --referenced sample.exe --json
paranoia script sample.exe analyse.py # run a Python script without the app
paranoia sigapply app.exe libc.sig # IDA .sig or .pat signatures
paranoia diff old.exe new.exe # which functions changed between two versions
paranoia memory learn sample-a.exe # remember the names you gave in the app
paranoia memory recall sample-b.exe # recognise them in another file
paranoia mcp --root ./samples # MCP server for AI agents
paranoia query sample.exe inventory # JSON for other tools (docs/QUERY.md)You need Rust 1.88+ and Node.js 20+. CI builds with Rust 1.94.1, pinned so that a new compiler's lints can't break a build on their own; the pin is moved on purpose.
cargo build --release -p paranoia-engine -p paranoia-cli
cargo test --workspace
cd apps/desktop
npm ci
npm run app:dev # app with hot reload
npm run dist # Windows installer and portable exe in apps/desktop/out/ (alias for dist:win)
npm run dist:linux # AppImage and .deb, built on Linux
npm run dist:mac # .dmg and .zip for the host architecture, built on macOSOn Windows the MSVC toolchain (Visual Studio Build Tools) works as usual. The x86_64-pc-windows-gnu toolchain also works, but windows-sys builds its import libraries with dlltool, and the copy inside the Rust toolchain needs an assembler that it does not ship: install MinGW-w64 binutils (as and dlltool) and point rustc at its dlltool with -C dlltool=PATH (for example rustflags for x86_64-pc-windows-gnu in .cargo/config.toml). If the checkout path has spaces in it and you still get dlltool errors, set CARGO_TARGET_DIR to a path without spaces.
The Linux and macOS packages are built by the release workflow on their own operating systems, one architecture per job; electron-builder does not cross-compile the desktop app. The Linux engine is static (musl), like the CLI, so it does not depend on the build machine's glibc. These platforms are new to the release pipeline: no tagged release had been built with them when this was written, so the first tag run is the proof.
crates/paranoia-core the engine: loaders, disassemblers, analysis, decompiler
crates/paranoia-engine engine process for the desktop app, workspace store, debugger
crates/paranoia-cli the `paranoia` command
crates/paranoia-db workspace store (redb)
crates/paranoia-wasm the engine as WebAssembly
apps/desktop React UI and Electron shell
See CONTRIBUTING.md before sending a pull request, and docs/ARCHITECTURE.md for how the pieces fit.



