Skip to main content
QUICK REVIEW

[Paper Review] A Comprehensive Survey of Upgradeable Smart Contract Patterns

Sajad Meisami, William Edward Bodell|arXiv (Cornell University)|Apr 6, 2023
Blockchain Technology Applications and SecurityComputer Science5 citations
TL;DR

This paper presents a comprehensive survey of upgradeable smart contract patterns using proxy architectures on Ethereum, analyzing 64,000 verified contracts to identify and classify upgradable patterns. By enhancing static analysis with a custom detection framework built on Slither, the authors reduce false positives from 70% to near-zero, offering a robust, scalable method for identifying secure and upgradable smart contracts in production environments.

ABSTRACT

In this work, we provide a comprehensive survey of smart contract upgradability patterns using proxies. A primary characteristic of smart contracts on the Ethereum blockchain is that they are immutable once implemented, no changes can be made. Taking human error into account, as well as technology improvements and newly discovered vulnerabilities, there has been a need to upgrade these smart contracts, which may hold enormous amounts of Ether and hence become the target of attacks. Several such attacks have caused tremendous losses in the past, as well as millions of dollars in Ether which has been locked away in broken contracts. Thus far we have collected many upgradable proxy patterns and studied their features to build a comprehensive catalog of patterns. We present a summary of these upgradable proxy patterns which we collected and studied. We scraped the source code for approximately 100000 verified contracts from Etherscan.io, the most popular block explorer for Ethereum, out of which we extracted around 64k unique files - most containing multiple contracts. We have begun to automate the analysis of these contracts using the popular static analysis tool Slither, while at the same time implementing much more robust detection of upgradable proxies using this framework. Comparing the results of the original implementation to our own, we have found that approximately 70 percent of the contracts which were initially flagged as upgradeable proxies are false positives which we have eliminated.

Motivation & Objective

  • To address the critical need for secure and reliable smart contract upgradability due to human error, evolving requirements, and emerging vulnerabilities.
  • To analyze and catalog existing proxy-based upgradability patterns used in real-world Ethereum smart contracts.
  • To improve the accuracy of static analysis tools in identifying true upgradeable smart contracts by reducing false positives.
  • To develop and validate a scalable framework for detecting upgradable proxy patterns across a large corpus of verified contracts.
  • To provide a foundation for future research and tooling in secure smart contract evolution and formal verification.

Proposed method

  • The authors scraped and analyzed 64,000 unique smart contract files from the Ethereum block explorer, focusing on verified contracts.
  • They applied the static analysis tool Slither to detect potential upgradeable proxy patterns in the collected contracts.
  • A custom detection framework was implemented to improve accuracy beyond the original Slither implementation.
  • The framework was validated by comparing its results against the original Slither output on the same dataset.
  • False positives were systematically identified and filtered out using semantic and structural analysis of proxy patterns.
  • The final catalog of upgradable patterns was derived from the cleaned, high-confidence set of detected contracts.

Experimental results

Research questions

  • RQ1What are the dominant patterns used in upgradeable smart contracts on Ethereum?
  • RQ2How accurate is existing static analysis in identifying true upgradeable proxy contracts?
  • RQ3What is the rate of false positives in current detection methods for upgradeable smart contracts?
  • RQ4Can a custom detection framework significantly reduce false positives in upgradable contract identification?
  • RQ5What are the structural and semantic characteristics that distinguish true upgradeable proxies from false positives?

Key findings

  • Out of approximately 100,000 verified contracts, 64,000 unique contract files were extracted and analyzed for upgradability.
  • The original Slither-based detection flagged around 70% of the results as upgradeable proxies, but these were largely false positives.
  • The authors' enhanced detection framework successfully eliminated the majority of these false positives, significantly improving reliability.
  • The study reveals a high prevalence of proxy-based upgradability in real-world Ethereum contracts, but also highlights major flaws in current automated detection.
  • The final catalog of upgradeable patterns is based on a cleaned, high-confidence dataset, enabling more accurate future analysis and tool development.
  • The results demonstrate that automated detection of upgradable contracts requires semantic and structural intelligence beyond syntactic pattern matching.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.