binary file parsing

Programmatic extraction and structuring of information from executable binary formats (preserving section order and structural/entropy features) to produce compact representations (matrices, images, or feature vectors) usable by downstream models.

binaryfileparsing

12-Month Skill Trend

Momentum and market value over time
Trending
Score
+20 in 12 mo
96
12 mo agoNow
Career
Value
+$12K in 12 mo
$42K/year
12 mo agoNow

Recommended Survey Paper

Quick overview of the field
View more

Must-Read Papers

Most classic and influential ideas
View more

Morphing-based Compression for Data-centric ML Pipelines

Apr 15, 2025
SB
Sebastian Baunsgaard
🏛️ Technische Universität Berlin

Existing lossless matrix compression methods fail to effectively capture structural redundancies introduced during data cleaning, augmentation, and feature engineering, leading to suboptimal efficiency in data-centric ML pipelines. This paper introduces BWARE, the first framework to deeply embed lossless compression within the outer loop of data engineering—enabling end-to-end co-design of compression and feature transformation. Its key contributions are: (1) a workload-aware compression mechanism supporting lightweight, on-the-fly morphing without decompression; (2) a column correlation- and sparsity-aware morphing mapping; and (3) direct feature transformation in the compressed domain. Experiments demonstrate that end-to-end training time reduces from days to hours, while memory utilization improves significantly, I/O overhead decreases, and instruction-level parallelism is enhanced.

Efficiently compressing data-centric ML pipeline matricesLeveraging structural transformations for lossless compressionReducing ML pipeline runtime via workload-optimized compression

This work addresses the unreliability of disassembly caused by the absence of compiler-intended semantic information in stripped binary executables. To overcome this limitation, the authors propose a novel lightweight metadata embedding mechanism that explicitly encodes critical semantics—such as code regions and memory boundaries—directly into the binary. This approach yields a decidable intermediate representation situated between raw binaries and source code. For the first time, it enables disassembly that is both decidable and recompilable, facilitating precise lifting to high-level intermediate representations. Experimental evaluation demonstrates that the embedded metadata incurs only 17% of the size overhead of DWARF debug information, introduces no runtime performance penalty, and successfully supports behavior-preserving binary lifting, instrumentation, and recompilation across a wide range of real-world C/C++ programs.

binary formatcompilation metadatadisassembly

Structured Extraction from Business Process Diagrams Using Vision-Language Models

Nov 27, 2025
PD
Pritam Deka
🏛️ Queen’s University Belfast

When BPMN process diagram source files (e.g., XML) are unavailable, recovering structured semantic information directly from raster images remains challenging. Method: We propose an end-to-end vision-language joint approach that tightly integrates multimodal large models (VLMs) with optical character recognition (OCR) via prompt engineering—enabling unified modeling of graphical symbol recognition, text localization, and semantic alignment without manual annotations or textual priors. Contribution/Results: Ablation studies and statistical analysis across multiple VLM benchmarks demonstrate that OCR enhancement significantly improves node-type identification and control-flow relation extraction accuracy (average +12.7%). The method exhibits strong robustness against image degradation—including blurriness, scaling artifacts, and low resolution. This work establishes a practical, deployable paradigm for structured image parsing in reverse engineering and legacy system digitization.

Enrich extraction using OCR and evaluate accuracyExtract structured JSON from BPMN diagram imagesLeverage Vision-Language Models without source files

Bin2Vec: Interpretable and Auditable Multi-View Binary Analysis for Code Plagiarism Detection

Dec 01, 2025
MM
Moussa Moussaoui
🏛️ Ibn Tofail University | Mohammed V University In Rabat

To address the lack of interpretability and auditability in similarity assessment for binary code plagiarism detection, this paper proposes Bin2Vec—a multi-view embedding framework. Bin2Vec jointly models static program structure (e.g., control-flow graphs and instruction sequences) and dynamic execution behavior (e.g., memory access patterns and system call traces) to generate rich, discriminative representations. Leveraging interpretable machine learning techniques, it produces modular, traceable similarity scores and supports interactive visual inspection of detection rationale. Evaluated on multi-version benchmarks derived from PuTTY and 7-Zip, Bin2Vec significantly improves cross-version plagiarism identification accuracy over single-view baselines. Crucially, its design ensures full transparency and verifiability of the decision process—enabling rigorous security auditing and robust intellectual property protection.

