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.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
changaipei完成签到,获得积分10
刚刚
刚刚
李子完成签到,获得积分10
刚刚
1秒前
1秒前
共享精神应助YAOYAO采纳,获得10
1秒前
qp完成签到,获得积分10
1秒前
2秒前
咕噜咕噜完成签到,获得积分20
3秒前
HEIKU应助kiska采纳,获得10
3秒前
3秒前
单薄茗完成签到,获得积分10
3秒前
3秒前
刘鹏宇完成签到,获得积分10
4秒前
danrushui777完成签到,获得积分10
4秒前
慕青应助李子采纳,获得10
4秒前
无心的怜烟完成签到,获得积分10
4秒前
拼搏的沅完成签到,获得积分10
5秒前
123完成签到,获得积分10
5秒前
11111111111完成签到,获得积分10
5秒前
清辉月凝发布了新的文献求助10
5秒前
天天快乐应助无不破哉采纳,获得10
5秒前
夏末完成签到,获得积分20
5秒前
科目三应助zzz采纳,获得10
6秒前
黄超完成签到,获得积分10
6秒前
Ava应助小宇采纳,获得10
6秒前
柳七完成签到,获得积分10
6秒前
咕噜咕噜发布了新的文献求助10
6秒前
开心榴莲大王完成签到 ,获得积分10
7秒前
隐形冷亦完成签到,获得积分10
7秒前
7秒前
7秒前
乐小佳发布了新的文献求助30
7秒前
7秒前
咕噜噜完成签到 ,获得积分10
7秒前
慈祥的花瓣完成签到,获得积分10
8秒前
偷猪剑客发布了新的文献求助10
8秒前
夏末发布了新的文献求助10
8秒前
futing发布了新的文献求助10
8秒前
bzy完成签到,获得积分10
8秒前
高分求助中
Continuum Thermodynamics and Material Modelling 3000
Production Logging: Theoretical and Interpretive Elements 2700
Social media impact on athlete mental health: #RealityCheck 1020
Ensartinib (Ensacove) for Non-Small Cell Lung Cancer 1000
Unseen Mendieta: The Unpublished Works of Ana Mendieta 1000
Bacterial collagenases and their clinical applications 800
El viaje de una vida: Memorias de María Lecea 800
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 有机化学 生物化学 物理 纳米技术 计算机科学 内科学 化学工程 复合材料 基因 遗传学 物理化学 催化作用 量子力学 光电子学 冶金
热门帖子
关注 科研通微信公众号,转发送积分 3527469
求助须知:如何正确求助?哪些是违规求助? 3107497
关于积分的说明 9285892
捐赠科研通 2805298
什么是DOI,文献DOI怎么找? 1539865
邀请新用户注册赠送积分活动 716714
科研通“疑难数据库(出版商)”最低求助积分说明 709678