Upload folder using huggingface_hub
Browse files- .DS_Store +0 -0
- README.md +44 -3
- phishing_model.bin +3 -0
.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
README.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🛡️ Phishing Domain Classifier (FastText)
|
| 2 |
+
|
| 3 |
+
This repository contains a **FastText-based supervised classification model** trained to detect phishing domains.
|
| 4 |
+
|
| 5 |
+
## 🚀 Model Overview
|
| 6 |
+
|
| 7 |
+
- **Algorithm**: Facebook's [fastText](https://fasttext.cc/)
|
| 8 |
+
- **Task**: Binary classification (`phishing` vs `clean`)
|
| 9 |
+
- **Input format**: Domain names (e.g., `paypal-login.su`)
|
| 10 |
+
- **Labels**: `__label__phishing`, `__label__clean`
|
| 11 |
+
- **Features**:
|
| 12 |
+
- Fast and lightweight
|
| 13 |
+
- Trained with `wordNgrams = 2`
|
| 14 |
+
- 10 epochs
|
| 15 |
+
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
## 📂 Files Included
|
| 19 |
+
|
| 20 |
+
```text
|
| 21 |
+
phishing_model.bin # Trained model file (binary format)
|
| 22 |
+
phishing_model.vec # Vector embeddings
|
| 23 |
+
fasttext_train.txt # Training data file
|
| 24 |
+
README.md # Documentation
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
🔧 Installation
|
| 28 |
+
|
| 29 |
+
Option 1: From Source
|
| 30 |
+
|
| 31 |
+
git clone https://github.com/facebookresearch/fastText.git
|
| 32 |
+
cd fastText
|
| 33 |
+
mkdir build && cd build
|
| 34 |
+
cmake ..
|
| 35 |
+
make
|
| 36 |
+
|
| 37 |
+
Option 2: Using pip (limited support)
|
| 38 |
+
|
| 39 |
+
pip install fasttext
|
| 40 |
+
|
| 41 |
+
⚠️ The pip version does not support all features. Compiling from source is recommended.
|
| 42 |
+
|
| 43 |
+
Usage
|
| 44 |
+
echo "carreeffoursa.site" | ./fasttext predict phishing_model.bin -
|
phishing_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c88ef0f184c17b1e79459383901ceb69f07c173cbb90ad0d4dba0108426839ea
|
| 3 |
+
size 2831842064
|