Dataset Viewer
Auto-converted to Parquet Duplicate
url_length
int64
hyphen_count
int64
digit_count
int64
subdomain_count
int64
trusted_tld
int64
protocol_exists
int64
special_char_count
int64
entropy
float64
path_depth
int64
domain_length
int64
is_domain_ip
int64
has_at_symbol
int64
has_double_slash_redirect
int64
tld_length
int64
query_param_count
int64
path_length
int64
url
large_string
label
int64
source
large_string
canonical_url
large_string
first_seen
large_string
last_seen
large_string
collected_at
large_string
17
0
0
0
1
1
4
3.616875
0
10
0
0
0
3
0
0
http://domain.com
0
tranco
domain.com/
2026-08-04
2026-09-04
2026-08-04
32
1
6
1
1
1
6
4.301109
0
25
0
0
0
3
0
0
http://att-106215.weeblysite.com
1
phishing_database
att-106215.weeblysite.com/
2026-09-04
2026-09-04
2026-09-04
19
0
0
0
1
1
4
3.576618
0
12
0
0
0
3
0
0
http://typeform.com
0
tranco
typeform.com/
2026-08-03
2026-09-04
2026-08-03
23
0
0
1
1
1
5
3.653997
0
16
0
0
0
3
0
0
http://sync.mathtag.com
0
tranco
sync.mathtag.com/
2026-08-04
2026-09-04
2026-08-04
25
0
0
1
1
1
5
4.023465
0
18
0
0
0
3
0
0
http://falvtd.ddgrils.com
1
phishing_database
falvtd.ddgrils.com/
2026-09-04
2026-09-04
2026-09-04
18
0
1
0
1
1
4
3.836592
0
11
0
0
0
3
0
0
http://5legare.com
1
phishing_database
5legare.com/
2026-09-04
2026-09-04
2026-09-04
45
0
0
3
1
1
7
4.013424
0
38
0
0
0
3
0
0
http://events.endpoint.security.microsoft.com
0
tranco
events.endpoint.security.microsoft.com/
2026-08-04
2026-09-04
2026-08-04
39
0
14
1
0
1
5
4.342969
0
32
0
0
0
4
0
0
http://94aed046629625446.temporary.link
1
phishing_database
94aed046629625446.temporary.link/
2026-09-04
2026-09-04
2026-09-04
19
0
9
2
0
1
6
3.471354
0
12
1
0
0
0
0
0
http://3.210.135.80
1
phishing_database
3.210.135.80/
2026-09-04
2026-09-04
2026-09-04
19
0
0
0
1
1
4
3.681881
0
12
0
0
0
3
0
0
http://reserved.com
0
tranco
reserved.com/
2026-08-04
2026-09-04
2026-08-04
16
0
0
0
1
1
4
3.25
0
9
0
0
0
3
0
0
http://teads.net
0
tranco
teads.net/
2026-08-04
2026-09-04
2026-08-04
31
0
0
1
0
1
5
3.950344
0
24
0
0
0
6
0
0
http://metalurgicafarina.com.ar
1
phishing_database
metalurgicafarina.com.ar/
2026-09-04
2026-09-04
2026-09-04
20
0
4
0
0
1
4
3.521928
0
13
0
0
0
2
0
0
http://sap1718wcc.cc
1
phishing_database
sap1718wcc.cc/
2026-09-04
2026-09-04
2026-09-04
20
0
0
0
0
1
4
3.546439
0
13
0
0
0
4
0
0
http://paketees.link
1
phishing_database
paketees.link/
2026-09-04
2026-09-04
2026-09-04
46
2
0
1
0
1
7
4.256939
0
39
0
0
0
2
0
0
http://feline-magnetic-brachiosaurus.glitch.me
1
phishing_database
feline-magnetic-brachiosaurus.glitch.me/
2026-09-04
2026-09-04
2026-09-04
24
0
0
1
1
1
5
3.772055
0
17
0
0
0
3
0
0
http://www.superporn.com
0
tranco
www.superporn.com/
2026-08-04
2026-09-04
2026-08-04
32
1
0
0
1
1
5
4.14032
0
25
0
0
0
3
0
0
http://lbpayee-authorization.com
1
phishing_database
lbpayee-authorization.com/
2026-09-04
2026-09-04
2026-09-04
20
0
0
1
1
1
5
3.546439
0
13
0
0
0
3
0
0
http://www.apple.com
0
tranco
www.apple.com/
2026-08-04
2026-09-04
2026-08-04
34
0
0
1
1
1
5
4.006437
0
27
0
0
0
3
0
0
http://unified.adsafeprotected.com
0
tranco
unified.adsafeprotected.com/
2026-08-04
2026-09-04
2026-08-04
39
1
0
1
1
1
6
4.015921
0
32
0
0
0
3
0
0
http://secure-assets.rubiconproject.com
0
tranco
secure-assets.rubiconproject.com/
2026-08-04
2026-09-04
2026-08-04
35
0
4
1
0
1
5
4.286147
0
28
0
0
0
11
0
0
http://sabvrag2682gafra.duckdns.org
1
phishing_database
sabvrag2682gafra.duckdns.org/
2026-09-04
2026-09-04
2026-09-04
27
0
2
1
0
1
5
4.060262
0
20
0
0
0
2
0
0
http://izmfnfzak.xxoht18.cn
1
phishing_database
izmfnfzak.xxoht18.cn/
2026-09-04
2026-09-04
2026-09-04
18
0
8
2
0
1
6
3.308271
0
11
1
0
0
0
0
0
http://72.34.44.11
1
phishing_database
72.34.44.11/
2026-09-04
2026-09-04
2026-09-04
16
0
0
0
0
1
4
3.625
0
9
0
0
0
2
0
0
http://docker.io
0
tranco
docker.io/
2026-08-04
2026-09-04
2026-08-04
34
0
0
1
0
1
5
3.797042
0
27
0
0
0
2
0
0
http://securefolder.rogersorder.ca
1
phishing_database
securefolder.rogersorder.ca/
2026-09-04
2026-09-04
2026-09-04
12
0
0
0
0
1
4
3.084963
0
5
0
0
0
5
0
0
http://dp.ua
0
tranco
dp.ua/
2026-08-04
2026-09-04
2026-08-04
36
2
0
1
0
1
7
4.107018
0
29
0
0
0
3
0
0
http://verify.supprt-very-policy.cfd
1
phishing_database
verify.supprt-very-policy.cfd/
2026-09-04
2026-09-04
2026-09-04
19
0
0
0
1
1
4
3.681881
0
12
0
0
0
3
0
0
http://vzwfemto.com
0
tranco
vzwfemto.com/
2026-08-04
2026-09-04
2026-08-04
22
1
0
0
0
1
5
3.788755
0
15
0
0
0
4
0
0
http://au-peyarda.buzz
1
phishing_database
au-peyarda.buzz/
2026-09-04
2026-09-04
2026-09-04
36
1
1
0
0
1
5
4.194386
0
29
0
0
0
2
0
0
http://metaplatform-policyissues1.tk
1
phishing_database
metaplatform-policyissues1.tk/
2026-09-04
2026-09-04
2026-09-04
27
1
0
1
1
1
6
3.83804
0
20
0
0
0
3
0
0
http://aa-rt.sharepoint.com
0
tranco
aa-rt.sharepoint.com/
2026-08-04
2026-09-04
2026-08-04
14
0
0
0
1
1
4
3.235926
0
7
0
0
0
3
0
0
http://apa.org
0
tranco
apa.org/
2026-08-04
2026-09-04
2026-08-04
33
0
23
0
0
1
4
3.675871
0
26
0
0
0
2
0
0
http://60000000875964635269825.tk
1
phishing_database
60000000875964635269825.tk/
2026-09-04
2026-09-04
2026-09-04
16
0
0
0
1
1
4
3.57782
0
9
0
0
0
3
0
0
http://intel.com
0
tranco
intel.com/
2026-08-04
2026-09-04
2026-08-04
17
0
0
0
1
1
4
3.499228
0
10
0
0
0
3
0
0
http://hbomax.com
0
tranco
hbomax.com/
2026-08-04
2026-09-04
2026-08-04
17
0
1
0
0
1
4
3.454822
0
10
0
0
0
2
0
0
http://hdhub4u.cl
0
tranco
hdhub4u.cl/
2026-08-04
2026-09-04
2026-08-04
36
0
0
1
0
1
5
3.983007
0
29
0
0
0
2
0
0
http://liberacao.dispositivocaixa.ga
1
phishing_database
liberacao.dispositivocaixa.ga/
2026-09-04
2026-09-04
2026-09-04
26
1
0
0
0
1
5
3.719295
0
19
0
0
0
4
0
0
http://login-whatsapp.shop
1
phishing_database
login-whatsapp.shop/
2026-09-04
2026-09-04
2026-09-04
29
1
6
1
0
1
6
4.043855
0
22
0
0
0
11
0
0
http://att-105325.square.site
1
phishing_database
att-105325.square.site/
2026-09-04
2026-09-04
2026-09-04
20
0
0
0
1
1
4
3.546439
0
13
0
0
0
3
0
0
http://capcutvod.com
0
tranco
capcutvod.com/
2026-08-03
2026-09-04
2026-08-03
59
0
1
0
0
1
4
4.231794
0
52
0
0
0
2
0
0
http://longcronixsm0fficialhousingforpeoplelivelifeforko.ga
1
phishing_database
longcronixsm0fficialhousingforpeoplelivelifeforko.ga/
2026-09-04
2026-09-04
2026-09-04
16
0
0
0
0
1
4
3.32782
0
9
0
0
0
2
0
0
http://kontur.ru
0
tranco
kontur.ru/
2026-08-04
2026-09-04
2026-08-04
38
1
0
2
0
1
7
3.975177
0
31
0
0
0
4
0
0
http://account-update.amazon.cauv.club
1
phishing_database
account-update.amazon.cauv.club/
2026-09-04
2026-09-04
2026-09-04
30
0
0
1
1
1
5
3.939572
0
23
0
0
0
3
0
0
http://www.choiceadvantage.com
0
tranco
www.choiceadvantage.com/
2026-08-04
2026-09-04
2026-08-04
24
0
0
1
1
1
5
3.772055
0
17
0
0
0
3
0
0
http://ncode.syosetu.com
0
tranco
ncode.syosetu.com/
2026-08-04
2026-09-04
2026-08-04
23
0
0
0
1
1
4
3.914866
0
16
0
0
0
3
0
0
http://gslbjpmchase.com
0
tranco
gslbjpmchase.com/
2026-08-04
2026-09-04
2026-08-04
22
0
0
0
1
1
4
3.754442
0
15
0
0
0
3
0
0
http://crashlytics.com
0
tranco
crashlytics.com/
2026-08-04
2026-09-04
2026-08-04
26
0
0
1
1
1
5
3.763342
0
19
0
0
0
3
0
0
http://facebookip.otzo.com
1
phishing_database
facebookip.otzo.com/
2026-09-04
2026-09-04
2026-09-04
20
1
2
0
1
1
5
4.021928
0
13
0
0
0
3
0
0
http://awsdns-23.com
0
tranco
awsdns-23.com/
2026-08-04
2026-09-04
2026-08-04
22
0
0
0
1
1
4
3.62922
0
15
0
0
0
3
0
0
http://alcoonteceu.com
1
phishing_database
alcoonteceu.com/
2026-09-04
2026-09-04
2026-09-04
15
0
0
0
0
1
4
3.506891
0
8
0
0
0
2
0
0
http://dudki.co
1
phishing_database
dudki.co/
2026-09-04
2026-09-04
2026-09-04
17
0
0
0
0
1
4
3.616875
0
10
0
0
0
2
0
0
http://missena.io
0
tranco
missena.io/
2026-08-04
2026-09-04
2026-08-04
25
0
2
1
0
1
5
4.023465
0
18
0
0
0
9
0
0
http://mewjik01.github.io
1
phishing_database
mewjik01.github.io/
2026-09-04
2026-09-04
2026-09-04
39
1
5
1
1
1
6
4.374895
0
32
0
0
0
3
0
0
http://coronavirus-54646.firebaseio.com
1
phishing_database
coronavirus-54646.firebaseio.com/
2026-09-04
2026-09-04
2026-09-04
28
0
0
0
1
1
4
3.695947
0
21
0
0
0
3
0
0
http://hollywoodreporter.com
0
tranco
hollywoodreporter.com/
2026-08-04
2026-09-04
2026-08-04
23
0
0
1
0
1
5
3.740953
0
16
0
0
0
9
0
0
http://azadvt.github.io
1
phishing_database
azadvt.github.io/
2026-09-04
2026-09-04
2026-09-04
37
1
0
1
0
1
6
4.023661
0
30
0
0
0
2
0
0
http://rcurg-trustaltus.gksnhlbhkq.es
1
phishing_database
rcurg-trustaltus.gksnhlbhkq.es/
2026-09-04
2026-09-04
2026-09-04
33
0
0
1
0
1
5
4.051822
0
26
0
0
0
9
0
0
http://mirawostenatecom.pages.dev
1
phishing_database
mirawostenatecom.pages.dev/
2026-09-04
2026-09-04
2026-09-04
20
0
10
2
0
1
6
3.446439
0
13
1
0
0
0
0
0
http://204.44.82.191
1
phishing_database
204.44.82.191/
2026-09-04
2026-09-04
2026-09-04
39
0
0
2
1
1
6
3.852728
0
32
0
0
0
3
0
0
http://reflector.defender.microsoft.com
0
tranco
reflector.defender.microsoft.com/
2026-08-04
2026-09-04
2026-08-04
47
0
3
1
0
1
5
4.021842
0
40
0
0
0
2
0
0
http://dell2verollxplsns.dostawkaplndsdell64.pl
1
phishing_database
dell2verollxplsns.dostawkaplndsdell64.pl/
2026-09-04
2026-09-04
2026-09-04
41
3
2
0
1
1
7
4.271471
0
34
0
0
0
3
0
0
http://de-sparkasse-tangenehmigung-06.com
1
phishing_database
de-sparkasse-tangenehmigung-06.com/
2026-09-04
2026-09-04
2026-09-04
36
0
5
1
1
1
5
4.315623
0
29
0
0
0
3
0
0
http://atlantic633.serverprofi24.com
1
phishing_database
atlantic633.serverprofi24.com/
2026-09-04
2026-09-04
2026-09-04
26
0
0
1
1
1
5
3.792377
0
19
0
0
0
3
0
0
http://apple.appleidjk.com
1
phishing_database
apple.appleidjk.com/
2026-09-04
2026-09-04
2026-09-04
22
0
0
1
1
1
5
3.697846
0
15
0
0
0
3
0
0
http://m.humoruniv.com
0
tranco
m.humoruniv.com/
2026-08-04
2026-09-04
2026-08-04
18
0
0
0
1
1
4
3.683542
0
11
0
0
0
3
0
0
http://bryccsa.com
1
phishing_database
bryccsa.com/
2026-09-04
2026-09-04
2026-09-04
19
0
0
0
1
1
4
3.932138
0
12
0
0
0
3
0
0
http://adkernel.com
0
tranco
adkernel.com/
2026-08-04
2026-09-04
2026-08-04
29
0
3
1
1
1
5
4.254196
0
22
0
0
0
3
0
0
http://14.4buyuklergazete.com
1
phishing_database
14.4buyuklergazete.com/
2026-09-04
2026-09-04
2026-09-04
25
0
0
0
1
1
4
3.653661
0
18
0
0
0
3
0
0
http://thomsonreuters.com
0
tranco
thomsonreuters.com/
2026-08-04
2026-09-04
2026-08-04
19
1
0
0
0
1
5
3.681881
0
12
0
0
0
2
0
0
http://apple-dns.cn
0
tranco
apple-dns.cn/
2026-08-04
2026-09-04
2026-08-04
32
0
0
1
0
1
5
4.179229
0
25
0
0
0
10
0
0
http://metmasekloguin.webflow.io
1
phishing_database
metmasekloguin.webflow.io/
2026-09-04
2026-09-04
2026-09-04
17
0
0
0
1
1
4
3.572469
0
10
0
0
0
3
0
0
http://zenodo.org
0
tranco
zenodo.org/
2026-08-04
2026-09-04
2026-08-04
20
0
1
1
1
1
5
3.546439
0
13
0
0
0
3
0
0
http://www.xnxx2.com
0
tranco
www.xnxx2.com/
2026-08-04
2026-09-04
2026-08-04
54
2
0
3
0
1
9
4.300641
0
47
0
0
0
16
0
0
http://lmbziemvmaztwwtu-dot-millinium.ey.r.appspot.com
1
phishing_database
lmbziemvmaztwwtu-dot-millinium.ey.r.appspot.com/
2026-09-04
2026-09-04
2026-09-04
27
1
2
1
1
1
6
3.58416
0
20
0
0
0
3
0
0
http://ssc-cms.33across.com
0
tranco
ssc-cms.33across.com/
2026-08-04
2026-09-04
2026-08-04
46
0
9
3
1
1
7
4.327485
0
39
0
0
0
3
0
0
http://craigslist.post.102839202.ravnairva.com
1
phishing_database
craigslist.post.102839202.ravnairva.com/
2026-09-04
2026-09-04
2026-09-04
31
0
0
1
1
1
5
4.235981
0
24
0
0
0
3
0
0
http://gfreport.varnikcloud.com
1
phishing_database
gfreport.varnikcloud.com/
2026-09-04
2026-09-04
2026-09-04
19
0
0
0
1
1
4
3.576618
0
12
0
0
0
3
0
0
http://custhelp.com
0
tranco
custhelp.com/
2026-08-04
2026-09-04
2026-08-04
23
0
0
1
0
1
5
3.501398
0
16
0
0
0
6
0
0
http://manutouch.com.cn
0
tranco
manutouch.com.cn/
2026-08-04
2026-09-04
2026-08-04
35
0
3
1
1
1
5
4.057575
0
28
0
0
0
3
0
0
http://algojosite.000webhostapp.com
1
phishing_database
algojosite.000webhostapp.com/
2026-09-04
2026-09-04
2026-09-04
44
0
0
1
0
1
5
4.288755
0
37
0
0
0
9
0
0
http://bankofamericasecurityalerts.giize.com
1
phishing_database
bankofamericasecurityalerts.giize.com/
2026-09-04
2026-09-04
2026-09-04
21
0
0
0
1
1
4
4.011365
0
14
0
0
0
3
0
0
http://wellsfargo.com
0
tranco
wellsfargo.com/
2026-08-04
2026-09-04
2026-08-04
21
0
0
1
0
1
5
3.689704
0
14
0
0
0
2
0
0
http://www.xvideos.es
0
tranco
www.xvideos.es/
2026-08-04
2026-09-04
2026-08-04
22
0
0
1
0
1
5
3.732159
0
15
0
0
0
5
0
0
http://pinterest.co.uk
0
tranco
pinterest.co.uk/
2026-08-04
2026-09-04
2026-08-04
20
0
5
0
0
1
4
3.384184
0
13
0
0
0
2
0
0
http://tap3138ct4.cc
1
phishing_database
tap3138ct4.cc/
2026-09-04
2026-09-04
2026-09-04
23
0
0
0
1
1
4
3.914866
0
16
0
0
0
3
0
0
http://lafirmagroup.com
1
phishing_database
lafirmagroup.com/
2026-09-04
2026-09-04
2026-09-04
27
0
3
1
0
1
5
3.958229
0
20
0
0
0
11
0
0
http://agung000.duckdns.org
1
phishing_database
agung000.duckdns.org/
2026-09-04
2026-09-04
2026-09-04
21
0
0
0
1
1
4
3.916127
0
14
0
0
0
3
0
0
http://cloudflare.com
0
tranco
cloudflare.com/
2026-08-04
2026-09-04
2026-08-04
20
1
2
0
1
1
5
3.921928
0
13
0
0
0
3
0
0
http://awsdns-00.com
0
tranco
awsdns-00.com/
2026-08-04
2026-09-04
2026-08-04
32
0
0
1
0
1
5
4.10141
0
25
0
0
0
10
0
0
http://kushnerykjanet.editorx.io
1
phishing_database
kushnerykjanet.editorx.io/
2026-09-04
2026-09-04
2026-09-04
50
4
12
2
0
1
10
4.408367
0
43
0
0
0
10
0
0
http://nostalgic-cannon.107-172-195-173.plesk.page
1
phishing_database
nostalgic-cannon.107-172-195-173.plesk.page/
2026-09-04
2026-09-04
2026-09-04
19
0
0
0
1
1
4
3.721612
0
12
0
0
0
3
0
0
http://wswebpic.com
0
tranco
wswebpic.com/
2026-08-04
2026-09-04
2026-08-04
15
0
1
0
1
1
4
3.506891
0
8
0
0
0
3
0
0
http://jup9.com
0
tranco
jup9.com/
2026-08-04
2026-09-04
2026-08-04
20
0
0
0
1
1
4
3.621928
0
13
0
0
0
3
0
0
http://pinterest.com
0
tranco
pinterest.com/
2026-08-04
2026-09-04
2026-08-04
16
0
0
0
0
1
4
3.20282
0
9
0
0
0
2
0
0
http://ipinfo.io
0
tranco
ipinfo.io/
2026-08-04
2026-09-04
2026-08-04
32
0
1
0
1
1
4
4.054229
0
25
0
0
0
3
0
0
http://centralatendibradesc0.com
1
phishing_database
centralatendibradesc0.com/
2026-09-04
2026-09-04
2026-09-04
22
0
0
0
1
1
4
3.970573
0
15
0
0
0
3
0
0
http://theguardian.com
0
tranco
theguardian.com/
2026-08-04
2026-09-04
2026-08-04
20
0
0
0
1
1
4
3.646439
0
13
0
0
0
3
0
0
http://demonware.net
0
tranco
demonware.net/
2026-08-04
2026-09-04
2026-08-04
17
0
0
0
1
1
4
3.734522
0
10
0
0
0
3
0
0
http://dunelm.com
0
tranco
dunelm.com/
2026-08-04
2026-09-04
2026-08-04
23
0
0
1
0
1
5
3.555533
0
16
0
0
0
8
0
0
http://pnaypal.ddns.net
1
phishing_database
pnaypal.ddns.net/
2026-09-04
2026-09-04
2026-09-04
End of preview. Expand in Data Studio

