通过多教师指导提升智能合约字节码漏洞检测效果
MTVHunter: Smart Contracts Vulnerability Detection Based on Multi-Teacher Knowledge Translation
- 用指令去噪教师消除无关指令干扰
- 通过神经元蒸馏补全字节码缺失语义,准确率显著提升
- 适合关注区块链安全与漏洞检测的研究者
智能合约与加密货币交易紧密关联,其安全问题已引发巨额财务损失的担忧。尽管已有多种工具用于检测智能合约漏洞,但在处理字节码时仍面临双重挑战:(i)大量无关指令造成强干扰;(ii)因数据和控制流依赖不完整导致语义缺失。本文提出基于多教师的知识迁移方法MTVHunter,通过多教师引导实现字节码的有效去噪与语义补全。首先设计指令去噪教师,通过抽象漏洞模式消除干扰,并反映在合约嵌入中;其次提出新型语义补全教师,结合神经元蒸馏,从源代码中提取必要语义以补充字节码信息,且将知识迁移转化为回归任务,加速语义填充。在涵盖4类常见漏洞的229,178个真实世界智能合约上进行实验,结果表明MTVHunter显著优于现有最优方法。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。