Analyzing the Impact of Copying-and-Pasting Vulnerable Solidity Code Snippets from Question-and-Answer Websites
Creators
Description
This data comprises all input and output, including intermediate results for the evaluation of the tool cpg-contract-checker(CCC) and the crawled data and results for the study published under the name "Analyzing the Impact of Copying-and-Pasting Vulnerable Solidity Code Snippets from Question-and-Answer Websites".
We conducted a study on the impact of vulnerable code reuse from Q&A websites during the development of smart contracts and provided tools uniquely fit to detect vulnerable code patterns in complete and incomplete Smart Contract code. The paper proposes a pattern-based vulnerability detection tool that is able to analyze code snippets (i.e., incomplete code) as well as full smart contracts based on the concept of code property graphs. We also propose a methodology that leverages fuzzy hashing to quickly detect code clones of vulnerable snippets among deployed smart contracts. Our results show that our vulnerability search, as well as our code clone detection, are comparable to state-of-the-art while being applicable to code snippets. The tools are used to realize a study pipeline for which the dataset and (intermediate) results are contained in this archive.
Files
Files
(2.6 GB)
Name | Size | Download all |
---|---|---|
md5:7efd6b29df77698dbc8b39d35f7ff4c3
|
2.6 GB | Download |
Additional details
Software
- Repository URL
- https://github.com/Fraunhofer-AISEC/cpg-contract-checker
- Programming language
- Kotlin, Python, Solidity