[Paper Review] Expansion of Cyber Attack Data From Unbalanced Datasets Using Generative Techniques
This paper proposes using Generative Adversarial Networks (GANs) to augment unbalanced cyberattack datasets, specifically the UGR’16 dataset, by generating synthetic attack samples to improve classifier performance. The GAN-based data expansion significantly enhances model accuracy, AUC-ROC, and precision-recall metrics by balancing minority attack classes.
Machine learning techniques help to understand patterns of a dataset to create a defense mechanism against cyber attacks. However, it is difficult to construct a theoretical model due to the imbalances in the dataset for discriminating attacks from the overall dataset. Multilayer Perceptron (MLP) technique will provide improvement in accuracy and increase the performance of detecting the attack and benign data from a balanced dataset. We have worked on the UGR'16 dataset publicly available for this work. Data wrangling has been done due to prepare test set from in the original set. We fed the neural network classifier larger input to the neural network in an increasing manner (i.e. 10000, 50000, 1 million) to see the distribution of features over the accuracy. We have implemented a GAN model that can produce samples of different attack labels (e.g. blacklist, anomaly spam, ssh scan). We have been able to generate as many samples as necessary based on the data sample we have taken from the UGR'16. We have tested the accuracy of our model with the imbalance dataset initially and then with the increasing the attack samples and found improvement of classification performance for the latter.
Motivation & Objective
- Address the challenge of imbalanced datasets in intrusion detection systems (IDS), where attack samples are vastly outnumbered by benign traffic.
- Improve the generalization and detection accuracy of machine learning classifiers by balancing minority attack classes using generative techniques.
- Develop a GAN-based framework to synthesize realistic cyberattack samples from the UGR’16 dataset to enhance training data distribution.
- Evaluate the impact of data augmentation on model performance using standard metrics like AUC-ROC and precision-recall curves.
Proposed method
- Utilized the UGR’16 dataset as the primary source for training and testing, applying data wrangling to prepare a balanced test set.
- Implemented a Deep Neural Network (MLP) as the discriminator in a GAN architecture to distinguish real from generated attack samples.
- Trained a generator network to produce synthetic attack samples across multiple attack types (e.g., blacklist, SSH scan, anomaly spam) based on real data distributions.
- Increased training input size progressively (10k, 50k, 1M samples) to assess feature distribution and model scalability.
- Applied feature engineering to convert mixed data types (e.g., IP addresses) into numerical representations suitable for neural network input.
- Evaluated model performance using AUC-ROC and precision-recall curves on both unbalanced and GAN-augmented balanced datasets.
Experimental results
Research questions
- RQ1Can GAN-based data generation effectively balance unbalanced cyberattack datasets like UGR’16 to improve classifier performance?
- RQ2How does the inclusion of synthetic attack samples affect the AUC-ROC and precision-recall metrics of a neural network-based IDS?
- RQ3To what extent does data augmentation via GANs reduce overfitting to benign traffic in imbalanced datasets?
- RQ4How do different input sizes (10k to 1M samples) influence the feature distribution and model accuracy in the presence of synthetic data?
Key findings
- The GAN-augmented balanced dataset achieved an AUC-ROC value close to 1.0, indicating near-perfect model performance, compared to 0.80 in the unbalanced case.
- The precision-recall AUC increased significantly from approximately 0.2 in the unbalanced dataset to near 1.0 in the balanced, GAN-augmented dataset.
- Model accuracy improved substantially when trained on the augmented dataset, as the classifier could learn from sufficient attack samples and avoid overfitting to benign traffic.
- The use of synthetic data via GANs effectively mitigated the bias toward the majority class, leading to better detection of minority attack types.
- The model trained on the expanded dataset demonstrated robustness and improved generalization across various attack categories.
- Despite computational limitations due to hardware constraints, the GAN-based approach proved feasible and scalable on a subset of the UGR’16 dataset.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.