
Encuentra kits de phishing que utilicen los archivos e imágenes de tu marca/organización.
Encuentra kits de phishing que usan los archivos e imágenes de tu marca/organización.
PhishingKitHunter (o PKHunter) es una herramienta hecha para identificar URLs de kits de phishing utilizados en campañas de phishing dirigidas a tus clientes y que usan algunos de los archivos de tu propio sitio web (como CSS, JS, ...). Esta herramienta - escrita en Python 3 - se basa en el análisis de la URL de referencia que obtiene archivos particulares en el sitio web legítimo (como algún contenido de estilo) o redirige al usuario después de la sesión de phishing. Los archivos de registro (deberían) contener la URL de referencia de donde proviene el usuario y donde está desplegado el kit de phishing. PhishingKitHunter analiza tus archivos de registro para identificar referencias particulares y no legítimas que intentan obtener páginas legítimas basándose en expresiones regulares que colocas en el archivo de configuración de PhishingKitHunter.
$ ./PhishingKitHunter.py -i LogFile2017.log -o PKHunter-report-20170502-013307.csv -c conf/test.conf
_ \ | / | | |
| | ' / | | | | __ \ __| _ \ __|
___/ . \ ___ | | | | | | __/ |
_| _|\_\_| _|\__,_|_| _|\__|\___|_|
-= Phishing Kit Hunter - v0.8.1 =-
[+] http://badscam.org/includes/ap/?a=2
| Timestamp: 01/May/2017:13:00:03
| HTTP status: can't connect (HTTP Error 404: Not Found)
[+] http://scamme.com/aple/985884e5b60732b1245fdfaf2a49cdfe/
| Timestamp: 01/May/2017:13:00:49
| HTTP status: can't connect (<urlopen error [Errno -2] Name or service not known>)
[+] http://badscam-er.com/eb/?e=4
| Timestamp: 01/May/2017:13:01:06
| HTTP status: can't connect (<urlopen error [Errno -2] Name or service not known>)
[+] http://assur.cam.tech/scam/brand/new/2bd5a55bc5e768e530d8bda80a9b8593/
| Timestamp: 01/May/2017:13:01:14
| HTTP status: UP
| HTTP shash : 0032588b8d93a807cf0f48a806ccf125677503a6fabe4105a6dc69e81ace6091
| DOMAIN registrar: ASCIO TECHNOLOGIES, INC. DANMARK - FILIAL AF ASCIO TECHNOLOGIES, INC. USA
| DOMAIN creation date: 2008-07-10 00:00:00
| DOMAIN expiration date: 2017-07-10 00:00:00
[+] http://phish-other.eu/assur/big/phish/2be1c6afdbfc065c410d36ba88e7e4c9/
| Timestamp: 01/May/2017:13:01:15
| HTTP status: UP
| HTTP shash : 2a545c4d321e3b3cbb34af62e6e6fbfbdbc00a400bf70280cb00f4f6bb0eac44
| DOMAIN registrar: Hostmaster Strato Rechenzentrum
| DOMAIN creation date: None found
| DOMAIN expiration date: None found
697475it [06:41, 1208.14it/s]
$ ./PhishingKitHunter.py --help
_ \ | / | | |
| | ' / | | | | __ \ __| _ \ __|
___/ . \ ___ | | | | | | __/ |
_| _|\_\_| _|\__,_|_| _|\__|\___|_|
-= Phishing Kit Hunter - v0.8.1 =-
-h --help Prints this
-i --ifile Input logfile to analyse
-o --ofile Output CSV report file (default: ./PKHunter-report-'date'-'hour'.csv)
-c --config Configuration file to use (default: ./conf/defaults.conf)
$ cat ./PKHunter-report-20170502-013307.csv
PK_URL;Domain;HTTP_sha256;HTTP_status;date;domain registrar;domain creation date;domain creation date;domain expiration date
http://badscam.org/includes/ap/?a=2;badscam.org;;can't connect (HTTP Error 404: Not Found);01/May/2017:13:00:03;;;
http://assur.cam.tech/scam/brand/new/2bd5a55bc5e768e530d8bda80a9b8593/;assur.cam.tech;0032588b8d93a807cf0f48a806ccf125677503a6fabe4105a6dc69e81ace6091;UP;01/May/2017:13:01:14;None found;None found;Hostmaster Strato Rechenzentrum
[...]
Instala los requisitos
pip3 install -r requirements.txt
Por favor, lee el archivo conf/default.conf para aprender cómo configurar PhishingKitHunter.
Puedes usar el Dockerfile para crear un contenedor Docker que automáticamente clone este repositorio. Está basado en la última distribución ligera de Phusion, obtiene los paquetes necesarios para obtener y ejecutar PhishingKitHunter.
Construye el contenedor:
$ docker build tad/pkhunter .
Inicia el contenedor con algunas opciones (como tu repositorio local de archivos de registro):
$ docker run -d -P --name PKHunter --volume /var/log:/opt/logfiles tad/pkhunter
Ahora puedes ejecutar una shell y comenzar tu análisis:
$ docker exec -ti tad/pkhunter /bin/bash