GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - joelgun-xyz/certphisher: Automated phishing catcher

BranchesTags
Open more actions menu

Latest commit

 

History

39 Commits
39 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
DOCKER_README.md
DOCKER_README.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
QUICKSTART_MAC.md
QUICKSTART_MAC.md
 
 
README.md
README.md
 
 
README_ENHANCED.md
README_ENHANCED.md
 
 
SETTINGS_GUIDE.md
SETTINGS_GUIDE.md
 
 
certphisher_dashboard.png
certphisher_dashboard.png
 
 
config.docker.ini
config.docker.ini
 
 
confusables.py
confusables.py
 
 
default-config.ini
default-config.ini
 
 
docker-compose.yml
docker-compose.yml
 
 
external.yaml
external.yaml
 
 
logo_detector.py
logo_detector.py
 
 
main.py
main.py
 
 
requirements.txt
requirements.txt
 
 
safebrowsing.py
safebrowsing.py
 
 
scoring_engine.png
scoring_engine.png
 
 
sitereview.py
sitereview.py
 
 
slack_notifcation.png
slack_notifcation.png
 
 
suspicious.yaml
suspicious.yaml
 
 
urlscan.py
urlscan.py
 
 

Repository files navigation

Certphisher

This is a fork of @x0rz's awesome phishing_catcher. I've updated his scoring engine with a submit functionality to VirusTotal, urlscan.io who fetches the response to a mongodb + flask frontend with slack integration for later review.

Feel free to modify, tweak the code.

TLDR; Container ftw

Thanks to plonxyz there is a dockerized version as well certphisher-dockerized

Getting Started

Clone the Git Repo to your local machine and make sure you have python3 installed.

git clone https://github.com/joelgun-xyz/certphisher.git 

Prerequisites

Get API Keys from

  • VirusTotal - It's free for not more than 4 Requests pre minute. The script has an implemented delay of 26 secs per submit.
  • urlscan.io - also free

Install mongodb if not already installed.

  • https://docs.mongodb.com/manual/administration/install-community/

No need to initialise a collection, it will be created automatically.

Go to the cloned directory and install the libs from the requirements.txt

pip3 install -r requirements.txt

Installing

Edit the default-config.ini with your API keys and rename it to config.ini.

; config.ini
[apikeys]
vt_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
urlscan_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx


[mongodb]
my_instance = mongodb://localhost:27017/
my_db = certphisher
my_col = sites
username = foo
password = bar

[slack]
integration = 1
bot_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
channel = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
relevant_score = 140

Slack Notifications

If you don't want or don't have yet a slack channel you can create one here:

  • Slack API

or disable this feature in the config.ini file with this line:

slack_integration = 0

If you want to be notified about newly registered and high scored domains, you can adjust the score depending on your rating system when to fire a notification in your slack channel.

relevant_score = 140

If you enable notifications, it should look like this:

Slack

Usage

  • Start your mongodb. (Check if the host and port is the same as in the config.ini)

    (Depending on the OS)

  • Start the backend engine with.

    python3 main.py
    
  • Start the frontend (Currently running on the flask server, feel free to migrate to fully productive server like nginx) go to ./app directory from certphisher

    cd ./app && $ export FLASK_APP=app.py && $ flask run
    
    

    You should to see something like this in your console.

     * Environment: production
       WARNING: Do not use the development server in a production environment.
       Use a production WSGI server instead.
     * Debug mode: off
     * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
    

    The frontend should be served over http://127.0.0.1:5000/

Your Dashboard will look similar to this: Dashboard

Change Scoring

Just the add / change the values in the files suspicious.yaml or external.yaml with your own keyword / scores if you want to customize it.

scoring_engine

Example Dataset

This is an example database entry.

{ "_id" : ObjectId("5d08c94532ff3eada0b5f933"), "certphisher_site" : "microsoftmail.info", "certphisher_score" : 111, "certificate_authority" : "Let's Encrypt Authority X3", "checked_vt" : "true", "vt_report_saved" : "false", 
"urlhaus" : { "url_check" : { "query_status" : "no_results" } }, "virus_total" : { "permalink" : "https://www.virustotal.com/url/0d3d3e7beb3a3b5f76d69f763e4f208364d5b75382f1a06cc9218896e5f5fd43/analysis/1560856927/", 
"resource" : "https://microsoftmail.info/", "url" : "https://microsoftmail.info/", "response_code" : 1, "scan_date" : "2019-06-18 11:22:07", "scan_id" : "0d3d3e7beb3a3b5f76d69f763e4f208364d5b75382f1a06cc9218896e5f5fd43-1560856927", 
"verbose_msg" : "Scan request successfully queued, come back later for the report" }, 
"urlscan_permalink" : "https://urlscan.io/result/00bf844a-1f54-40c7-bf69-beea41882092", "urlscan_uuid" : "https://urlscan.io/screenshots/00bf844a-1f54-40c7-bf69-beea41882092" }

License

This project is licensed under GNU General Public License v3.0

Authors

  • joelgun - Twitter

Acknowledgments

  • heywoodlh - for the great urlscan.io python wrapper Github

About

Automated phishing catcher

Topics

certstreamctmphishing-detection

Resources

Readme
GPL-3.0 license
Activity

Stars

13 stars

Watchers

3 watching

Forks

7 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.