Phishing Web Sites Detection Using Machine Learning Project

The Internet has become an indispensable part of our life, However, It also has provided opportunities to anonymously perform malicious activities like Phishing. Phishers try to deceive their victims by social engineering or creating mockup websites to steal information such as account ID, username, password from individuals and organizations. Although many methods have been proposed to detect phishing websites, Phishers have evolved their methods to escape from these detection methods. One of the most successful methods for detecting these malicious activities is Machine Learning. This is because most Phishing attacks have some common characteristics which can be identified by machine learning methods.

Installation

The Code is written in Python 3.6.8. If you don't have Python installed you can find it here. If you are using a lower version of Python you can upgrade using the pip package, ensuring you have the latest version of pip. To install the required packages and libraries, run this command in the project directory after downloading the project:

pip install -r requirements.txt --user

Result

Accuracy of various model used for URL detection

ML ModelAccuracyf1_scoreRecallPrecision
0Gradient Boosting Classifier0.9740.9770.9940.986
1CatBoost Classifier0.9720.9750.9940.989
2XGBoost Classifier0.9690.9730.9930.984
3Multi-layer Perceptron0.9690.9730.9950.981
4Random Forest0.9670.9710.9930.990
5Support Vector Machine0.9640.9680.9800.965
6Decision Tree0.9600.9640.9910.993
7K-Nearest Neighbors0.9560.9610.9910.989
8Logistic Regression0.9340.9410.9430.927
9Naive Bayes Classifier0.6050.4540.2920.997

Conclusion

  1. The final take away form this project is to explore various machine learning models, perform Exploratory Data Analysis on phishing dataset and understanding their features.
  2. Creating this notebook helped me to learn a lot about the features affecting the models to detect whether URL is safe or not, also I came to know how to tuned model and how they affect the model performance.
  3. The final conclusion on the Phishing dataset is that the some feature like "HTTTPS", "AnchorURL", "WebsiteTraffic" have more importance to classify URL is phishing URL or not.
  4. Gradient Boosting Classifier currectly classify URL upto 97.4% respective classes and hence reduces the chance of malicious attachments.

Download Link

Posted in Machine Learning Projects With Source Code and tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , .