arrow
Return

PromeTrans: Bootstrap binary functionality classification with knowledge transferred from pre-trained models

delete2024-11-27
delete0
PRE
AI
Z
Zihan Sha *
张
张超 (Chao Zhang)
H
Hao Wang
Z
Zeyu Gao
B
Bolun Zhang
杨
杨澜 (Lan Yang)
H
Hui Shu
DOI:10.1007/s10664-024-10593-ydelete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Pre-trained models have witnessed significant progress in nature language (including source code) and binary code comprehension. However, none of them are suitable for binary functionality classification (BFC). In this paper, we present the first pre-trained model-based solution to BFC, namely PromeTrans, by fusing the knowledge of pre-trained models. Specifically, it overcomes the token size limitation of pre-trained models with a novel function outlining scheme and utilizes existing pre-trained assembly language models (AsmLMs) to generate embeddings for binary functions. Then, it utilizes a Graph Attention Network (GAT) to aggregate function embeddings following the call graph into a functionality embedding for each function. Lastly, it leverages existing pre-trained large natural language models (LLMs, e.g., GPT-3.5) to classify the functionality of source code functions and align the labels to binary functions. Based on the functionality embedding provided by AsmLMs and GAT and the functionality label knowledge provided by LLMs, a simple multi-layer perceptron (MLP) model is trained to classify the functionality of binary functions. Our prototype PromeTrans yields state-of-the-art (SOTA) performance on various datasets and achieves low overhead. PromeTrans also exhibits exceptional results in real-world applications (e.g., malware analysis). Additionally, by analyzing PromeTrans's training history, we confirm the quality of knowledge transferred from LLMs is high. It shows that transferring knowledge from pre-trained models has a strong potential to bootstrap binary program comprehension tasks beyond BFC.
Keywords:
Static analysis
Large language model
Program comprehension
Neural networks
Reverse engineering

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
I
institute of information engineering, cas
Scholars:
477
Papers: 469
Citations: 0
C
chinese academy of sciences
Scholars:
56.7W
Papers: 45.0W
Citations: 704
researcher View more organizations
Cited Papers

Cited Papers

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
Treatment With Ganciclovir of Adenovirus Pneumonia in a Cardiac Transplant Patient
err1997-11-01
err0
PREAI
errJoan M Duggan; Janice Farrehi; Susan Duderstadt; Nancy J Turner; Robert Fekety
errShare
errSave
Study of the Tempcore Process for the Production of High Resistance Reinforcing Rods
err2007-02-01
err0
PREAI
errO. Niño; D. Martínez; C. Lizcano; Martha Patrizia Guerrero-Mata; Rafael Colás
errShare
errSave
Preparation and structural characterization of an unprotected copper sol
err2002-05-01
err0
PREAI
errAndrew C. Curtis; Daniel G. Duff; Peter P. Edwards; David A. Jefferson; Brian F. G. Johnson; Angus I. Kirkland; Andrew S. Wallace
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
Cytoskeleton regulators CAPZA2 and INF2 associate with CFTR to control its plasma membrane levels under EPAC1 activation
err2020-07-10
err0
errOAAI
errJoão D. Santos; Francisco R. Pinto; João F. Ferreira; Margarida D. Amaral; Manuela Zaccolo; Carlos M. Farinha
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