LineageForge: Large Language Model for Constructing Verifiable Smart Contract Vulnerability Datasets at Scale
Yucheng Huang, Jinbo Wen, Jiawen Kang, Tenghui Huang, Ming Li, Chengjun Cai, Hongfa Ding, Shuyuan Lin
Abstract
Smart contract vulnerabilities pose serious security risks to decentralized applications. Given that deployed smart contract code is generally immutable, detecting vulnerabilities before deployment is crucial. Smart Contract Vulnerability (SCV) datasets play a key role in developing and evaluating vulnerability detection tools. Existing SCV datasets are commonly constructed through tool-based labeling, manual curation, or predefined vulnerability injection. However, these approaches face three key challenges: First, vulnerability samples often lack traceable origins in real-world security incidents. Second, ground-truth labels often lack empirical validation. Third, the number of instances per vulnerability type remains limited even when both provenance and validation are available. To address these challenges, we present LineageForge, a framework that leverages Large Language Models (LLMs) to construct verifiable SCV datasets at scale from vulnerabilities exploited in real-world attacks. LineageForge consists of two modules: 1) The incident-guided discovery module identifies compatible contracts whose business logic supports the target vulnerability and collects supporting source evidence. 2) Guided by this evidence, the Evidence-Grounded Contract Construction (EGCC) module constructs a protected contract free of the target vulnerability and derives its vulnerable counterpart through targeted code changes. EGCC then adapts and executes the attack against both versions. Based on seven real-world incidents, LineageForge produces 1,059 validated instances, each pairing a protected contract with its vulnerable counterpart and providing executable proofs of concept and the execution environment for reproducible verification. LineageForge is available at https://github.com/youfafa/lineageforge-dataset.
Create a lesson
Metadata
- Categories
- cs.CR, cs.SE
- Comments
- 12 pages, 5 figures, 6 tables
Related papers
MALET & Katalina: A Large-Scale Dataset and Static Analysis of macOS Malware
Shared title terminologycs.CRGodwin Attigah, Obinna Igbe
Skill or Threat? Risks and Scanner Gaps in the Large Language Model Skill Ecosystem
Shared title terminologycs.CRXinghao Gao, Xinhe Zhang, Yanxiang Mao et al.
Incentive-Driven Access Control Framework with Smart Contracts for Secure P2P Networks
Shared title terminologycs.CRSaurav Ghosh, Batuhan Tanrikulu, Reshmi Mitra et al.
A Survey of Security, Privacy, and Ethics of Large Language Models in Telecom
Shared title terminologycs.CRJoy Bose, Srinivas Adyapak
ReQOR: Operator-Discrepancy Subspace Repair for Quantization-Conditioned Backdoors in Large Language Models
Shared title terminologycs.CRWonjune Seo, Minkyung Park, Saerom Park
Red-Teaming the Reward: A Verifier and Benchmark for Triton Kernel Optimization Agents
Shared title terminologycs.CRPouya Shiri, Seyed Abbas Hosseini