1.
Introduction
2. Types of attacks
A. Denial of Service (Dos) attack
A Denial of Service (DoS) attack attempts to permanently or temporarily interfere with the operations of a host that is connected to the internet in order to render a computer or network resource inaccessible to its intended users. Usually, this kind of attack consists of flooding the target system with too much traffic or taking use of security holes to bring about a system breakdown. The details of denial-of-service (DoS) attacks, such as their mechanisms, effects, and countermeasures, are provided here.
B. Distributed Denial of attack (DDOS)
A DDoS assault uses several hacked systems to overwhelm the target, hence amplifying the effect of a DoS attack. Oftentimes, an attacker's network of infected devices, or botnet, includes these compromised computers.
C. BOTNET Attack
An assault using a botnet entails a network of hacked computers, also called "bots" or "zombies," that are under the direction of an attacker, sometimes known as a "botmaster." These bots may be used to send spam emails, execute distributed denial-of-service (DDoS) assaults, steal confidential data, and carry out other malevolent tasks. This is a thorough examination of botnet assaults, including their elements, modes of operation, effects, and countermeasures.
D. Brute Force attack
A brute force attack is a method used to gain unauthorized access to systems, networks, or accounts by systematically trying all possible combinations of passwords, encryption keys, or other credentials until the correct one is found. This type of attack relies on the computational power to exhaustively search through the possibilities and is often automated using software tools.
3. Convolution Neural Network
A subclass of deep neural networks called convolutional neural networks, or CNNs, are frequently employed to analyse visual input [3]. For tasks like object identification, categorization, and picture recognition, they work very well. A typical CNN design is made up of several layers, each of which has a distinct function in the processing pipeline. A typical CNN architecture is provided below:
4. Recurrent Neural Network
5. Dataset
The CICIDS-2018 dataset, developed by the Canadian Institute for Cybersecurity, is a comprehensive dataset for evaluating intrusion detection systems. It addresses various limitations found in previous datasets and provides a detailed representation of modern network traffic and diverse attack scenarios. The dataset includes a wide range of attack types, reflecting real-world cybersecurity threats, making it a valuable resource for research and development in the field of cybersecurity. It captures normal and malicious traffic in a simulated network environment that includes different subnets and devices. It covers a wide range of attack scenarios, including DoS (Denial of Service), DDoS (Distributed Denial of Service), Brute Force, Botnet, Web Attacks, Infiltration, Heartbleed, and more. It has 80 features It provides extensive features extracted from network flows, including packet-level and flow-level data. It includes detailed labels indicating the type of attack or normal traffic, which is crucial for training supervised machine learning models. A wealth of information gleaned from network traffic are included in the CICIDS-2018 dataset to help with the recognition and categorization of different kinds of assaults. For every network flow, the dataset offers 80 features in particular.
7. Proposed Methodology
8. Algorithm
These are the steps for the proposed methodology
1. Firstly, collect the dataset CICIDS-2018. 2. Data visualization will be done using graphs, diagrams, PPTs 3. Preprocess the dataset using data cleaning and data normalization techniques. 4. Feature extraction using the XG-Boost technique. 5. Data splitting will be done to divide the training and testing data 6. Apply the dataset to the CNN layer i.e convolution layer and pooling layer 7. Resultant of CNN Layers applied on RNN layers i.e RNN network and hidden layer 8. Output layers give the binary or multiclass classification of attack.
9. Performance Evaluation
A confusion matrix is a tabular representation of the number of accurate and inaccurate guesses (or actual and expected values) that a classifier (or classification model) produces for jobs involving binary classification.
The metrics in Table 1's confusion matrix are used to assess how well IDS is working. TP stands for benign records that have been mistakenly classed as harmful, FP for benign recordings that have been mistakenly classified as malicious, TN for malicious documents that have been mistakenly classified as benign, and FN for malicious records that have been mistakenly classified as benign. We can determine accuracy (ACC), detection rate (DR), precision (Pr), and false alarm rate (FAR) from the confusion matrix indicators. The ratio of accurate record forecasts is referred to as ACC. The capacity to forecast only complete positive records is known as data reliability (DR). FAR is the ratio of typical traffic misclassifications, whereas Pr is the capacity to prevent mislabeling negative data as positive.
ACC = (TP+ TN)/(TP+TN+FP+FN) Detection Rate (DR) =TP/TP+FN False Alarm Rate (FAR)= FP/FP+TP Precision (PR) =TP/TP+FP F1-Score =TP/[TP+1/2(FP+FN))
Dataset Classification
Binary Multiclassification
No. of Records
Types of Records
No. of Records
Types of Records
7 Normal
CICIDS-2018. 2 Normal &
Abnormal
Brute force, Botnet, DoS, DDoS,
10. Experimental Result & Discussion
We constructed our model on an evaluation platform com rised of an hp with an Intel Core (i7) processor running at 2.80 GHz and 5 GB of RAM. The model for deep learning was implemented using the Pandas, Keras, and Tensorflow libraries .Two techniques of classification have been used to evaluate the models: binary and multiclass. For binary classification, the datasets were split into two classes: normal and assault. We have used five classes for multiclassification Normal DDoS, Botnet, Dos, Brute Force.
A.CNN-RNN based on selected features
Firstly, we have done our experiment with selected features 24, 40,50,60,80. We get the highest accuracy 99.70 with 60 features. We got the highest detection rate 99.64 with 78 features and we found the lowest false alarm 0.11 with 50 features.
B. CNN-RNN based on stratified K- fold cross
In the next step, we have used K fold cross-validation. One resampling method for assessing a machine-learning model's performance is K-fold cross-validation. First, the dataset is divided into K equal-sized subsets, or "folds." After that, the model is trained and verified K times, with the training set consisting of the remaining K-1 folds and the validation set consisting of a different fold each time. By utilizing each data point for training and validation, this technique guarantees a more reliable assessment of the model's performance.
Because all data points are included for both training and validation, it offers a more precise estimation of model performance. With multiple fold averages, the performance metric's variation is reduced. It can effective use of the whole dataset for validation and training.
6 99.64 99.69 99.58 99.7 0.35 8 99.65 99.70 99.57 99.6 0.10 10 99.49 99.69 99.26 99.4 0.5
10. Conclusion & Future work
In this proposed model, we have used CNN and RNN hybrid model for classification and XGBoost is used for feature extraction. This approach is used for binary and multi-class classification. CNN is used to find out spatial features and RNN is used for temporal features. The hybrid model shows a good result on the CICIDS-2018 dataset. This model shows good accuracy, detection rate and low false alarm rate. Our model will be very useful for NIDS because it can remove the problem of previous IDS. Our model focus on the low false alarm and high Accuracy, which can improve NIDS. We have used K-fold validation to remove imbalance classification.In the future, we can work on IDS in cloud environment and IOT environment. Cloud and IOT environment need to secure with an efficient NIDS.
References
- [1] Manimaran, A., Chandramohan, D., Shrinivas, S., & Arulkumar, N. (2020). A comprehensive novel model for network speech anomaly detection system using deep learning approach. International Journal of Speech Technology, 23, 305-313. https://doi.org/10.1007/s10772-020-09693-z. [2] Khraisat, A., Gondal, I., Vamplew, P., & Kamruzzaman, J. (2019). Survey of intrusion detection systems: techniques, datasets and challenges. Cybersecurity, 2. https://doi.org/10.1186/s42400-019-0038-7. [3] Rawat, W., & Wang, Z. (2017). Deep Convolutional Neural Networks for Image Classification: A Comprehensive Review. Neural Computation, 29, 2352-2449. https://doi.org/10.1162/neco_a_00990. [4] Leevy, J., & Khoshgoftaar, T. (2020). A survey and analysis of intrusion detection models based on CSE- CIC-IDS2018 Big Data. J. Big Data, 7, 104. https://doi.org/10.1186/s40537-020-00382-x. [5] Mohammed, Mohssen. , Abdalla, Mohamed. , Elhoseny, Mohamed. Detecting Zero-day Polymorphic Worms Using Honeywall. Journal of Journal of Cybersecurity and Information Management, vol. 15, no. 1, 2025, pp. 34-49. DOI: https://doi.org/10.54216/JCIM.150104 [6] Gopalakrishnan, Mahalakshmi & Elangovan, Uma & M, Aroosiya & M, Vinitha. (2021). Intrusion Detection System Using Convolutional Neural Network on UNSW NB15 Dataset. 10.3233/APC210116. [7] Kottapalle, Prasanna. (2020). A CNN-LSTM Model for Intrusion Detection System from High Dimensional Data. 10. 1362-1370. 10.5281/zenodo.7911821. [8] Shreeya Jain, Pranav M. Pawar, Raja Muthalagu,Hybrid intelligent intrusion detection system for internet of things,Telematics and Informatics Reports,Volume 8,2022,100030,ISSN 2772-5030, https://doi.org/10.1016/j.teler.2022.100030. [9] Arun Kumar Silivery, Ram Mohan Rao Kovvur, Ramana Solleti, LK Suresh Kumar, Bhukya Madhu,A model for multi-attack classification to improve intrusion detection performance using deep learning approaches, Measurement: Sensors, Volume 30,2023,100924,ISSN 2665-9174, https://doi.org/10.1016/j.measen.2023.100924. [10] Pritom Biswas Udas, Md. Ebtidaul Karim, Kowshik Sankar Roy,SPIDER: A shallow PCA based network intrusion detection system with enhanced recurrent neural networks,Journal of King Saud University -Computer and Information Sciences,Volume 34, Issue 10, Part B,2022, Pages 10246-10272,ISSN 1319-1578, https://doi.org/10.1016/j.jksuci.2022.10.019. [11] Bhatnagar, Amrita. , Giri, Arun. , Sharma, Aditi. A Hybrid Intrusion Detection Approach for Cyber Attacks. Journal of Journal of Cybersecurity and Information Management, vol. 13, no. 2, 2024, pp. 08-18. DOI: https://doi.org/10.54216/JCIM.130201 [12] B., Jorge. , Mauricio, Kevin. , Marks, Adam. Fusion of Forensic Analysis of Mobile Devices: Integrating Multi-Criteria Decision Methods and Case Study Insights. Journal of Fusion: Practice and Applications, vol. 16, no. 2, 2024, pp. 32-42. DOI: https://doi.org/10.54216/FPA.160203 [13] Boukhalfa, A., Abdellaoui, A., Hmina, N., & Chaoui, H. (2019) LSTM deep learning method for network intrusion detection system. International Journal of Electrical and Computer Engineering (IJECE). https://doi.org/10.36478/jeasci.2020.227.232. [14] Laghrissi, F., Douzi, S., Douzi, K., & Hssina, B. (2021). Intrusion detection systems using long short- term memory (LSTM). Journal of Big Data, 8(1), 65. https://doi.org/10.1186/s40537-021-00448-4 [15] Dixit, Ashish. , P., R.. , K., B.. , Sharma, Aditi. Safeguarding Digital Essence: A Sub-band DCT Neural Watermarking Paradigm Leveraging GRNN and CNN for Unyielding Image Protection and Identification. Journal of Journal of Intelligent Systems and Internet of Things, vol. 10, no. 1, 2023, pp. 33-47. DOI: https://doi.org/10.54216/JISIoT.100103 [16] Fu, Yanfang & Du, Yishuai & Cao, Zijian & Li, Qiang & Xiang, Wei. (2022). A Deep Learning Model for Network Intrusion Detection with Imbalanced Data. Electronics. 11. 898. 10.3390/electronics11060898. [17] Aldallal A. Toward Efficient Intrusion Detection System Using Hybrid Deep Learning Approach. Symmetry.. 2022; 14(9):1916 https://doi.org/10.3390/sym14091916 [18] C. Yin, Y. Zhu, J. Fei, and X. He, "A Deep Learning Approach for Intrusion Detection Using Recurrent Neural Networks," in IEEE Access, vol-5.pp. 21954-21961, 2017, doi: 10.1109/ACCESS.2017.2762418. [19] Samha, A.K., Malik, N., Sharma, D. et al. Intrusion Detection System Using Hybrid Convolutional Neural Network. Mobile Netw Appl (2023). https://doi.org/10.1007/s11036-023-02223-6 [20] J. K. Samriya, C. Chakraborty, A. Sharma, M. Kumar and S. K. Ramakuri, "Adversarial ML-Based Secured Cloud Architecture for Consumer Internet of Things of Smart Healthcare," in IEEE Transactions on Consumer Electronics, vol. 70, no. 1, pp. 2058-2065, Feb. 2024, doi: 10.1109/TCE.2023.3341696. [21] X. Zhang, J. Ran and J. Mi, "An Intrusion Detection System Based on Convolutional Neural Network for Imbalanced Network Traffic," 2019 IEEE 7th International Conference on Computer Science and Network Technology (ICCSNT), Dalian, China, 2019, pp. 456-460, doi: 10.1109/ICCSNT47585.2019.8962490. [22] G. Sonowal, A. Sharma and L. Kharb, "Spear-phishing emails verification method based on verifiable secret sharing scheme", Journal of Information Assurance & Security, vol. 16, no. 3, pp. 117-124, 2021. [23] Vanlalruata Hnamte, Jamal Hussain, Dependable intrusion detection system using deep convolutional neural network: A Novel framework and performance evaluation approach,Telematics and Informatics , Reports,Volume 11,2023,100077,ISSN 2772-5030 https://doi.org/10.1016/j.teler.2023.100077. [24] Anand, Nishant. , Parwekar, Pritee. , Sharma, Aditi. Optimized LoRaWAN Architectures: Enhancing Energy Efficiency and Long-Range Connectivity in IoT Networks for Sustainable, Low-Power Solutions and Future Integrations with Edge Computing and 5G. Journal of Journal of Intelligent Systems and Internet of Things, vol. 13, no. 2, 2024, pp. 78-90. DOI: https://doi.org/10.54216/JISIoT.130206 [25] L. Heng and T. Weise, "Intrusion Detection System Using Convolutional Neuronal Networks: A Cognitive Computing Approach For Anomaly Detection based on Deep Learning," 2019 IEEE 18th International Conference on Cognitive Informatics & Cognitive Computing (ICCI*CC), Milan, Italy, 2019, pp. 34-40, doi:10.1109/ICCICC46617.2019.9146088. [26] Sydney Mambwe Kasongo,A deep learning technique for intrusion detection system using a Recurrent Neural Networks-based framework Computer Communications, Volume 199,2023, Pages 113-125, ISSN 0140-3664, https://doi.org/10.1016/j.comcom.2022.12.010. [27] Halbouni, A., Gunawan, T. S., Habaebi, M. H., Halbouni, M., Kartiwi, M., & Ahmad, R. (2022). CNN- LSTM: hybrid deep neural network for network intrusion detection system. IEEE Access, 10, 99837-99849.