A lightweight FastText model that classifies domain names as phishing or clean.
1.1K
A lightweight FastText model that classifies domain names as phishing or clean. Runs as a simple REST API inside Docker.
Pull and run the container:
docker run -p 8080:8080 mstfknn/phishing-fasttext:latest
Predict a domain (POST /predict):
curl -X POST http://localhost:8080/predict \
-H "Content-Type: application/json" \
-d '{"domain": "carreeffoursa.site"}'
Example response:
{
"domain": "carreeffoursa.site",
"label": "__label__phishing",
"probability": 0.9734
}
8080 for the HTTP API.phishing_model.bin at /app/phishing_model.bin by default. You can override the model path by setting the MODEL_PATH environment variable.Example (mount custom model):
docker run -p 8080:8080 -v /local/path/phishing_model.bin:/app/phishing_model.bin mstfknn/phishing-fasttext:latest
__label__phishing, __label__cleanMIT License © mstfknn
Content type
Image
Digest
sha256:62d7b35b2…
Size
2.5 GB
Last updated
12 months ago
docker pull mstfknn/phishing-fasttext