Skip to content

ranjsa/Malicious-Website-detection-using-Machine-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Malicious Website detection using Machine Learning

I have Build a chrome extension

Steps to install the chrome extension:

  1. Google Chrome -> More Tools -> Extensions
  2. Click 'Load unpacked extension..'
  3. Open the 'Engineering Module' directory
  4. Phishing Detection extension ready to monitor all the sites loaded on the Chrome browser

The Phishing Detection Chrome Extension aims to classify, every browsed URL, under phished and non-phished category(on page load). thereby, alerting the user of any malicious activity and prevent intrusion.

1. manifest.json: It provides Chrome with the basic information about the extension like name, permissions, associated scripts and files.

2.content.js: It runs in separate unprivileged javscript environment and has complete access to the DOM. Here, the trained 'SVM model' (weights calculated in ./ML Algorithm Evaluation/run_algorithms.py) has been used as a persistent model to classify websites. Below functions compute feature vector for the portal under analysis:

  • isIPInURL()
  • isLongURL()
  • isTinyURL()
  • isAlphaNumericURL()
  • isRedirectingURL()
  • isHypenURL()
  • isMultiDomainURL()
  • isFaviconDomainUnidentical()
  • isIllegalHttpsURL()
  • isImgFromDifferentDomain()
  • isAnchorFromDifferentDomain()
  • isScLnkFromDifferentDomain()
  • isFormActionInvalid()
  • isMailToAvailable()
  • isStatusBarTampered()
  • isIframePresent()

The evaluated feature vector, further, passed to predict(data) function reckons the prediction for the website.

3. background.js: In case, we need access to external extensions or APIs, it is a requisite to create means of communication between the content.js and privileged parts of the our extension, and this interaction is termed as message passing. Message passing allows different components of our extension to collabrate.

NOTE: The extension validates every URL call, i.e. in case of URL redirection, it will assess every intermittent URL hit as well.

About

Chrome Extension for Malicious website detection using Machine Learning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published