arrow
Return

sem2vec: Semantics-aware Assembly Tracelet Embedding

delete2023-05-27
delete4
PRE
AI
H
Huaijin Wang
P
Pingchuan Ma
S
Shuai Wang *
Q
Qiyi Tang
S
Sen Nie
S
Shi Wu
DOI:10.1145/3569933delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Binary code similarity is the foundation of many security and software engineering applications. Recent works leverage deep neural networks (DNN) to learn a numeric vector representation (namely, embeddings) of assembly functions, enabling similarity analysis in the numeric space. However, existing DNN-based techniques capture syntactic-, control flow-, or data flow-level information of assembly code, which is too coarse-grained to represent program functionality. These methods can suffer from low robustness to challenging settings such as compiler optimizations and obfuscations. We present sem2vec, a binary code embedding framework that learns from semantics. Given the control-flow graph (CFG) of an assembly function, we divide it into tracelets, denoting continuous and short execution traces that are reachable from the function entry point. We use symbolic execution to extract symbolic constraints and other auxiliary information on each tracelet. We then train masked language models to compute embeddings of symbolic execution outputs. Last, we use graph neural networks, to aggregate tracelet embeddings into the CFG-level embedding for a function. Our evaluation shows that sem2vec extracts high-quality embedding and is robust against different compilers, optimizations, architectures, and popular obfuscation methods including virtualization obfuscation. We further augment a vulnerability search application with embeddings computed by sem2vec and demonstrate a significant improvement in vulnerability search accuracy.
Keywords:
Symbolic execution
embedding
graph neural network
binary code similarity
errShare
errSave
Search Efficient Binary Network Embedding
err2021-05-08
err0
errOAAI
errZhang, Daokun; Yin, Jie; Zhu, Xingquan; Zhang, Chengqi
errShare
errSave
Decoupled semantic graph neural network for knowledge graph embedding
err2025-01-01
err2
PREAI
errLi, Zhifei; Huang, Wei; Gong, Xuchao; Luo, Xiangyu; Xiao, Kui; Deng, Honglian; Zhang, Miao; Zhang, Yan
errShare
errSave
MSSA: multi-stage semantic-aware neural network for binary code similarity detection
err2025-01-17
err0
errOAAI
errWan, Bangrui; Zhou, Jianjun; Wang, Ying; Chen, Feng; Qian, Ying
errShare
errSave
Lexical semantics enhanced neural word embeddings
err2022-09-01
err2
errOAAI
errYang, Dongqiang; Li, Ning; Zou, Li; Ma, Hongwei
errShare
errSave
Semantic-guided graph neural network for heterogeneous graph embedding
err2023-12-01
err4
PREAI
errHan, Mingjing; Zhang, Han; Li, Wei; Yin, Yanbin
errShare
errSave
Software system comparison with semantic source code embeddings
err2022-03-17
err6
PREAI
errKarakatic, Saso; Milosevic, Aleksej; Hericko, Tjasa
errShare
errSave

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.4K
Citations:
4.5K

Organization

T
Tencent
Scholars:
197
Papers: 105
Citations: 1.4K
Cited Papers

Cited Papers

errShare
errSave
The data availability landscape in seven sub-Saharan African countries and its role in strengthening sugar-sweetened beverage taxation
err2021-04-20
err0
errOAAI
errAgnes Erzse; Safura Abdool Karim; Anne Marie Thow; Gemma Ahaibwe; Hans Justus Amukugo; Gershim Asiki; Lebogang Gaogane; Mulenga M. Mukanu; Twalib Ngoma; Charles Mulindabigwi Ruhara; Milkah N Wanjohi; Karen Hofman
errShare
errSave
New Insights into Acute and Chronic Lung Rejection
err2008-02-01
err0
PREAI
errIsabel Neuringer; Ayorinde Medaiyese; Patrick McNeillie; Steven Budd; Robert Aris
errShare
errSave
Matrix Effects in the Detection of Pb and Ba in Soils Using Laser-Induced Breakdown Spectroscopy
err1996-09-01
err0
PREAI
errAaron S. Eppler; David A. Cremers; Donald D. Hickmott; Monty J. Ferris; Aaron C. Koskelo
errShare
errSave
Program Characterization Using Runtime Values and Its Application to Software Plagiarism Detection
err2015-09-01
err35
PREAI
errJhi, Yoon-Chan; Jia, Xiaoqi; Wang, Xinran; Zhu, Sencun; Liu, Peng; Wu, Dinghao
errShare
errSave
New α-pyrone and phthalide from the Xylariaceae fungus
err2015-06-30
err0
PREAI
errJian Zou; Jun Li; Zu-Yan Wu; Qin Zhao; Gao-Qian Wang; Huan Zhao; Guo-Dong Chen; Xiang Sun; Liang-Dong Guo; Hao Gao
errShare
errSave
An autonomous in situ detection system for radioactivity measurements in the marine environment
err2008-10-01
err0
PREAI
errC. Tsabaris; C. Bagatelas; Th. Dakladas; C.T. Papadopoulos; R. Vlastou; G.T. Chronis
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
researcher View more