Detecting DeFi securities violations from token smart contract code

Author:

Trozze AriannaORCID,Kleinberg Bennett,Davies Toby

Abstract

AbstractDecentralized Finance (DeFi) is a system of financial products and services built and delivered through smart contracts on various blockchains. In recent years, DeFi has gained popularity and market capitalization. However, it has also been connected to crime, particularly various types of securities violations. The lack of Know Your Customer requirements in DeFi poses challenges for governments trying to mitigate potential offenses. This study aims to determine whether this problem is suited to a machine learning approach, namely, whether we can identify DeFi projects potentially engaging in securities violations based on their tokens’ smart contract code. We adapted prior works on detecting specific types of securities violations across Ethereum by building classifiers based on features extracted from DeFi projects’ tokens’ smart contract code (specifically, opcode-based features). Our final model was a random forest model that achieved an 80% F-1 score against a baseline of 50%. Notably, we further explored the code-based features that are the most important to our model’s performance in more detail by analyzing tokens’ Solidity code and conducting cosine similarity analyses. We found that one element of the code that our opcode-based features can capture is the implementation of the SafeMath library, although this does not account for the entirety of our features. Another contribution of our study is a new dataset, comprising (a) a verified ground truth dataset for tokens involved in securities violations and (b) a set of legitimate tokens from a reputable DeFi aggregator. This paper further discusses the potential use of a model like ours by prosecutors in enforcement efforts and connects it to a wider legal context.

Funder

Engineering and Physical Sciences Research Council

Publisher

Springer Science and Business Media LLC

Reference105 articles.

1. Aljofey A, Rasool A, Jiang Q, Qu Q (2022) A feature-based robust method for abnormal contracts detection in ethereum blockchain. Electronics 11(18):2937. https://doi.org/10.3390/electronics11182937

2. Bartoletti M, Carta S, Cimoli T, Saia S (2020a) Dissecting ponzi schemes on ethereum: identification, analysis, and impact. Future Gener Comput Syst 102:259–277. https://doi.org/10.1016/j.future.2019.08.014

3. Bartoletti M, Chiang JH-y, Lluch-Lafuente A (2020b) SoK: lending pools in decentralized finance. arxiv:2012.13230. Accessed 22 Mar 2022

4. Bartoletti M, Carta S, Cimoli T, Saia S (2019) Dissecting Ponzi schemes on Ethereum

5. Binance Academy: (2021) Blockchain. https://academy.binance.com/en/glossary/blockchain Accessed 25 Nov

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3