Che237 commited on
Commit
81c4acf
·
verified ·
1 Parent(s): c46314b

Retrain phishing_detection on public labelled data (2026-10-13)

Browse files
phishing_detection/best_model.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1591a4809d16d2209d79196ed5e384b6a5de8ab3e02f7fd0ba7e716b8c11d39a
3
- size 108057
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47439dfb289a9b0920a9d3395df2c65b7c73e4bc93dfa02d8c602d60b500ac50
3
+ size 474822
phishing_detection/metadata.json CHANGED
@@ -1,23 +1,329 @@
1
  {
2
- "name": "phishing_detection",
3
- "trained_at": "2026-05-09T17:11:50.739628",
4
- "samples": 4000,
5
- "threat_rate": 0.5,
6
- "accuracy": 1.0,
7
- "f1": 1.0,
8
  "feature_names": [
9
- "url_length",
10
- "hostname_length",
11
- "path_length",
12
- "is_https",
13
- "has_ip_address",
14
- "has_suspicious_tld",
15
- "subdomain_count",
16
- "has_port",
17
- "query_params_count",
18
- "has_at_symbol",
19
- "has_double_slash",
20
- "special_char_count"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  ],
22
- "model_type": "GradientBoostingClassifier"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  }
 
1
  {
2
+ "model_type": "HistGradientBoostingClassifier",
 
 
 
 
 
3
  "feature_names": [
4
+ "bare_length",
5
+ "host_length",
6
+ "bare_path_length",
7
+ "query_length",
8
+ "host_dots",
9
+ "host_subdomains",
10
+ "host_hyphens",
11
+ "host_digits",
12
+ "host_digit_ratio",
13
+ "host_entropy",
14
+ "host_longest_label",
15
+ "host_vowel_ratio",
16
+ "host_is_ip",
17
+ "host_has_port",
18
+ "host_suspicious_tld",
19
+ "tld_length",
20
+ "has_punycode",
21
+ "path_depth",
22
+ "path_digits",
23
+ "path_entropy",
24
+ "path_longest_token",
25
+ "query_params",
26
+ "query_longest_value",
27
+ "bare_at_symbol",
28
+ "path_double_slash",
29
+ "count_percent",
30
+ "count_equals",
31
+ "count_underscore",
32
+ "count_hyphen_path",
33
+ "count_tilde",
34
+ "bare_special_chars",
35
+ "has_executable_extension",
36
+ "has_script_extension",
37
+ "has_archive_extension",
38
+ "credential_words",
39
+ "is_shortener",
40
+ "has_embedded_url",
41
+ "domain_popularity",
42
+ "is_user_content_host"
43
+ ],
44
+ "uses_scaler": false,
45
+ "decision_threshold": 0.861432,
46
+ "decision_point": {
47
+ "target_false_positive_rate": 0.02,
48
+ "validation_urls": 25209,
49
+ "validation_benign": 15684,
50
+ "note": "raw scores are rescaled so that this threshold reads as 0.5"
51
+ },
52
+ "training": {
53
+ "rows": 237950,
54
+ "positives": 83789,
55
+ "sites": 150788,
56
+ "seconds": 8.8,
57
+ "iterations": 300,
58
+ "rows_by_source": {
59
+ "older collection, benign": 24579,
60
+ "phishing collection, benign": 94237,
61
+ "phishing collection, phishing": 90832,
62
+ "popular sites": 48043,
63
+ "reference, legitimate": 2986,
64
+ "reference, phishing": 2482
65
+ },
66
+ "dropped_as_listed_on_both_sides": 2092
67
+ },
68
+ "holdout": {
69
+ "samples": 71691,
70
+ "positives": 27168,
71
+ "true_positives": 18392,
72
+ "false_positives": 929,
73
+ "false_negatives": 8776,
74
+ "true_negatives": 43594,
75
+ "precision": 0.9519,
76
+ "recall": 0.677,
77
+ "f1": 0.7912,
78
+ "false_positive_rate": 0.0209,
79
+ "auc": 0.9557,
80
+ "average_precision": 0.9347,
81
+ "at_raw_0.5": {
82
+ "precision": 0.8189,
83
+ "recall": 0.8777,
84
+ "false_positive_rate": 0.1184
85
+ },
86
+ "sites": 37698,
87
+ "by_source": {
88
+ "older collection, benign": {
89
+ "urls": 6098,
90
+ "kind": "negative",
91
+ "false_positive_rate": 0.0658
92
+ },
93
+ "phishing collection, benign": {
94
+ "urls": 25758,
95
+ "kind": "negative",
96
+ "false_positive_rate": 0.0154
97
+ },
98
+ "phishing collection, phishing": {
99
+ "urls": 26720,
100
+ "kind": "positive",
101
+ "recall": 0.679
102
+ },
103
+ "popular sites": {
104
+ "urls": 11864,
105
+ "kind": "negative",
106
+ "false_positive_rate": 0.0094
107
+ },
108
+ "reference, legitimate": {
109
+ "urls": 803,
110
+ "kind": "negative",
111
+ "false_positive_rate": 0.0249
112
+ },
113
+ "reference, phishing": {
114
+ "urls": 448,
115
+ "kind": "positive",
116
+ "recall": 0.5558
117
+ }
118
+ },
119
+ "note": "URLs from sites that were not in the training rows"
120
+ },
121
+ "other_datasets": {
122
+ "pirocheto/phishing-url (test split)": {
123
+ "samples": 3758,
124
+ "positives": 1872,
125
+ "true_positives": 1262,
126
+ "false_positives": 26,
127
+ "false_negatives": 610,
128
+ "true_negatives": 1860,
129
+ "precision": 0.9798,
130
+ "recall": 0.6741,
131
+ "f1": 0.7987,
132
+ "false_positive_rate": 0.0138,
133
+ "auc": 0.958,
134
+ "average_precision": 0.962
135
+ }
136
+ },
137
+ "known_legitimate": {
138
+ "checked": 24,
139
+ "flagged": [
140
+ {
141
+ "url": "https://accounts.google.com/signin/v2/identifier?continue=https%3A%2F%2Fmail.google.com&service=mail&flowName=GlifWebSignIn",
142
+ "score": 0.5565
143
+ }
144
+ ],
145
+ "highest": [
146
+ {
147
+ "url": "https://accounts.google.com/signin/v2/identifier?continue=https%3A%2F%2Fmail.google.com&service=mail&flowName=GlifWebSignIn",
148
+ "score": 0.5565
149
+ },
150
+ {
151
+ "url": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=4765445b-32c6-49b0-83e6-1d93765276ca&response_type=code&scope=openid",
152
+ "score": 0.4657
153
+ },
154
+ {
155
+ "url": "https://zoom.us/j/1234567890?pwd=QWxhZGRpbjpvcGVuIHNlc2FtZQ",
156
+ "score": 0.3174
157
+ },
158
+ {
159
+ "url": "https://drive.google.com/file/d/1A2b3C4d5E6f7G8h9I0jKlMnOpQrStUv/view?usp=sharing",
160
+ "score": 0.2775
161
+ },
162
+ {
163
+ "url": "https://www.bbc.co.uk/news",
164
+ "score": 0.0393
165
+ }
166
+ ]
167
+ },
168
+ "known_hostile": [
169
+ {
170
+ "url": "http://paypal-secure-login.verify-account.xyz/update/password.php",
171
+ "score": 0.9952
172
+ },
173
+ {
174
+ "url": "http://192.168.10.5/secure-login/paypal.com/verify?account=1&session=abc@evil",
175
+ "score": 0.9985
176
+ },
177
+ {
178
+ "url": "http://appleid.apple.com.signin-verify.account-update.info/webscr/login.php?cmd=_login",
179
+ "score": 0.9024
180
+ }
181
  ],
182
+ "hostile_on_popular_platforms": [
183
+ {
184
+ "url": "https://sites.google.com/view/paypal-account-verify-login/home",
185
+ "score": 0.3359
186
+ },
187
+ {
188
+ "url": "https://paypal-login-secure.github.io/verify/index.html",
189
+ "score": 0.9412
190
+ },
191
+ {
192
+ "url": "https://storage.googleapis.com/secure-update-0091/login.html",
193
+ "score": 0.756
194
+ }
195
+ ],
196
+ "feature_importances": {
197
+ "domain_popularity": 0.12158,
198
+ "host_dots": 0.04886,
199
+ "path_depth": 0.02787,
200
+ "host_vowel_ratio": 0.024,
201
+ "path_longest_token": 0.02165,
202
+ "path_entropy": 0.01721,
203
+ "path_digits": 0.01208,
204
+ "tld_length": 0.0106,
205
+ "count_hyphen_path": 0.01043,
206
+ "host_suspicious_tld": 0.01021,
207
+ "bare_path_length": 0.00837,
208
+ "credential_words": 0.00792,
209
+ "bare_length": 0.0075,
210
+ "query_length": 0.00582,
211
+ "host_longest_label": 0.00523,
212
+ "host_hyphens": 0.00312,
213
+ "query_longest_value": 0.00307,
214
+ "bare_special_chars": 0.00159,
215
+ "count_equals": 0.00157,
216
+ "host_length": 0.00149,
217
+ "count_underscore": 0.00149,
218
+ "count_tilde": 0.00063,
219
+ "query_params": 0.00059,
220
+ "has_executable_extension": 0.00041,
221
+ "count_percent": 0.0004,
222
+ "has_embedded_url": 0.00026,
223
+ "bare_at_symbol": 0.0002,
224
+ "host_has_port": 0.00018,
225
+ "path_double_slash": 9e-05,
226
+ "host_subdomains": 7e-05,
227
+ "is_shortener": 2e-05,
228
+ "has_punycode": 0.0,
229
+ "has_archive_extension": 0.0,
230
+ "host_is_ip": -0.0,
231
+ "has_script_extension": -2e-05,
232
+ "host_digits": -0.00047,
233
+ "host_digit_ratio": -0.00071,
234
+ "host_entropy": -0.00106,
235
+ "is_user_content_host": -0.00406
236
+ },
237
+ "gate": {
238
+ "rules": {
239
+ "min_auc": 0.9,
240
+ "max_false_positive_rate": 0.05,
241
+ "max_known_legitimate_flagged": 0
242
+ },
243
+ "passed": false,
244
+ "reasons": [
245
+ "1 well-known legitimate URL(s) scored 0.5 or more"
246
+ ],
247
+ "failed_rules": [
248
+ "max_known_legitimate_flagged"
249
+ ],
250
+ "accepted_by_owner": {
251
+ "reason": "Owner decision 2026-10-13: accepted because it is better than the model in service on every measure taken; the listed sign-in URL is a known false positive",
252
+ "decided_at": "2026-10-13T22:50:22.856319Z",
253
+ "exceptions": [
254
+ {
255
+ "url": "https://accounts.google.com/signin/v2/identifier?continue=https%3A%2F%2Fmail.google.com&service=mail&flowName=GlifWebSignIn",
256
+ "score": 0.5565
257
+ }
258
+ ]
259
+ }
260
+ },
261
+ "name": "phishing_detection",
262
+ "trained_at": "2026-10-13T22:50:22.856319Z",
263
+ "settings": {
264
+ "benign_sample": 120000,
265
+ "collection_benign_sample": 40000,
266
+ "popular_sample": 60000,
267
+ "phishing_sample": 120000,
268
+ "malware_sample": 30000,
269
+ "attack_benign_sample": 40000,
270
+ "test_fraction": 0.2,
271
+ "max_iter": 300,
272
+ "learning_rate": 0.1,
273
+ "max_leaf_nodes": 31,
274
+ "min_samples_leaf": 20,
275
+ "l2_regularization": 0.0,
276
+ "anomaly_contamination": 0.02,
277
+ "popular_domains": 300000,
278
+ "target_false_positive_rate": 0.02,
279
+ "seed": 42,
280
+ "drop_features": []
281
+ },
282
+ "sources": {
283
+ "domain popularity": {
284
+ "source": "https://tranco-list.eu/download/PYGVJ/1000000",
285
+ "domains": 300000
286
+ },
287
+ "Mitake/PhishingURLsANDBenignURLs": {
288
+ "revision": "1f939bad78f95b470c5d058dfb23c7fce35275b7",
289
+ "rows": {
290
+ "benign": 592095,
291
+ "phishing": 253199
292
+ }
293
+ },
294
+ "bgspaditya/byt-malicious-url-treatment": {
295
+ "revision": "82af40f1d701d03269f777aee09ceed80bb96b1c",
296
+ "rows": {
297
+ "benign": 341830,
298
+ "malware": 18900
299
+ }
300
+ },
301
+ "pirocheto/phishing-url": {
302
+ "revision": "1375d450d4540205ac11781b807249c9509739cd",
303
+ "rows": {
304
+ "train": {
305
+ "legitimate": 3828,
306
+ "phishing": 3735
307
+ },
308
+ "test": {
309
+ "legitimate": 1886,
310
+ "phishing": 1872
311
+ }
312
+ }
313
+ },
314
+ "phl-ldm/tranco_top_million": {
315
+ "revision": "37974646d7107b8789afb486461be81ba719a08a",
316
+ "rows": {
317
+ "landing pages": 149995
318
+ }
319
+ },
320
+ "shengqin/web-attacks": {
321
+ "revision": "631e4ca957612c34d09176ef6ee2e0284b18955f",
322
+ "rows": {
323
+ "attack": 19511,
324
+ "normal": 4785
325
+ }
326
+ }
327
+ },
328
+ "feature_set": "url_features.py, scheme-free and without a leading www."
329
  }
phishing_detection/model.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a862118f7454849774b088a36e00d7fe238b5c728a4e602a6c3d794ac6152fd8
3
- size 5135049
 
 
 
 
phishing_detection/package_info.json DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "name": "phishing_detection",
3
- "type": "random_forest",
4
- "version": "1.0.0",
5
- "accuracy": 0.9889857732905002,
6
- "f1_score": 0.9889844643474395,
7
- "inference_time_ms": 0.010496654221638455,
8
- "files": {
9
- "model": {
10
- "path": "phishing_detection/model.pkl",
11
- "checksum": "d71ee133bc3d72d097e8ae6c84733fb2",
12
- "size_bytes": 5135049
13
- },
14
- "scaler": {
15
- "path": "phishing_detection/scaler.pkl",
16
- "checksum": "8dbf6376b3219801d6995268c7d5d05a"
17
- },
18
- "metadata": {
19
- "path": "phishing_detection/metadata.json"
20
- }
21
- },
22
- "packaged_at": "2026-03-14 21:51:56"
23
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
phishing_detection/scaler.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ef9ee16c475e3e425079aab5d1aa9907dae4e95cfb4e7395dbe509d8835cf83c
3
- size 1319