Revisiting Binary Code Similarity Analysis using Interpretable Feature Engineering and Lessons Learned
arXiv:2011.10749 · doi:10.1109/TSE.2022.3187689
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. 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.
23 pages, accepted to IEEE Transactions on Software Engineering (June 2022)
References in corpus (6)
- The NumPy array: a structure for efficient numerical computation
- Distributed Representations of Sentences and Documents
- Convolutional Neural Networks for Sentence Classification
- Automatic feature learning for vulnerability prediction
- BinPro: A Tool for Binary Source Code Provenance
- A Survey of Binary Code Similarity
Cited by in corpus (4)
- UniASM: Binary Code Similarity Detection without Fine-tuning
- Black-box Attacks Against Neural Binary Function Detection
- ORCAS: Obfuscation-Resilient Binary Code Similarity Analysis using Dominance Enhanced Semantic Graph
- When Similarity Digest Meets Vector Management System: A Survey on Similarity Hash Function