Semantic-aware Binary Code Representation with BERT

计算机科学 二进制代码 二进制数 编译程序 源代码 渲染(计算机图形) 人工智能 程序设计语言 理论计算机科学 算术 数学
作者
Hyungjoon Koo,Soyeon Park,Daejin Choi,Taesoo Kim
出处
期刊:Cornell University - arXiv 被引量:11
标识
DOI:10.48550/arxiv.2106.05478
摘要

A wide range of binary analysis applications, such as bug discovery, malware analysis and code clone detection, require recovery of contextual meanings on a binary code. Recently, binary analysis techniques based on machine learning have been proposed to automatically reconstruct the code representation of a binary instead of manually crafting specifics of the analysis algorithm. However, the existing approaches utilizing machine learning are still specialized to solve one domain of problems, rendering recreation of models for different types of binary analysis. In this paper, we propose DeepSemantic utilizing BERT in producing the semantic-aware code representation of a binary code. To this end, we introduce well-balanced instruction normalization that holds rich information for each of instructions yet minimizing an out-of-vocabulary (OOV) problem. DeepSemantic has been carefully designed based on our study with large swaths of binaries. Besides, DeepSemantic leverages the essence of the BERT architecture into re-purposing a pre-trained generic model that is readily available as a one-time processing, followed by quickly applying specific downstream tasks with a fine-tuning process. We demonstrate DeepSemantic with two downstream tasks, namely, binary similarity comparison and compiler provenance (i.e., compiler and optimization level) prediction. Our experimental results show that the binary similarity model outperforms two state-of-the-art binary similarity tools, DeepBinDiff and SAFE, 49.84% and 15.83% on average, respectively.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
阳光萌萌完成签到,获得积分10
1秒前
科研通AI6.3应助RA000采纳,获得10
1秒前
顶刊大王发布了新的文献求助20
1秒前
1秒前
2秒前
小白完成签到 ,获得积分10
2秒前
安静台灯发布了新的文献求助10
3秒前
所爱皆在发布了新的文献求助10
3秒前
斯文败类应助儒雅致远采纳,获得10
3秒前
3秒前
4秒前
4秒前
卡西诺玛完成签到,获得积分10
5秒前
5秒前
Frank应助小将军采纳,获得20
5秒前
6秒前
无极微光应助等待心情采纳,获得20
7秒前
orixero应助大海123采纳,获得10
7秒前
Lucas应助科研通管家采纳,获得10
8秒前
赘婿应助科研通管家采纳,获得10
8秒前
8秒前
小新应助科研通管家采纳,获得10
8秒前
小马甲应助科研通管家采纳,获得10
8秒前
RA000完成签到,获得积分10
8秒前
8秒前
小蘑菇应助科研通管家采纳,获得10
8秒前
8秒前
8秒前
8秒前
在水一方应助科研通管家采纳,获得10
8秒前
8秒前
molihuakai应助科研通管家采纳,获得10
9秒前
Ava应助科研通管家采纳,获得10
9秒前
9秒前
9秒前
10秒前
feihu发布了新的文献求助10
10秒前
11秒前
11秒前
DY_5354发布了新的文献求助10
12秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
晶种分解过程与铝酸钠溶液混合强度关系的探讨 8888
Les Mantodea de Guyane Insecta, Polyneoptera 2000
Leading Academic-Practice Partnerships in Nursing and Healthcare: A Paradigm for Change 800
Signals, Systems, and Signal Processing 610
The Sage Handbook of Digital Labour 600
The formation of Australian attitudes towards China, 1918-1941 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6416856
求助须知:如何正确求助?哪些是违规求助? 8236000
关于积分的说明 17494098
捐赠科研通 5469701
什么是DOI,文献DOI怎么找? 2889645
邀请新用户注册赠送积分活动 1866601
关于科研通互助平台的介绍 1703754