Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zpettry/ai-deep-learning-for-phishing-url-detection

AI: Deep Learning for Phishing URL Detection
https://github.com/zpettry/ai-deep-learning-for-phishing-url-detection

ai api bidirectional-lstm deep-learning flask keras neuralnetwork tensorflow

Last synced: about 1 month ago
JSON representation

AI: Deep Learning for Phishing URL Detection

Awesome Lists containing this project

README

        

AI: Deep Learning for Phishing URL Detection
=======================================

Model Performance
-----------

![ROC/AUC Curve](http://www.zpettry.com/assets/roccurvezoomedin.JPG)
![Confusion Matrix](https://www.zpettry.com/assets/confusionmatrix_normalized.JPG)
![F1 Score](https://zpettry.com/assets/f1score.JPG)

Requirements
------------

This code was created with Python 3.6.7. Other versions of Python 3 might also work. You can have multiple Python
versions (2.x and 3.x) installed on the same system without problems.

Make sure to install all requirements:

$ pip install -r requirements.txt

NOTICE : Because of Github size limits, please download the model from here: https://www.zpettry.com/bi-lstmchar256256128.h5

Quick start
-----------

Ensure the model has been downloaded from the above link.

Open a separate tab or window and run:

$ python3 flaskrestapi.py

Now go back to the original tab or window and run:

$ python3 request.py -u https://www.google.com/about

Output:

$ [{'malicious percentage': 2.552182786166668, 'result': 'URL is probably NOT malicious.', 'url': 'https://www.google.com/about'}]

Web site and documentation
--------------------------

Blog and additional information about this project is available at the web site:

https://www.zpettry.com/

License
-------

This code is licensed under the terms of the MIT License (see the file
LICENSE).