Demystifying Random Number in Ethereum Smart Contract: Taxonomy, Vulnerability Identification, and Attack Detection
Peng Qian, Jianting He, Lingling Lu, Siwei Wu, Zhipeng Lu, Lei Wu,, Yajin Zhou, Qinming He

TL;DR
This paper systematically analyzes the principles of pseudo-random number generation in Ethereum smart contracts, categorizes related attacks, and introduces RNVulDet, a tool that effectively detects bad randomness vulnerabilities and attack transactions.
Contribution
It provides the first comprehensive taxonomy of randomness vulnerabilities, develops RNVulDet for automatic detection, and verifies its effectiveness with extensive datasets and comparisons.
Findings
RNVulDet outperforms existing tools in accuracy and speed.
Successfully detects over 44,000 attack transactions.
Constructed large datasets for vulnerability analysis and validation.
Abstract
Recent years have witnessed explosive growth in blockchain smart contract applications. As smart contracts become increasingly popular and carry trillion dollars worth of digital assets, they become more of an appealing target for attackers, who have exploited vulnerabilities in smart contracts to cause catastrophic economic losses. Notwithstanding a proliferation of work that has been developed to detect an impressive list of vulnerabilities, the bad randomness vulnerability is overlooked by many existing tools. In this paper, we make the first attempt to provide a systematic analysis of random numbers in Ethereum smart contracts, by investigating the principles behind pseudo-random number generation and organizing them into a taxonomy. We also lucubrate various attacks against bad random numbers and group them into four categories. Furthermore, we present RNVulDet - a tool that…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBlockchain Technology Applications and Security · Cryptography and Data Security · Digital and Cyber Forensics
