arrow
Return

OpTrans: enhancing binary code similarity detection with function inlining re-optimization

delete2024-12-26
delete0
PRE
AI
Z
Zihan Sha *
杨
杨澜 (Lan Yang)
C
Chao Zhang
H
Hao Wang
Z
Zeyu Gao
B
Bolun Zhang
H
Hui Shu
DOI:10.1007/s10664-024-10605-xdelete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Binary code similarity detection (BCSD) is pivotal in system security including reverse engineering, vulnerability detection and software component analysis. Recent studies on BCSD have proliferated, yet they exhibit poor performance when confronting semantic alterations (e.g., function inlining) caused by compiler optimization. To tackle this challenge, we present OpTrans, an innovative framework that fuses binary code Optimization techniques with the Transformer model for BCSD. OpTrans employs an algorithm based on binary program analysis to determine which functions should be inlined, followed by binary rewriting techniques to effectuate re-optimization on binaries. This innovative method significantly reduces false positives and enhances model performance in real-world BCSD tasks. We evaluated OpTrans on the BinaryCorp datasets, and it outperformed the state-of-the-art BCSD solutions by 21.5% on average. The inline re-optimization improved all BCSD solutions by up to 32.1%. Our ablation study and vulnerability experiment demonstrate the practicality of inline re-optimization in real-world detection scenarios, showing the usefulness of our approach.
Keywords:
Static analysis
Similarity detection
Optimization
Neural networks

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
5.3K

Organization

T
tsinghua university
Scholars:
11.9W
Papers: 10.0W
Citations: 137
Cited Papers

Cited Papers

errShare
errSave
Asteria-Pro: Enhancing Deep Learning-based Binary Code Similarity Detection by Incorporating Domain Knowledge
err2023-11-24
err16
errOAAI
errYang, Shouguo; Dong, Chaopeng; Xiao, Yang; Cheng, Yiran; Shi, Zhiqiang; Li, Zhi; Sun, Limin
errShare
errSave
Spiking Suppression Precedes Cued Attentional Enhancement of Neural Responses in Primary Visual Cortex
err2017-11-23
err0
errOAAI
errMichele A Cox; Kacie Dougherty; Geoffrey K Adams; Eric A Reavis; Jacob A Westerberg; Brandon S Moore; David A Leopold; Alexander Maier
errShare
errSave
Editorial: Neurotransmitters and Emotions
err2020-01-29
err0
errOAAI
errFushun Wang; Jiongjiong Yang; Fang Pan; Roger C. Ho; Jason H. Huang
errShare
errSave
errShare
errSave
Programmable large-scale simulation of lattices with photonic synthetic frequency dimensions
err2023-01-01
err0
PREAI
errAlen Senanian; Logan G. Wright; Peter F. Wade; Hannah K. Doyle; Peter L. McMahon
errShare
errSave
Dislocation damping in zinc single crystals
err2002-11-20
err0
errOAAI
errW G Ferguson; F E Hauser; J E Dorn
errShare
errSave
researcher View more