一句话:提出首个 DApp 故障定位工具 DAppFL,结合逆向工程与加密货币流向追踪,在 Top-5 内定位 63% 的故障。
DApp 与加密货币紧密关联,其故障可能直接造成资金损失,因此高效故障定位对紧急救援至关重要。但传统应用的故障定位方法无法识别 DApp 特有故障特征(如大量加密货币被转移给黑客),而基于变异测试的方法又过于耗时。本文首次系统研究 DApp 故障定位,提出学习式工具 DAppFL:通过逆向工程收集已执行源代码,并追踪加密货币流向,辅助定位故障函数;同时构建了首个 DApp 故障定位数据集作为新基准。实验表明,DAppFL 能在 Top-5 内定位 63% 的故障,比现有最佳方法高出 23%。
Web3 describes an idea for the next evolution of the Internet, where blockchain technology enables the Internet of Value. As Web3 software, decentralized applications (DApps) have emerged in recent years. There exists a natural link between DApps and cryptocurrencies, where faults in DApps could directly lead to monetary losses associated with cryptocurrencies. Hence, efficient fault localization technology is of paramount importance for urgent DApp rescue operations and the mitigation of financial losses. However, fault localization methods applied in traditional applications are not well-suited for this specific field, due to their inability to identify DApp-specific fault features, e.g., a substantial amount of cryptocurrency is transferred from DApps to hackers. In order to explore the root cause of DApp faults, some researchers try to identify suspicious code snippets through mutation testing. Nonetheless, applying mutation testing for DApp fault localization is time-consuming and thus limited in practice. This paper conducts the first comprehensive study of DApp fault localization. We introduce DAppFL, a learning-based DApp fault localization tool that performs reverse engineering to gather executed source code and then trace cryptocurrency flow to assist in locating faulty functions. We also present the inaugural dataset for DApp fault localization, providing a new benchmark for this domain.Our experimental results demonstrate that DAppFL locates 63% of faults within the Top-5, 23% more than the state-of-the-art method. To facilitate further research, our code and dataset are freely available online: https://github.com/xplanet-sysu/awesome-works#dappfl.
DOI 原文 ·
@inproceedings{paperbot8505,
title = {DAppFL: Just-in-Time Fault Localization for Decentralized Applications in Web3},
author = {Zhiying Wu and Jiajing Wu and Hui Zhang and Ziwei Li and Jiachi Chen and Zibin Zheng and Qing Xia and Gang Fan and Yi Zhen},
booktitle = {ISSTA},
year = {2024},
doi = {10.1145/3650212.3652116}
}