FORGE: An LLM-driven Framework for Large-Scale Smart Contract Vulnerability Dataset Construction

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Chen, Jiachi, Shen, Yiming, Zhang, Jiashuo, Li, Zihao, Grundy, John, Shao, Zhenzhe, Wang, Yanlin, Wang, Jiashui, Chen, Ting, Zheng, Zibin
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909657555009536
author Chen, Jiachi
Shen, Yiming
Zhang, Jiashuo
Li, Zihao
Grundy, John
Shao, Zhenzhe
Wang, Yanlin
Wang, Jiashui
Chen, Ting
Zheng, Zibin
author_facet Chen, Jiachi
Shen, Yiming
Zhang, Jiashuo
Li, Zihao
Grundy, John
Shao, Zhenzhe
Wang, Yanlin
Wang, Jiashui
Chen, Ting
Zheng, Zibin
contents High-quality smart contract vulnerability datasets are critical for evaluating security tools and advancing smart contract security research. Two major limitations of current manual dataset construction are (1) labor-intensive and error-prone annotation processes limiting the scale, quality, and evolution of the dataset, and (2) absence of standardized classification rules results in inconsistent vulnerability categories and labeling results across different datasets. To address these limitations, we present FORGE, the first automated approach for constructing smart contract vulnerability datasets. FORGE leverages an LLM-driven pipeline to extract high-quality vulnerabilities from real-world audit reports and classify them according to the CWE, the most widely recognized classification in software security. FORGE employs a divide-and-conquer strategy to extract structured and self-contained vulnerability information from these reports. Additionally, it uses a tree-of-thoughts technique to classify the vulnerability information into the hierarchical CWE classification. To evaluate FORGE's effectiveness, we run FORGE on 6,454 real-world audit reports and generate a dataset comprising 81,390 solidity files and 27,497 vulnerability findings across 296 CWE categories. Manual assessment of the dataset demonstrates high extraction precision and classification consistency with human experts (precision of 95.6% and inter-rater agreement k-$α$ of 0.87). We further validate the practicality of our dataset by benchmarking 13 existing security tools on our dataset. The results reveal the significant limitations in current detection capabilities. Furthermore, by analyzing the severity-frequency distribution patterns through a unified CWE perspective in our dataset, we highlight inconsistency between current smart contract research focus and priorities identified from real-world vulnerabilities...
format Preprint
id arxiv_https___arxiv_org_abs_2506_18795
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle FORGE: An LLM-driven Framework for Large-Scale Smart Contract Vulnerability Dataset Construction
Chen, Jiachi
Shen, Yiming
Zhang, Jiashuo
Li, Zihao
Grundy, John
Shao, Zhenzhe
Wang, Yanlin
Wang, Jiashui
Chen, Ting
Zheng, Zibin
Cryptography and Security
Software Engineering
D.2.4; I.2.7
High-quality smart contract vulnerability datasets are critical for evaluating security tools and advancing smart contract security research. Two major limitations of current manual dataset construction are (1) labor-intensive and error-prone annotation processes limiting the scale, quality, and evolution of the dataset, and (2) absence of standardized classification rules results in inconsistent vulnerability categories and labeling results across different datasets. To address these limitations, we present FORGE, the first automated approach for constructing smart contract vulnerability datasets. FORGE leverages an LLM-driven pipeline to extract high-quality vulnerabilities from real-world audit reports and classify them according to the CWE, the most widely recognized classification in software security. FORGE employs a divide-and-conquer strategy to extract structured and self-contained vulnerability information from these reports. Additionally, it uses a tree-of-thoughts technique to classify the vulnerability information into the hierarchical CWE classification. To evaluate FORGE's effectiveness, we run FORGE on 6,454 real-world audit reports and generate a dataset comprising 81,390 solidity files and 27,497 vulnerability findings across 296 CWE categories. Manual assessment of the dataset demonstrates high extraction precision and classification consistency with human experts (precision of 95.6% and inter-rater agreement k-$α$ of 0.87). We further validate the practicality of our dataset by benchmarking 13 existing security tools on our dataset. The results reveal the significant limitations in current detection capabilities. Furthermore, by analyzing the severity-frequency distribution patterns through a unified CWE perspective in our dataset, we highlight inconsistency between current smart contract research focus and priorities identified from real-world vulnerabilities...
title FORGE: An LLM-driven Framework for Large-Scale Smart Contract Vulnerability Dataset Construction
topic Cryptography and Security
Software Engineering
D.2.4; I.2.7
url https://arxiv.org/abs/2506.18795