PhishTrap

RACER IS OP

Catch phishing URLs before they catch you — 16 features, 19,954 URLs, balanced 50/50. Cross-verified from 496K phishing domains + Tranco top 10K. Automatically refreshed every 6 hours.

Priorities: Quality > Ease of Access > Quantity

Build pipeline (open source): github.com/instax-dutta/PhishTrap — see how every row is fetched, merged, deduplicated, validated and published.


Dataset Overview

PhishTrap is a curated phishing URL detection dataset built for reproducibility. Every URL is either a confirmed phishing domain (from PyFunceble-verified feeds) or a top-ranked legitimate domain (from Tranco). Features are extracted from URL structure alone — no third-party lookups, no page content.

Property Value
Total Samples 19,954
Phishing URLs 9,977 (50%)
Legitimate URLs 9,977 (50%)
Features 16
Train/Val/Test 70/15/15
Formats CSV, Parquet
License MIT

Features

Original 6 — URL Structure

Feature Description
url_length Total URL character count
hyphen_count Number of hyphens in URL
digit_count Number of digits in URL
subdomain_count Number of subdomains
trusted_tld 1 if TLD is .com/.org/.net/.edu/.gov
protocol_exists 1 if http/https present

Extended 10 — Deeper Signals

Feature Description
special_char_count Count of special characters (@, -, _, ., etc.)
entropy Shannon entropy of URL string
path_depth Number of path segments
domain_length Length of domain portion
is_domain_ip 1 if domain is an IP address
has_at_symbol 1 if @ present in URL
has_double_slash_redirect 1 if // appears after protocol
tld_length Length of top-level domain
query_param_count Number of query parameters
path_length Length of path portion

