亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人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 被引量:6
标识
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.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
上官若男应助心灵美猎豹采纳,获得10
2秒前
宋艳芳完成签到,获得积分10
2秒前
4秒前
5秒前
蓦然完成签到,获得积分10
6秒前
smm完成签到 ,获得积分10
9秒前
科研通AI6.1应助冰汤葫芦采纳,获得10
10秒前
10秒前
sun448526发布了新的文献求助10
12秒前
小鱼发布了新的文献求助10
15秒前
思源应助王化省采纳,获得10
16秒前
17秒前
18秒前
沉默白猫完成签到 ,获得积分10
19秒前
方梓言发布了新的文献求助10
19秒前
西门戆戆发布了新的文献求助10
23秒前
PJY发布了新的文献求助10
24秒前
寻道图强完成签到,获得积分0
26秒前
脑洞疼应助无奈的大门采纳,获得10
27秒前
科妍通AI2_1应助PJY采纳,获得10
29秒前
温婉的谷菱完成签到,获得积分10
32秒前
无私的奇异果完成签到 ,获得积分10
32秒前
Ya完成签到 ,获得积分10
35秒前
Okanryo完成签到,获得积分10
39秒前
42秒前
sun448526完成签到,获得积分10
43秒前
William_l_c完成签到,获得积分10
45秒前
十一完成签到,获得积分10
45秒前
46秒前
女士刘完成签到,获得积分10
46秒前
46秒前
和光同尘完成签到,获得积分10
47秒前
云峤发布了新的文献求助10
48秒前
方梓言完成签到 ,获得积分10
49秒前
西门戆戆完成签到,获得积分10
49秒前
fan发布了新的文献求助10
50秒前
Owen应助帅气绮露采纳,获得10
51秒前
猪猪侠发布了新的文献求助10
52秒前
沉默火完成签到,获得积分10
53秒前
58秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Encyclopedia of Forensic and Legal Medicine Third Edition 5000
Introduction to strong mixing conditions volume 1-3 5000
Aerospace Engineering Education During the First Century of Flight 3000
Agyptische Geschichte der 21.30. Dynastie 3000
Les Mantodea de guyane 2000
Electron Energy Loss Spectroscopy 1500
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5779791
求助须知:如何正确求助?哪些是违规求助? 5649870
关于积分的说明 15452355
捐赠科研通 4910851
什么是DOI,文献DOI怎么找? 2642982
邀请新用户注册赠送积分活动 1590635
关于科研通互助平台的介绍 1545094