On-Chain Analysis of Smart Contract Dependency Risks on Ethereum
Monica Jin, Raphina Liu, Martin Monperrus
TL;DR
The paper tackles the problem of understanding smart contract dependencies and their security implications on Ethereum at scale. It introduces an on-chain analysis framework and uses Allium to survey the mainnet up to 2024-12, yielding four core findings: widespread multi-contract interactions, extreme centralization in contract deployment, reliance on mutable/core contracts, and deeper-than-documented protocol dependencies. The study exposes significant risk vectors from factory patterns and proxy upgrades, and demonstrates transparency gaps in major DeFi protocols through Uniswap and Lido case studies. These results provide a foundation for developers, users, and researchers to assess dependency risk and motivate better tooling and documentation to improve Ethereum’s transparency and security.
Abstract
In this paper, we present the first large-scale empirical study of smart contract dependencies, analyzing over 41 million contracts and 11 billion interactions on Ethereum up to December 2024. Our results yield four key insights: (1) 59% of contract transactions involve multiple contracts (median of 4 per transaction in 2024) indicating potential smart contract dependency risks; (2) the ecosystem exhibits extreme centralization, with just 11 (0.001%) deployers controlling 20.5 million (50%) of alive contracts, with major risks related to factory contracts and deployer privileges; (3) three most depended-upon contracts are mutable, meaning large parts of the ecosystem rely on contracts that can be altered at any time, which is a significant risk, (4) actual smart contract protocol dependencies are significantly more complex than officially documented, undermining Ethereum's transparency ethos, and creating unnecessary attack surface. Our work provides the first large-scale empirical foundation for understanding smart contract dependency risks, offering crucial insights for developers, users, and security researchers in the blockchain space.
