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

When ChatGPT Meets Smart Contract Vulnerability Detection: How Far Are We?

计算机科学 脆弱性(计算) 计算机安全 智能合约 风险分析(工程) 业务 块链
作者
Chong Chen,Jianzhong Su,Jiachi Chen,Yanlin Wang,Tingting Bi,Jianxing Yu,Y. F. Wang,Xingwei Lin,Ting Chen,Zibin Zheng
出处
期刊:ACM Transactions on Software Engineering and Methodology [Association for Computing Machinery]
卷期号:34 (4): 1-30 被引量:43
标识
DOI:10.1145/3702973
摘要

With the development of blockchain technology, smart contracts have become an important component of blockchain applications. Despite their crucial role, the development of smart contracts may introduce vulnerabilities and potentially lead to severe consequences, such as financial losses. Meanwhile, large language models, represented by ChatGPT, have gained great attention, showcasing great capabilities in code analysis tasks. In this article, we presented an empirical study to investigate the performance of ChatGPT in identifying smart contract vulnerabilities. Initially, we evaluated ChatGPT’s effectiveness using a publicly available smart contract dataset. Our findings discover that while ChatGPT achieves a high recall rate, its precision in pinpointing smart contract vulnerabilities is limited. Furthermore, ChatGPT’s performance varies when detecting different vulnerability types. We delved into the root causes for the false positives generated by ChatGPT, and categorized them into four groups. Second, by comparing ChatGPT with other state-of-the-art smart contract vulnerability detection tools, we found that ChatGPT’s F-score is lower than others for 3 out of the 7 vulnerabilities. In the case of the remaining 4 vulnerabilities, ChatGPT exhibits a slight advantage over these tools. Finally, we analyzed the limitation of ChatGPT in smart contract vulnerability detection, revealing that the robustness of ChatGPT in this field needs to be improved from two aspects: its uncertainty in answering questions; and the limited length of the detected code. In general, our research provides insights into the strengths and weaknesses of employing large language models, specifically ChatGPT, for the detection of smart contract vulnerabilities.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
FashionBoy应助缥缈采纳,获得10
6秒前
搜集达人应助mia采纳,获得10
12秒前
研友_nxw2xL完成签到,获得积分10
19秒前
21秒前
嗯哼哈哈发布了新的文献求助10
21秒前
31秒前
愉快靖易完成签到,获得积分10
31秒前
愉快靖易发布了新的文献求助10
35秒前
NexusExplorer应助比格大王采纳,获得10
50秒前
51秒前
51秒前
Vv发布了新的文献求助10
56秒前
科研通AI6.4应助Vv采纳,获得10
1分钟前
1分钟前
1分钟前
李忆梦完成签到 ,获得积分10
1分钟前
1分钟前
儒雅南风发布了新的文献求助10
1分钟前
蔺剑愁完成签到,获得积分10
1分钟前
1分钟前
比格大王发布了新的文献求助10
1分钟前
2分钟前
YY发布了新的文献求助10
2分钟前
NattyPoe发布了新的文献求助10
2分钟前
2分钟前
Lan完成签到 ,获得积分10
2分钟前
2分钟前
NattyPoe完成签到,获得积分10
2分钟前
2分钟前
戏谑发布了新的文献求助10
2分钟前
YY完成签到,获得积分10
2分钟前
情怀应助戏谑采纳,获得10
2分钟前
二中所长完成签到,获得积分10
2分钟前
3分钟前
Copyright应助科研通管家采纳,获得10
3分钟前
科研通AI2S应助薀九采纳,获得10
3分钟前
3分钟前
3分钟前
薀九发布了新的文献求助10
3分钟前
camille完成签到,获得积分10
4分钟前
高分求助中
Principles of Economics, 11th Edition 10000
University Physics with Modern Physics, 16th edition 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Molecular Mechanisms of Photosynthesis, 4th Edition 1000
Organic Reactions, Volume 116 1000
Current concepts in cutaneous toxicity : proceedings of the Fourth Conference on Cutaneous Toxicity, Washington, D.C., May 9-11, 1979 1000
The recovery-stress questionnaires : user manual 800
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7257570
求助须知:如何正确求助?哪些是违规求助? 8879486
关于积分的说明 18757195
捐赠科研通 6937976
什么是DOI,文献DOI怎么找? 3201095
关于科研通互助平台的介绍 2375215
邀请新用户注册赠送积分活动 2176943