在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):shreyagopal/Phishing-Website-Detection-by-Machine-Learning-Techniques开源软件地址(OpenSource Url):https://github.com/shreyagopal/Phishing-Website-Detection-by-Machine-Learning-Techniques开源编程语言(OpenSource Language):Jupyter Notebook 95.5%开源软件介绍(OpenSource Introduction):Phishing Website Detection by Machine Learning TechniquesObjectiveA phishing website is a common social engineering method that mimics trustful uniform resource locators (URLs) and webpages. The objective of this project is to train machine learning models and deep neural nets on the dataset created to predict phishing websites. Both phishing and benign URLs of websites are gathered to form a dataset and from them required URL and website content-based features are extracted. The performance level of each model is measures and compared. Data CollectionThe set of phishing URLs are collected from opensource service called PhishTank. This service provide a set of phishing URLs in multiple formats like csv, json etc. that gets updated hourly. To download the data: https://www.phishtank.com/developer_info.php. From this dataset, 5000 random phishing URLs are collected to train the ML models. The legitimate URLs are obatined from the open datasets of the University of New Brunswick, https://www.unb.ca/cic/datasets/url-2016.html. This dataset has a collection of benign, spam, phishing, malware & defacement URLs. Out of all these types, the benign url dataset is considered for this project. From this dataset, 5000 random legitimate URLs are collected to train the ML models. The above mentioned datasets are uploaded to the 'DataFiles' folder of this repository. Feature ExtractionThe below mentioned category of features are extracted from the URL data:
The details pertaining to these features are mentioned in the URL Feature Extraction.ipynb. So, all together 17 features are extracted from the 10,000 URL dataset and are stored in '5.urldata.csv' file in the DataFiles folder. Models & TrainingBefore stating the ML model training, the data is split into 80-20 i.e., 8000 training samples & 2000 testing samples. From the dataset, it is clear that this is a supervised machine learning task. There are two major types of supervised machine learning problems, called classification and regression. This data set comes under classification problem, as the input URL is classified as phishing (1) or legitimate (0). The supervised machine learning models (classification) considered to train the dataset in this project are:
All these models are trained on the dataset and evaluation of the model is done with the test dataset. The elaborate details of the models & its training are mentioned in Phishing Website Detection_Models & Training.ipynb PresentationThe short video presentaion for this project is @ https://youtu.be/I1refTZp-pg. End ResultsFrom the obtained results of the above models, XGBoost Classifier has highest model performance of 86.4%. So the model is saved to the file 'XGBoostClassifier.pickle.dat' Next StepsThis project can be further extended to creation of browser extention or developed a GUI which takes the URL and predicts it's nature i.e., legitimate of phishing. As of now, I am working towards the creation of browser extention for this project. And may even try the GUI option also. The further developments will be updated at the earliest. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论