Augmenting Smart Contract Decompiler Output Through Fine-Grained Dependency Analysis and LLM-Facilitated Semantic Recovery
IEEE Transactions on Software Engineering · 2025-12 · 51 (12) · 3574-3590
DOI: 10.1109/tse.2025.3623325 ↗Kurz gefasst
Fachartikel in der Zeitschrift IEEE Transactions on Software Engineering, 2025-12. Verfasst von Zeqin Liao und 6 weiteren Autor:innen. Die Arbeit wurde bisher 11-mal zitiert (Crossref) und nennt 56 Literaturangaben. Gefördert von: National Key Research and Development Program of China, National Natural Science Foundation of China, NSFC-RGC Collaborative Research.
Abstract (Originalsprache)
Decompiler is a specialized type of reverse engineering tool extensively employed in program analysis tasks, particularly in program comprehension and vulnerability detection. However, current Solidity smart contract decompilers face significant limitations in reconstructing the original source code. In particular, the bottleneck of SOTA decompilers lies in inaccurate function identification, incorrect variable type recovery, and missing contract attributes. These deficiencies hinder downstream tasks and understanding of the program logic. To address these challenges, we propose SmartHalo, a new framework that enhances decompiler output by combining static analysis (SA) and large language models (LLM). SmartHalo leverages the complementary strengths of SA’s accuracy in control and data flow analysis and LLM’s capability in semantic prediction. More specifically, SmartHalo constructs a new data structure - Dependency Graph (DG), to extract semantic dependencies via static analysis. Then, it takes DG to create prompts for LLM optimization. Finally, the correctness of LLM outputs is validated through symbolic execution and formal verification. Evaluation on a dataset consisting of 465 randomly selected smart contract functions shows that SmartHalo significantly improves the quality of the decompiled code, compared to SOTA decompilers (e.g., Gigahorse). Notably, integrating GPT-4o mini with SmartHalo further enhances its performance, achieving a precision of 91.32% and a recall of 87.38% for function boundaries, a precision of 90.40% and a recall of 88.82% for variable types, and a precision of 80.66% and a recall of 91.78% for contract attributes.
Förderung
- National Key Research and Development Program of China
- National Natural Science Foundation of China
- NSFC-RGC Collaborative Research
- Guangdong Zhujiang Talent Program
Zitieren
APA
Liao, Z., Nan, Y., Gao, Z., Liang, H., Hao, S., Ren, P., & Zheng, Z. (2025). Augmenting Smart Contract Decompiler Output Through Fine-Grained Dependency Analysis and LLM-Facilitated Semantic Recovery. IEEE Transactions on Software Engineering, 51(12), 3574-3590. https://doi.org/10.1109/tse.2025.3623325
Vancouver
Liao Z, Nan Y, Gao Z, Liang H, Hao S, Ren P, et al. Augmenting Smart Contract Decompiler Output Through Fine-Grained Dependency Analysis and LLM-Facilitated Semantic Recovery. IEEE Transactions on Software Engineering. 2025;51(12):3574-3590. doi:10.1109/tse.2025.3623325
BibTeX
@article{Liao2025,
author = {Liao, Zeqin and Nan, Yuhong and Gao, Zixu and Liang, Henglong and Hao, Sicheng and Ren, Peifan and Zheng, Zibin},
title = {Augmenting Smart Contract Decompiler Output Through Fine-Grained Dependency Analysis and LLM-Facilitated Semantic Recovery},
journal = {IEEE Transactions on Software Engineering},
year = {2025},
volume = {51},
number = {12},
pages = {3574--3590},
doi = {10.1109/tse.2025.3623325}
}
EUVIMED