Smart contracts are the building blocks of blockchain systems that enable automated peer-to-peer transactions and decentralized services.Smart contracts certainly provide a powerful functional surplus for maintaining ...Smart contracts are the building blocks of blockchain systems that enable automated peer-to-peer transactions and decentralized services.Smart contracts certainly provide a powerful functional surplus for maintaining the consistency of transactions in applications governed by blockchain technology.Smart contracts have become lucrative and profitable targets for attackers because they can hold a large amount of money.Formal verification and symbolic analysis have been employed to combat these destructive scams by analysing the codes and function calls,yet each scam's vulnerability should be discreetly predefined.In this work,we introduce ADEFGuard,a new anomaly detection framework based on the behaviour of smart contracts,as a new feature.We design a learning and monitoring module to determine fraudulent smart contract behaviours.Our framework is advantageous over basic algorithms in three aspects.First,ADEFGuard provides a unified solution to different genres of scams,relieving the need for code analysis skills.Second,ADEFGuard's inference is orders of magnitude faster than code analysis.Third,the experimental results show that ADEFGuard achieves high accuracy(85%),precision(75%),and recall(90%)for malicious contracts and is potentially useful in detecting new malicious behaviours of smart contracts.展开更多
文摘Smart contracts are the building blocks of blockchain systems that enable automated peer-to-peer transactions and decentralized services.Smart contracts certainly provide a powerful functional surplus for maintaining the consistency of transactions in applications governed by blockchain technology.Smart contracts have become lucrative and profitable targets for attackers because they can hold a large amount of money.Formal verification and symbolic analysis have been employed to combat these destructive scams by analysing the codes and function calls,yet each scam's vulnerability should be discreetly predefined.In this work,we introduce ADEFGuard,a new anomaly detection framework based on the behaviour of smart contracts,as a new feature.We design a learning and monitoring module to determine fraudulent smart contract behaviours.Our framework is advantageous over basic algorithms in three aspects.First,ADEFGuard provides a unified solution to different genres of scams,relieving the need for code analysis skills.Second,ADEFGuard's inference is orders of magnitude faster than code analysis.Third,the experimental results show that ADEFGuard achieves high accuracy(85%),precision(75%),and recall(90%)for malicious contracts and is potentially useful in detecting new malicious behaviours of smart contracts.