MFGSCOPE: A Lightweight Framework for Efficient Graph-based Analysis on Blockchain

Yufeng Hu,Yingshi Sun,Yuan Chen,Zhuo Chen,Bowen He,Lei Wu,Yajin Zhou,Rui Chang
DOI: https://doi.org/10.1109/tdsc.2024.3431011
2024-01-01
IEEE Transactions on Dependable and Secure Computing
Abstract:With the prosperity of the blockchain and the DeFi ecosystem, money flow activities in the blockchains are becoming increasingly frequent, complex, and diverse. The Money Flow Graph (MFG) serves as the foundation for various behavioral analysis, malicious activity detection, and money flow tracing tasks. However, traditional graph databases face the issue of storage requirement and performance when analyzing large-scale MFGs. In this work, we present MFGSCOPE, a lightweight domain-specific framework designed for graph-based analysis on EVM-compatible blockchains, with extensive optimizations for storage efficiency and query performance. The prototype of MFGSCOPE for the Ethereum network achieves the storage of over 3 billion transfers and 1.7 billion relevant transactions in a single instance with less than 450 GB of disk usage. The evaluation shows that for common tasks, MFGSCOPE is more than 30 times faster and requires 78% less storage space than the commonly used graph database Neo4j. For the applications of MFGSCOPE, we present several use cases based on the MFG which cannot be performed efficiently using traditional graph databases and report interesting findings. To engage the community, the prototype of MFGSCOPE for the Ethereum blockchain with the complete dataset will be open source.
What problem does this paper attempt to address?