亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

Fine-grained smart contract vulnerability detection by heterogeneous code feature learning and automated dataset construction

智能合约 脆弱性(计算) 抽象语法树 特征(语言学) 编码(集合论) 计算机科学 人工智能 深度学习 语法 图形 机器学习 源代码 计算机安全 理论计算机科学 程序设计语言 数据库事务 哲学 集合(抽象数据类型) 语言学
作者
Jie Cai,Bin Li,Tao Zhang,Jiale Zhang,Xiaobing Sun
出处
期刊:Journal of Systems and Software [Elsevier]
卷期号:209: 111919-111919 被引量:3
标识
DOI:10.1016/j.jss.2023.111919
摘要

Recently, several deep learning based smart contract vulnerability detection approaches have been proposed. However, challenges still exist in applying deep learning for fine-grained vulnerability detection in smart contracts, including the lack of the dataset with sufficient statement-level labeled smart contract samples and neglect of heterogeneity between syntax and semantic features during code feature learning. To utilize deep learning for fine-grained smart contract vulnerability detection, we propose a security best practices (SBP) based dataset construction approach to address the scarcity of datasets. Moreover, we propose a syntax-sensitive graph neural network to address the challenge of heterogeneous code feature learning. The dataset construction approach is motivated by the insight that smart contract code fragments guarded by security best practices may contain vulnerabilities in their original unguarded code form. Thus, we locate and strip security best practices from the smart contract code to recover its original vulnerable code form and perform sample labeling. Meanwhile, as the heterogeneity between tree-structured syntax features embodied inside the abstract syntax tree (AST) and graph-structured semantic features reflected by relations between statements, we propose a code graph whose nodes are each statement's AST subtree with a syntax-sensitive graph neural network that enhances the graph neural network by a child-sum tree-LSTM cell to learn these heterogeneous features for fine-grained smart contract vulnerability detection. We compare our approach with three state-of-the-art deep learning-based approaches that only support contract-level vulnerability detection and two popular static analysis-based approaches that support fine detection granularity. The experiment results show that our approach outperforms the baselines at both coarse and fine granularities. In this paper, we propose utilizing security best practices inside the smart contract code to construct the dataset with statement-level labels. To learn both tree-structured syntax and graph-structured semantic code features, we propose a syntax-sensitive graph neural network. The experimental results show that our approach outperforms the baselines.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
赘婿应助晨曦采纳,获得10
3秒前
Nichols完成签到,获得积分10
5秒前
32秒前
李林燕完成签到,获得积分10
42秒前
48秒前
Lucas应助爱笑梦易采纳,获得10
56秒前
滴滴答答发布了新的文献求助10
1分钟前
1分钟前
1分钟前
ZanE完成签到,获得积分10
1分钟前
晨曦发布了新的文献求助10
1分钟前
滴滴答答完成签到,获得积分10
1分钟前
2分钟前
爱笑梦易发布了新的文献求助10
2分钟前
2分钟前
脑洞疼应助Demi_Ming采纳,获得10
2分钟前
2分钟前
混子玉发布了新的文献求助10
3分钟前
执着的小白菜关注了科研通微信公众号
3分钟前
Owen应助混子玉采纳,获得10
3分钟前
3分钟前
朴素的啤酒完成签到,获得积分10
3分钟前
yh完成签到,获得积分10
3分钟前
3分钟前
Demi_Ming发布了新的文献求助10
3分钟前
汪汪淬冰冰完成签到,获得积分10
3分钟前
3分钟前
小马甲应助科研通管家采纳,获得10
3分钟前
SimonShaw完成签到,获得积分10
3分钟前
Akim应助爱笑梦易采纳,获得10
3分钟前
4分钟前
4分钟前
森林木发布了新的文献求助10
4分钟前
4分钟前
研友_VZG7GZ应助Isabel采纳,获得10
4分钟前
Ava应助树洞里的刺猬采纳,获得10
4分钟前
4分钟前
Iron_five完成签到 ,获得积分0
4分钟前
Isabel发布了新的文献求助10
4分钟前
Honsarn完成签到,获得积分10
4分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Handbook of pharmaceutical excipients, Ninth edition 5000
Aerospace Standards Index - 2026 ASIN2026 3000
Signals, Systems, and Signal Processing 610
Discrete-Time Signals and Systems 610
Principles of town planning : translating concepts to applications 500
Wearable Exoskeleton Systems, 2nd Edition 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 纳米技术 有机化学 物理 生物化学 化学工程 计算机科学 复合材料 内科学 催化作用 光电子学 物理化学 电极 冶金 遗传学 细胞生物学
热门帖子
关注 科研通微信公众号,转发送积分 6058514
求助须知:如何正确求助?哪些是违规求助? 7891136
关于积分的说明 16296879
捐赠科研通 5203303
什么是DOI,文献DOI怎么找? 2783887
邀请新用户注册赠送积分活动 1766522
关于科研通互助平台的介绍 1647099