已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整的填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!祝你早点完成任务,早点休息,好梦!

Optimizing smart contract vulnerability detection via multi-modality code and entropy embedding

源代码 嵌入 编译程序 计算机科学 编码器 变压器 编码(集合论) 计算机工程 理论计算机科学 人工智能 程序设计语言 工程类 操作系统 集合(抽象数据类型) 电压 电气工程
作者
Dawei Yuan,Xiaohui Wang,Yao Li,Tao Zhang
出处
期刊:Journal of Systems and Software [Elsevier]
卷期号:202: 111699-111699 被引量:4
标识
DOI:10.1016/j.jss.2023.111699
摘要

Smart contracts have been widely used in the blockchain world these years, and simultaneously vulnerability detection has gained more and more attention due to the staggering economic losses caused by the attacker. Existing tools that analyze vulnerabilities for smart contracts heavily rely on rules predefined by experts, which are labour-intense and require domain knowledge. Moreover, predefined rules tend to be misconceptions and increase the risk of crafty potential back-doors in the future. Recently, researchers mainly used static and dynamic execution analysis to detect the vulnerabilities of smart contracts and have achieved acceptable results. However, the dynamic method cannot cover all the program inputs and execution paths, which leads to some vulnerabilities that are hard to detect. The static analysis method commonly includes symbolic execution and theorem proving, which requires using constraints to detect vulnerability. These shortcomings show that traditional methods are challenging to apply and expand on a large scale. This paper aims to detect vulnerabilities via the Bug Injection framework and transfer learning techniques. First, we train a Transformer encoder using multi-modality code, which contains source code, intermediate representation, and assembly code. The input code consists separately of Solidity source code, intermediate representation, and assembly code. Specifically, we translate source code into the intermediate representation and decompile the byte code into assembly code by the EVM compiler. Then, we propose a novel entropy embedding technique, which combines token embedding, segment embedding, and positional embedding of the Transformer encoder in our approach. After that, we utilize the Bug Injection framework to automatically generate specific types of buggy code for fine-tuning and evaluating the performance of vulnerability detection. The experimental results show that our proposed approach improves the performance in detecting reentrancy vulnerabilities and timestamp dependence. Moreover, our approach is more flexible and scalable than static and dynamic analysis approaches in detecting smart contract vulnerabilities. Our approach improves the baseline approaches by an average of 11.89% in term of F1 score.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
大幅提高文件上传限制,最高150M (2024-4-1)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
独步出营完成签到 ,获得积分10
1秒前
关关完成签到 ,获得积分10
1秒前
宇宇完成签到 ,获得积分10
1秒前
WX完成签到,获得积分10
7秒前
一剑白完成签到 ,获得积分10
8秒前
朴实的绿兰完成签到 ,获得积分10
8秒前
衣谷完成签到 ,获得积分10
9秒前
张zz完成签到 ,获得积分10
10秒前
Odile完成签到 ,获得积分10
10秒前
聪明小丸子完成签到 ,获得积分10
11秒前
11秒前
悄悄完成签到 ,获得积分10
11秒前
NexusExplorer应助科研通管家采纳,获得10
12秒前
科研通AI2S应助科研通管家采纳,获得10
12秒前
12秒前
腼腆的小熊猫完成签到 ,获得积分10
12秒前
从前从前完成签到,获得积分10
13秒前
freya完成签到,获得积分20
13秒前
astral完成签到,获得积分10
15秒前
15秒前
蜗牛完成签到,获得积分10
16秒前
18秒前
正直水池完成签到 ,获得积分10
19秒前
19秒前
YBR完成签到 ,获得积分10
20秒前
杨无敌完成签到 ,获得积分10
21秒前
徐婷发布了新的文献求助10
22秒前
难过的疾完成签到,获得积分10
23秒前
24秒前
neonsun完成签到,获得积分10
24秒前
OVERSEER发布了新的文献求助10
24秒前
25秒前
浅忆完成签到 ,获得积分10
25秒前
格物致知完成签到,获得积分10
26秒前
26秒前
洪荒爆发完成签到,获得积分10
26秒前
移动马桶完成签到 ,获得积分10
26秒前
海韵之心完成签到 ,获得积分10
29秒前
邹小天发布了新的文献求助10
29秒前
虚心醉蝶完成签到 ,获得积分10
31秒前
高分求助中
The Young builders of New china : the visit of the delegation of the WFDY to the Chinese People's Republic 1000
юрские динозавры восточного забайкалья 800
English Wealden Fossils 700
Chen Hansheng: China’s Last Romantic Revolutionary 500
宽禁带半导体紫外光电探测器 388
COSMETIC DERMATOLOGY & SKINCARE PRACTICE 388
Pearson Edxecel IGCSE English Language B 300
热门求助领域 (近24小时)
化学 医学 生物 材料科学 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 基因 遗传学 催化作用 物理化学 免疫学 量子力学 细胞生物学
热门帖子
关注 科研通微信公众号,转发送积分 3142499
求助须知:如何正确求助?哪些是违规求助? 2793418
关于积分的说明 7806563
捐赠科研通 2449664
什么是DOI,文献DOI怎么找? 1303383
科研通“疑难数据库(出版商)”最低求助积分说明 626861
版权声明 601309