Combine static program structure with dynamic runtime behavior for similarity analysis.Detect code plagiarism by comparing software programs clearly and explainably.Generate interpretable feature representations for machine learning in cybersecurity tasks.

Latest Papers

What's happening recently
View more

This work addresses the challenge of reliable source-level binary patching in the absence of original source code and toolchains, where existing decompilers often produce outputs riddled with syntactic and semantic errors. To overcome this limitation, the authors propose a static patching framework that integrates decompilation with binary-aware recompilation. By leveraging information extracted directly from the original binary, the framework corrects semantic distortions in decompiled code and enables automated patch generation. The approach substantially improves recompilation correctness, fixing approximately 81% of erroneous functions produced by Hex-Rays, successfully patching 13 out of 14 real-world CVEs, and increasing user experiment success rates from 3.7% to 100%. Furthermore, it supports large-model-driven fully automated patching, demonstrating robust practical applicability.

binary patchingdecompilationrecompilation

Existing decompilation evaluations predominantly rely on syntactic similarity or isolated readability metrics, which inadequately capture the practical reusability of recovered code. To address this limitation, this work proposes a three-dimensional evaluation paradigm centered on reusability—encompassing readability, recompilability, and functionality—and introduces DEBENCH, the first automated multidimensional benchmark comprising 240 atomic functions and 640 binary samples. Leveraging LLM-as-judge for readability scoring, URAF fine-grained metrics, 50-round iterative compilation repair, and Frida-driven multilevel dynamic differential tracing, the study systematically uncovers significant discrepancies across evaluation dimensions: only 1.2% of outputs from the best decompiler–LLM combination achieve full functional equivalence; Clang-generated code exhibits 2.6× higher functionality than GCC’s; and functional recovery capability varies by up to 20× across decompilers. The analysis further identifies three dominant failure modes, including type system collapse.

binary decompilationevaluationfunctionality

Traditional large language models struggle to directly process raw bytes of executable files, limiting their applicability to binary understanding tasks such as malware analysis. This work proposes the first large language model natively designed for byte-level input, integrating a custom byte tokenizer, byte-level language modeling, and injection of binary-domain knowledge to enable semantic understanding and question answering over compiled code. Experimental results demonstrate that the proposed approach achieves 69% accuracy in malware family classification and 98% accuracy in architecture classification, substantially outperforming general-purpose large language models. These findings underscore the effectiveness and necessity of native byte-level modeling combined with domain-specific knowledge for advancing binary analysis capabilities.

binary understandingbyte-nativecompiled code

This work addresses the limitation of current large language models (LLMs) in binary decompilation, where neglecting control flow structure often yields logically inconsistent and non-recompilable code. The authors propose reframing decompilation as a structured reasoning task by introducing a hierarchical control flow graph abstraction that captures basic blocks, successor relationships, and loop/conditional patterns. Combined with tailored prompting and a compiler-in-the-loop feedback mechanism, this approach guides off-the-shelf LLMs to generate structurally sound and recompilable code without requiring model fine-tuning. Evaluated on the HumanEval-Decompile benchmark, the method significantly improves compilability—raising it from 45.0% to 85.2% for Gemini 2.0 and from 71.4% to 89.6% for GPT-4.1 Mini—with further gains exceeding 94% when compiler feedback is incorporated. Functional correctness improves by up to 5.6 percentage points, and the approach demonstrates robust performance across six architectures, including x86, ARM, and MIPS.

binary decompilationcontrol flow graphlarge language models

This work addresses the challenging problem of recovering original source code from stripped binary functions, a task where traditional decompilation typically yields only approximate pseudocode. The paper proposes a novel paradigm that replaces pseudocode generation with direct source code retrieval. By extracting anchors such as strings and constants from binaries, the method retrieves candidate functions from a source code corpus and constructs a multimodal representation incorporating assembly instructions, decompiled code, and metadata. A large language model (LLM) is then employed for semantic re-ranking of candidates. The approach integrates Ghidra-based static analysis with an inverted index system and introduces an iterative anchor refinement strategy. Evaluated on a high-quality tcpdump dataset, it achieves 95.2% instruction coverage, and attains 35.5% coverage on general-purpose GitHub repositories, demonstrating effectiveness in both ideal and noisy real-world scenarios.

binary functionsbinary-to-source matchingreverse engineering

Hot Scholars