TL;DR
SmartEmbed is a web tool that uses code embeddings to detect code clones and clone-related bugs in Solidity smart contracts, enhancing security and reliability in Ethereum blockchain applications.
Contribution
The paper introduces SmartEmbed, a novel embedding-based approach for clone and bug detection in smart contracts, with high accuracy and large-scale applicability.
Findings
Clone ratio in Solidity contracts is nearly 90%, higher than traditional software.
SmartEmbed identified 194 clone-related bugs with 96% precision.
The tool is effective for large-scale analysis of over 22,000 contracts.
Abstract
Ethereum has become a widely used platform to enable secure, Blockchain-based financial and business transactions. However, a major concern in Ethereum is the security of its smart contracts. Many identified bugs and vulnerabilities in smart contracts not only present challenges to maintenance of blockchain, but also lead to serious financial loses. There is a significant need to better assist developers in checking smart contracts and ensuring their reliability.In this paper, we propose a web service tool, named SmartEmbed, which can help Solidity developers to find repetitive contract code and clone-related bugs in smart contracts. Our tool is based on code embeddings and similarity checking techniques. By comparing the similarities among the code embedding vectors for existing solidity code in the Ethereum blockchain and known bugs, we are able to efficiently identify code clones and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
