Are We There Yet? Filling the Gap Between Binary Similarity Analysis and Binary Software Composition Analysis
Authors:
- 8 July 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 506-523
Abstract
Software composition analysis (SCA) has attracted the attention of the industry and academic community in recent years. Given a piece of program source code, SCA facilitates extracting certain components from the input program and matching the extracted components with opensource software (OSS) libraries. Despite the prosperous development of SCA, binary SCA (BSCA) is highly challenging and still underdeveloped. Few available BSCA solutions are either closed source (for commercial usage) or suffer from low performance. Nevertheless, a related line of research, binary similarity analysis (BSA), which decides the similarity between two pieces of binary code, has been progressively developed in academia for decades. De facto BSA techniques, often based on deep learning, efficiently analyze large-scale executables with high accuracy. This study explores bridging the gap between state-of-the-art (SOTA) BSA and BSCA. We spent considerable manual effort building the first large real-world benchmark dataset, containing over 55 million lines of C/C++ code. Then, we establish our BSCA pipeline by extending and calibrating the SOTA SCA pipeline. Particularly, we concretize the key procedure of BSCA, namely matching a binary component with OSS using six SOTA BSA techniques. Evaluation using our benchmark dataset reveals that simply employing BSA in BSCA exhibits less desirable accuracy, as BSCA faces unique challenges. After inspecting the failed cases, we propose three enhancements whose hybrid usage improves the F1 score of BSCA by over 30% and outperforms SOTA commercial BSCA software. Our experiment on 1-day vulnerability detection demonstrates our BSCA framework's effectiveness. We also discuss several open challenges and potential solutions to augment BSCA solutions.Keywords
This publication has 57 references indexed in Scilit:
- B2SFinder: Detecting Open-Source Software Reuse in COTS Software2019
- SAFE: Self-Attentive Function Embeddings for Binary Similarity2019
- Probabilistic Disassembly2019
- BINARM: Scalable and Efficient Detection of Vulnerabilities in Firmware Images of Intelligent Electronic Devices2018
- Towards robust instruction-level trace alignment of binary code2017
- In-memory fuzzing for binary code similarity analysis2017
- BinShape: Scalable and Robust Binary Library Function Identification Using Function Shape2017
- LibD: Scalable and Precise Third-Party Library Detection in Android Markets2017
- SPAIN: Security Patch Analysis for Binaries towards Understanding the Pain and Pills2017
- TLSH -- A Locality Sensitive Hash2013