MTVHunter: Smart Contracts Vulnerability Detection Based on Multi-Teacher Knowledge Translation

Authors

  • Guokai Sun College of Computer Science and Technology, Harbin Engineering University, Heilongjiang, China
  • Yuan Zhuang College of Computer Science and Technology, Harbin Engineering University, Heilongjiang, China
  • Shuo Zhang College of Computer Science and Technology, Harbin Engineering University, Heilongjiang, China
  • Xiaoyu Feng College of Computer Science and Technology, Harbin Engineering University, Heilongjiang, China
  • Zhenguang Liu The State Key Laboratory of Blockchain and Data Security, Zhejiang University, Hangzhou, China Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security, Hangzhou, China
  • Liguo Zhang College of Computer Science and Technology, Harbin Engineering University, Heilongjiang, China

DOI:

https://doi.org/10.1609/aaai.v39i14.33664

Abstract

Smart contracts, closely intertwined with cryptocurrency transactions, have sparked widespread concerns about considerable financial losses of security issues. To counteract this, a variety of tools have been developed to identify vulnerability in smart contract. However, they fail to overcome two challenges at the same time when faced with smart contract bytecode: (i) strong interference caused by enormous non-relevant instructions; (ii) missing semantics of bytecode due to incomplete data and control flow dependencies. In this paper, we propose a multi-teacher based bytecode vulnerability detection method, namely Multi-Teacher Vulnerability Hunter (MTVHunter), which delivers effective denoising and missing semantic to bytecode under multi-teacher guidance. Specifically, we first propose an instruction denoising teacher to eliminate noise interference by abstract vulnerability pattern and further reflect in contract embeddings. Secondly, we design a novel semantic complementary teacher with neuron distillation, which effectively extracts necessary semantic from source code to replenish the bytecode. Particularly, the proposed neuron distillation accelerate this semantic filling by turning the knowledge transition into a regression task. We conduct experiments on 229,178 real-world smart contracts that concerns four types of common vulnerabilities. Extensive experiments show MTVHunter achieves significantly performance gains over state-of-the-art approaches.

Published

2025-04-11

How to Cite

Sun, G., Zhuang, Y., Zhang, S., Feng, X., Liu, Z., & Zhang, L. (2025). MTVHunter: Smart Contracts Vulnerability Detection Based on Multi-Teacher Knowledge Translation. Proceedings of the AAAI Conference on Artificial Intelligence, 39(14), 15169–15176. https://doi.org/10.1609/aaai.v39i14.33664

Issue

Section

AAAI Technical Track on Knowledge Representation and Reasoning