Published March 29, 2022 | Version 3

Dataset: A Fly in the Ointment: An Empirical Study on the Characteristics of Ethereum Smart Contracts Code Weaknesses and Vulnerabilities

  • 1. Reykjavik University
  • 2. Polytechnique Montreal

Description

Dataset: A Fly in the Ointment: An Empirical Study on the Characteristics of Ethereum Smart Contracts Code Weaknesses and Vulnerabilities

Majd Soud, Grischa Liebel, Mohammad Hamdaqa
majd18@ru.is, grischal@ru.is, mhamdaqa@polymtl.ca.

This Dataset includes the following: 

1. "labeling.xml" files that represents the data for Categories of vulnerabilities in Smart Contracts for four data sources (i.e., Common Vulnerability and Exposure (CVE), Smart Contract Weakness Classification Registry (SWC), Stack Overflow, and GitHub)
XML files structure:
The XML files can be opened used any editor or any code editor (e.g. Visual Studio Code).

1. Each file has a root that is <Card_Table></Card_Table> which contains all the cards we labeled. 
2. Each card is represented by the <Card></Card> and contains the following:
            - The tag marked by <Tag> represents the keyword that was used to search and collect the card from StackOverflow. 
            - The URL marked by <URL> of the URL link which contains all the information of the labeled vulnerability.  
            - The other tages marked by <OtherTags> that shows all the tags used in the post on Stack Overflow. 
            - The expert labeling for the categories of vulnerabilities in each card is represented by  <CategoryExpertLabel>
            - In more details, some records has the <SecondExpertCategoryLabel> that represents the second expert labeling for the categories of vulnerabilities.
            - The <CategoryAgreement> used to calculate the inter-rater agreement between the two labelers. 
    

Files

01_CVE_card_labeled_Final.xml

Files (1.1 MB)

Name Size
md5:dbdf9dc6adb015f54dd2d1bde0a09b9c
204.3 kB Preview Download
md5:0a4ad56e9e53f78146e3e2d90317881b
8.1 kB Preview Download
md5:45ba7a1af701d07826bd6e233cdacac4
713.8 kB Preview Download
md5:77bacc76f0ad26a47023d275116827eb
159.7 kB Preview Download
md5:e413091c9abc59e5eb7c66abd585dd1c
1.7 kB Preview Download