Malicious Network Traffic Classification and Automatic Response Using Graph Neural Network for 6G Networks
TL;DR
This paper proposes an integrated prototype intended for 6G-oriented network-security contexts that represents network traffic as a graph, applies a Graph Convolutional Network (GCN) to classify traffic records into normal and malicious categories, and issues an automated, confidence-based security response based on the classification result.
Abstract
Modern computer networks produce tremendous amounts of heterogeneous traffic in which legitimate and malicious communication is diffusely intertwined. Traditional intrusion detection approaches based on signature rules, as well as those utilizing feature-based machine learning algorithms, process network traffic records as independent observations, thus discarding potentially valuable information encoded in relationships between communicating entities. Given that network communication naturally takes place in the form of a graph, wherein nodes represent individual devices and edges stand for communication sessions between them, such limitations call for a graph-based approach to jointly model traffic characteristics and topology-aware patterns of communication. This paper proposes an integrated prototype intended for 6G-oriented network-security contexts that represents network traffic as a graph, applies a Graph Convolutional Network (GCN) to classify traffic records into normal and malicious categories, and issues an automated, confidence-based security response based on the classification result. Upon detection of malicious traffic, the system extracts relevant source/destination information, generates a security alert, and selects a response action according to a three-level confidence policy before temporarily blocking high-confidence malicious traffic in a controlled testbed operating in a DRY_RUN (non-enforcing) firewall mode. Each detected security event and the associated response is logged for subsequent analysis. The prototype is evaluated on 199,999 sampled flow records from the UNSW-NB15 public network-security dataset; a GCN classifier is compared against a Random Forest baseline on a common held-out test split of 36,028 flows. The Random Forest baseline achieved higher overall performance (99.01% accuracy, 94.68% F1-score) than the GCN (87.90% accuracy, 59.17% F1-score); both models achieved an identical recall of 97.20%, while the GCN produced a substantially higher false-positive rate (13.02% vs. 0.81%). Confidence-threshold analysis shows that raising the GCN decision threshold trades recall for precision, and an end-to-end response demonstration over 50 model predictions distributed actions as 86% Allow, 2% Alert + Monitor, and 12% Temporary Block. The retained experimental artifacts also leave a 19,860-record gap between the sampled dataset and the graph-construction totals, and the graph builder produced only two nodes per data split; both issues are reported explicitly rather than concealed. The prototype therefore demonstrates a complete, honestly evaluated detection-to-response pipeline and an integration contribution, rather than a claim of GNN superiority over conventional machine learning on this dataset.