Empirical Study on Malicious URL Detection Using Machine Learning

  • Ripon PatgiriEmail author
  • Hemanth KatariEmail author
  • Ronit KumarEmail author
  • Dheeraj SharmaEmail author
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 11319)


In this paper, the malicious URLs detection is treated as a binary classification problem and performance of several well-known classifiers are tested with test data. The algorithms Random Forests and support Vector Machine (SVM) are studied in particular which attain a high accuracy. These algorithms are used for training the dataset for classification of good and bad URLs. The dataset of URLs is divided into training and test data in 60:40, 70:30 and 80:20 ratios. Accuracy of Random Forests and SVMs is calculated for several iterations for each split ratio. According to the results, the split ratio 80:20 is observed as more accurate split and average accuracy of Random Forests is more than SVMs. SVM is observed to be more fluctuating than Random Forests in accuracy.


Malicious URL detection Network security Machine Learning Random Forest Suport vector machine SVM 


  1. 1.
    Choi, H., Zhu, B.B., Lee, H.: Detecting malicious web links and identifying their attack types. WebApps 11, 11 (2011)Google Scholar
  2. 2.
    Gabriel, A.D., Gavrilut, D.T., Alexandru, B.I., Stefan, P.A.: Detecting malicious URLs: a semi-supervised machine learning system approach. In: 2016 18th International Symposium on Symbolic and Numeric Algorithms for Scientific Computing (SYNASC), pp. 233–239. IEEE (2016)Google Scholar
  3. 3.
    Huang, D., Xu, K., Pei, J.: Malicious URL detection by dynamically mining patterns without pre-defined elements. World Wide Web 17(6), 1375–1394 (2014)CrossRefGoogle Scholar
  4. 4.
    Liu, C., Wang, L., Lang, B., Zhou, Y.: Finding effective classifier for malicious URL detection. In: Proceedings of the 2018 2nd International Conference on Management Engineering, Software Engineering and Service Sciences, ICMSS 2018, pp. 240–244. ACM, New York (2018)Google Scholar
  5. 5.
    Ma, J., Saul, L.K., Savage, S., Voelker, G.M.: Learning to detect malicious URLs. ACM Trans. Intell. Syst. Technol. (TIST) 2(3), 30 (2011)Google Scholar
  6. 6.
    Narendra, P.: Malicious URL detection.
  7. 7.
    Vanhoenshoven, F., Nápoles, G., Falcon, R., Vanhoof, K., Köppen, M.: Detecting malicious URLs using machine learning techniques. In: 2016 IEEE Symposium Series on Computational Intelligence (SSCI), pp. 1–8. IEEE (2016)Google Scholar
  8. 8.
    Verma, R., Das, A.: What’s in a URL: fast feature extraction and malicious URL detection. In: Proceedings of the 3rd ACM on International Workshop on Security and Privacy Analytics, pp. 55–63. ACM (2017)Google Scholar
  9. 9.
    Vu, L., Nguyen, P., Turaga, D.: Firstfilter: a cost-sensitive approach to malicious URL detection in large-scale enterprise networks. IBM J. Res. Dev. 60(4), 4:1–4:10 (2016)CrossRefGoogle Scholar

Copyright information

© Springer Nature Switzerland AG 2019

Authors and Affiliations

  1. 1.National Institute of Technology SilcharSilcharIndia

Personalised recommendations