mlsanityData to 7 Oct 2026

Semantic-aware Binary Code Representation with BERT

arXiv 2106.05478 ↗First posted 10 Jun 2021cs.CR cs.LGcited by 6

Not on the map. Why?

Abstract (arXiv)

A wide range of binary analysis applications, such as bug discovery, malware analysis and code clone detection, require recovery of contextual meanings on a binary code. Recently, binary analysis techniques based on machine learning have been proposed to automatically reconstruct the code representation of a binary instead of manually crafting specifics of the analysis algorithm. However, the existing approaches utilizing machine learning are still specialized to solve one domain of problems, rendering recreation of models for different types of binary analysis. In this paper, we propose DeepSemantic utilizing BERT in producing the semantic-aware code representation of a binary code. To this end, we introduce well-balanced instruction normalization that holds rich information for each of instructions yet minimizing an out-of-vocabulary (OOV) problem. DeepSemantic has been carefully designed based on our study with large swaths of binaries. Besides, DeepSemantic leverages the essence of the BERT architecture into re-purposing a pre-trained generic model that is readily available as a one-time processing, followed by quickly applying specific downstream tasks with a fine-tuning process. We demonstrate DeepSemantic with two downstream tasks, namely, binary similarity comparison and compiler provenance (i.e., compiler and optimization level) prediction. Our experimental results show that the binary similarity model outperforms two state-of-the-art binary similarity tools, DeepBinDiff and SAFE, 49.84% and 15.83% on average, respectively.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 21 of its 74 references that are in the map. First posted on arXiv 10 Jun 2021.

Builds on

21 of 74 references.

References · 21

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  6. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
  7. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
  8. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  9. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  10. 2018Deep contextualized word representationscited by 2,285
  11. 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
  12. 2015Semi-supervised Sequence Learningcited by 198
9 more
  1. 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 65
  2. 2018SAFE: Self-Attentive Function Embeddings for Binary Similaritycited by 33
  3. 2018Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairscited by 25
  4. 2019Dynamic Malware Analysis with Feature Engineering and Feature Learningcited by 23
  5. 2019A Survey of Binary Code Similaritycited by 18
  6. 2019Neurlux: Dynamic Malware Analysis Without Feature Engineeringcited by 12
  7. 2018A Cross-Architecture Instruction Embedding Model for Natural Language Processing-Inspired Binary Code Analysiscited by 5
  8. 2020SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Askcited by 4
  9. 2019Using Deep Learning to Solve Computer Security Challenges: A Surveycited by 2

Built on by

Cited by year

Citing papers per year: 2022: 2; 2023: 0; 2024: 4.

6 papers.