arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.07334cs.CRcs.SYeess.SY
收藏

检验基于Transformer的智能合约漏洞扫描有效性

Examining the Effectiveness of Transformer-Based Smart Contract Vulnerability Scan

Bahcesehir University(巴希谢希尔大学)

Emre Balci, Timucin Aydede, Gorkem Yilmaz, Ece Gelal Soyak

AI总结:

本文提出VASCOT,一种基于Transformer的智能合约漏洞扫描器,通过序列分析和滑动窗口机制评估深度学习方法在检测以太坊智能合约漏洞中的有效性,并与LSTM模型进行对比分析。

摘要:

智能合约技术使区块链上的自我执行协议成为可能,消除了对外部可信权威的依赖。然而,智能合约可能暴露漏洞,导致财务损失和去中心化应用的中断。在本工作中,我们评估了基于深度学习的漏洞扫描方法用于以太坊智能合约。我们提出了VASCOT,一种使用Transformer的智能合约漏洞分析器,它对以太坊虚拟机(EVM)字节码进行序列分析,并结合滑动窗口机制以克服输入长度限制。为了评估VASCOT的检测效果,我们构建了一个包含16,469个已验证的以太坊合约的数据库,这些合约在2022年部署,使用跟踪分析并进行具体验证以减少误报。然后将VASCOT的性能与最先进的LSTM-based漏洞检测模型在我们的数据集和一个较旧的公开数据集上进行比较。我们的发现突显了每种模型的优势和局限性,提供了关于其检测能力和泛化能力的见解。

英文摘要:

Smart contract technology facilitates self-executing agreements on the blockchain, eliminating dependency on an external trusted authority. However, smart contracts may expose vulnerabilities that can lead to financial losses and disruptions in decentralized applications. In this work, we evaluate deep learning-based approaches for vulnerability scanning of Ethereum smart contracts. We propose VASCOT, a Vulnerability Analyzer for Smart COntracts using Transformers, which performs sequential analysis of Ethereum Virtual Machine (EVM) bytecode and incorporates a sliding window mechanism to overcome input length constraints. To assess VASCOT's detection efficacy, we construct a dataset of 16,469 verified Ethereum contracts deployed in 2022, and annotate it using trace analysis with concrete validation to mitigate false positives. VASCOT's performance is then compared against a state-of-the-art LSTM-based vulnerability detection model on both our dataset and an older public dataset. Our findings highlight the strengths and limitations of each model, providing insights into their detection capabilities and generalizability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