计算机科学
源代码
数据挖掘
调用图
图形
规范化(社会学)
程序切片
脆弱性(计算)
滤波器(信号处理)
编码(集合论)
特征(语言学)
建筑
框架(结构)
实体链接
重写
智能合约
特征提取
脆弱性评估
调试
软件维护
可用性
人工智能
软件体系结构
维修工程
一般化
解码方法
面向服务的体系结构
切片
理论计算机科学
机器学习
作者
Jing Huang,Yabo Wang,Honggui Han
标识
DOI:10.1109/tnsm.2026.3664599
摘要
Smart contract vulnerabilities have led to over $20 billion in losses, but existing methods suffer from coarse-grained detection, two-stage “detection-then-localization” pipelines, and insufficient feature extraction. This paper proposes SCFusionLocator, a statement-level vulnerability localization framework for smart contracts. It adopts a novel code-slicing mechanism (via function call graphs and data-flow graphs) to decompose contracts into single-function subcontracts and filter low-saliency statements, paired with source code normalization to reduce noise. A dual-branch architecture captures complementary features: the code-sequence branch uses GraphCodeBERT (with data-flow-aware masking) for semantic extraction, while the graph branch fuses call/control-flow/data-flow graphs into a heterogeneous graph and applies HGAT for structural modeling. SCFusionLocator enables end-to-end statement-level localization by framing tasks as statement classification. We release BJUT_SC02, a large dataset of over 240,000 contracts with line-level labels for 58 vulnerability types. Experiments on BJUT_SC02, SCD, and MANDO datasets show SCFusionLocator outperforms 8 conventional tools and nearly 20 ML baselines, achieving over 90% average F1 at the statement level, with better generalization to similar unknown vulnerabilities, and remains competitive in contract-level detection.
科研通智能强力驱动
Strongly Powered by AbleSci AI