Smart contracts are a core component of blockchain technology and are widely deployed across various scenarios. However, atomicity violations have become a potential security risk. Existing analysis tools often lack the precision required to detect these issues effectively. To address this challenge, we introduce AtomGraph, an automated framework designed for detecting atomicity violations. This framework leverages Graph Convolutional Networks (GCN) to identify atomicity violations through multimodal feature learning and fusion. Specifically, driven by a collaborative learning mechanism, the model simultaneously learns from two heterogeneous modalities: extracting structural topological features from the contract's Control Flow Graph (CFG) and uncovering deep semantics from its opcode sequence. We designed an adaptive weighted fusion mechanism to dynamically adjust the weights of features from each modality to achieve optimal feature fusion. Finally, GCN detects graph-level atomicity violation on the contract. Comprehensive experimental evaluations demonstrate that AtomGraph achieves 96.88% accuracy and 96.97% F1 score, outperforming existing tools. Furthermore, compared to the concatenation fusion model, AtomGraph improves the F1 score by 6.4%, proving its potential in smart contract security detection.


翻译:智能合约作为区块链技术的核心组件,已广泛应用于各类场景。然而,原子性违规已成为潜在的安全威胁。现有分析工具往往缺乏有效检测此类问题的精度。为应对这一挑战,我们提出了AtomGraph——一种专为检测原子性违规而设计的自动化框架。该框架利用图卷积网络(GCN),通过多模态特征学习与融合来识别原子性违规。具体而言,在协同学习机制的驱动下,模型同时从两种异构模态中学习:从合约的控制流图(CFG)中提取结构拓扑特征,并从其操作码序列中挖掘深层语义。我们设计了自适应加权融合机制,动态调整各模态特征的权重以实现最优特征融合。最终,GCN在合约图上进行图级原子性违规检测。综合实验评估表明,AtomGraph达到了96.88%的准确率与96.97%的F1分数,性能优于现有工具。此外,与拼接融合模型相比,AtomGraph将F1分数提升了6.4%,证明了其在智能合约安全检测领域的潜力。

0
下载
关闭预览

相关内容

图神经网络在金融欺诈检测中的应用综述
专知会员服务
28+阅读 · 2024年11月22日
专知会员服务
34+阅读 · 2021年5月8日
智能合约的形式化验证方法研究综述
专知
16+阅读 · 2021年5月8日
跳出公式,看清全局,图神经网络(GCN)原理详解
AI科技评论
64+阅读 · 2019年9月22日
AmpliGraph:知识图谱表示学习工具包
专知
40+阅读 · 2019年4月6日
图分类:结合胶囊网络Capsule和图卷积GCN(附代码)
中国人工智能学会
36+阅读 · 2019年2月26日
一文读懂目标检测:R-CNN、Fast R-CNN、Faster R-CNN、YOLO、SSD
七月在线实验室
11+阅读 · 2018年7月18日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
8+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
VIP会员
相关VIP内容
图神经网络在金融欺诈检测中的应用综述
专知会员服务
28+阅读 · 2024年11月22日
专知会员服务
34+阅读 · 2021年5月8日
相关基金
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
8+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员