Security Attack Detection Using Machine Learning and Deep Learning

  • Chapter
  • First Online:
Artificial Intelligence in Cyber Security: Theories and Applications

Part of the book series: Intelligent Systems Reference Library ((ISRL,volume 240))

  • 174 Accesses

Abstract

Data has been increasing exponentially over the past few years. This has introduced a variety of anomalies and security threats in the field of networking. Because of this, Intrusion Detection Systems (IDS) have become popular. An IDS is a network trafficking monitoring system that detects any suspicious activity and alerts the administrator when it is found. An IDS is generally prone to false alarms. Therefore, there is a need to fine-tune them. Using Machine Learning and Deep Learning techniques, one can build such systems which are accurate in detection of malicious activities. Previously, KDDCUP99 dataset has been used for most of the research purposes. However, the dataset is old and doesn’t justify the intrusions and malicious activities that occur now. Therefore, we have made the use of UNSW-NB15dataset (Moustafa and Slay, 2015 Military communications and information systems conference (MilCIS), 2015) which is an upgraded version of KDDCUP99 dataset and is more uniform and balanced. We have used various machine learning and deep learning algorithms like Logistic Regression (LR), Decision Trees (DT), Random Forest (RF), Naïve Bayes (NB), Support Vector Machine (SVM) and Artificial Neural Networks (ANN) to classify whether it was a network intrusion or not. It has been found that SVM, DT, ANN and NB gave a hundred percent accuracy whereas the Random Forest model gave an accuracy of 99.9%.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. N. Moustafa, J. Slay, UNSW-NB15: a comprehensive data set for network intrusion detection systems (UNSW-NB15 network data set), in 2015 Military Communications and Information Systems Conference (MilCIS) (2015)

    Google Scholar 

  2. K. Ee, L.I. Zhichun, G. Jiang, L. Korts-Parn, Z. Wu, Y. Sun, Host level detect mechanism for malicious DNS activities, in Host Level Detect Mechanism for Malicious DNS Activities. U.S. Patent Appl. 15, vol. 644 (2018)

    Google Scholar 

  3. S.S. Soniya, S.M.C. Vigila, Intrusion detection system: classification and techniques, in 2016 International Conference on Circuit, Power and Computing Technologies (ICCPCT) (2016)

    Google Scholar 

  4. E. Spafford, D. Zamboni, Data collection mechanisms for intrusion detection systems, in CERIAS Technical Report (Center for Education and Research in Information Assurance and Security, West Lafayette, 2000), pp. 41315–47907

    Google Scholar 

  5. S.M. Kasongo, Y. Sun, Performance analysis of intrusion detection systems using a feature selection method on the UNSW-NB15 dataset. J. Big Data 7(1) (2020)

    Google Scholar 

  6. I. Ahmad, Q.E. Ul Haq, M. Imran, M.O. Alassafi, R.A. AlGhamdi, An efficient network intrusion detection and classification system. Mathematics 10(3), 530 (2022)

    Google Scholar 

  7. D. **g, H.-B. Chen, SVM based network intrusion detection for the UNSW-NB15 dataset, in 2019 IEEE 13th International Conference on ASIC (ASICON) (2019)

    Google Scholar 

  8. N. Sharma, N.S. Yadav, Ensemble learning based classification of UNSW-NB15 dataset using exploratory data analysis, in 2021 9th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions) (ICRITO) (2021)

    Google Scholar 

  9. B.S. Bhati, C.S. Rai, B. Balamurugan, F. Al-Turjman, An intrusion detection scheme based on the ensemble of discriminant classifiers. Comput. Electr. Eng. 86(106742), 106742 (2020)

    Article  Google Scholar 

  10. S. Choudhary, N. Kesswani, Analysis of KDD-cup’99, NSL-KDD and UNSW-NB15 datasets using deep learning in IoT. Procedia Comput. Sci. 167, 1561–1573 (2020)

    Article  Google Scholar 

  11. S. Naseer et al., Enhanced network anomaly detection based on deep neural networks. IEEE Access 6, 48231–48246 (2018)

    Article  Google Scholar 

  12. I.H. Sarker, Y.B. Abushark, F. Alsolami, A.I. Khan, IntruDTree: a machine learning based cyber security intrusion detection model. Symmetry (Basel) 12(5), 754 (2020)

    Article  Google Scholar 

  13. J. Ren, J. Guo, W. Qian, H. Yuan, X. Hao, H. **g**g, Building an effective intrusion detection system by using hybrid data optimization based on machine learning algorithms. Secur. Commun. Netw. 2019, 1–11 (2019)

    Google Scholar 

  14. J. Tarun, et al., Machine learning techniques for prediction of mental health, in 2021 Third International Conference on Inventive Research in Computing Applications (ICIRCA) (IEEE, 2021)

    Google Scholar 

  15. T. Jain, P. Garg, N. Chalil, A. Sinha, V.K. Verma, R. Gupta, SMS spam classification using machine learning techniques, in 2022 12th International Conference on Cloud Computing, Data Science & Engineering (Confluence) (2022), pp. 273–279. https://doi.org/10.1109/Confluence52989.2022.9734128

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Aditya Sinha .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Jain, T., Kalra, N., Panwar, D., Sinha, A. (2023). Security Attack Detection Using Machine Learning and Deep Learning. In: Bhardwaj, T., Upadhyay, H., Sharma, T.K., Fernandes, S.L. (eds) Artificial Intelligence in Cyber Security: Theories and Applications. Intelligent Systems Reference Library, vol 240. Springer, Cham. https://doi.org/10.1007/978-3-031-28581-3_6

Download citation

Publish with us

Policies and ethics

Navigation