A Semantic Framework for the Security Analysis of Ethereum Smart Contracts
Open accessThe DOI matches its Crossref record; 14 of the 14 references it cites were found in a registry or an index.
Abstract
Smart contracts are programs running on cryptocurrency (e.g., Ethereum) blockchains, whose popularity stem from the possibility to perform financial transactions, such as payments and auctions, in a distributed environment without need for any trusted third party. Given their financial nature, bugs or vulnerabilities in these programs may lead to catastrophic consequences, as witnessed by recent attacks. Unfortunately, programming smart contracts is a delicate task that requires strong expertise: Ethereum smart contracts are written in Solidity, a dedicated language resembling JavaScript, and shipped over the blockchain in the EVM bytecode format. In order to rigorously verify the security of smart contracts, it is of paramount importance to formalize their semantics as well as the security properties of interest, in particular at the level of the bytecode being executed. In this paper, we present the first complete small-step semantics of EVM bytecode, which we formalize in the F* proof assistant, obtaining executable code that we successfully validate against the official Ethereum test suite. Furthermore, we formally define for the first time a number of central security properties for smart contracts, such as call integrity, atomicity, and independence from miner controlled parameters. This formalization relies on a combination of hyper- and safety properties. Along this work, we identified various mistakes and imprecisions in existing semantics and verification tools for Ethereum smart contracts, thereby demonstrating once more the importance of rigorous semantic foundations for the design of security verification techniques.
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
MedRec: Using Blockchain for Medical Data Access and Permission Management
Azaria, A., Ekblaw, A., Vieira, T., & Lippman, A. (2016) · 2016 2nd International Conference on Open and Big Data (OBD) · doi:10.1109/obd.2016.11 · Cited by 2,526 · cited 1×
“Ethereum programs, called smart contracts, have thus found a variety of appealing use cases, such as financial contracts [2], auctions [3], elections [4], data management systems [5], trading platforms [6,7], permission management [8] and verifiable cloud computing [9], just to mention a few.”
BackgroundMaking 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 · cited 24×
“This bug is in the literature classified as reentrancy bug [13,21] as the affected contract was drained out of money by subsequently reentering it and performing transactions to the attacker on behalf of the contract.”
BackgroundMethodInfluentialA 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 9×
“This bug is in the literature classified as reentrancy bug [13,21] as the affected contract was drained out of money by subsequently reentering it and performing transactions to the attacker on behalf of the contract.”
BackgroundMethodInfluentialFormal 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 · cited 2×
“– The first complete small-step semantics for EVM bytecode; – A formalization in F* of a large fragment of our semantics, which can serve as a foundation for verification techniques based on encoding into this language [20] as well as machine-checked proofs for other analysis techniques (e.”
MethodA Smart Contract for Boardroom Voting with Maximum Voter Privacy
McCorry, P., Shahandashti, S. F., & Hao, F. (2017) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-70972-7_20 · Cited by 506 · cited 1×
“Ethereum programs, called smart contracts, have thus found a variety of appealing use cases, such as financial contracts [2], auctions [3], elections [4], data management systems [5], trading platforms [6,7], permission management [8] and verifiable cloud computing [9], just to mention a few.”
BackgroundDefining 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 · cited 1×
“In order to provide a more precise characterization, Hirai formalizes the EVM semantics in the proof assistant Isabelle/HOL and uses it for manually proving safety properties for concrete programs [15].”
MethodDesigning Secure Ethereum Smart Contracts: A Finite State Machine Based Approach
Mavridou, A., & Laszka, A. (2018) · Lecture Notes in Computer Science · doi:10.1007/978-3-662-58387-6_28 · Cited by 214
Hammer, C., & Snelting, G. (2009) · International Journal of Information Security · doi:10.1007/s10207-009-0086-1 · Cited by 207 · cited 1×
“Both these independence properties can be overapproximated by static analysis techniques based on program dependence graphs [26], as done by Joana to verify non-interference in Java [27].”
MethodDong, C., Wang, Y., Aldweesh, A., McCorry, P., & van Moorsel, A. (2017) · Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/3133956.3134032 · Cited by 170 · cited 1×
“Ethereum programs, called smart contracts, have thus found a variety of appealing use cases, such as financial contracts [2], auctions [3], elections [4], data management systems [5], trading platforms [6,7], permission management [8] and verifiable cloud computing [9], just to mention a few.”
BackgroundSmart contract-based campus demonstration of decentralized transactive energy auctions
Hahn, A., Singh, R., Liu, C.-C., & Chen, S. (2017) · 2017 IEEE Power & Energy Society Innovative Smart Grid Technologies Conference (ISGT) · doi:10.1109/isgt.2017.8086092 · Cited by 162 · cited 1×
“Ethereum programs, called smart contracts, have thus found a variety of appealing use cases, such as financial contracts [2], auctions [3], elections [4], data management systems [5], trading platforms [6,7], permission management [8] and verifiable cloud computing [9], just to mention a few.”
BackgroundA Concurrent Perspective on Smart Contracts
Sergey, I., & Hobor, A. (2017) · Lecture notes in computer science · doi:10.1007/978-3-319-70278-0_30 · Cited by 106
Findel: Secure Derivative Contracts for Ethereum
Biryukov, A., Khovratovich, D., & Tikhomirov, S. (2017) · Lecture notes in computer science · doi:10.1007/978-3-319-70278-0_28 · Cited by 86 · cited 1×
“Ethereum programs, called smart contracts, have thus found a variety of appealing use cases, such as financial contracts [2], auctions [3], elections [4], data management systems [5], trading platforms [6,7], permission management [8] and verifiable cloud computing [9], just to mention a few.”
BackgroundSemantics-based program verifiers for all languages
Stefanescu, A. R., Park, D., Yuwen, S., Li, Y., & Roşu, G. (2016) · ACM SIGPLAN Notices · doi:10.1145/3022671.2984027 · Cited by 23
Trading Stocks on Blocks - Engineering Decentralized Markets
Notheisen, B., Gödde, M., & Weinhardt, C. (2017) · Lecture notes in computer science · doi:10.1007/978-3-319-59144-5_34 · Cited by 16 · cited 1×
“Ethereum programs, called smart contracts, have thus found a variety of appealing use cases, such as financial contracts [2], auctions [3], elections [4], data management systems [5], trading platforms [6,7], permission management [8] and verifiable cloud computing [9], just to mention a few.”
Background
Cited by
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
Using Blockchain for Electronic Health Records
Shahnaz, A., Qamar, U., & Khalid, A. (2019) · IEEE Access · doi:10.1109/access.2019.2946373 · Cited by 590
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
KEVM: 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
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
Metadata
- Authors
- Grishchenko, I., Maffei, M., & Schneidewind, C.
- Venue
- Lecture Notes in Computer Science
- Publisher
- Springer International Publishing
- Published
- 2018
- Pages
- 243-269
- ISSN
- 0302-9743 (ISSN-L)
- 1611-3349
- OpenAlex
- W2788841915
- Cited by
- 200
- References
- 14
- FWCI
- 10.92
- Type
- conference paper
- Language
- en
- Open access
- hybrid
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.