Semantic Understanding of Source and Binary Code based on Natural Language Processing

计算机科学 源代码 程序设计语言 编译程序 二进制数 二进制代码 系统代码 理论计算机科学 算法 解码方法 算术 低密度奇偶校验码 数学
作者
Zhongtang Zhang,Shengli Liu,Qichao Yang,Shichen Guo
标识
DOI:10.1109/imcec51613.2021.9482032
摘要

With the development of open source projects, a large number of open source codes will be reused in binary software, and bugs in source codes will also be introduced into binary codes. In order to detect the reused open source codes in binary codes, it is sometimes necessary to compare and analyze the similarity between source codes and binary codes. One of the main challenge is that the compilation process can generate different binary code representations for the same source code, such as different compiler versions, compilation optimization options and target architectures, which greatly increases the difficulty of semantic similarity detection between source code and binary code. In order to solve the influence of the compilation process on the comparison of semantic similarity of codes, this paper transforms the source code and binary code into LLVM intermediate representation (LLVM IR), which is a universal intermediate representation independent of source code and binary code. We carry out semantic feature extraction and embedding training on LLVM IR based on natural language processing model. Experimental results show that LLVM IR eliminates the influence of compilation on the syntax differences between source code and binary code, and the semantic features of code are well represented and preserved.

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
CipherSage应助宜菏采纳,获得10
刚刚
jason完成签到 ,获得积分10
刚刚
恋恋青葡萄完成签到,获得积分10
1秒前
4秒前
ho完成签到,获得积分10
7秒前
LingYun完成签到,获得积分10
9秒前
yznfly应助ho采纳,获得200
12秒前
栖梧砚客完成签到 ,获得积分10
13秒前
刘歌完成签到 ,获得积分10
13秒前
Mercury完成签到 ,获得积分10
14秒前
贾方硕完成签到,获得积分10
14秒前
888完成签到,获得积分10
18秒前
Lincoln完成签到,获得积分10
19秒前
HCLonely完成签到,获得积分0
22秒前
科研通AI2S应助Muncy采纳,获得20
26秒前
量子星尘发布了新的文献求助10
28秒前
独特的秋完成签到 ,获得积分10
28秒前
吉吉国王完成签到 ,获得积分10
29秒前
31秒前
13633501455完成签到 ,获得积分10
32秒前
哎呀哎呀呀完成签到,获得积分10
33秒前
科研助理发布了新的文献求助10
34秒前
你好纠结伦完成签到,获得积分10
34秒前
wll1091完成签到 ,获得积分10
36秒前
陈麦发布了新的文献求助10
36秒前
Joy完成签到,获得积分10
37秒前
默默平文完成签到,获得积分10
37秒前
38秒前
火蓝完成签到 ,获得积分10
39秒前
laber完成签到,获得积分0
41秒前
minrui发布了新的文献求助10
42秒前
阿苗完成签到 ,获得积分10
46秒前
cx完成签到,获得积分10
49秒前
yyani完成签到,获得积分10
51秒前
三脸茫然完成签到 ,获得积分0
51秒前
彦凝毓完成签到,获得积分10
53秒前
37星河75完成签到,获得积分10
54秒前
南山幼儿园一把手完成签到 ,获得积分10
59秒前
懵懂的海露完成签到,获得积分10
1分钟前
天才小能喵完成签到 ,获得积分0
1分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Encyclopedia of Agriculture and Food Systems Third Edition 2000
Clinical Microbiology Procedures Handbook, Multi-Volume, 5th Edition 临床微生物学程序手册,多卷,第5版 2000
人脑智能与人工智能 1000
King Tyrant 720
Silicon in Organic, Organometallic, and Polymer Chemistry 500
Principles of Plasma Discharges and Materials Processing, 3rd Edition 400
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5599922
求助须知:如何正确求助?哪些是违规求助? 4685747
关于积分的说明 14838974
捐赠科研通 4674097
什么是DOI,文献DOI怎么找? 2538431
邀请新用户注册赠送积分活动 1505597
关于科研通互助平台的介绍 1471086