Data Sources

Phishing URLs

Source Domains Verification
Phishing.Database 496,576 PyFunceble-tested daily (MIT)
OpenPhish 300+ (latest feed) 15-min update cycle

Phishing domains appear in at least one verified source. Domains are deduplicated across sources.

Legitimate URLs

Source Domains Why
Tranco top 10K 10,000 Aggregates CrUX + Cloudflare + Umbrella + Majestic

Legitimate domains are filtered against the phishing set to remove any overlap.


Label

  • 0 = legitimate
  • 1 = phishing

Usage

With Hugging Face Datasets

from datasets import load_dataset

dataset = load_dataset("saidutta69/PhishTrap")
train = dataset["train"]
val = dataset["val"]
test = dataset["test"]

# Train a classifier
from sklearn.ensemble import RandomForestClassifier

X_train = train.select_columns([c for c in train.column_names if c not in ("url", "label", "source")])
y_train = train["label"]
X_test = test.select_columns([c for c in test.column_names if c not in ("url", "label", "source")])
y_test = test["label"]

clf = RandomForestClassifier(n_estimators=100, random_state=42)
clf.fit(X_train, y_train)
print(f"Accuracy: {clf.score(X_test, y_test):.4f}")

With Pandas

import pandas as pd

df = pd.read_csv("hf://datasets/saidutta69/PhishTrap/data/phishtrap_full.csv")
print(df.head())

