arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.08749cs.CRcs.LG
收藏

以太坊中恶意交易的机器学习研究

ML Study of MaliciousTransactions in Ethereum

Natan Katz

AI总结:

本研究针对以太坊中利用智能合约漏洞的恶意交易问题,提出基于操作码+GPT2、Solidity源码+LORA微调CodeLlama的两种恶意合约检测方法,还构建融合gas属性与十六进制签名的XGBOOST模型检测恶意交易。

摘要:

智能合约是以太坊交易中的核心工具,因此黑客可在其源码中植入代码漏洞并利用这些漏洞实施恶意交易。本文提出两种检测恶意合约的有效方法:一种基于操作码,依托GPT2实现;另一种采用Solidity源码,结合经LORA微调的CodeLlama。最后,本文提出一个XGBOOST模型,融合gas属性与十六进制签名以检测恶意交易。该方法基于早期假设:恶意性体现为合约函数的非常规使用以及推进交易的异常投入。

英文摘要:

Smart contracts are a major tool in Ethereum transactions. Therefore hackers can exploit them by adding code vulnerabilities to their sources and using these vulnerabilities for performing malicious transactions. This paper presents two successful approaches for detecting malicious contracts: one uses opcode and relies on GPT2 and the other uses the Solidity source and a LORA fine-tuned CodeLlama. Finally, we present an XGBOOST model that combines gas properties and Hexa-decimal signatures for detecting malicious transactions. This approach relies on early assumptions that maliciousness is manifested by the uncommon usage of the contracts' functions and the effort to pursue the transaction.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