首页> 外文期刊>Network Science and Engineering, IEEE Transactions on >ContractWard: Automated Vulnerability Detection Models for Ethereum Smart Contracts
【24h】

ContractWard: Automated Vulnerability Detection Models for Ethereum Smart Contracts

机译:承包:以外智能合约的自动漏洞检测模型

获取原文
获取原文并翻译 | 示例
           

摘要

Smart contracts are decentralized applications running on Blockchain. A very large number of smart contracts has been deployed on Ethereum. Meanwhile, security flaws of contracts have led to huge pecuniary losses and destroyed the ecological stability of contract layer on Blockchain. It is thus an emerging yet crucial issue to effectively and efficiently detect vulnerabilities in contracts. Existing detection methods like Oyente and Securify are mainly based on symbolic execution or analysis. These methods are very time-consuming, as the symbolic execution requires the exploration of all executable paths or the analysis of dependency graphs in a contract. In this work, we propose ContractWard to detect vulnerabilities in smart contracts with machine learning techniques. First, we extract bigram features from simplified operation codes of smart contracts. Second, we employ five machine learning algorithms and two sampling algorithms to build the models. ContractWard is evaluated with 49502 real-world smart contracts running on Ethereum. The experimental results demonstrate the effectiveness and efficiency of ContractWard. The predictive Micro-F1 and Macro-F1 of ContractWard are over 96% and the average detection time is 4 seconds on each smart contract when we use XGBoost for training the models and SMOTETomek for balancing the training sets.
机译:智能合同是在区块链上运行的分散应用程序。在以外人身上部署了一个非常大量的智能合同。与此同时,合同的安全缺陷导致了巨大的金钱损失,并在区块链上摧毁了合同层的生态稳定性。因此,它是有效和有效地检测合同中漏洞的新兴的问题。 oyente和securify等现有的检测方法主要基于符号执行或分析。这些方法非常耗时,因为符号执行需要探索所有可执行路径或在合同中分析依赖图。在这项工作中,我们建议承包,以检测智能合同的漏洞,通过机器学习技术。首先,我们从简化的智能合约的操作代码中提取Bigram功能。其次,我们采用五种机器学习算法和两个采样算法来构建模型。契约是用在以外人的49502个现实世界智能合同评估。实验结果表明了承包的有效性和效率。收缩的预测微型F1和宏F1超过96%,当我们使用XGBoost培训模型和Smotetomek进行平衡时,每个智能合同的平均检测时间为4秒钟。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号