arrow
Return

Codee: A Tensor Embedding Scheme for Binary Code Search

delete2022-07-01
delete34
delete
OA
AI
杨
杨佳 (Jia Yang) *
C
Cai Fu
X
Xiao-Yang Liu
H
Heng Yin
P
Pan Zhou
DOI:10.1109/TSE.2021.3056139delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Given a target binary function, the binary code search retrieves top-K similar functions in the repository, and similar functions represent that they are compiled from the same source codes. Searching binary code is particularly challenging due to large variations of compiler tool-chains and options and CPU architectures, as well as thousands of binary codes. Furthermore, there are some pivotal issues in current binary code search schemes, including inaccurate text-based or token-based analysis, slow graph matching, or complex deep learning processes. In this paper, we present an unsupervised tensor embedding scheme, Codee, to carry out code search efficiently and accurately at the binary function level. First, we use an NLP-based neural network to generate the semantic-aware token embedding. Second, we propose an efficient basic block embedding generation algorithm based on the network representation learning model. We learn both the semantic information of instructions and the control flow structural information to generate the basic block embedding. Then we use all basic block embeddings in a function to obtain a variable-length function feature vector. Third, we build a tensor to generate function embeddings based on the tensor singular value decomposition, which compresses the variable-length vectors into short fixed-length vectors to facilitate efficient search afterward. We further propose a dynamic tensor compression algorithm to incrementally update the function embedding database. Finally, we use the local sensitive hash method to find the top-K similar matching functions in the repository. Compared with state-of-the-art cross-optimization-level code search schemes, such as Asm2Vec and DeepBinDiff, our scheme achieves higher average search accuracy, shorter feature vectors, and faster feature generation performance using four datasets, OpenSSL, Coreutils, libgmp and libcurl. Compared with other cross-platform and cross-optimization-level code search schemes, such as Gemini, Safe, the average recall of our method also outperforms others.
Keywords:
Function feature extraction
tensor embedding
code search
tSVD
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.9K
Citations:
1.1W

Organization

C
Columbia University
Scholars:
7.1W
Papers: 6.4W
Citations: 263
University of California System cover
University of California System
Scholars:
37.7W
Papers: 33.8W
Citations: 6.6K
Cited Papers

Cited Papers

errShare
errSave
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
errShare
errSave
Understanding Android App Piggybacking: A Systematic Study of Malicious Code Grafting
err2017-06-01
err106
errOAAI
errLi, Li; Li, Daoyuan; Bissyande, Tegawende F.; Klein, Jacques; Le Traon, Yves; Lo, David; Cavallaro, Lorenzo
errShare
errSave
Circulant Matrices and Their Application to Vibration Analysis
err2014-06-19
err113
errOAAI
errOlson, Brian J.; Shaw, Steven W.; Shi, Chengzhi; Pierre, Christophe; Parker, Robert G.
errShare
errSave
Insurance activity and economic performance: Fresh evidence from asymmetric panel causality tests
err2018-10-24
err0
errOAAI
errAbdulnasser Hatemi‐J; Chi‐Chuan Lee; Chien‐Chiang Lee; Rangan Gupta
errShare
errSave
err
IF0
err
err0
PREAI
err
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
errShare
errSave
researcher View more