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

基于漏洞和交易行为的恶意智能合约检测

Vulnerability and Transaction behavior based detection of Malicious Smart Contracts

IIT Kanpur(印度理工学院坎普尔分校)

Rachit Agarwal, Tanmay Thapliyal, Sandeep Kumar Shukla

摘要:

以太坊中的智能合约(SC)可以自动执行任务,并为用户提供不同的功能。这种自动化是由编写SC的程序设计语言(Solidity)的“图灵完备”性质实现的。这也在SC中打开了不同的漏洞和错误,恶意行为者利用这些漏洞在加密货币平台上进行恶意或非法活动。在这项工作中,我们研究了恶意活动和SC中存在的漏洞之间的相关性,并发现一些恶意活动与某些类型的漏洞相关。然后,我们开发和研究的可行性的评分机制,对应的严重性存在于SC的漏洞,以确定它是否是一个相关的功能,以确定可疑的SC。我们分析了效用的严重性分数对检测可疑SC使用无监督机器学习(ML)算法在不同的时间粒度和识别行为的变化。在我们对链上SC的实验中,我们能够在不同粒度上找到总共1094个良性SC,它们的行为与恶意SC相似,并在功能集中包含智能合约漏洞评分。

英文摘要:

Smart Contracts (SCs) in Ethereum can automate tasks and provide different functionalities to a user. Such automation is enabled by the `Turing-complete' nature of the programming language (Solidity) in which SCs are written. This also opens up different vulnerabilities and bugs in SCs that malicious actors exploit to carry out malicious or illegal activities on the cryptocurrency platform. In this work, we study the correlation between malicious activities and the vulnerabilities present in SCs and find that some malicious activities are correlated with certain types of vulnerabilities. We then develop and study the feasibility of a scoring mechanism that corresponds to the severity of the vulnerabilities present in SCs to determine if it is a relevant feature to identify suspicious SCs. We analyze the utility of severity score towards detection of suspicious SCs using unsupervised machine learning (ML) algorithms across different temporal granularities and identify behavioral changes. In our experiments with on-chain SCs, we were able to find a total of 1094 benign SCs across different granularities which behave similar to malicious SCs, with the inclusion of the smart contract vulnerability scores in the feature set.

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

↑