Binary-30K: A Heterogeneous Dataset for Deep Learning in Binary Analysis and Malware Detection
Michael J. Bommarito
TL;DR
Binary-30K addresses a critical gap in binary analysis by delivering the first heterogeneous, transformer-ready binary dataset that spans Windows, Linux, macOS, and Android across 15+ architectures with a realistic malware proportion. It pairs 29,793 pre-tokenized binaries with rich metadata and official Hugging Face splits, enabling cross-platform transfer learning and long-context modeling without heavy preprocessing. The dataset emphasizes education and reproducible research through accessible size, standardized tokenization, and platform-first sampling, while highlighting IoT security and cross-architecture research opportunities. While it acknowledges limitations (no iOS, no dynamic traces, and platform label confounding on macOS/Android subsets), Binary-30K lays a practical foundation for next-generation binary security research and pedagogy.
Abstract
Deep learning research for binary analysis faces a critical infrastructure gap. Today, existing datasets target single platforms, require specialized tooling, or provide only hand-engineered features incompatible with modern neural architectures; no single dataset supports accessible research and pedagogy on realistic use cases. To solve this, we introduce Binary-30K, the first heterogeneous binary dataset designed for sequence-based models like transformers. Critically, Binary-30K covers Windows, Linux, macOS, and Android across 15+ CPU architectures. With 29,793 binaries and approximately 26.93% malware representation, Binary-30K enables research on platform-invariant detection, cross-target transfer learning, and long-context binary understanding. The dataset provides pre-computed byte-level BPE tokenization alongside comprehensive structural metadata, supporting both sequence modeling and structure-aware approaches. Platform-first stratified sampling ensures representative coverage across operating systems and architectures, while distribution via Hugging Face with official train/validation/test splits enables reproducible benchmarking. The dataset is publicly available at https://huggingface.co/datasets/mjbommar/binary-30k, providing an accessible resource for researchers, practitioners, and students alike.
