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

ESCORT:使用深度神经网络和迁移学习的以太坊智能COntRacTs漏洞检测

ESCORT: Ethereum Smart COntRacTs Vulnerability Detection using Deep Neural Network and Transfer Learning

University of Würzburg(维尔茨堡大学);University of California, San-Diego(加利福尼亚大学圣地亚哥分校);Technical University of Darmstadt(达姆施塔特工业大学);University of California, San Diego(加利福尼亚大学圣地亚哥分校)

Oliver Lutz, Huili Chen, Hossein Fereidooni, Christoph Sendner, Alexandra Dmitrienko, Ahmad Reza Sadeghi, Farinaz Koushanfar

摘要:

以太坊智能合约是区块链上的自动化去中心化应用程序,描述了买卖双方之间的协议条款,减少了对可信中介和仲裁的需求。然而,智能合约的部署为加密货币系统引入了新的攻击向量。特别是,智能合约中的编程缺陷可以并且已经被利用来获得巨大的经济利润。因此,以有效的方式检测合同中不同类别的漏洞是一个新出现的关键问题。现有的基于机器学习的漏洞检测方法是有限的,并且仅检查智能合约是否易受攻击,或者针对每个特定漏洞训练单独的分类器,或者在没有可扩展性考虑的情况下演示多类漏洞检测。为了克服现有工作的可扩展性和通用性限制,我们提出了ESCORT,这是第一个基于深度神经网络(DNN)的以太坊智能合约漏洞检测框架,支持对看不见的安全漏洞进行轻量级迁移学习,因此具有可扩展性和通用性。ESCORT利用多输出NN架构,该架构由两部分组成:(i)学习输入合同语义的公共特征提取器;(ii)多个分支结构,其中每个分支基于从特征提取器获得的特征学习特定的漏洞类型。实验结果表明,ESCORT在六种漏洞类型上的平均F1分数为95%,每个合同的检测时间为0.02秒。当扩展到新的漏洞类型时,ESCORT产生的平均F1分数为93%。据我们所知,ESCORT是第一个能够在DNN模型架构和重新训练开销最小的情况下对新漏洞类型进行迁移学习的框架。

英文摘要:

Ethereum smart contracts are automated decentralized applications on the blockchain that describe the terms of the agreement between buyers and sellers, reducing the need for trusted intermediaries and arbitration. However, the deployment of smart contracts introduces new attack vectors into the cryptocurrency systems. In particular, programming flaws in smart contracts can be and have already been exploited to gain enormous financial profits. It is thus an emerging yet crucial issue to detect vulnerabilities of different classes in contracts in an efficient manner. Existing machine learning-based vulnerability detection methods are limited and only inspect whether the smart contract is vulnerable, or train individual classifiers for each specific vulnerability, or demonstrate multi-class vulnerability detection without extensibility consideration. To overcome the scalability and generalization limitations of existing works, we propose ESCORT, the first Deep Neural Network (DNN)-based vulnerability detection framework for Ethereum smart contracts that support lightweight transfer learning on unseen security vulnerabilities, thus is extensible and generalizable. ESCORT leverages a multi-output NN architecture that consists of two parts: (i) A common feature extractor that learns the semantics of the input contract; (ii) Multiple branch structures where each branch learns a specific vulnerability type based on features obtained from the feature extractor. Experimental results show that ESCORT achieves an average F1-score of 95% on six vulnerability types and the detection time is 0.02 seconds per contract. When extended to new vulnerability types, ESCORT yields an average F1-score of 93%. To the best of our knowledge, ESCORT is the first framework that enables transfer learning on new vulnerability types with minimal modification of the DNN model architecture and re-training overhead.

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

↑