Non-profit AssociationContinuing education accredited by ministerial decree, 14 February 2025
Polytechnic Cyber InstituteLuxembourg

← Research

PCRL · Software release · November 2026

binscope: an open-source orchestrator for binary triage and reverse engineering

binscope is a free, open-source (MIT) reverse-engineering and dynamic-analysis orchestrator developed by Philippe Funk. One command drives Ghidra, Rizin, capa, angr, Frida and AFL++ through a single staged pipeline and merges their output into one report, so an analyst can answer "what does this binary actually do, and is there dormant code?" without running six separate tool sessions.

What is binscope?

binscope does not reimplement analysis tools. It runs the real ones, parses their output and correlates the results. The core is written in Python using only the standard library, and the external tools are detected automatically: a missing tool is reported as skipped rather than breaking the run.

Each run writes a machine-readable report.json and a human-readable report.md with findings ranked by severity. Every raw tool output, such as decompiled C, extracted strings, capa results, Frida logs and fuzzing crashes, is kept alongside the report so that any finding can be traced back to its source.

What does the live browser demo do?

The Hugging Face demo runs binscope's triage stage directly in the browser through Pyodide, a Python runtime compiled to WebAssembly. It installs the same binscope package that runs on the command line. The file you choose is read in the page, is never sent to a server and is never executed.

File identity
File type from magic bytes (ELF, PE, Mach-O and others), architecture, bit width, size and SHA-256 hash.
Entropy
Overall Shannon entropy. A high value can indicate packing or encryption.
Strings of interest
URLs, IP addresses, .onion addresses, registry Run keys, shell commands and .pdb paths.
Suspicious APIs
Calls such as WriteProcessMemory, VirtualAlloc, LoadLibrary and IsDebuggerPresent, with byte offsets.
Crypto constants
AES S-box and SHA-256 or MD5 initialisation values, each with its offset.
Ranked findings
Every result tagged by category, such as injection, persistence, network, crypto or anti-analysis, and sorted by severity.

The report can be downloaded as JSON or viewed as Markdown. The first analysis takes about 10 to 20 seconds while the Python runtime loads; later analyses are near-instant.

How does the full pipeline work?

On the command line, binscope runs up to eight stages in order. The static stages are the default and never run the target. The three execution stages are opt-in and refuse to start unless the analyst confirms a disposable, network-contained sandbox.

StageToolWhat it addsRuns the target?
triageBuilt inHashes, entropy, strings, crypto constants and suspicious-API stringsNo
ghidraGhidra (headless)Decompiled C and a map of functions that touch network, crypto, file, process, registry and dynamic-loading APIsNo
rizinRizinFunctions, imports mapped to capabilities, exports and security mitigationsNo
capaFLARE capaMITRE ATT&CK and MBC capability matchesNo
angrangrControl-flow graph and functions unreachable from the entry point, which are candidates for dormant code; optionally, an input that reaches a chosen addressNo
fridaFridaLive trace of network, file, process, crypto and loader callsYes
systracestrace and ltraceSystem-call and library-call trace on LinuxYes
fuzzAFL++Time-boxed, coverage-guided fuzzing that reports crashes and hangs with reproducersYes

Is binscope safe to use?

  • The triage and static stages read the file's bytes and never execute it.
  • The Frida, strace/ltrace and AFL++ stages only run with an explicit --i-have-a-sandbox flag; without it they are reported as refused and the static stages still complete.
  • Text found inside the target, such as strings or decompiled code, is treated as data and never executed as instructions.
  • No stage disables security mitigations, strips licence checks or evades detection.

Who is binscope for?

binscope is intended for authorised work: malware defence, capture-the-flag (CTF) challenges, security research, interoperability, digital forensics, and debugging your own or a client's software. It deliberately has no DRM-bypass, game-cheat or anti-detection features.

How do I install and run binscope?

binscope requires Python 3.10 or later. Install it and check which external tools are available:

pipx install git+https://github.com/philfunk/binscope.git
binscope inventory
binscope analyze ./sample.bin -o ./out

binscope inventory lists each supported tool and gives a platform-specific install hint for any that are missing. Ghidra requires JDK 21. AFL++, strace and ltrace are Linux-only and are skipped on other systems.

Frequently asked questions

Is binscope free?

Yes. binscope is open source under the MIT licence.

Does the online demo upload my file?

No. The demo analyses the file inside your browser. The file is not sent to a server and is not executed.

Which file formats does binscope support?

The triage stage identifies ELF, PE and Mach-O binaries, among other formats, by their magic bytes.

Does binscope run the binary it analyses?

Not by default. Only the Frida, strace/ltrace and AFL++ stages execute the target, and they run only when the analyst passes --i-have-a-sandbox.

Which tools does binscope integrate?

Ghidra, Rizin, FLARE capa, angr, Frida, strace, ltrace and AFL++, plus its own built-in triage.

Who developed binscope?

binscope was developed by Philippe Funk, founder and president of the Polytechnic Cyber Institute.

binscope is published openly so that its methods can be inspected, reused and extended.