信息网络安全 ›› 2024, Vol. 24 ›› Issue (10): 1506-1514.doi: 10.3969/j.issn.1671-1122.2024.10.004

• 入选论文 • 上一篇    下一篇

基于全局特征学习的挖矿流量检测方法

魏金侠1,2, 黄玺章1,2, 付豫豪1, 李婧1, 龙春1,2()   

  1. 1.中国科学院计算机网络信息中心,北京 100083
    2.中国科学院大学计算机科学与技术学院,北京 100049
  • 收稿日期:2024-06-22 出版日期:2024-10-10 发布日期:2024-09-27
  • 通讯作者: 龙春, longchun@cnic.cn
  • 作者简介:魏金侠(1987—),女,河北,高级工程师,博士,主要研究方向为网络空间安全|黄玺章(2000—),男,四川,硕士研究生,主要研究方向为网络空间安全|付豫豪(1988—),男,河南,高级工程师,硕士,主要研究方向为网络空间安全|李婧(1983—),女,吉林,工程师,博士,主要研究方向为密码协议设计与分析|龙春(1979—),男,湖北,正高级工程师,博士, CCF会员,主要研究方向为基于人工智能的网络未知攻击检测、恶意域名检测、网络流量分析
  • 基金资助:
    中国科学院青年创新促进会项目(2022170);中国科学院网络安全和信息化专项(CAS-WX2022GC-04)

Mining Traffic Detection Method Based on Global Feature Learning

WEI Jinxia1,2, HUANG Xizhang1,2, FU Yuhao1, LI Jing1, LONG Chun1,2()   

  1. 1. Computer Network Information Center, Chinese Academy of Sciences, Beijing 100083, China
    2. School of Computer Science and Technology, University of Chinese Academy of Sciences, Beijing 100049, China
  • Received:2024-06-22 Online:2024-10-10 Published:2024-09-27

摘要:

挖矿流量检测属于变长数据分类任务,现有的检测方案如关键字匹配、N-gram特征签名等基于局部特征的分类方法未能充分利用流量的全局特征。使用深度学习模型对挖矿流量进行建模,可以提取挖矿流量的全局特征,提高挖矿流量检测的准确率。文章提出的流量分类模型,使用Transformer编码器提取流量全局特征,然后使用序列总结器处理编码结果,获得用于分类的定长表示。由于挖矿样本在数据集中占比低于3%,使用准确率衡量模型的分类效果偏差较大,因此,文章综合考虑了模型的精确率和召回率,使用F1分数对模型的分类效果进行评估。在模型的编码器中使用正余弦位置编码可使模型在测试集上取得99.84%的F1分数,精确率达到100%。

关键词: 挖矿木马, 流量分类, 深度学习, 序列处理

Abstract:

Mining traffic detection is a variable-length data classification task. Existing detection schemes, such as keyword matching and N-gram feature signatures, which are based on local feature classification methods, fail to fully utilize the global features of traffic. By employing deep learning models to model mining traffic, global features within the mining traffic are extracted to enhance the accuracy of mining traffic detection. The traffic classification model proposed in the article first employed a Transformer encoder to extract global features of the traffic, followed by a sequence summarizer to process the encoded results, obtaining a fixed-length representation for classification. Due to the mining samples accounting for less than 3% in the dataset, using accuracy to measure the classification effect of the model leads to significant bias. Therefore, the article comprehensively considered the precision and recall of the model, and employed the F1 score to evaluate the classification performance. Utilizing sinusoidal positional encoding in the model’s encoder enables the model to achieve an F1 score of 99.84% on the test set, with a precision rate of 100%.

Key words: mining malware, traffic classification, deep learning, sequence processing

中图分类号: