arrow
返回

BinDiff NN: Learning Distributed Representation of Assembly for Robust Binary Diffing Against Semantic Differences

delete2022-09-01
delete14
PRE
AI
S
Sami Ullah
H
Heekuck Oh *
DOI:10.1109/TSE.2021.3093926delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Binary diffing is a process to discover the differences and similarities in functionality between two binary programs. Previous research on binary diffing approaches it as a function matching problem to formulate an initial 1:1 mapping between functions, and later a sequence matching ratio is computed to classify two functions being an exact match, a partial match or no-match. The accuracy of existing techniques is best only when detecting exact matches and they are not efficient in detecting partially changed functions; especially those with minor patches. These drawbacks are due to two major challenges (i) In the 1:1 mapping phase, using a strict policy to match function features (ii) In the classification phase, considering an assembly snippet as a normal text, and using sequence matching for similarity comparison. Instruction has a unique structure i.e. mnemonics and registers have a specific position in instruction and also have a semantic relationship, which makes assembly code different from general text. Sequence matching performs best for general text but it fails to detect structural and semantic changes at an instruction level thus, its use for classification produces many false results. In this research, we have addressed the aforementioned underlying challenges by proposing a two-fold solution. For the 1:1 mapping phase, we have proposed computationally inexpensive features, which are compared with distance-based selection criteria to map similar functions and filter unmatched functions. For the classification phase, we have proposed a Siamese binary-classification neural network where each branch is an attention-based distributed learning embedding neural network - that learn the semantic similarity among assembly instructions, learn to highlight the changes at an instruction level and a final stage fully connected layer learn to accurately classify two 1:1 mapped function either an exact or a partial match. We have used x86 kernel binaries for training and achieved similar to 99% classification accuracy; which is higher than existing binary diffing techniques and tools.
Keyword:
Asm2Vec
attention network
binary diffing
exact match
Inst2vec
partial match
siamese neural network

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

H
hanyang university
学者数:
2.9W
论文数: 2.7W
被引数: 36
引用论文

引用论文

Degenerating compartment and functioning compartment of motor neurons in ALS
err1983-05-01
err0
PREAI
errGen Sobue; Ko Sahashi; Akira Takahashi; Yukihiko Matsuoka; Tatsuo Muroga; Itsuro Sobue
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
err分享
err收藏
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
err分享
err收藏
Editorial: Neurotransmitters and Emotions
err2020-01-29
err0
errOAAI
errFushun Wang; Jiongjiong Yang; Fang Pan; Roger C. Ho; Jason H. Huang
err分享
err收藏
Dislocation damping in zinc single crystals
err2002-11-20
err0
errOAAI
errW G Ferguson; F E Hauser; J E Dorn
err分享
err收藏
学者 查看更多内容