File size: 3,376 Bytes
d1bf056
93c3909
 
 
 
 
 
ef5f705
 
 
 
 
93c3909
 
 
ef5f705
 
 
93c3909
ef5f705
 
93c3909
ef5f705
 
93c3909
 
 
ef5f705
 
 
 
93c3909
ef5f705
93c3909
ef5f705
93c3909
ef5f705
 
 
 
 
 
 
 
93c3909
 
 
1c6e8ee
8b60f04
 
 
 
 
7194cb2
8b60f04
 
 
7194cb2
d1bf056
451b077
72013bb
380c90b
cf9c008
c3fba08
93c3909
9ee1a10
07511bd
 
380c90b
 
9ee1a10
07511bd
f953a98
451b077
07511bd
 
 
0cf44eb
7194cb2
c3fba08
 
 
 
8faf32d
c3fba08
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
license: cc-by-4.0
task_categories:
- text-classification
- feature-extraction
- tabular-classification
language:
- af
- en
- et
- sw
- sv
- sq
- de
- ca
- hu
- da
- tl
- so
- fi
- fr
- cs
- hr
- cy
- es
- sl
- tr
- pl
- pt
- nl
- id
- sk
- lt
- no
- lv
- vi
- it
- ro
- ru
- mk
- bg
- th
- ja
- ko
- multilingual
size_categories:
- 1M<n<10M
configs:
- config_name: default
  data_files:
  - split: train
    pattern:
    - "phishing_features_train.csv"
    - "phishing_url_train.csv"
  - split: test
    pattern:
    - "phishing_features_val.csv"
    - "phishing_url_val.csv"
---
**I have decided to release the auto-moderation models all at once sometime in July/August, 2023. The datasets for training these models will be avaliable first.**

**INCORRECT DATA ANALYSIS. IM REDOING THEM**

The *features* dataset is original, and my feature extraction method is covered in [feature_extraction.py](./feature_extraction.py)

In the *features* dataset, there're 911,180 websites online at the time of data collection. The plots below show the regression line and correlation coefficients of 22+ features extracted and whether the URL is malicious.
If we could plot the lifespan of URLs, we could see that the oldest website has been online since Nov 7th, 2008, while the most recent phishing websites appeared as late as July 10th, 2023.

As of July 2023, there's no correlation between `is_malicious` and the columns `meta_percentage`, `mouseover_changes`, `not_indexed_by_google`, `right_click_disabled`, and `popup_window_has_text_field`, 
while the negative correlations shown in the scatterplots for `age_of_domain`, `domain_registration_length`, and ` These correlations contradict some [analyses of researchers in 2013 on phishing detection](./Phishing_Websites_Features.docx).
The majority of features have very weak correlations with `is_malicious`, while some have a weak correlation.

I split the classification task into two stages in anticipation of the limited availability of online phishing websites due to their short lifespan, as well as the possibility that research done on phishing is not up-to-date:
1. a small multilingual BERT model to output the confidence level of a URL being malicious to model #2, by finetuning on 2,436,727 legitimate and malicious URLs
2. (probably) LightGBM to analyze the confidence level, along with roughly 19 extracted features

This way, I can make the most out of the limited phishing websites avaliable.

![Phish Eater Data Analysis](https://i.imgur.com/Hctxv4h.png)


## Source of the URLs
- https://moz.com/top500
- https://phishtank.org/phish_search.php?valid=y&active=y&Search=Search
- https://www.kaggle.com/datasets/siddharthkumar25/malicious-and-benign-urls
- https://www.kaggle.com/datasets/sid321axn/malicious-urls-dataset
- https://github.com/ESDAUNG/PhishDataset
- https://github.com/JPCERTCC/phishurl-list
- https://github.com/Dogino/Discord-Phishing-URLs

## Reference
- https://www.kaggle.com/datasets/akashkr/phishing-website-dataset
- https://www.kaggle.com/datasets/shashwatwork/web-page-phishing-detection-dataset
- https://www.kaggle.com/datasets/aman9d/phishing-data

## Side notes
- Cloudflare offers an [API for URL scanning](https://developers.cloudflare.com/api/operations/phishing-url-information-get-results-for-a-url-scan), with a generous global rate limit of 1200 requests every 5 minutes.