Chinese Journal of Network and Information Security ›› 2023, Vol. 9 ›› Issue (5): 33-47.doi: 10.11959/j.issn.2096-109x.2023076

• Papers • Previous Articles    

Metric-based learning approach to botnet detection with small samples

Honggang LIN1,2, Junjing ZHU1,2, Lin CHEN3   

  1. 1 School of Cyberspace Security, Chengdu University of Information Technology, Chengdu 610225, China
    2 Sichuan Key Laboratory of Advanced Cryptography and System Security, Chengdu 610225, China
    3 Anhui Key Laboratory of Cyberspace Security Situational Awareness and Assessment, Hefei 230037, China
  • Revised:2023-04-28 Online:2023-10-01 Published:2023-10-01
  • Supported by:
    TheNational 242 Information Security Plan(2021-037);Anhui Province Key Laboratory of Cyberspace Security Situation Awareness and Evaluation Open Project(CSSAE-2021-002)

Abstract:

Botnets pose a great threat to the Internet, and early detection is crucial for maintaining cybersecurity.However, in the early stages of botnet discovery, obtaining a small number of labeled samples restricts the training of current detection models based on deep learning, leading to poor detection results.To address this issue, a botnet detection method called BT-RN, based on metric learning, was proposed for small sample backgrounds.The task-based meta-learning training strategy was used to optimize the model.The verification set was introduced into the task and the similarity between the verification sample and the training sample feature representation was measured to quickly accumulate experience, thereby reducing the model’s dependence on the labeled sample space.The feature-level attention mechanism was introduced.By calculating the attention coefficients of each dimension in the feature, the feature representation was re-integrated and the importance attention was assigned to optimize the feature representation, thereby reducing the feature sparseness of the deep neural network in small samples.The residual network design pattern was introduced, and the skip link was used to avoid the risk of model degradation and gradient disappearance caused by the deeper network after increasing the feature-level attention mechanism module.

Key words: botnet, traffic detection, few-shot detection, metric learning

CLC Number: 

No Suggested Reading articles found!