ContractWard: Automated Vulnerability Detection Models for Ethereum Smart Contracts
Open accessThe DOI matches its Crossref record; 45 of the 45 references it cites were found in a registry or an index.
Abstract
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Breiman, L. (2001) · Machine Learning · doi:10.1023/a:1010933404324 · Cited by 133,538
XGBoost: A Scalable Tree Boosting System
Chen, T., & Guestrin, C. (2016) · Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining · doi:10.1145/2939672.2939785 · Cited by 54,569
SMOTE synthetic minority over-sampling technique
Chawla, N. V., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002) · Journal of Artificial Intelligence Research · doi:10.1613/jair.953 · Cited by 32,865
A decision-theoretic generalization of on-line learning and an application to boosting
Freund, Y., & Schapire, R. E. (1997) · Journal of Computer and System Sciences · doi:10.1006/jcss.1997.1504 · Cited by 20,466
Nearest neighbor pattern classification
Cover, T., & Hart, P. (1967) · IEEE Transactions on Information Theory · doi:10.1109/tit.1967.1053964 · Cited by 16,936 · cited 6×
“We employ three supervised ensemble classi-fication algorithms, namely, XGBoost, AdaBoost and RF, and two simple classification algorithms, namely, SVM and KNN, together with two sampling methods, namely, SMOTETomek and SMOTE to conduct comparative experiments.”
MethodInfluentialBitcoin: A Peer-to-Peer Electronic Cash System
Wright, C. S. (2008) · SSRN Electronic Journal · doi:10.2139/ssrn.3440802 · Cited by 13,922
Bitcoin: A Peer-to-Peer Electronic Cash System
Squarepants, S. (2008) · SSRN Electronic Journal · doi:10.2139/ssrn.3977007 · Cited by 11,148
Least Squares Support Vector Machine Classifiers
Suykens, J. A. K., & Vandewalle, J. (1999) · Neural Processing Letters · doi:10.1023/a:1018628609742 · Cited by 9,362
Friedman, J., Hastie, T., & Tibshirani, R. (2000) · The Annals of Statistics · doi:10.1214/aos/1016218223 · Cited by 6,884
(2013) · Cited by 5,372
Blockchains and smart contracts for the internet of things
Christidis, K., & Devetsikiotis, M. (2016) · IEEE Access · doi:10.1109/access.2016.2566339 · Cited by 4,552 · cited 1×
“They are widely applied in many fields like financial services [5], infrastructures [6], internet of things [7], health care [8] [9], and others [10] [11].”
BackgroundA study of the behavior of several methods for balancing machine learning training data
Batista, G. E. A. P. A., Prati, R. C., & Monard, M. C. (2004) · ACM SIGKDD Explorations Newsletter · doi:10.1145/1007730.1007735 · Cited by 4,203
Making Smart Contracts Smarter
Luu, L., Chu, D.-H., Olickel, H., Saxena, P., & Hobor, A. (2016) · Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/2976749.2978309 · Cited by 2,249
N-gram-based text categorization
Cavnar, W. B., & Trenkle, J. M. (1994) · Cited by 2,060
A Survey of Attacks on Ethereum Smart Contracts (SoK)
Atzei, N., Bartoletti, M., & Cimoli, T. (2017) · Lecture Notes in Computer Science · doi:10.1007/978-3-662-54455-6_8 · Cited by 1,553 · cited 2×
“Therefore, vulnerability detection [16] is indispensable before the contracts are released.”
BackgroundSecurify: Practical Security Analysis of Smart Contracts
Tsankov, P., Dan, A., Drachsler-Cohen, D., Gervais, A., Bünzli, F., & Vechev, M. (2018) · Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/3243734.3243780 · Cited by 1,043
A Survey of Blockchain Security Issues and Challenges
Lin, I., & Liao, T.-C. (2017) · International journal of network security · doi:10.6633/ijns.201709.19(5).01 · Cited by 999
ContractFuzzer: fuzzing smart contracts for vulnerability detection
Jiang, B., Liu, Y., & Chan, W. K. (2018) · Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering · doi:10.1145/3238147.3238177 · Cited by 820
Dannen, C. (2017) · Apress eBooks · doi:10.1007/978-1-4842-2535-6 · Cited by 710
ZEUS: Analyzing Safety of Smart Contracts
Kalra, S., Goel, S., Dhawan, M., & Sharma, S. (2018) · Proceedings 2018 Network and Distributed System Security Symposium · doi:10.14722/ndss.2018.23082 · Cited by 702
Finding The Greedy, Prodigal, and Suicidal Contracts at Scale
Nikolić, I., Kolluri, A., Sergey, I., Saxena, P., & Hobor, A. (2018) · Proceedings of the 34th Annual Computer Security Applications Conference · doi:10.1145/3274694.3274743 · Cited by 660
Formal Verification of Smart Contracts: Short Paper
Bhargavan, K., Delignat-Lavaud, A., Fournet, C., Gollamudi, A., Gonthier, G., Kobeissi, N., Kulatova, N., Rastogi, A., Sibut-Pinote, T., Swamy, N., et al. (2016) · Proceedings of the 2016 ACM Workshop on Programming Languages and Analysis for Security · doi:10.1145/2993600.2993611 · Cited by 626
Comparative analysis of blockchain consensus algorithms
Bach, L. M., Mihaljevic, B., & Zagar, M. (2018) · 2018 41st International Convention on Information and Communication Technology, Electronics and Microelectronics (MIPRO) · doi:10.23919/mipro.2018.8400278 · Cited by 584
Li, L., Liu, J., Cheng, L., Qiu, S., Wang, W., Zhang, X., & Zhang, Z. (2018) · IEEE Transactions on Intelligent Transportation Systems · doi:10.1109/tits.2017.2777990 · Cited by 571 · cited 1×
“They are widely applied in many fields like financial services [5], infrastructures [6], internet of things [7], health care [8] [9], and others [10] [11].”
BackgroundSelf-citationKEVM: A Complete Formal Semantics of the Ethereum Virtual Machine
Hildenbrandt, E., Saxena, M., Rodrigues, N., Zhu, X., Daian, P., Guth, D., Moore, B., Park, D., Zhang, Y., Stefanescu, A., et al. (2018) · 2018 IEEE 31st Computer Security Foundations Symposium (CSF) · doi:10.1109/csf.2018.00022 · Cited by 418
Privacy-friendly platform for healthcare data in cloud based on blockchain environment
Omar, A. A., Bhuiyan, M. Z. A., Basu, A., Kiyomoto, S., & Rahman, M. S. (2019) · Future Generation Computer Systems · doi:10.1016/j.future.2018.12.044 · Cited by 404 · cited 1×
“They are widely applied in many fields like financial services [5], infrastructures [6], internet of things [7], health care [8] [9], and others [10] [11].”
BackgroundExploring Permission-Induced Risk in Android Applications for Malicious Application Detection
Wang, W., Wang, X., Feng, D., Liu, J., Han, Z., & Zhang, X. (2014) · IEEE Transactions on Information Forensics and Security · doi:10.1109/tifs.2014.2353996 · Cited by 348
Self-citationWang, W., Zhao, M., & Wang, J. (2019) · Journal of Ambient Intelligence and Humanized Computing · doi:10.1007/s12652-018-0803-6 · Cited by 284
Self-citationDefining the Ethereum Virtual Machine for Interactive Theorem Provers
Hirai, Y. (2017) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-70278-0_33 · Cited by 279
Wang, W., Shang, Y., He, Y., Li, Y., & Liu, J. (2020) · Information Sciences · doi:10.1016/j.ins.2019.09.024 · Cited by 224
Self-citationDetecting Android malicious apps and categorizing benign apps with ensemble of classifiers
Wang, W., Li, Y., Wang, X., Liu, J., & Zhang, X. (2018) · Future Generation Computer Systems · doi:10.1016/j.future.2017.01.019 · Cited by 212
Self-citationA Semantic Framework for the Security Analysis of Ethereum Smart Contracts
Grishchenko, I., Maffei, M., & Schneidewind, C. (2018) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-89722-6_10 · Cited by 200
Bi, J., & Zhang, C. (2018) · Knowledge-Based Systems · doi:10.1016/j.knosys.2018.05.037 · Cited by 198
Privacy Risk Analysis and Mitigation of Analytics Libraries in the Android Ecosystem
Liu, X., Liu, J., Zhu, S., Wang, W., & Zhang, X. (2019) · IEEE Transactions on Mobile Computing · doi:10.1109/tmc.2019.2903186 · Cited by 168
Self-citationHow to Regulate Bitcoin? Decentralized Regulation for a Decentralized Cryptocurrency
Nabilou, H. (2019) · International Journal of Law and Information Technology · doi:10.1093/ijlit/eaz008 · Cited by 153
Scott, B. (2016) · Econstor (Econstor) · Cited by 136
Dannen, C. (2017) · Cited by 131
Constructing Features for Detecting Android Malicious Applications: Issues, Taxonomy and Directions
Wang, W., Zhao, M., Gao, Z., Xu, G., Xian, H., Li, Y., & Zhang, X. (2019) · IEEE Access · doi:10.1109/access.2019.2918139 · Cited by 115
Self-citationIdentifying intrusions in computer networks with principal component analysis
Wang, W., & Battiti, R. (2006) · International Conference on Availability, Reliability and Security (ARES) · doi:10.1109/ares.2006.73 · Cited by 104
Self-citationProcessing of massive audit data streams for real-time anomaly intrusion detection
Wang, W., Guan, X., & Zhang, X. (2007) · Computer Communications · doi:10.1016/j.comcom.2007.10.010 · Cited by 101
Self-citationWang, W., Guan, X., Zhang, X., & Yang, L. (2006) · Computers & Security · doi:10.1016/j.cose.2006.05.005 · Cited by 84
Self-citationCharacterizing Android apps’ behavior for effective detection of malapps at large scale
Wang, X., Wang, W., He, Y., Liu, J., Han, Z., & Zhang, X. (2017) · Future Generation Computer Systems · doi:10.1016/j.future.2017.04.041 · Cited by 79
Self-citationAccountable Cross-Border Data Sharing Using Blockchain Under Relaxed Trust Assumption
Rahman, M. S., Omar, A. A., Bhuiyan, M. Z. A., Basu, A., Kiyomoto, S., & Wang, G. (2020) · IEEE Transactions on Engineering Management · doi:10.1109/tem.2019.2960829 · Cited by 79
A Novel Intrusion Detection Method Based on Principle Component Analysis in Computer Security
Wang, W., Guan, X., & Zhang, X. (2004) · Lecture notes in computer science · doi:10.1007/978-3-540-28648-6_105 · Cited by 52
Self-citationAn Efficient Vulnerability Detection Model for Ethereum Smart Contracts
Song, J., He, H., Lv, Z., Su, C., Xu, G., & Wang, W. (2019) · Lecture notes in computer science · doi:10.1007/978-3-030-36938-5_26 · Cited by 26
Self-citation
Cited by
Systematic Review of Security Vulnerabilities in Ethereum Blockchain Smart Contract
Kushwaha, S. S., Joshi, S., Singh, D., Kaur, M., & Lee, H.-N. (2022) · IEEE Access · doi:10.1109/access.2021.3140091 · Cited by 350
Combining Graph Neural Networks with Expert Knowledge for Smart Contract Vulnerability Detection
Liu, Z., Qian, P., Wang, X., Zhuang, Y., Qiu, L., & Wang, X. (2021) · IEEE Transactions on Knowledge and Data Engineering · doi:10.1109/tkde.2021.3095196 · Cited by 259
A Novel IoV Block-Streaming Service Awareness and Trusted Verification Scheme in 6G
Wang, Y., Tian, Y., Hei, X., Zhu, L., & Ji, W. (2021) · IEEE Transactions on Vehicular Technology · doi:10.1109/tvt.2021.3063783 · Cited by 47
Metadata
- Authors
- Wang, W., Song, J., Xu, G., Li, Y., Wang, H., & Su, C.
- Venue
- IEEE Transactions on Network Science and Engineering
- Published
- 2021-04-01
- Volume
- 8
- Issue
- 2
- Pages
- 1133-1144
- ISSN
- 2327-4697 (ISSN-L)
- 2334-329X
- OpenAlex
- W3003036212
- Cited by
- 364
- References
- 45
- FWCI
- 35.10
- Type
- journal article
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.