检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:龚晓元 刘冬明[1] 高峰 师自通 GONG Xiaoyuan;LIU Dongming;GAO Feng;SHI Zitong(School of Computer Science and Technology,North University of China,Taiyuan 030051,China)
机构地区:[1]中北大学计算机科学与技术学院,山西太原030051
出 处:《中北大学学报(自然科学版)》2023年第6期624-631,共8页Journal of North University of China(Natural Science Edition)
摘 要:针对目前以太坊庞氏骗局检测中存在的数据类别不平衡,特征来源单一和不能完整表达智能合约的语义语法关系和程序依赖关系等相关问题,提出了一种基于欠采样和源代码图表征的以太坊庞氏骗局检测方法。该方法利用Levenshtein算法计算训练集中多数类智能合约之间的距离,进而通过K-Means算法对多数类智能合约进行聚类,有选择地丢弃多数类合约,保证了训练集骗局合约和正常合约的类别相对平衡,提高了分类器对异常合约的敏感程度;针对庞氏骗局合约的代码特征改进了构图算法,通过剔除冗余特征,添加新的核心节点来解构智能合约的语义语法信息和程序依赖关系,使得神经网络更容易捕获和学习骗局合约的行为特征和资金流向模式。在XBlock数据集上进行了实验,结果表明本文提出的方法在保证精度的同时,召回率达到98%,优于现有方法。Aiming at the problems of unbalanced data categories,single source of features and inability to fully express the semantic and grammatical relationships and program dependencies of smart contracts in the detection of ethereum Ponzi schemes,a detection method was proposed based on undersampling and source code graph representation.This method used the Levenshtein algorithm to calculate the distance among most types of smart contracts in the training set,and then used the K-Means algorithm to cluster most types of smart contracts,and selectively discarded most types of contracts to ensure the distance between fraudulent contracts and normal contracts in the training set.The category was relatively balanced,and the sensitivity of the classifier to abnormal contracts was improved;the composition algorithm was improved for the code features of Ponzi scheme contracts,and the semantic syntax information and program dependencies of smart contracts were deconstructed by removing redundant features and adding new core nodes,which made it easier for the neural network to capture and learn the behavioral characteristics and capital flow patterns of fraudulent contracts.The results of experiments on the XBlock dataset show that the method proposed in this paper has a recall rate of 98%while ensuring precision,which is superior to existing methods.
关 键 词:以太坊 智能合约 庞氏骗局 类别不平衡 源程序构图 图神经网络
分 类 号:TP309.2[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.33