Lune

OOPSLA2020Top-tier venue

Precise static modeling of Ethereum "memory"

Sifis Lagouvardos, Neville Grech, Ilias Tsatiris, Yannis Smaragdakis

Abstract

Static analysis of smart contracts as-deployed on the Ethereum blockchain has received much recent attention. However, high-precision analyses currently face significant challenges when dealing with the Ethereum VM (EVM) execution model. A major such challenge is the modeling of low-level, transient “memory” (as opposed to persistent, on-blockchain “storage”) that smart contracts employ. Statically understanding the usage patterns of memory is non-trivial, due to the dynamic allocation nature of in-memory buffers. We offer an analysis that models EVM memory, recovering high-level concepts (e.g., arrays, buffers, call arguments) via deep modeling of the flow of values. Our analysis opens the door to Ethereum static analyses with drastically increased precision. One such analysis detects the extraction of ERC20 tokens by unauthorized users. For another practical vulnerability (redundant calls, possibly used as an attack vector), our memory modeling yields analysis precision of 89%, compared to 16% for a state-of-the-art tool without precise memory modeling. Additionally, precise memory modeling enables the static computation of a contract’s gas cost. This gas-cost analysis has recently been instrumental in the evaluation of the impact of the EIP-1884 repricing (in terms of gas costs) of EVM operations, leading to a reward and significant publicity from the Ethereum Foundation.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts cites Making Smart Contracts Smarter
  • Elipmoc: advanced decompilation of Ethereum smart contracts cites Symbolic value-flow static analysis: deep, precise, complete modeling of Ethereum smart contracts
  • Elipmoc: advanced decompilation of Ethereum smart contracts cites Securify: Practical Security Analysis of Smart Contracts
  • Learning to Fuzz from Symbolic Execution with Application to Smart Contracts cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
  • Learning to Fuzz from Symbolic Execution with Application to Smart Contracts cites VerX: Safety Verification of Smart Contracts
  • Learning to Fuzz from Symbolic Execution with Application to Smart Contracts cites Making Smart Contracts Smarter
  • Learning to Fuzz from Symbolic Execution with Application to Smart Contracts cites Securify: Practical Security Analysis of Smart Contracts
  • Symbolic value-flow static analysis: deep, precise, complete modeling of Ethereum smart contracts cites VerX: Safety Verification of Smart Contracts
  • Symbolic value-flow static analysis: deep, precise, complete modeling of Ethereum smart contracts cites Making Smart Contracts Smarter
  • Symbolic value-flow static analysis: deep, precise, complete modeling of Ethereum smart contracts cites Learning to Fuzz from Symbolic Execution with Application to Smart Contracts
  • Symbolic value-flow static analysis: deep, precise, complete modeling of Ethereum smart contracts cites Securify: Practical Security Analysis of Smart Contracts
  • Practical Verification of Smart Contracts using Memory Splitting cites Elipmoc: advanced decompilation of Ethereum smart contracts
  • Practical Verification of Smart Contracts using Memory Splitting cites VerX: Safety Verification of Smart Contracts
  • Practical Verification of Smart Contracts using Memory Splitting cites Making Smart Contracts Smarter
  • Practical Verification of Smart Contracts using Memory Splitting cites Symbolic value-flow static analysis: deep, precise, complete modeling of Ethereum smart contracts
  • Practical Verification of Smart Contracts using Memory Splitting cites Securify: Practical Security Analysis of Smart Contracts
  • WASAI: uncovering vulnerabilities in Wasm smart contracts cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
  • WASAI: uncovering vulnerabilities in Wasm smart contracts cites Making Smart Contracts Smarter
  • WASAI: uncovering vulnerabilities in Wasm smart contracts cites Learning to Fuzz from Symbolic Execution with Application to Smart Contracts
  • eTainter: detecting gas-related vulnerabilities in smart contracts cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
  • eTainter: detecting gas-related vulnerabilities in smart contracts cites Making Smart Contracts Smarter
  • eTainter: detecting gas-related vulnerabilities in smart contracts cites Symbolic value-flow static analysis: deep, precise, complete modeling of Ethereum smart contracts
  • eTainter: detecting gas-related vulnerabilities in smart contracts cites Securify: Practical Security Analysis of Smart Contracts
  • Securify: Practical Security Analysis of Smart Contracts cites Making Smart Contracts Smarter
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. eTainter: detecting gas-related vulnerabilities in smart contractsAsem Ghaleb, Julia Rubin, Karthik PattabiramanISSTA 2022 · 57 citations
  2. WASAI: uncovering vulnerabilities in Wasm smart contractsWeimin Chen, Zihan Sun, Haoyu Wang, Xiapu Luo et al.ISSTA 2022 · 43 citations
  3. Elipmoc: advanced decompilation of Ethereum smart contractsNeville Grech, Sifis Lagouvardos, Ilias Tsatiris, Yannis SmaragdakisOOPSLA 2022 · 40 citations
  4. Symbolic value-flow static analysis: deep, precise, complete modeling of Ethereum smart contractsYannis Smaragdakis, Neville Grech, Sifis Lagouvardos, Konstantinos Triantafyllou et al.OOPSLA 2021 · 18 citations
  5. Practical Verification of Smart Contracts using Memory SplittingShelly Grossman, John Toman, Alexander Bakst, Sameer Arora et al.OOPSLA 2024 · 7 citations

Builds on6

  1. Making Smart Contracts SmarterLoi Luu, Duc-Hiep Chu, Hrishi Olickel, Prateek Saxena et al.CCS 2016 · 2,306 citations
  2. Securify: Practical Security Analysis of Smart ContractsPetar Tsankov, Andrei Marian Dan, Dana Drachsler-Cohen, Arthur Gervais et al.CCS 2018 · 1,108 citations
  3. teEther: Gnawing at Ethereum to Automatically Exploit Smart ContractsJohannes Krupp, Christian RossowUSENIX Security 2018 · 345 citations
  4. Learning to Fuzz from Symbolic Execution with Application to Smart ContractsJingxuan He, Mislav Balunovic, Nodar Ambroladze, Petar Tsankov et al.CCS 2019 · 288 citations
  5. VerX: Safety Verification of Smart ContractsAnton Permenev, Dimitar Dimitrov, Petar Tsankov, Dana Drachsler-Cohen et al.S&P 2020 · 251 citations

Related papers

  1. Synthesis of Sound and Precise Storage Cost Bounds via Unsound Resource Analysis and Max-SMTElvira Albert, Jesús Correas, Pablo Gordillo, Guillermo Román-Díez et al.ISSTA 2024 · 1 citation
  2. ETHBMC: A Bounded Model Checker for Smart ContractsJoel Frank, Cornelius Aschermann, Thorsten HolzUSENIX Security 2020
  3. The Incredible Shrinking Context... in a Decompiler Near YouSifis Lagouvardos, Yannis Bollanos, Neville Grech, Yannis SmaragdakisISSTA 2025 · 1 citation
  4. Precise Static Identification of Ethereum Storage VariablesSifis Lagouvardos, Yannis Bollanos, Michael Debono, Neville Grech et al.ICSE 2026 · 2 citations
  5. PrettySmart: Detecting Permission Re-delegation Vulnerability for Token Behaviors in Smart ContractsZhijie Zhong, Zibin Zheng, Hong-Ning Dai, Qing Xue et al.ICSE 2024 · 12 citations
Dusk over the sea between two cliffs drawn in fine vertical lines