Hyperion: Unveiling DApp Inconsistencies Using LLM and Dataflow-Guided Symbolic Execution

Shuo Yang, Xingwei Lin, Jiachi Chen, Qingyuan Zhong, Lei Xiao, Renke Huang, Yanlin Wang, Zibin Zheng

TL;DR

Researchers have developed HYPERION, a novel tool that automatically detects "dishonest" decentralized applications (DApps) by identifying inconsistencies between their front-end marketing claims and their back-end smart contract code. By combining a fine-tuned LLaMA2 model for natural language processing with dataflow-guided symbolic execution for bytecode analysis, HYPERION uncovered inconsistencies in over 50% of a real-world DApp dataset, many of which were precursors to the DApps disappearing entirely.

What Problem Does This Paper Address?

In the world of Web3, "Code is Law," but for most users, the "Law" is what they read on a DApp’s website. A DApp might promise a fixed 3% daily return or a five-year liquidity lock to attract investors. However, if the underlying smart contract actually implements a variable reward or allows the owner to withdraw funds at any time, the user is being misled.

Traditional security tools focus on finding vulnerabilities—bugs that hackers can exploit. They generally ignore inconsistencies—cases where the code works exactly as the developer intended, but the developer lied to the user about what that intention was. This paper addresses the lack of systematic methods to detect these discrepancies, which are often early warning signs of "rug pulls" or scams.

![Fig.

  1. DApp descriptions (top) and contract snippet (bottom) of BNB Ultra, illustrating an "Unguaranteed Reward" inconsistency.](/figures/art_6511248f5d454d848b2d27e04f6c85cb)

Methods

The authors introduce HYPERION, a framework consisting of two specialized components that bridge the gap between human language and machine code:

  1. HYPERTEXT (The Description Analyzer): This component uses a fine-tuned LLaMA2 model to parse DApp websites (HTML/text). Because DApp descriptions can be long and unstructured, the team employed "Chain-of-Thought" (CoT) prompting and prompt segmentation to help the model extract specific financial attributes like reward rates, fee structures, and token supply limits.
  2. HYPERCODE (The Contract Analyzer): Analyzing smart contracts is difficult because many developers don't publish their source code. HYPERCODE works directly on EVM bytecode. It uses the Elipmoc decompiler to create an Intermediate Representation (IR), then performs dataflow analysis to build "Fund Transfer Graphs" and "State Variable Dependency Graphs." These graphs guide a symbolic execution engine to verify the actual logic—such as whether a "fixed" reward is truly constant or dependent on volatile contract balances.

Finally, HYPERION compares the attributes from HYPERTEXT with the semantics from HYPERCODE to flag one of seven defined inconsistency types, such as Hidden Fees, Adjustable Liquidity, or Volatile NFT Accessibility.

Overview of the HYPERION approach, showing the dual-track analysis of descriptions and contracts.

Datasets

The study utilized two primary datasets:

  • Ground Truth Dataset: 54 DApps manually labeled by the authors to define the seven inconsistency types and evaluate the tool's baseline performance.
  • Large-Scale Dataset: 835 real-world DApps crawled from popular platforms like DappRadar and DappBay. This dataset included DApps across 13 different blockchain platforms, including Ethereum, BNB Chain, and Polygon.

Key Insights and Ideas

  • The "Saying vs. Doing" Gap is Prevalent: The most striking finding is that inconsistency isn't a rare edge case; it's a widespread issue in the DApp ecosystem.
  • Inconsistency as a Leading Indicator: Of the DApps HYPERION flagged as inconsistent in the large-scale crawl, 25% became inaccessible within just three months. This suggests that detecting these lies can serve as a powerful early warning system for users.
  • Hybrid Intelligence: The paper demonstrates that while LLMs are great at understanding messy human descriptions, they struggle with the precise logic of code. Conversely, symbolic execution is precise but lacks context. Combining them allows the tool to understand intent versus implementation.
  • Bytecode-Level Analysis is Essential: By focusing on bytecode rather than source code, the authors ensure the tool works even against malicious developers who intentionally hide their Solidity files to avoid scrutiny.

Key Results

HYPERION proved highly effective in both controlled and "in-the-wild" testing:

  • High Accuracy: On the ground truth dataset, it achieved 92.06% precision and 84.06% recall.
  • Widespread Issues: When run against 835 real-world DApps, HYPERION discovered that 459 (approx. 55%) contained at least one inconsistency.
  • Efficiency: The dataflow analysis allowed the tool to skip testing roughly 88.7% of irrelevant functions, significantly speeding up the symbolic execution process.

Limitations and Future Work

Despite its success, the authors acknowledge several hurdles:

  • Path Explosion: Like all symbolic execution tools, HYPERION can struggle with extremely complex contracts where the number of possible execution paths grows exponentially.
  • Complex Data Structures: The current dataflow analysis has limitations in accurately tracking information through complex struct data types.
  • LLM Nuance: While fine-tuned, the LLM can still be misled by subtle linguistic nuances or "prompt keywords" that don't match the actual context (e.g., confusing a "total supply after 3 years" with a "total supply cap").

Future work aims to improve the instruction-tuning process with even larger datasets and refine the rules for identifying more complex data structures within contract bytecode.

Summary updated

BibTeX
@inproceedings{yang2025hyperion,
  author = {Shuo Yang and Xingwei Lin and Jiachi Chen and Qingyuan Zhong and Lei Xiao and Renke Huang and Yanlin Wang and Zibin Zheng},
  title = {{Hyperion: Unveiling DApp Inconsistencies Using LLM and Dataflow-Guided Symbolic Execution}},
  booktitle = {ICSE},
  year = {2025},
  doi = {10.1109/icse55347.2025.00015},
}
Figure