A Framework for Real-Time Phishing Resource Locator Detection Using Structural and Lexical Feature Analysis Based on Machine Learning

Authors

  • Prashant Srivastava School of Engineering and Technology (UIET) , Chhatrapati Shahu Ji Maharaj University image/svg+xml
  • Akhilesh Singh School of Engineering and Technology (UIET) , Chhatrapati Shahu Ji Maharaj University image/svg+xml
  • Amit Virmani School of Engineering and Technology (UIET) , Chhatrapati Shahu Ji Maharaj University image/svg+xml
  • Himanshu Shukla School of Engineering and Technology (UIET) , Chhatrapati Shahu Ji Maharaj University image/svg+xml
  • Ravi Kant Mishra School of Engineering and Technology (UIET) , Chhatrapati Shahu Ji Maharaj University image/svg+xml
  • Ritesh Agarwal School of Engineering and Technology (UIET) , Chhatrapati Shahu Ji Maharaj University image/svg+xml
  • Anand Kumar Mishra School of Engineering and Technology (UIET) , Chhatrapati Shahu Ji Maharaj University image/svg+xml

DOI:

https://doi.org/10.63671/ijsesr.v2i4.171

Keywords:

Phishing detection, malicious URL classification, random forest classifier, lexical feature extraction, SMOTE oversampling, real-time cybersecurity, Flask API

Abstract

Phishing attacks remains a leading, rapidly evolving threat in cybersecurity domain, where cyber-criminals deploy fraudulent websites that are deceptive in nature acts exactly same as legitimate platforms to transfer sensitive user credentials, financial data and corporate data to an external location. Traditional counter measures including blacklist-based systems and rule-based filters demonstrates limited efficiency against newly created malicious URLs and real-time generated phishing URLs. This paper presents PhishGuard+, a random forest-based phishing detection framework that performs real-time suspicious URL classification through complete structural and lexical feature analysis of the URL. The proposed system utilizes a dataset of 10,000 labeled URLs, from which 48 distinct features are extracted that includes URL patterns, domain characteristics, and heuristic indicators. A Random Forest classifier is trained on preprocessed data comprises min-max normalization and the Synthetic Minority Oversampling Technique (SMOTE) to address skewed data distribution. The trained model is deployed with a Flask-based RESTful API, that real-time inference through an interactive web interface. Experimental evaluation demonstrates an overall classification accuracy of 98.4%, with precision and recall exceeding 98% across both phishing and legitimate URL categories. The proposed framework offers a computationally efficient, low latency lightweight detection solution deployable in browser extensions, email security gateways, and corporate cybersecurity infrastructures, providing robust early-warning capabilities without requiring full webpage content analysis.

References

M. Abu-Nimeh, D. Nappa, X. Wang, and S. Nair, "A comparison of machine learning techniques for phishing detection," in Proc. Anti-Phishing Working Groups 2nd Annual eCrime Researchers Summit, Pittsburgh, USA, 2007.

S. Marchal, J. François, R. State, and T. Engel, "PhishStorm: Detecting phishing with streaming analytics," IEEE Trans. Network and Service Management, vol. 11, no. 4, pp. 458–471, 2014.

O. K. Sahingoz, B. Buber, O. Demir, and B. Diri, "Machine learning based phishing detection from URLs," Expert Systems with Applications, vol. 117, pp. 345–357, 2019.

A. Aljofey, Q. Jiang, Q. Qu, M. Huang, and J. P. Niyato, "An effective phishing detection model based on character-level convolutional neural network," Electronics, vol. 9, no. 9, pp. 1514, 2020.

R. S. Rao and A. R. Pais, "Detection of phishing websites using an efficient feature-based machine learning framework," Neural Computing and Applications, vol. 31, pp. 3851–3873, 2019.

Scikit-learn Developers, "Scikit-learn: Machine learning in Python," [Online]. Available: https://scikit-learn.org

Python Software Foundation, "Python language reference, version 3.10," [Online]. Available: https://www.python.org

Flask Development Team, "Flask web framework documentation," [Online]. Available: https://flask.palletsprojects.com

WHOIS Domain Lookup, "WHOIS domain information service," [Online]. Available: https://www.whois.com

N. V. Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer, "SMOTE: Synthetic minority over-sampling technique," Journal of Artificial Intelligence Research, vol. 16, pp. 321–357, 2002.

L. Breiman, "Random forests," Machine Learning, vol. 45, no. 1, pp. 5–32, 2001.

Downloads

Published

2026-10-06

How to Cite

Srivastava, P., Singh, A., Virmani, A., Shukla, H., Mishra, R. K., Agarwal, R., & Mishra, A. K. (2026). A Framework for Real-Time Phishing Resource Locator Detection Using Structural and Lexical Feature Analysis Based on Machine Learning. International Journal of Science and Engineering Science Research, 2(4), 24-34. https://doi.org/10.63671/ijsesr.v2i4.171

Similar Articles

11-13 of 13

You may also start an advanced similarity search for this article.