Hyperion: Unveiling DApp Inconsistencies using LLM and Dataflow-Guided Symbolic Execution
Preprint
Abstract
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.Keywords
All Related Versions
This publication has 17 references indexed in Scilit:
- Definition and Detection of Defects in NFT Smart Contracts2023
- Pied-Piper: Revealing the Backdoor Threats in Ethereum ERC Token ContractsACM Transactions on Software Engineering and Methodology, 2023
- Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language ProcessingACM Computing Surveys, 2023
- Elipmoc: advanced decompilation of Ethereum smart contractsProceedings of the ACM on Programming Languages, 2022
- Consistency Analysis of Data-Usage Purposes in Mobile Apps2021
- DefectChecker: Automated Smart Contract Defect Detection by Analyzing EVM BytecodeIEEE Transactions on Software Engineering, 2021
- Defining Smart Contract Defects on EthereumIEEE Transactions on Software Engineering, 2020
- An overview on smart contracts: Challenges, advances and platformsFuture Generation Computer Systems, 2020
- PPChecker: Towards Accessing the Trustworthiness of Android Apps’ Privacy PoliciesIEEE Transactions on Software Engineering, 2018
- What you always wanted to know about Datalog (and never dared to ask)IEEE Transactions on Knowledge and Data Engineering, 1989