Semantic-aware Binary Code Representation with BERT
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2018Deep contextualized word representationscited by 2,285
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2015Semi-supervised Sequence Learningcited by 198
9 more
- 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 65
- 2018SAFE: Self-Attentive Function Embeddings for Binary Similaritycited by 33
- 2018Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairscited by 25
- 2019Dynamic Malware Analysis with Feature Engineering and Feature Learningcited by 23
- 2019A Survey of Binary Code Similaritycited by 18
- 2019Neurlux: Dynamic Malware Analysis Without Feature Engineeringcited by 12
- 2018A Cross-Architecture Instruction Embedding Model for Natural Language Processing-Inspired Binary Code Analysiscited by 5
- 2020SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Askcited by 4
- 2019Using Deep Learning to Solve Computer Security Challenges: A Surveycited by 2
Built on by
Citing papers per year: 2022: 2; 2023: 0; 2024: 4.
6 papers.
- 2024Assemblage: Automatic Binary Dataset Construction for Machine Learningcited by 12
- 2024Is Function Similarity Over-Engineered? Building a Benchmarkcited by 6
- 2022UniASM: Binary Code Similarity Detection without Fine-tuningcited by 3
- 2024Bi-Directional Transformers vs. word2vec: Discovering Vulnerabilities in Lifted Compiled Codecited by 2
- 2024Comparing Unidirectional, Bidirectional, and Word2vec Models for Discovering Vulnerabilities in Compiled Lifted Codecited by 1
- 2022SimCLF: A Simple Contrastive Learning Framework for Function-level Binary Embeddingscited by 0
- 2024Is Function Similarity Over-Engineered? Building a Benchmark30 Oct 2024
- 2024Comparing Unidirectional, Bidirectional, and Word2vec Models for Discovering Vulnerabilities in Compiled Lifted Code26 Sep 2024
- 2024Bi-Directional Transformers vs. word2vec: Discovering Vulnerabilities in Lifted Compiled Code31 May 2024
- 2024Assemblage: Automatic Binary Dataset Construction for Machine Learning7 May 2024
- 2022UniASM: Binary Code Similarity Detection without Fine-tuning28 Oct 2022
- 2022SimCLF: A Simple Contrastive Learning Framework for Function-level Binary Embeddings6 Sep 2022