arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.08824cs.CRcs.LG
收藏

智能合约的自动漏洞检测框架

An Automated Vulnerability Detection Framework for Smart Contracts

The University of Texas at Dallas(德克萨斯大学达拉斯分校)

Feng Mi, Chen Zhao, Zhuoyi Wang, Sadaf MD Halim, Xiaodi Li, Zhouxiang Wu, Latifur Khan, Bhavani Thuraisingham

摘要:

随着区块链技术在为各种问题提供去中心化解决方案方面的应用越来越多,智能合约变得越来越受欢迎,目前每天通过这种技术交换数十亿美元。与此同时,智能合约中的各种漏洞被攻击者利用,窃取了价值数百万美元的加密货币。因此,智能合约漏洞的自动检测是一个重要的研究问题。这个问题的现有解决方案特别依赖于人类专家来定义特征或不同的规则来检测漏洞。然而,这往往会导致许多漏洞被忽略,并且它们在检测新漏洞时效率低下。在这项研究中,为了克服这些挑战,我们提出了一个框架来自动检测区块链上智能合约中的漏洞。更具体地说,首先,我们从智能合约的字节码中利用新的特征向量生成技术,因为智能合约的源代码很少公开。接下来,将收集到的向量输入到我们新的基于度量学习的深度神经网络(DNN)中,以获得检测结果。我们在大规模的基准测试上进行了全面的实验,定量的结果证明了我们的方法的有效性和效率。

英文摘要:

With the increase of the adoption of blockchain technology in providing decentralized solutions to various problems, smart contracts have become more popular to the point that billions of US Dollars are currently exchanged every day through such technology. Meanwhile, various vulnerabilities in smart contracts have been exploited by attackers to steal cryptocurrencies worth millions of dollars. The automatic detection of smart contract vulnerabilities therefore is an essential research problem. Existing solutions to this problem particularly rely on human experts to define features or different rules to detect vulnerabilities. However, this often causes many vulnerabilities to be ignored, and they are inefficient in detecting new vulnerabilities. In this study, to overcome such challenges, we propose a framework to automatically detect vulnerabilities in smart contracts on the blockchain. More specifically, first, we utilize novel feature vector generation techniques from bytecode of smart contract since the source code of smart contracts are rarely available in public. Next, the collected vectors are fed into our novel metric learning-based deep neural network(DNN) to get the detection result. We conduct comprehensive experiments on large-scale benchmarks, and the quantitative results demonstrate the effectiveness and efficiency of our approach.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