All Projects → duo-labs → Phish Collect

duo-labs / Phish Collect

Python script to hunt phishing kits

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Phish Collect

InfoPhish
InfoPath Phishing Repo Resource
Stars: ✭ 68 (-39.82%)
Mutual labels:  phishing, infosec
Urlcrazy
Generate and test domain typos and variations to detect and perform typo squatting, URL hijacking, phishing, and corporate espionage.
Stars: ✭ 150 (+32.74%)
Mutual labels:  infosec, phishing
Phishapi
Comprehensive Web Based Phishing Suite for Rapid Deployment and Real-Time Alerting!
Stars: ✭ 272 (+140.71%)
Mutual labels:  infosec, phishing
Isthislegit
Dashboard to collect, analyze, and respond to reported phishing emails.
Stars: ✭ 251 (+122.12%)
Mutual labels:  infosec, phishing
MurMurHash
This little tool is to calculate a MurmurHash value of a favicon to hunt phishing websites on the Shodan platform.
Stars: ✭ 79 (-30.09%)
Mutual labels:  phishing, infosec
Stalkphish
StalkPhish - The Phishing kits stalker, harvesting phishing kits for investigations.
Stars: ✭ 256 (+126.55%)
Mutual labels:  infosec, phishing
Stinkyphish
Monitor Certificate Transparency Logs For Phishing Domains
Stars: ✭ 25 (-77.88%)
Mutual labels:  infosec, phishing
Python Ransomware
Python Ransomware Tutorial - YouTube tutorial explaining code + showcasing the ransomware with victim/target roles
Stars: ✭ 96 (-15.04%)
Mutual labels:  infosec
Subtake
Automatic finder for subdomains vulnerable to takeover. Written in Go, based on @haccer's subjack.
Stars: ✭ 104 (-7.96%)
Mutual labels:  infosec
Url Classification
Machine learning to classify Malicious (Spam)/Benign URL's
Stars: ✭ 95 (-15.93%)
Mutual labels:  phishing
Zphisher
An automated phishing tool with 30+ templates.
Stars: ✭ 1,321 (+1069.03%)
Mutual labels:  phishing
Deepsea
DeepSea Phishing Gear
Stars: ✭ 96 (-15.04%)
Mutual labels:  phishing
Security Txt
A proposed standard that allows websites to define security policies.
Stars: ✭ 1,393 (+1132.74%)
Mutual labels:  infosec
Gf Secrets
Secret and/ credential patterns used for gf.
Stars: ✭ 96 (-15.04%)
Mutual labels:  infosec
Analyzer
🔍 Offline Analyzer for extracting features, artifacts and IoCs from Windows, Linux, Android, iPhone, Blackberry, macOS binaries, emails and more
Stars: ✭ 108 (-4.42%)
Mutual labels:  phishing
Companies Hiring Security Remote
This repo is meant to be a list of companies that hire security people full remote.
Stars: ✭ 95 (-15.93%)
Mutual labels:  infosec
Analyst Arsenal
A toolkit for Security Researchers
Stars: ✭ 112 (-0.88%)
Mutual labels:  infosec
Wifiphisher
Wifiphisher is a rogue Access Point framework for conducting red team engagements or Wi-Fi security testing. Using Wifiphisher, penetration testers can easily achieve a man-in-the-middle position against wireless clients by performing targeted Wi-Fi association attacks. Wifiphisher can be further used to mount victim-customized web phishing attacks against the connected clients in order to capture credentials (e.g. from third party login pages or WPA/WPA2 Pre-Shared Keys) or infect the victim stations with malwares.
Stars: ✭ 10,333 (+9044.25%)
Mutual labels:  phishing
Grayfish
light weight phishing framework with 18+ pages.
Stars: ✭ 101 (-10.62%)
Mutual labels:  phishing
Routersploit
Exploitation Framework for Embedded Devices
Stars: ✭ 9,866 (+8630.97%)
Mutual labels:  infosec

Phish Kit Collection

Introduction

This is the code used in our experiment to collect phishing kits at scale. This requires integrations with phishing feed providers, which may need API keys or other credentials.

Deploying to EC2

We ran our experiment using an Amazon EC2 instance. This are the basic commands to get up and running.

Install the ELK Stack

First, you need to install Elasticsearch and Kibana

# Remove Java 1.7 in favor of Java 1.8
sudo yum install java-1.8.0
sudo yum remove java-1.7.0-openjdk

# Then, install Elasticsearch
sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

echo '[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md' | sudo tee /etc/yum.repos.d/elasticsearch.repo > /dev/null

sudo yum install elasticsearch
sudo chkconfig --add elasticsearch

# Start Elasticsearch
sudo -i service elasticsearch start


# Install Kibana
echo '[kibana-5.x]
name=Kibana repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md' | sudo tee /etc/yum.repos.d/kibana.repo > /dev/null

sudo yum install kibana
sudo chkconfig --add kibana

# Start Kibana
sudo -i service kibana start

Download the Code

To get the phish_collect code, clone the repository from Github:

git clone https://github.com/duo-labs/phish_collect.git
cd phish_collect

Create our Indexes

To index values in Elasticsearch, we have to create our indexes. We can do that with this command:

curl -XPUT localhost:9200/samples -H "Content-Type: application/json" -d @es_index.json

Install Python Requirements

Next, you need to install all the requirements:

virtualenv .env
source .env/bin/activate
pip install -r requirements.txt

Make run script executable

chmod +x run.sh

Setup the Crontab

Since we want to run the script every 10 minutes, we need to add the following to our crontab:

*/10 * * * * cd phish_collect && ./run.sh

That's all there is to it! Now new samples will be downloaded and indexed to Kibana.

Using the Flask Server

We've added a simple Flask server to let you submit URLs from external sources. It only has one endpoint, /, that accepts the following POST parameters:

  • url - The URL to process
  • pid (optional) - The sample ID (default: uuid4())
  • feed (optional) - The feed (default: server)

The response is a JSON payload of {"processing": true}. The sample is processed in the background by a pool of workers.

To start the server, simply run python server.py. Configuration settings (interface and port) can be found in config.toml.

License

BSD 3-Clause License

Copyright (c) 2017, Duo Labs
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
  contributors may be used to endorse or promote products derived from
  this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].