arrow
Return

UniASM: Binary code similarity detection without fine-tuning

delete2025-05-01
delete0
PRE
AI
Y
Yeming Gu *
H
Hui Shu
F
Fei Kang
H
Hu, Fan
DOI:10.1016/j.neucom.2025.129646delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Binary code similarity detection (BCSD) is widely used in various binary analysis tasks such as vulnerability search, malware detection, clone detection, and patch analysis. Recent studies have shown that the learning- based binary code embedding models perform better than the traditional feature-based approaches. However, previous studies have not delved deeply into the key factors that affect model performance. In this paper, we design extensive ablation studies to explore these influencing factors. The experimental results have provided us with many new insights. We have made innovations in both code representation and model selection: we propose a novel rich-semantic function representation technique to ensure the model captures the intricate nuances of binary code, and we introduce the first UniLM-based binary code embedding model, named UniASM, which includes two newly designed training tasks to learn representations of binary functions. The experimental results show that UniASM outperforms the state-of-the-art (SOTA) approaches on the evaluation datasets. The average scores of Recall@1 on cross-compilers, cross-optimization-levels, and cross-obfuscations have improved by 12.7%, 8.5%, and 22.3%, respectively, compared to the best of the baseline methods. Besides, in the real-world task of known vulnerability search, UniASM outperforms all the current baselines.
Keywords:
Similarity detection
Embedding
Binary code
Assembly language
Vulnerability

Journal

Neurocomputing cover
Neurocomputing
IF:
6.5
Papers:
2.5W
Citations:
6.5W

Organization

No organization information available
Cited Papers

Cited Papers

Accurate and Scalable Cross-Architecture Cross-OS Binary Code Search with Emulation
err2019-11-01
err43
PREAI
errXue, Yinxing; Xu, Zhengzi; Chandramohan, Mahinthan; Liu, Yang
errShare
errSave
errShare
errSave
Control Flow-Based Malware Variant Detection
err2014-07-01
err116
PREAI
errCesare, Silvio; Xiang, Yang; Zhou, Wanlei
errShare
errSave
An Improved Denoising Method in RDTS Based on Wavelet Transform Modulus Maxima
err2015-02-01
err0
PREAI
errZongliang Wang; Guangping Lv; Jun Chang; Sasa Zhang; Sha Luo; Chuanwu Jia; Shuo Jiang; Boning Sun; Yongning Liu; Xiaohui Liu
errShare
errSave
A Semantics-Based Hybrid Approach on Binary Code Similarity Comparison
err2021-06-01
err14
errOAAI
errHu, Yikun; Wang, Hui; Zhang, Yuanyuan; Li, Bodong; Gu, Dawu
errShare
errSave
Unleashing the power of pseudo-code for binary code similarity analysis
err2022-12-01
err2
errOAAI
errZhang, Weiwei; Xu, Zhengzi; Xiao, Yang; Xue, Yinxing
errShare
errSave
Codee: A Tensor Embedding Scheme for Binary Code Search
err2022-07-01
err34
errOAAI
errYang, Jia; Fu, Cai; Liu, Xiao-Yang; Yin, Heng; Zhou, Pan
errShare
errSave
BEDetector: A Two-Channel Encoding Method to Detect Vulnerabilities Based on Binary Similarity
err2021-01-01
err8
errOAAI
errYu, Lu; Lu, Yuliang; Shen, Yi; Huang, Hui; Zhu, Kailong
errShare
errSave
Bin2vec: learning representations of binary executable programs for security tasks
err2021-07-01
err9
errOAAI
errArakelyan, Shushan; Arasteh, Sima; Hauser, Christophe; Kline, Erik; Galstyan, Aram
errShare
errSave
no more