Binary code similarity detection (BCSD) has various applications, including but not limited to vulnerability detection, plagiarism detection, and malware detection. Previous research efforts mainly focus on transforming binary code to assembly code strings using reverse compilation and then using pre-trained deep learning models with large parameters to obtain feature representation vector of binary code. While these models have proven to be effective in representing binary code, their large parameter size leads to considerable computational expenses during both training and inference. In this paper, we present a lightweight neural network, called FastBCSD, that employs a dynamic instruction vector encoding method and takes only assembly code as input feature to achieve comparable accuracy to the pre-training models while reducing the computational resources and time cost.
On the BinaryCorp dataset, our method achieves a similar average MRR score to the state-of-the-art pre-training-based method (jTrans), while on the BinaryCorp 3M dataset, our method even outperforms the latest technology by 0.01. Notably, FastBCSD has a much smaller parameter size (13.4M) compared to jTrans (87.88M), and its latency time is 1/5 of jTrans on NVIDIA GTX 1080Ti.
ReSIM: Re-ranking Binary Similarity Embeddings to Improve Function Search Performance
KASTEL Security Research Labs, Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院 KASTEL 安全研究实验室);DIAG, Sapienza University of Rome(罗马第一大学 DIAG 系);European Molecular Biology Laboratory (EMBL) Rome(欧洲分子生物学实验室(EMBL)罗马分部)
A Large Scale Study of AI-based Binary Function Similarity Detection Techniques for Security Researchers and Practitioners
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院);University of New South Wales(新南威尔士大学);Imperial College London(帝国理工学院);Nanyang Technological University(南洋理工大学)
Understanding Binary Code Similarity for Real-World Vulnerability Detection: A Large-Scale Empirical Study
Institute of Information Engineering, CAS(中国科学院信息工程研究所);University of Chinese Academy of Sciences(中国科学院大学);Hangzhou Dianzi University(杭州电子科技大学);Shandong University(山东大学)
On the Lack of Robustness of Binary Function Similarity Systems
Sapienza University of Rome(罗马萨皮恩扎大学);The State Key Laboratory of Blockchain and Data Security(区块链与数据安全国家重点实验室);Zhejiang University(浙江大学);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高新技术区(滨江)区块链与数据安全研究院);University College London(伦敦大学学院)
Explainer-guided Targeted Adversarial Attacks against Binary Code Similarity Detection Models
The State Key Laboratory of Blockchain and Data Security, Zhejiang University(区块链与数据安全国家重点实验室,浙江大学);Institute of Blockchain and Data Security(区块链与数据安全研究院);University College London(伦敦大学学院);University of Southern California(南加州大学);Columbia University(哥伦比亚大学)
Is Function Similarity Over-Engineered? Building a Benchmark
Booz Allen Hamilton(博兹·艾伦·汉密尔顿公司);Syracuse University(雪城大学);University of Maryland, Baltimore County(马里兰大学巴尔的摩分校);Laboratory for Physical Sciences(物理科学实验室)
Trex: Learning Execution Semantics from Micro-Traces for Binary Similarity
Columbia University(哥伦比亚大学);University of California, Riverside(加州大学河滨分校)
Detecting semantically similar functions -- a crucial analysis capability with broad real-world security usages including vulnerability detection, malware lineage, and forensics -- requires understanding function behaviors and intentions. This task is challenging as semantically similar functions can be implemented differently, run on different architectures, and compiled with diverse compiler optimizations or obfuscations. Most existing approaches match functions based on syntactic features without understanding the functions' execution semantics. We present Trex, a transfer-learning-based fr…
kTrans: Knowledge-Aware Transformer for Binary Code Embedding
Tsinghua University(清华大学);Beijing University of Technology(北京工业大学);Huazhong University of Science and Technology(华中科技大学);Information Engineering University(信息工程大学)
SimCLF: A Simple Contrastive Learning Framework for Function-level Binary Embeddings
Army Engineering University of PLA(中国人民解放军陆军工程大学);National Computer Network and Information Security Management Center(国家计算机网络与信息安全管理中心);Shanghai Jiao Tong University(上海交通大学);University Of Science & Technology Beijing(北京科技大学)