BinEnhance: An Enhancement Framework Based on External Environment Semantics for Binary Code Search

Binary code search plays a crucial role in applications like software reuse detection, and vulnerability identification.Currently, existing models are typically based on either internal code semantics or a combination of function call graphs (CG) and internal code semantics.However, these models have limitations.Internal code semantic models only consider the semantics within the function, ignoring the inter-function semantics, making it difficult to handle situations such as function inlining.The combination of CG and internal code semantics is insufficient for addressing complex real-world scenarios.To address these limitations, we propose BINENHANCE, a novel framework designed to leverage the inter-function semantics to enhance the expression of internal code semantics for binary code search.Specifically, BINENHANCE constructs an External Environment Semantic Graph (EESG), which establishes a stable and analogous external environment for homologous functions by using different inter-function semantic relations (e.g., call, location, data-co-use).After the construction of EESG, we utilize the embeddings generated by existing internal code semantic models to initialize EESG nodes.Finally, we design a Semantic Enhancement Model (SEM) that uses Relational Graph Convolutional Networks (RGCNs) and a residual block to learn valuable external semantics on the EESG for generating the enhanced semantics embedding.In addition, BINENHANCE utilizes data feature similarity to refine the cosine similarity of semantic embeddings.We conduct experiments under six different tasks (e.g., under function inlining scenario) and the results illustrate the performance and robustness of BINENHANCE.The application of BINENHANCE to HermesSim, Asm2vec, TREX, Gemini, and Asteria on two public datasets results in an improvement of Mean Average Precision (MAP) from 53.6% to 69.7%.Moreover, the efficiency increases fourfold.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.14722/ndss.2025.240568
Citations
2
Primary Topic
Service-Oriented Architecture and Web Services
Type
article
Field-Weighted Citation Impact
6.49

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

BinEnhance: An Enhancement Framework Based on External Environment Semantics for Binary Code Search

Y.P. Wang, Chaopeng Dong, Siyuan Li, Li Hong et al.
2 citations
Service-Oriented Architecture and Web Services
6.49
article

BinEnhance: An Enhancement Framework Based on External Environment Semantics for Binary Code Search

Y.P. Wang, Chaopeng Dong, Siyuan Li, Li Hong, Shouguo Yang, Xiaojie Zhu, Kaikai Qin
article en
2 citations

Abstract

Binary code search plays a crucial role in applications like software reuse detection, and vulnerability identification.Currently, existing models are typically based on either internal code semantics or a combination of function call graphs (CG) and internal code semantics.However, these models have limitations.Internal code semantic models only consider the semantics within the function, ignoring the inter-function semantics, making it difficult to handle situations such as function inlining.The combination of CG and internal code semantics is insufficient for addressing complex real-world scenarios.To address these limitations, we propose BINENHANCE, a novel framework designed to leverage the inter-function semantics to enhance the expression of internal code semantics for binary code search.Specifically, BINENHANCE constructs an External Environment Semantic Graph (EESG), which establishes a stable and analogous external environment for homologous functions by using different inter-function semantic relations (e.g., call, location, data-co-use).After the construction of EESG, we utilize the embeddings generated by existing internal code semantic models to initialize EESG nodes.Finally, we design a Semantic Enhancement Model (SEM) that uses Relational Graph Convolutional Networks (RGCNs) and a residual block to learn valuable external semantics on the EESG for generating the enhanced semantics embedding.In addition, BINENHANCE utilizes data feature similarity to refine the cosine similarity of semantic embeddings.We conduct experiments under six different tasks (e.g., under function inlining scenario) and the results illustrate the performance and robustness of BINENHANCE.The application of BINENHANCE to HermesSim, Asm2vec, TREX, Gemini, and Asteria on two public datasets results in an improvement of Mean Average Precision (MAP) from 53.6% to 69.7%.Moreover, the efficiency increases fourfold.

Youth Innovation Promotion Association of the Chinese Academy of Sciences, National Key Research and Development Program of China, Youth Innovation Promotion Association
Openalex Percentile: Top 5%
Service-Oriented Architecture and Web Services
6.49
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.