bin2mlbin2ml is a command line tool to extract machine learning ready data from software binaries. It's ideal for researchers and hackers to easily extract data suitable for training machine learning approaches such as natural language processing (NLP) or Graph Neural Networks (GNN's) models using data derived from software binaries.
tch-rs and TorchScript traced models.
bin2mlis under active development and is in an alpha state. Things will change as the tool is developed and built upon further.
git clone https://github.com/br0kej/bin2ml
cd bin2ml
cargo build --release
Alternatively, there are two Dockerfile's provided. Dockerfile.build can be used to build the bin2ml binary without having to have cargo on your workstation or Dockerfile builds bin2ml as well as installing radare2 to provide a means of doing processing within the container.
bin2ml does come with some documentation (albeit incomplete) and has been developed using mdbook. The documentation can be locally served by installing the platform relevant version of mdbook from here
and then executing the commands below:
cd bin2ml/docs
mdbook serve
Alternatively, they can be viewed raw by going to the docs folder here
The bin2ml source and documentation are released under the MIT license.
@misc{collyer2023bin2ml,
author = {Josh Collyer},
title = {bin2ml},
year = {2023},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/br0kej/bin2ml/}},
}
$ claude mcp add bin2ml \
-- python -m otcore.mcp_server <graph>