Auto-Update Pipeline

PhishTrap is continuously refreshed by an automated pipeline. The dataset is rebuilt every 6 hours with fresh phishing URLs from live feeds. The full pipeline is open source at github.com/instax-dutta/PhishTrap.

Architecture

GitHub Actions (cron, every 6h)
  │
  ├─ 1. Fetch phishing URLs  ── OpenPhish (15-min feed) + Phishing.Database + PhishStats
  ├─ 2. Fetch legit domains  ── Tranco top 10K
  ├─ 3. Merge with existing   ── canonical dedup (scheme/port/trailing-slash agnostic)
  ├─ 4. Prune expired         ── phishing URLs unconfirmed > 60 days are dropped
  ├─ 5. Extract 16 features   ── same feature set across all versions
  ├─ 6. Rebalance 50/50       ── stratified sampling
  ├─ 7. Split 70/15/15        ── train/val/test
  └─ 8. Validate + upload     ── pre-upload gates + post-upload verification → Hugging Face

Quality guarantees

  • Freshness tracking — every row carries first_seen, last_seen, and collected_at timestamps; consumers can tell how current each URL is
  • Canonical deduphttp://evil.com, https://evil.com/, and http://evil.com:80 collapse into one row via the canonical_url column
  • New evidence wins — if a legitimate Tranco domain later appears in phishing feeds (e.g. it got compromised), the phishing label overrides it; label conflicts are logged
  • Expiry pruning — phishing URLs unconfirmed for more than 60 days are removed automatically; legitimate domains never expire (Tranco top-10K is stable by design)
  • Provenance preserved — the source column records every feed that reported a URL (e.g. openphish+phishing_database)
  • Source resilience — 3 retries with exponential backoff per fetch; an unreachable source is skipped, never fatal
  • Pre-upload validation — every split is checked for missing features, NaN/inf values, duplicates, and class balance before anything is uploaded
  • Post-upload verification — after pushing, the pipeline downloads the uploaded files and re-validates them
  • Build metadatadata/dataset_info.json records build ID, date, class/source distributions, and schema version
  • No partial state — the full data/ folder is replaced atomically per run

