PSCVFinder: A Prompt-Tuning Based Framework for Smart Contract Vulnerability Detection

计算机科学 脆弱性(计算) 利用 智能合约 依赖关系(UML) 程序切片 计算机安全 适应性 编码(集合论) 脆弱性评估 基线(sea) 人工智能 程序设计语言 软件 心理学 生态学 海洋学 集合(抽象数据类型) 心理弹性 块链 心理治疗师 生物 地质学
作者
Lei Yu,Junyi Lu,Xianglong Liu,Yang Li,Fengjun Zhang,Jiajia Ma
标识
DOI:10.1109/issre59848.2023.00030
摘要

With the increasing security issues in the blockchain, smart contract vulnerability detection has gradually become the focus of research. Recently, many approaches have been proposed to detect smart contract vulnerabilities. Despite promising results, these approaches still have three drawbacks: 1) Symbolic execution and static analysis methods are constrained by predefined rules, which limits their adaptability to different vulnerabilities. 2) Most smart contract code contains abundant irrelevant information which is useless for vulnerability detection. 3) Pre-trained models fail to bridge the gap between pre-training and detecting smart contract vulnerabilities.To solve these problems, we propose an approach named PSCVFinder for detecting reentrancy vulnerability and times-tamp dependency vulnerability, which are two severe vulnerabilities in smart contract. To better detect these vulnerabilities, we propose CSCV which is a smart contract slicing method to reduce the irrelevant code. Unlike existing approaches, our model first learns the representation of programming language through the pre-training model, then fully exploits the capacity of large language model with prompt-tuning to precisely detect smart contract vulnerability. We conduct experiments on real-world dataset and the results reflect that PSCVFinder scores 93.83% and 93.49% on two kinds of vulnerabilities in F1-score, surpassing the state-of-the-art baseline by 1.14% and 4.02%, respectively.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
在水一方应助兴奋灵采纳,获得10
刚刚
miky完成签到 ,获得积分10
1秒前
lyk2815完成签到,获得积分10
2秒前
yuwan发布了新的文献求助10
3秒前
初景发布了新的文献求助10
3秒前
4秒前
木杉完成签到,获得积分10
4秒前
mannich发布了新的文献求助10
5秒前
5秒前
李健应助科研通管家采纳,获得10
7秒前
7秒前
orixero应助科研通管家采纳,获得10
7秒前
彭于晏应助科研通管家采纳,获得10
7秒前
Kin发布了新的文献求助50
7秒前
7秒前
科目三应助科研通管家采纳,获得10
7秒前
李爱国应助科研通管家采纳,获得10
7秒前
英俊的铭应助科研通管家采纳,获得10
8秒前
今后应助科研通管家采纳,获得10
8秒前
8秒前
可爱的函函应助科研通管家采纳,获得200
8秒前
8秒前
vv发布了新的文献求助10
8秒前
bkagyin应助科研通管家采纳,获得10
9秒前
FashionBoy应助科研通管家采纳,获得10
9秒前
从容冰绿完成签到 ,获得积分10
10秒前
2240920060发布了新的文献求助10
11秒前
11秒前
其醉完成签到,获得积分10
11秒前
LKC完成签到 ,获得积分10
12秒前
12秒前
yoqalux完成签到 ,获得积分10
12秒前
Hello应助mannich采纳,获得10
12秒前
你阿姐完成签到,获得积分10
12秒前
西子阳发布了新的文献求助10
13秒前
jetlee完成签到 ,获得积分10
14秒前
李漾漾完成签到,获得积分10
15秒前
15秒前
迅速荧发布了新的文献求助10
16秒前
Enemy完成签到,获得积分10
18秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Health Psychology 800
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
Electric machines: theory, operating applications, and controls 500
The Analytical and Numerical Solution of Electric and Magnetic Fields 500
When Is Two-Stage Sample Robust Optimization Asymptotically Optimal? 500
Discerning Saints: Moralization of Intrinsic Motivation and Selective Prosociality at Work 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7593030
求助须知:如何正确求助?哪些是违规求助? 9170261
关于积分的说明 19627864
捐赠科研通 7170885
什么是DOI,文献DOI怎么找? 3267554
关于科研通互助平台的介绍 2432418
邀请新用户注册赠送积分活动 2260128