Towards Smart Contract Fuzzing on GPUs

被引:0
|
作者
Chen, Weimin [1 ]
Luo, Xiapu [1 ]
Cai, Haipeng [2 ]
Wang, Haoyu [3 ]
机构
[1] Hong Kong Polytech Univ, Hong Kong, Peoples R China
[2] Washington State Univ, Pullman, WA 99164 USA
[3] Huazhong Univ Sci & Technol, Wuhan, Hubei, Peoples R China
基金
国家重点研发计划;
关键词
D O I
10.1109/SP54263.2024.00229
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Fuzzing is one of the major techniques for uncovering vulnerabilities in smart contracts. The effectiveness of fuzzing is significantly affected by its throughput but unfortunately existing fuzzers for smart contracts have low throughput due to the slow execution of EVM, the delay introduced by the consensus protocols, the limited parallelization capability of CPUs, and the overhead caused by the instrumented EVM. To tackle this critical issue, in this paper, we take the first step to leverage GPU's parallel computing power to boost the throughput of smart contract fuzzing. More precisely, by converting the fuzzing workload to a SIMD task, we can activate thousands of GPU cores to test the smart contract simultaneously. To achieve this purpose, we design new solutions to address three major challenges, namely developing incremental storage to reduce GPU memory cost, proposing a stateful bitmap to embed transaction dependency to the feedback metric, and designing a parallel feedback algorithm to rule out undesired seeds that cause redundant overlaps. We implement a prototype named MAU, which first transforms the bytecode of a smart contract to a SIMD application in PTX assembly and then runs it parallelly on the GPU. We evaluate MAU using both a large and small benchmark. The experimental results demonstrate that the throughput of MAU reaches 162.37K execs/sec and 328.06K execs/sec, which leads to an 8.69-15.38X improvement to the state-of-the-art tool. Moreover, the high throughput empowers MAU to detect 1.01-2.50X more bugs and obtain 1.03-4.71X more code coverage than baselines.
引用
收藏
页码:2255 / 2272
页数:18
相关论文
共 50 条
  • [21] Towards Auto Contract Generation and Ensemble-based Smart Contract Vulnerability Detection
    Puducherry, K. Lakshminarayana
    Puducherry, K. Sathiyamurthy
    INTERNATIONAL JOURNAL OF ELECTRICAL AND COMPUTER ENGINEERING SYSTEMS, 2022, 13 (09) : 747 - 757
  • [22] Towards Smart Contract-Based Verification of Anonymous Credentials
    Muth, Robert
    Galal, Tarek
    Heiss, Jonathan
    Tschorsch, Florian
    FINANCIAL CRYPTOGRAPHY AND DATA SECURITY. FC 2022 INTERNATIONAL WORKSHOPS, 2023, 13412 : 481 - 498
  • [23] Towards a Secure Cross-Blockchain Smart Contract Architecture
    Mars, Rawya
    Cheikhrouhou, Saoussen
    Kallel, Slim
    Sellami, Mohamed
    Kacem, Ahmed Hadj
    RISKS AND SECURITY OF INTERNET AND SYSTEMS, CRISIS 2022, 2023, 13857 : 127 - 132
  • [24] Exploring Smart Contract Recommendation: Towards Efficient Blockchain Development
    Jiang, Zigui
    Zheng, Zibin
    Chen, Kai
    Luo, Xiapu
    Tang, Xiuwen
    Li, Yin
    IEEE TRANSACTIONS ON SERVICES COMPUTING, 2023, 16 (03) : 1822 - 1832
  • [25] Towards Effective Performance Fuzzing
    Chen, Yiqun
    Bradbury, Matthew
    Suri, Neeraj
    2022 IEEE INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING WORKSHOPS (ISSREW 2022), 2022, : 128 - 129
  • [26] Towards Fuzzing Target Lines
    Neves, Nuno
    52ND ANNUAL IEEE/IFIP INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND NETWORKS SUPPLEMENTAL VOLUME (DSN-S 2022), 2022, : 35 - 36
  • [27] Enhancing Smart Contract Security Through Multi-Agent Deep Reinforcement Learning Fuzzing: A Survey of Approaches and Techniques
    Andrijasa, Muhammad Farman
    Ismail, Saiful Adli
    Ahmad, Norulhusna
    Yusop, Othman Mohd
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2024, 15 (05) : 754 - 767
  • [28] Smart contract: a survey towards extortionate vulnerability detection and security enhancement
    Porkodi, S.
    Kesavaraja, D.
    WIRELESS NETWORKS, 2024, 30 (03) : 1285 - 1304
  • [29] Towards smart contract distributed directory based on the uniform description language
    Souei, Wafa Ben Slama
    El Hog, Chiraz
    Ben Djemaa, Raoudha
    Sliman, Layth
    Ben Amor, Ikram Amous
    JOURNAL OF COMPUTER LANGUAGES, 2023, 77
  • [30] Towards A Unified Programming Model for Blockchain Smart Contract dApp Systems
    Ellul, Joshua
    Pace, Gordon J.
    2019 38TH INTERNATIONAL SYMPOSIUM ON RELIABLE DISTRIBUTED SYSTEMS WORKSHOPS (SRDSW 2019), 2019, : 55 - 56