Running the pipeline

export HF_TOKEN=hf_xxx          # required, from HF account settings
python run_pipeline.py          # incremental refresh
python run_pipeline.py --force-full    # rebuild from scratch
python run_pipeline.py --max-samples 20000   # bigger dataset
python run_pipeline.py --dry-run       # fetch/merge/prune/rebalance, no upload

Manual trigger

The GitHub Actions workflow Refresh PhishTrap Dataset can also be triggered manually (workflow_dispatch) with optional force_full and max_samples inputs.


Why PhishTrap?

Most phishing datasets throw URLs at you and call it a day. PhishTrap is different:

  • Cross-verified sources — Every domain earns its place from reputable feeds
  • No data leakage — Separate train/val/test splits with no overlap
  • Clean features — 16 URL-based features, zero third-party API calls needed for inference
  • Reproducible — Methodology is fully documented; re-run the pipeline anytime

Citation

@misc{saidutta69_2026_phishtrap,
  author = {Sai Dutta Abhishek Dash},
  title = {PhishTrap: High-Quality Phishing URL Dataset},
  year = {2026},
  publisher = {Hugging Face},
  howpublished = {\url{https://huggingface.co/datasets/saidutta69/PhishTrap}}
}

Built with Phishing.Database, OpenPhish, and Tranco. MIT licensed.

Downloads last month
694

Models trained or fine-tuned on saidutta69/PhishTrap

Collection including saidutta69/PhishTrap