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 条
  • [31] Smart contract: a survey towards extortionate vulnerability detection and security enhancement
    S. Porkodi
    D. Kesavaraja
    Wireless Networks, 2024, 30 : 1285 - 1304
  • [32] Towards a Semantics-Based Search Engine for Smart Contract Information
    Shi, Chaochen
    Xiang, Yong
    Yu, Jiangshan
    Gao, Longxiang
    SERVICE-ORIENTED COMPUTING, ICSOC 2021 WORKSHOPS, 2022, 13236 : 272 - 277
  • [33] A Smart Fuzzing Approach for Integer Overflow Detection
    Cai, Jun
    Zou, Peng
    He, Jun
    Ma, Jinxin
    INFORMATION TECHNOLOGY IN INDUSTRY, 2014, 2 (03): : 98 - 103
  • [34] ContractFuzzer: Fuzzing Smart Contracts for Vulnerability Detection
    Jiang, Bo
    Liu, Ye
    Chan, W. C.
    PROCEEDINGS OF THE 2018 33RD IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMTED SOFTWARE ENGINEERING (ASE' 18), 2018, : 259 - 269
  • [35] Fuzz on the Beach: Fuzzing Solana Smart Contracts
    Smolka, Sven
    Giesen, Jens-Rene
    Winkler, Pascal
    Draissi, Oussama
    Davi, Lucas
    Karame, Ghassan
    Pohl, Klaus
    PROCEEDINGS OF THE 2023 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, CCS 2023, 2023, : 1197 - 1211
  • [36] Smart Contract Broker: Improving Smart Contract Reusability in a Blockchain Environment
    Park, Joonseok
    Jeong, Sumin
    Yeom, Keunhyuk
    SENSORS, 2023, 23 (13)
  • [37] xFuzz: Machine Learning Guided Cross-Contract Fuzzing
    Xue, Yinxing
    Ye, Jiaming
    Zhang, Wei
    Sun, Jun
    Ma, Lei
    Wang, Haijun
    Zhao, Jianjun
    IEEE TRANSACTIONS ON DEPENDABLE AND SECURE COMPUTING, 2024, 21 (02) : 515 - 529
  • [38] Towards a Smart Contract-Based, Decentralized, Public-Key Infrastructure
    Patsonakis, Christos
    Samari, Katerina
    Roussopoulos, Mema
    Kiayias, Aggelos
    CRYPTOLOGY AND NETWORK SECURITY (CANS 2017), 2018, 11261 : 299 - 321
  • [39] Smart Contract Locator (SCL) and Smart Contract Description Language (SCDL)
    Lamparelli, Andrea
    Falazi, Ghareeb
    Breitenbuecher, Uwe
    Daniel, Florian
    Leymann, Frank
    SERVICE-ORIENTED COMPUTING, ICSOC 2019, 2020, 12019 : 195 - 210
  • [40] Smart Contract Firewall: Protecting the on-Chain Smart Contract Projects
    Su, Shen
    Xue, Yue
    Lin, Liansheng
    Wang, Chao
    Lu, Hui
    Qiu, Jing
    Sun, Yanbin
    Liu, Yuan
    Tian, Zhihong
    IEEE CONFERENCE ON GLOBAL COMMUNICATIONS, GLOBECOM, 2023, : 5122 - 5128