-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsignatures.py
More file actions
466 lines (436 loc) Β· 13.7 KB
/
Copy pathsignatures.py
File metadata and controls
466 lines (436 loc) Β· 13.7 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
#!/usr/bin/env python3
"""
WAF Signature Database
Each WAF entry contains detection vectors across multiple layers:
- headers: header names whose presence indicates the WAF
- header_values: {header: [value_patterns]}
- cookies: cookie name patterns
- server_signatures: Server header fingerprints
- body_signatures: HTML/text snippets from block pages
- block_codes: HTTP status codes commonly returned when blocking
"""
WAF_SIGNATURES = {
# ββ Cloudflare ββ
"Cloudflare": {
"headers": ["cf-ray", "cf-cache-status", "cf-request-id", "cf-connecting-ip", "cf-ipcountry"],
"header_values": {
"server": ["cloudflare"],
"expect-ct": ["cloudflare"],
},
"cookies": ["__cfduid", "__cf_bm", "cf_clearance", "cf_ob_info", "cf_use_ob"],
"server_signatures": ["cloudflare", "cloudflare-nginx"],
"body_signatures": [
"attention required! | cloudflare",
"cloudflare ray id",
"error 1020",
"error 1015",
"ray id:",
"please allow up to 5 seconds",
"checking your browser before accessing",
"cf-error-details",
"performance & security by cloudflare",
],
"block_codes": [403, 503, 429],
},
# ββ AWS WAF ββ
"AWS WAF": {
"headers": ["x-amzn-requestid", "x-amz-cf-id", "x-amz-cf-pop", "x-amz-rid"],
"header_values": {
"server": ["awselb", "amazons3", "amazon cloudfront", "awswaf"],
"x-amzn-waf-action": ["block", "captcha"],
},
"cookies": ["awsalb", "awsalbcors", "aws-waf-token"],
"server_signatures": ["awselb", "cloudfront", "amazons3"],
"body_signatures": [
"request blocked",
"aws waf",
"automated access to this page was denied",
],
"block_codes": [403, 503],
},
# ββ Akamai (Kona/Ghost) ββ
"Akamai": {
"headers": ["x-akamai-transformed", "akamai-grn", "x-akamai-request-id", "x-akamai-session-info"],
"header_values": {
"server": ["akamaighost", "akamainetworks", "akamai"],
"x-check-cacheable": ["yes", "no"],
},
"cookies": ["akamai", "ak_bmsc", "bm_sv", "bm_sz", "_abck", "akavpau"],
"server_signatures": ["akamaighost", "akamainetworkshttp"],
"body_signatures": [
"access denied",
"akamai technologies",
"reference #",
"akamai ghost",
],
"block_codes": [403, 503],
},
# ββ Imperva / Incapsula ββ
"Imperva / Incapsula": {
"headers": ["x-iinfo", "x-cdn"],
"header_values": {
"x-cdn": ["incapsula", "imperva"],
},
"cookies": ["incap_ses", "visid_incap", "nlbi_", "incap_ses_", "__utm_a"],
"server_signatures": ["imperva"],
"body_signatures": [
"incapsula incident id",
"powered by incapsula",
"incident id",
"_incapsula_resource",
"request unsuccessful. incapsula",
],
"block_codes": [403, 503],
},
# ββ Sucuri ββ
"Sucuri WAF": {
"headers": ["x-sucuri-id", "x-sucuri-cache"],
"header_values": {
"server": ["sucuri", "sucuri/cloudproxy"],
},
"cookies": ["sucuri_cloudproxy"],
"server_signatures": ["sucuri", "sucuri/cloudproxy"],
"body_signatures": [
"sucuri website firewall",
"access denied - sucuri",
"sucuri cloudproxy",
"if you are the site owner",
"sucuri inc",
],
"block_codes": [403, 503],
},
# ββ F5 BIG-IP ASM ββ
"F5 BIG-IP ASM": {
"headers": ["x-wa-info", "x-cnection"],
"header_values": {
"server": ["big-ip", "bigip", "f5"],
},
"cookies": ["ts", "bigipserver", "bigipserverssl", "f5_cspm", "f5avr", "mrhuserdownleveltag", "bigipserverpool"],
"server_signatures": ["big-ip", "bigip", "f5-trafficshield"],
"body_signatures": [
"the requested url was rejected",
"please consult with your administrator",
"your support id is",
"f5 networks",
],
"block_codes": [403, 501],
},
# ββ ModSecurity ββ
"ModSecurity": {
"headers": ["modsecurity"],
"header_values": {
"server": ["mod_security", "modsecurity"],
},
"cookies": [],
"server_signatures": ["mod_security", "modsecurity"],
"body_signatures": [
"modsecurity",
"mod_security",
"this error was generated by mod_security",
"not acceptable!",
"method not implemented",
"rule id",
],
"block_codes": [403, 406, 501],
},
# ββ Barracuda ββ
"Barracuda WAF": {
"headers": ["barra_counter_session"],
"header_values": {},
"cookies": ["barra_counter_session", "bnn_barracuda"],
"server_signatures": ["barracuda"],
"body_signatures": [
"barracuda networks",
"barracuda web application firewall",
"you have been blocked",
"barra_counter_session",
],
"block_codes": [403, 503],
},
# ββ Fortinet / FortiWeb ββ
"Fortinet FortiWeb": {
"headers": ["fortiwafsid"],
"header_values": {},
"cookies": ["cookiesession1", "fortiwafsid"],
"server_signatures": ["fortiweb", "fortigate"],
"body_signatures": [
"fortigate",
"fortiweb",
".fgd_icon",
"the page cannot be displayed",
"by fortinet",
],
"block_codes": [403, 503],
},
# ββ Citrix / NetScaler AppFirewall ββ
"Citrix NetScaler AppFW": {
"headers": ["cneonction", "nncoection", "via"],
"header_values": {
"via": ["ns-cache"],
},
"cookies": ["citrix_ns_id", "nsc_", "ns_af", "ns_s"],
"server_signatures": ["netscaler"],
"body_signatures": [
"netscaler",
"ns_af=",
"citrix",
"application firewall",
"appfw session",
],
"block_codes": [403, 503],
},
# ββ Wordfence (WordPress) ββ
"Wordfence": {
"headers": ["wf-cache"],
"header_values": {},
"cookies": ["wfvt_", "wordfence", "wf_loginalerted"],
"server_signatures": [],
"body_signatures": [
"generated by wordfence",
"wordfence",
"this response was generated by wordfence",
"your access to this site has been limited",
"a potentially unsafe operation has been detected",
],
"block_codes": [403, 503],
},
# ββ Azure Front Door / WAF ββ
"Azure Front Door WAF": {
"headers": ["x-azure-ref", "x-fd-healthprobe", "x-ms-request-id"],
"header_values": {
"server": ["microsoft-azure-application-gateway"],
},
"cookies": [],
"server_signatures": ["microsoft-azure-application-gateway", "microsoft-iis"],
"body_signatures": [
"azure front door",
"microsoft azure web application firewall",
"this request was blocked by azure",
],
"block_codes": [403, 503],
},
# ββ Google Cloud Armor ββ
"Google Cloud Armor": {
"headers": ["x-goog-iap-generated-response"],
"header_values": {
"server": ["gws", "gfe", "google frontend"],
"via": ["google"],
},
"cookies": [],
"server_signatures": ["gws", "gfe", "google frontend"],
"body_signatures": [
"google cloud armor",
"cloud armor blocked this request",
"error: forbidden",
],
"block_codes": [403, 503],
},
# ββ StackPath (formerly MaxCDN/Highwinds) ββ
"StackPath WAF": {
"headers": ["x-sp-url", "x-sp-wl", "x-hw"],
"header_values": {},
"cookies": [],
"server_signatures": ["stackpath", "netdna", "highwinds"],
"body_signatures": [
"stackpath",
"site protection is enabled",
],
"block_codes": [403, 503],
},
# ββ DDoS-Guard ββ
"DDoS-Guard": {
"headers": ["x-ddos-protection"],
"header_values": {
"server": ["ddos-guard"],
},
"cookies": ["__ddg1_", "__ddg2_", "__ddgid_", "__ddgmark_"],
"server_signatures": ["ddos-guard"],
"body_signatures": [
"ddos-guard",
"ddos protection by",
],
"block_codes": [403, 503],
},
# ββ Wallarm ββ
"Wallarm": {
"headers": ["x-wallarm-waf-check"],
"header_values": {},
"cookies": [],
"server_signatures": ["wallarm"],
"body_signatures": [
"wallarm",
"nginx-wallarm",
],
"block_codes": [403],
},
# ββ Reblaze ββ
"Reblaze": {
"headers": ["rbzid", "x-rbz"],
"header_values": {},
"cookies": ["rbzid", "rbzsessionid"],
"server_signatures": ["reblaze"],
"body_signatures": [
"reblaze",
"access denied (reblaze)",
],
"block_codes": [403, 503],
},
# ββ Radware / AppWall ββ
"Radware AppWall": {
"headers": ["x-sl-compstate"],
"header_values": {},
"cookies": [],
"server_signatures": ["radware"],
"body_signatures": [
"radware",
"unauthorized activity has been detected",
"appwall",
],
"block_codes": [403, 503],
},
# ββ SiteLock ββ
"SiteLock TrueShield": {
"headers": [],
"header_values": {},
"cookies": [],
"server_signatures": ["sitelock"],
"body_signatures": [
"sitelock",
"trueshield",
"sitelock is the global leader",
],
"block_codes": [403],
},
# ββ Palo Alto Networks ββ
"Palo Alto Networks": {
"headers": [],
"header_values": {},
"cookies": [],
"server_signatures": [],
"body_signatures": [
"has been blocked in accordance with company policy",
"palo alto networks",
"this page is blocked",
],
"block_codes": [403, 503],
},
# ββ Comodo WAF ββ
"Comodo WAF": {
"headers": [],
"header_values": {
"server": ["comodo"],
},
"cookies": [],
"server_signatures": ["comodo"],
"body_signatures": [
"comodo waf",
"protected by comodo",
],
"block_codes": [403],
},
# ββ Fastly ββ
"Fastly WAF": {
"headers": ["x-fastly-request-id", "fastly-restarts"],
"header_values": {
"via": ["varnish"],
"x-served-by": ["cache-"],
},
"cookies": [],
"server_signatures": ["fastly"],
"body_signatures": [
"fastly error",
"fastly cdn",
],
"block_codes": [403, 503],
},
# ββ Edgecast / Verizon ββ
"Edgecast / Verizon WAF": {
"headers": ["x-ec-custom-error", "server-timing"],
"header_values": {
"server": ["ecs", "ecd"],
},
"cookies": [],
"server_signatures": ["ecs", "ecd"],
"body_signatures": [],
"block_codes": [403],
},
# ββ LiteSpeed / LSWS ββ
"LiteSpeed WAF": {
"headers": [],
"header_values": {
"server": ["litespeed"],
},
"cookies": [],
"server_signatures": ["litespeed"],
"body_signatures": [
"litespeed web server",
"request blocked by litespeed web app firewall",
],
"block_codes": [403],
},
# ββ Varnish (+Security) ββ
"Varnish + Security Module": {
"headers": ["x-varnish", "x-varnish-cache"],
"header_values": {
"via": ["varnish"],
},
"cookies": [],
"server_signatures": ["varnish"],
"body_signatures": [
"varnish cache server",
"error 403 naughty",
"guru meditation",
],
"block_codes": [403, 503],
},
# ββ Shield Security (WordPress) ββ
"Shield Security": {
"headers": [],
"header_values": {},
"cookies": [],
"server_signatures": [],
"body_signatures": [
"shield security",
"one of its security rules has been triggered",
],
"block_codes": [403],
},
# ββ Alibaba Cloud WAF ββ
"Alibaba Cloud WAF": {
"headers": ["x-server-id"],
"header_values": {
"server": ["tengine"],
},
"cookies": ["aliyungf_tc", "ali_beacon_id"],
"server_signatures": ["tengine"],
"body_signatures": [
"errors.aliyun.com",
"alibaba cloud",
],
"block_codes": [403, 405],
},
# ββ Tencent Cloud WAF ββ
"Tencent Cloud WAF": {
"headers": [],
"header_values": {},
"cookies": ["tgw_l7_route"],
"server_signatures": [],
"body_signatures": [
"waf.tencent-cloud.com",
"tencent cloud web application firewall",
],
"block_codes": [403],
},
# ββ Qrator ββ
"Qrator": {
"headers": [],
"header_values": {},
"cookies": ["qrator_jsid", "qrator_ssid"],
"server_signatures": ["qrator"],
"body_signatures": [
"qrator",
"qrator labs",
],
"block_codes": [403, 503],
},
}