Finding The Greedy, Prodigal, and Suicidal Contracts at Scale
Open accessThe DOI matches its Crossref record; 15 of the 15 references it cites were found in a registry or an index.
Abstract
Smart contracts---stateful executable objects hosted on blockchains like Ethereum---carry billions of dollars worth of coins and cannot be updated once deployed. We present a new systematic characterization of a class of trace vulnerabilities, which result from analyzing multiple invocations of a contract over its lifetime. We focus attention on three example properties of such trace vulnerabilities: finding contracts that either lock funds indefinitely, leak them carelessly to arbitrary users, or can be killed by anyone. We implemented Maian, the first tool for specifying and reasoning about trace properties, which employs interprocedural symbolic analysis and concrete validator for exhibiting real exploits. Our analysis of nearly one million contracts flags 34, 200 (2, 365 distinct) contracts vulnerable, in 10 seconds per contract. On a subset of 3, 759 contracts which we sampled for concrete validation and manual analysis, we reproduce real exploits at a true positive rate of 89%, yielding exploits for 3, 686 contracts. Our tool finds exploits for the infamous Parity bug that indirectly locked $200 million US worth in Ether, which previous analyses failed to capture.
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
de Moura, L., & Bjørner, N. (2008) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-78800-3_24 · Cited by 6,595 · cited 2×
“We use Z3 [9] as our solver, which provides concrete values so satisfy an input formula.”
MethodMaking 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
Self-citationA 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
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
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
Why3 — Where Programs Meet Provers
Filliâtre, J.-C., & Paskevich, A. (2013) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-37036-6_8 · Cited by 538
Step by Step Towards Creating a Safe Smart Contract: Lessons and Insights from a Cryptocurrency Lab
Delmolino, K., Arnett, M., Kosba, A., Miller, A., & Shi, E. (2016) · Lecture Notes in Computer Science · doi:10.1007/978-3-662-53357-4_6 · Cited by 505
Under-optimized smart contracts devour your money
Chen, T., Li, X., Luo, X., & Zhang, X. (2017) · 2017 IEEE 24th International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner.2017.7884650 · Cited by 394
Defining 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
Towards verifying ethereum smart contract bytecode in Isabelle/HOL
Amani, S., Bégel, M., Bortin, M., & Staples, M. (2018) · Proceedings of the 7th ACM SIGPLAN International Conference on Certified Programs and Proofs · doi:10.1145/3167084 · Cited by 232
Cited by
Casino, F., Dasaklis, T. K., & Patsakis, C. (2019) · Telematics and Informatics · doi:10.1016/j.tele.2018.11.006 · Cited by 2,557
An overview on smart contracts: Challenges, advances and platforms
Zheng, Z., Xie, S., Dai, H.-N., Chen, W., Chen, X., Weng, J., & Imran, M. (2020) · Future Generation Computer Systems · doi:10.1016/j.future.2019.12.019 · Cited by 1,197
Securify: 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
Slither: A Static Analysis Framework for Smart Contracts
Feist, J., Grieco, G., & Groce, A. (2019) · 2019 IEEE/ACM 2nd International Workshop on Emerging Trends in Software Engineering for Blockchain (WETSEB) · doi:10.1109/wetseb.2019.00008 · Cited by 872
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
Smart Contract Development: Challenges and Opportunities
Zou, W., Lo, D., Kochhar, P. S., Le, X.-B. D., Xia, X., Feng, Y., Chen, Z., & Xu, B. (2021) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2942301 · Cited by 727
Osiris: Hunting for Integer Bugs in Ethereum Smart Contracts
Torres, C. F., Schütte, J., & State, R. (2018) · Proceedings of the 34th Annual Computer Security Applications Conference · doi:10.1145/3274694.3274737 · Cited by 440
Survey on blockchain based smart contracts: Applications, opportunities and challenges
Hewa, T., Ylianttila, M., & Liyanage, M. (2021) · Journal of Network and Computer Applications · doi:10.1016/j.jnca.2020.102857 · Cited by 437
Empirical review of automated analysis tools on 47,587 Ethereum smart contracts
Durieux, T., Ferreira, J. F., Abreu, R., & Cruz, P. (2020) · Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering · doi:10.1145/3377811.3380364 · Cited by 409
“In a preliminary study performed on nearly one million Ethereum smart contracts, using one analysis framework for verifying correctness, 34,200 of them were flagged as vulnerable [32].”
MethodResultInfluentialSmart Contract Vulnerability Detection using Graph Neural Network
Zhuang, Y., Liu, Z., Qian, P., Liu, Q., Wang, X., & He, Q. (2020) · Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2020/454 · Cited by 405
ContractWard: Automated Vulnerability Detection Models for Ethereum Smart Contracts
Wang, W., Song, J., Xu, G., Li, Y., Wang, H., & Su, C. (2021) · IEEE Transactions on Network Science and Engineering · doi:10.1109/tnse.2020.2968505 · Cited by 364
Opportunities for Use of Blockchain Technology in Medicine
Radanović, I., & Likić, R. (2018) · Applied Health Economics and Health Policy · doi:10.1007/s40258-018-0412-8 · Cited by 348
MadMax: surviving out-of-gas conditions in Ethereum smart contracts
Grech, N., Kong, M., Jurisevic, A., Brent, L., Scholz, B., & Smaragdakis, Y. (2018) · Proceedings of the ACM on Programming Languages · doi:10.1145/3276486 · Cited by 347
Security, Performance, and Applications of Smart Contracts: A Systematic Survey
Rouhani, S., & Deters, R. (2019) · IEEE Access · doi:10.1109/access.2019.2911031 · Cited by 309
“[94] to detect greedy, prodigal, or suicidal behavior of Ethereum smart contracts based on a trace of vulnerabilities.”
BackgroundBlockchain smart contracts formalization: Approaches and challenges to address vulnerabilities
Singh, A., Parizi, R. M., Zhang, Q., Choo, K.-K. R., & Dehghantanha, A. (2020) · Computers & Security · doi:10.1016/j.cose.2019.101654 · Cited by 285
Emerging Trends in Blockchain Technology and Applications: A Review and Outlook
Gad, A. G., Mosa, D. T., Abualigah, L., & Abohany, A. A. (2022) · Journal of King Saud University - Computer and Information Sciences · doi:10.1016/j.jksuci.2022.03.007 · Cited by 283
sFuzz: an efficient adaptive fuzzer for solidity smart contracts
Nguyen, T. D., Pham, L. H., Sun, J., Lin, Y., & Minh, Q. T. (2020) · Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering · doi:10.1145/3377811.3380334 · Cited by 275
Learning to Fuzz from Symbolic Execution with Application to Smart Contracts
He, J., Balunović, M., Ambroladze, N., Tsankov, P., & Vechev, M. (2019) · Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/3319535.3363230 · Cited by 269
Smart contracts on the blockchain – A bibliometric analysis and review
Ante, L. (2021) · Telematics and Informatics · doi:10.1016/j.tele.2020.101519 · Cited by 267
A Survey on Security Verification of Blockchain Smart Contracts
Liu, J., & Liu, Z. (2019) · IEEE Access · doi:10.1109/access.2019.2921624 · Cited by 261
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
Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks
Rodler, M., Li, W., Karame, G. O., & Davi, L. (2019) · Proceedings 2019 Network and Distributed System Security Symposium · doi:10.14722/ndss.2019.23413 · Cited by 259
Attacking the DeFi Ecosystem with Flash Loans for Fun and Profit
Qin, K., Zhou, L., Livshits, B., & Gervais, A. (2021) · Lecture Notes in Computer Science · doi:10.1007/978-3-662-64322-8_1 · Cited by 255
Towards Automated Reentrancy Detection for Smart Contracts Based on Sequential Models
Qian, P., Liu, Z., He, Q., Zimmermann, R., & Wang, X. (2020) · IEEE Access · doi:10.1109/access.2020.2969429 · Cited by 227
“Maian [35] is also a tool to analyze contracts but instead of using static analysis to find bugs in the contract, it tries to capture vulnerabilities across long sequences of invocations of a contract.”
MethodSMARTIAN: Enhancing Smart Contract Fuzzing with Static and Dynamic Data-Flow Analyses
Choi, J., Kim, D., Kim, S., Grieco, G., Groce, A., & Cha, S. K. (2021) · 2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase51524.2021.9678888 · Cited by 192
“Ether Leak A contract allows an arbitrary user to freely retrieve ether from the contract [54].”
BackgroundInfluentialSurvey on Blockchain-Based Smart Contracts: Technical Aspects and Future Research
Hewa, T. M., Hu, Y., Liyanage, M., Kanhare, S. S., & Ylianttila, M. (2021) · IEEE Access · doi:10.1109/access.2021.3068178 · Cited by 189
“[93] implemented MAIAN, which employs an inter-procedural symbolic analysis and concrete validator to identify real exploits.”
MethodSmartBugs: a framework to analyze solidity smart contracts
Ferreira, J. F., Cruz, P., Durieux, T., & Abreu, R. (2020) · Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3324884.3415298 · Cited by 161
“In a preliminary study performed on nearly one million Ethereum smart contracts, using one analysis framework for verifying correctness, 34,200 of them were flagged as vulnerable [6].”
MethodRealizing the potential of blockchain technologies in genomics
Ozercan, H. I., Ileri, A. M., Ayday, E., & Alkan, C. (2018) · Genome Research · doi:10.1101/gr.207464.116 · Cited by 143
“Additionally, software bugs and hack attempts are still preventing developers from building upon Ethereum (Nikolic et al. 2018).”
BackgroundSecurity Challenges and Opportunities for Smart Contracts in Internet of Things: A Survey
Peng, K., Li, M., Huang, H., Wang, C., Wan, S., & Choo, K.-K. R. (2021) · IEEE Internet of Things Journal · doi:10.1109/jiot.2021.3074544 · Cited by 130
Regulating blockchain, dlt and smart contracts: a technology regulator's perspective
Ellul, J., Galea, J., Ganado, M., Mccarthy, S., & Pace, G. J. (2020) · ERA Forum · doi:10.1007/s12027-020-00617-7 · Cited by 70
DepFuzz: Efficient Smart Contract Fuzzing with Function Dependence Guidance
Ma, C., Song, W., & Huang, J. (2025) · Proceedings of the ACM on Programming Languages · doi:10.1145/3763185 · Cited by 4
Metadata
- Authors
- Nikolić, I., Kolluri, A., Sergey, I., Saxena, P., & Hobor, A.
- Venue
- Proceedings of the 34th Annual Computer Security Applications Conference
- Publisher
- ACM
- Published
- 2018-12-03
- Pages
- 653-663
- ISSN
- 1063-9527 (ISSN-L)
- OpenAlex
- W2787648539
- Cited by
- 660
- References
- 15
- FWCI
- 60.99
- Type
- conference paper
- 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.