A Binary Genetic Traits Lexer Framework
Binlex - A Binary Genetic Trait Lexer Framework
Binlex extracts instructions, basic blocks, and functions from binaries and emits searchable JSON traits for reverse engineering, hunting, and similarity workflows. It models binary structure with a genomics-inspired hierarchy: genomes (instructions, blocks, functions), chromosomes (wildcarded patterns), allele pairs (bytes), and genes (nibbles). That representation makes malware analysis and binary similarity more systematic by enabling pattern-level comparison, clustering, and signature generation across large sample sets.
ipc and httpbinlex: main CLI for binary trait extractionbinlex-mcp: Model Context Protocol server for exposing Binlex tools to MCP clientsbinlex-server: processor transport server for http workflowsbinlex-hash: hashing utilitybinlex-image: image-related utilitybinlex-symbols: symbol ingestion and conversion helperbinlex-yara: generate YARA rules from Binlex-style patterns or streamscargo run --manifest-path xtask/Cargo.toml
cargo build --release --workspacecd bindings/python/
virtualenv -p python3 venv/
source venv/bin/activate
pip install maturin[patchelf]
maturin developmake zst # Arch Linux
make deb # Debian-based
make wheel # Python Wheelcd plugins/ida/
pip install .
python -m binlex_ida install# Local Build and Start
docker compose -f compose.yml -f compose.local.yml up --build -d
# Start Using Docker Hub
docker compose -f compose.yml -f compose.remote.yml up -dcargo doc --openDefault configuration directories:
$XDG_CONFIG_HOME/binlex/binlex.toml or $HOME/.config/binlex/$HOME/Library/Application Support/binlex/%APPDATA%\binlex\If you use Binlex in a journal publication or an open-source AI model, cite:
@misc{binlex,
author = {c3rb3ru5d3d53c},
title = {binlex: A Binary Genetic Trait Lexer Framework},
year = {2025},
note = {Available at \\url{https://github.com/c3rb3ru5d3d53c/binlex}}
}For any other corporate/personal usage or generated outputs (for example YARA rules), citation is not required.
No open issues yet, or sync has not completed.