信息网络安全 ›› 2026, Vol. 26 ›› Issue (9): 1481-1492.doi: 10.3969/j.issn.1671-1122.2026.09.013

• 入选论文 • 上一篇    下一篇

基于交易序列与图结构的以太坊欺诈检测方法

黄佳欣1, 刘睿远2, 段荣成2, 田野1(), 孙建国1   

  1. 1 西安电子科技大学杭州研究院, 杭州 311231
    2 军工保密资格审查认证中心, 北京 100089
  • 收稿日期:2026-06-08 出版日期:2026-09-10 发布日期:2026-09-30
  • 通讯作者: 田野 E-mail:tianye@xidian.edu.cn
  • 作者简介:黄佳欣(2003—),女,浙江,硕士研究生,主要研究方向为网络安全、深度学习、以太坊|刘睿远(2001—),男,北京,助理工程师,本科,主要研究方向为数据安全|段荣成(1995—),男,山东,工程师,本科,主要研究方向为网络安全|田野(1992—),男,黑龙江,副教授,博士,CCF会员,主要研究方向为区块链安全、多模态信息处理、深度学习|孙建国(1981—),男,黑龙江,教授,博士,主要研究方向为网络安全、互联网安全、数据安全、深度学习
  • 基金资助:
    国家自然科学基金(62302365)

Ethereum fraud detection method based on transaction sequences and graph structures

Huang Jiaxin1, Liu Ruiyuan2, Duan Rongcheng2, Tian Ye1(), Sun Jianguo1   

  1. 1 Hangzhou Institute of Technology, Xidian University, Hangzhou 311231, China
    2 Defence Industry Secrecy Examination and Certification Center, Beijing 100089, China
  • Received:2026-06-08 Online:2026-09-10 Published:2026-09-30
  • Contact: Tian Ye E-mail:tianye@xidian.edu.cn

摘要:

以太坊正面临日益复杂的欺诈威胁,而现有网络钓鱼检测方法多依赖于原始交易网络的静态分析,忽视了账户细粒度的动态交易序列模式,未能充分挖掘结构与序列特征的协同效益。因此,文章提出一种 TransG4Eth框架,将交易级Transformer与图神经网络相结合,以同时捕获交易上下文信息与账户交互关系。首先,构建了基于 Transformer 的交易序列编码器,将账户的完整交易历史建模为细粒度行为特征;其次,设计上下文地址恢复预训练任务,引导模型学习交易序列中账户间的隐含交互模式;再次,构建全局账户交互图,以显式方式刻画结构拓扑;最后,提出隐-显式对偶学习框架,在嵌入级与输出级实现两阶段融合。实验结果表明,在真实数据集上TransG4Eth显著优于现有方法,F1分数达85.99%。

关键词: 区块链, 以太坊, 欺诈检测, Transformer, 图表示学习

Abstract:

Ethereum faces increasingly complex fraud threats, while existing phishing detection methods mostly relied on static analysis of raw transaction networks, overlooked fine-grained dynamic transaction sequence patterns of accounts, and failed to fully exploit the synergistic benefits of structural and sequential features. Therefore, this paper proposed a TransG4Eth framework, which combined a transaction-level Transformer with a graph neural network to capture both transaction context information and account interaction relationships. The proposed method first constructed a Transformer-based transaction sequence encoder, which modeled the complete transaction history of accounts as fine-grained behavioral features. Second, it designed a contextual address recovery pre-training task, which guided the model to learn implicit interaction patterns among accounts in transaction sequences. Then, it constructed a global account interaction graph to explicitly characterize structural topology. Finally, it proposed an implicit-explicit dual learning framework, which achieved two-stage fusion at both the embedding level and the output level. Experimental results show that TransG4Eth significantly outperforms existing methods on real-world datasets, obtains an F1 Score of 85.99%.

Key words: blockchain, Ethereum, fraud detection, Transformer, graph representation learning

中图分类号: