Hyperion:利用 LLM 和数据流引导的符号执行揭示 DApp 不一致性
Hyperion: Unveiling DApp Inconsistencies using LLM and Dataflow-Guided Symbolic Execution
AI总结:
本文提出 HYPERION,结合微调 LLaMA2 与数据流引导符号执行,自动检测 DApp 前端描述和智能合约实现间的七类不一致性,并在真实 DApp 中验证其高精度与召回率。
摘要:
区块链平台的快速发展显著加速了去中心化应用(DApp)的增长。与传统应用类似,DApp 集成了用于展示其功能以吸引用户的前端描述,以及用于执行业务逻辑的后端智能合约。然而,前端描述中宣传的功能与合约中实际实现的功能之间存在的不一致性,可能会误导用户并削弱 DApp 的可信度。本文首先开展了一项实证研究,识别出七种类型的不一致性,每一种都由一个真实世界 DApp 作为示例。此外,我们提出 HYPERION,一种旨在自动识别 DApp 中前端描述与后端代码实现之间不一致性的方法。该方法利用经过微调的大型语言模型 LLaMA2 分析 DApp 描述,并采用数据流引导的符号执行进行合约字节码分析。最后,HYPERION 根据预定义的检测模式报告不一致性。在由 54 个 DApp 组成的真值数据集上的实验表明,HYPERION 在报告 DApp 不一致性时达到 84.06% 的总体召回率和 92.06% 的总体精确率。我们还实现了 HYPERION,以分析 835 个真实世界 DApp。实验结果表明,HYPERION 发现 459 个真实世界 DApp 至少包含一种不一致性。
英文摘要:
The rapid advancement of blockchain platforms has significantly accelerated the growth of decentralized applications (DApps). Similar to traditional applications, DApps integrate front-end descriptions that showcase their features to attract users, and back-end smart contracts for executing their business logic. However, inconsistencies between the features promoted in front-end descriptions and those actually implemented in the contract can confuse users and undermine DApps's trustworthiness. In this paper, we first conducted an empirical study to identify seven types of inconsistencies, each exemplified by a real-world DApp. Furthermore, we introduce HYPERION, an approach designed to automatically identify inconsistencies between front-end descriptions and back-end code implementation in DApps. This method leverages a fine-tuned large language model LLaMA2 to analyze DApp descriptions and employs dataflow-guided symbolic execution for contract bytecode analysis. Finally, HYPERION reports the inconsistency based on predefined detection patterns. The experiment on our ground truth dataset consisting of 54 DApps shows that HYPERION reaches 84.06% overall recall and 92.06% overall precision in reporting DApp inconsistencies. We also implement HYPERION to analyze 835 real-world DApps. The experimental results show that HYPERION discovers 459 real-world DApps containing at least one inconsistency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。