This approach enhances vulnerability detection in smart contracts using contract graphs and cross-graph comparison.
Smart contracts empower many blockchain applications but are exposed to code-level defects. Existing methods do not scale to the evolving code, do not represent complex control and data flows, and lack granular and calibrated evidence. To address the above concerns, we present a across-graph correspondering contract-graph method for vulnera bility detection: abstract syntax, control flow, and data flow are fused into a typed, directed contract graph whose nodes are enriched with pre-code embeddings (GraphCodeBERT or CodeT5+). A Graph Matching Network with cross-graph attention compares contract graphs, aligns homologous subgraphs associated with vulnerabilities, and supports the interpretation of statements at the level of balance between a broad structural coverage and a discriminative pairwise alignment. The evaluation follows a deployment-oriented protocol with thresholds fixed for validation, multi-seed averaging and a conservative estimate of sensitivity under low false-positive budgets. On SmartBugs Wild, the method consistently and markedly exceeds strong rule-based and learning baselines and maintains a higher sensitivity to matching false positive rates; ablations track the gains to multi-graph fusion, pre-trained encoders and cross-graph matching, stable through seeds.
No takes yet. Share an insight, caveat, or question.
Xue et al. (2025) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: