Smart contract vulnerabilities in Decentralized Finance (DeFi) protocols resulted in over 1.49 billion USD in confirmed losses in 2024 alone, across 192 incidents [1]. As LLM-based vulnerability detection emerges as a promising approach to address these threats, the quality of evaluation datasets has become a critical bottleneck. Existing datasets suffer from three fundamental problems: they are built on outdated Solidity versions (e.g., v0.4) that no longer reflect modern DeFi contracts [5][6][7]; they rely on automated or LLM-generated annotations that introduce hallucination-driven label noise [9][10]; and they apply coarse single-layer labeling that fails to capture the semantic complexity of real-world business logic vulnerabilities [6][7][11][12]. We present Bastet, an expert-labeled DeFi smart contract vulnerability dataset that addresses all three problems through real-world audit findings (2021-2024), human expert annotation with discussion-based consensus, and a two-layer taxonomy of 46 Tags and 77 Subtags. Bastet comprises 4,402 findings collected from 394 Code4rena competitive audit reports spanning April 2021 to November 2024, of which 849 findings are fully annotated by white-hat security researchers from the DeFiHackLabs community. All annotations are produced through a two-annotator consensus workflow, ensuring label accuracy grounded in real-world vulnerability root causes.
Knowdit: Agentic Smart Contract Vulnerability Detection with Auditing Knowledge Summarization
Nanyang Technological University(南洋理工大学);National Superior College for Engineers, Beihang University(北京航空航天大学高等工程学院);Bitslab;The Chinese University of Hong Kong(香港中文大学)
VulDeePecker: A Deep Learning-Based System for Vulnerability Detection
Huazhong University of Science and Technology(华中科技大学);Hebei University(河北大学);Shenzhen Huazhong University of Science and Technology Research Institute(深圳华中科技大学研究院);University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校)
软件漏洞的自动检测是一个重要的研究课题。然而,该问题的现有解决方案依赖于人类专家来定义特征,并且经常错过许多漏洞(即,导致高假阴性率)。在本文中,我们开始研究使用基于深度学习的漏洞检测,以减轻人类专家手动定义特征的繁琐和主观任务。由于深度学习的动机是处理与漏洞检测问题非常不同的问题,因此我们需要一些将深度学习应用于漏洞检测的指导原则。特别是,我们需要找到适合深度学习的软件程序的表示。为此,我们建议使用代码小工具来表示程序,然后将它们转换为向量,其中代码小工具是一些(不一定是连续的)代码行,这些代码行在语义上彼此相关。这导致了一个基于深度学习的漏洞检测系统的设计和实现,称为Vulnerability Deep Pecker(VulDeepPecker)。为了评估VulDeePecker,我们为深度学习方法提供了第一个漏洞数据集。实验结果表明,VulDeePecker可以实现比其他方法少得多的假阴性(具有合理的假阳性)。我们进一步将VulDeePecker应用于3个软件产品(即Xen,Pionkey和Libav),并检测到4个漏洞,这些漏洞在国家漏洞数据库中没有报告,但在发布这些产品的后续版本时被供应商“默默”修补;相比之下,这些漏洞几乎完全被我们实验的其他漏洞检测系统所遗漏。
Combining Graph Neural Networks with Expert Knowledge for Smart Contract Vulnerability Detection
Zhejiang Gongshang University(浙江工商大学);Zhejiang University(浙江大学);National University of Singapore(新加坡国立大学);Southern University of Science and Technology(南方科技大学);Zhejiang Lab(之江实验室)
Towards Making Deep Learning-based Vulnerability Detectors Robust
Huazhong University of Science and Technology(华中科技大学);University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校);University of Colorado Colorado Springs(科罗拉多大学科罗拉多斯普林斯分校);Tsinghua University(清华大学)
On the Shoulders of Giants: Empowering Automated Smart Contract Auditing via the GiAnt Corpus
Zhejiang University(浙江大学);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高新技术区(滨江)区块链与数据安全研究所);University of Ottawa(渥太华大学)
LLM-Powered Detection of Price Manipulation in DeFi
The Hong Kong University of Science and Technology(香港科技大学);MegaETH;McGill University(麦吉尔大学);Nankai University(南开大学);Monash University(莫纳什大学);Southern University of Science and Technology(南方科技大学)
SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilities
Huazhong University of Science and Technology(华中科技大学);Hebei University(河北大学);University of Colorado Colorado Springs(科罗拉多大学科罗拉多斯普林斯分校);University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校)