GithubHelp home page GithubHelp logo

rawatmeghna / phishing-websites-detection Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 34 KB

Build a model to find out if a website is Legitimate/Suspicious/Malicious using different algorithms. We will find out which model fits our data perfectly and detects the correct phishing website, making precision and accuracy to be high.

Jupyter Notebook 100.00%

phishing-websites-detection's Introduction

Phishing Websites Detection

Build a model to find out if a website is Legitimate/Suspicious/Malicious using different machine learning algorithms and choosing the correct fit for the prediction.

The input data is already preprocessed and hence the attributes are coded into following format for application of different ML models. SFH's type is nominal, range is ('1', '-1', '0') popUpWidnow's type is nominal, range is ('-1', '0', '1') SSLfinal_State's type is nominal, range is ('1', '-1', '0') Request_URL's type is nominal, range is ('-1', '0', '1') URL_of_Anchor's type is nominal, range is ('-1', '0', '1') web_traffic's type is nominal, range is ('1', '0', '-1') URL_Length's type is nominal, range is ('1', '-1', '0') age_of_domain's type is nominal, range is ('1', '-1') having_IP_Address's type is nominal, range is ('0', '1') Result's type is nominal, range is ('0', '1', '-1'))

The  data coding is as follows:
"1"  - Legitimate Website
"0"  - Suspicious
"-1" - Malicious Website

Approach for Building the model

  • We leave the 'having_IP_Address' attribute as there is not much variation in the data while creating predictors.
  • We Experiment with different machine learning models like KNN, Random Forest, SVM, Logistic Regression to find out the best fit for the prediction
    • The result was as such :
    • Applied GridsearchCV to loop through predefined hyperparameters and fit our estimator (model) on our training set. So, in the end, we can select the best parameters from the listed hyperparameters.
  • The model is ready to predict whether or not it is a phishing website using the url of that website as its input.

We can further deploy our model in any desired deployment platform.

phishing-websites-detection's People

Contributors

rawatmeghna avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.