Revisiting Binary Code Similarity Analysis using Interpretable Feature Engineering and Lessons Learned

Dongkwan Kim, Eunsoo Kim, Sang Kil Cha, Sooel Son, Yongdae Kim
11/21/2020
114 citations
cs.SE

Official code: SoftSec-KAIST/BinKit (183 stars, Shell, MIT, last commit 2023-12-15). 1 more implementation below.

Abstract

Binary code similarity analysis (BCSA) is widely used for diverse security applications, including plagiarism detection, software license violation detection, and vulnerability discovery. Despite the surging research interest in BCSA, it is significantly challenging to perform new research in this field for several reasons.

Show full abstract

First, most existing approaches focus only on the end results, namely, increasing the success rate of BCSA, by adopting uninterpretable machine learning. Moreover, they utilize their own benchmark, sharing neither the source code nor the entire dataset. Finally, researchers often use different terminologies or even use the same technique without citing the previous literature properly, which makes it difficult to reproduce or extend previous work. To address these problems, we take a step back from the mainstream and contemplate fundamental research questions for BCSA. Why does a certain technique or a certain feature show better results than the others? Specifically, we conduct the first systematic study on the basic features used in BCSA by leveraging interpretable feature engineering on a large-scale benchmark. Our study reveals various useful insights on BCSA. For example, we show that a simple interpretable model with a few basic features can achieve a comparable result to that of recent deep learning-based approaches. Furthermore, we show that the way we compile binaries or the correctness of underlying binary analysis tools can significantly affect the performance of BCSA. Lastly, we make all our source code and benchmark public and suggest future directions in this field to help further research.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
SoftSec-KAIST/BinKitOfficial183ShellMIT2023-12-15
SoftSec-KAIST/TikNibOfficial125PythonMIT2025-05-18
MIT

Binary Code Similarity Analysis (BCSA) Benchmark

18327Shell, PythonNov 21, 20202 years agoMIT
benchmarkbinary-analysis
MIT

Binary Code Similarity Analysis (BCSA) Tool

12525Python, ShellNov 21, 20201 years agoMIT
binary-analysissimilarity-analysis

Similar Papers

Cite this paper

@article{kim2020revisiting,
  title  = {Revisiting Binary Code Similarity Analysis using Interpretable Feature Engineering and Lessons Learned},
  author = {Dongkwan Kim and Eunsoo Kim and Sang Kil Cha and Sooel Son and Yongdae Kim},
  year   = {2020},
  eprint = {2011.10749},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.10749}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.10749.svg)](https://codeofpaper.com/paper/2011.10749)

Discussion