Sensors (Aug 2023)

Malicious Traffic Identification with Self-Supervised Contrastive Learning

  • Jin Yang,
  • Xinyun Jiang,
  • Gang Liang,
  • Siyu Li,
  • Zicheng Ma

DOI
https://doi.org/10.3390/s23167215
Journal volume & issue
Vol. 23, no. 16
p. 7215

Abstract

Read online

As the demand for Internet access increases, malicious traffic on the Internet has soared also. In view of the fact that the existing malicious-traffic-identification methods suffer from low accuracy, this paper proposes a malicious-traffic-identification method based on contrastive learning. The proposed method is able to overcome the shortcomings of traditional methods that rely on labeled samples and is able to learn data feature representations carrying semantic information from unlabeled data, thus improving the model accuracy. In this paper, a new malicious traffic feature extraction model based on a Transformer is proposed. Employing a self-attention mechanism, the proposed feature extraction model can extract the bytes features of malicious traffic by performing calculations on the malicious traffic, thereby realizing the efficient identification of malicious traffic. In addition, a bidirectional GLSTM is introduced to extract the timing features of malicious traffic. The experimental results show that the proposed method is superior to the latest published methods in terms of accuracy and F1 score.

Keywords