English

ETrace:Event-Driven Vulnerability Detection in Smart Contracts via LLM-Based Trace Analysis

Cryptography and Security 2025-07-31 v3 Software Engineering

Abstract

With the advance application of blockchain technology in various fields, ensuring the security and stability of smart contracts has emerged as a critical challenge. Current security analysis methodologies in vulnerability detection can be categorized into static analysis and dynamic analysis methods.However, these existing traditional vulnerability detection methods predominantly rely on analyzing original contract code, not all smart contracts provide accessible code.We present ETrace, a novel event-driven vulnerability detection framework for smart contracts, which uniquely identifies potential vulnerabilities through LLM-powered trace analysis without requiring source code access. By extracting fine-grained event sequences from transaction logs, the framework leverages Large Language Models (LLMs) as adaptive semantic interpreters to reconstruct event analysis through chain-of-thought reasoning. ETrace implements pattern-matching to establish causal links between transaction behavior patterns and known attack behaviors. Furthermore, we validate the effectiveness of ETrace through preliminary experimental results.

Keywords

Cite

@article{arxiv.2506.15790,
  title  = {ETrace:Event-Driven Vulnerability Detection in Smart Contracts via LLM-Based Trace Analysis},
  author = {Chenyang Peng and Haijun Wang and Yin Wu and Hao Wu and Ming Fan and Yitao Zhao and Ting Liu},
  journal= {arXiv preprint arXiv:2506.15790},
  year   = {2025}
}

Comments

4 pages, 1 figure. To appear in Proceedings of the 16th Asia-Pacific Symposium on Internetware (Internetware 2025), ACM ICPS. DOI: https://doi.org/10.1145/3755881.3755934

R2 v1 2026-07-01T03:24:15.546Z