is-antibot 2.3.5 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -2
- package/src/index.d.ts +111 -0
- package/src/index.js +11 -4
- package/src/providers.json +95 -0
- package/src/schema.json +5 -1
package/package.json
CHANGED
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
"name": "is-antibot",
|
|
3
3
|
"description": "Detect antibot protection from 30+ providers — Cloudflare, Akamai, DataDome, PerimeterX, and more.",
|
|
4
4
|
"homepage": "https://antibot.microlink.io/",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.5.0",
|
|
6
|
+
"types": "./src/index.d.ts",
|
|
6
7
|
"exports": {
|
|
7
|
-
".":
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./src/index.d.ts",
|
|
10
|
+
"default": "./src/index.js"
|
|
11
|
+
},
|
|
8
12
|
"./providers.json": "./src/providers.json",
|
|
9
13
|
"./schema.json": "./src/schema.json",
|
|
10
14
|
"./providers.schema.json": "./src/schema.json"
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
type HeadersLike =
|
|
2
|
+
| { get(name: string): string | null | undefined }
|
|
3
|
+
| Record<string, string | string[] | undefined>
|
|
4
|
+
|
|
5
|
+
declare namespace isAntibot {
|
|
6
|
+
type Detection = 'headers' | 'cookies' | 'html' | 'url' | 'statusCode'
|
|
7
|
+
type Technique = 'javascript' | 'captcha' | 'waf' | 'cookie'
|
|
8
|
+
type ProviderName =
|
|
9
|
+
| 'cloudflare'
|
|
10
|
+
| 'vercel'
|
|
11
|
+
| 'akamai'
|
|
12
|
+
| 'datadome'
|
|
13
|
+
| 'perimeterx'
|
|
14
|
+
| 'shapesecurity'
|
|
15
|
+
| 'kasada'
|
|
16
|
+
| 'imperva'
|
|
17
|
+
| 'reblaze'
|
|
18
|
+
| 'cheq'
|
|
19
|
+
| 'sucuri'
|
|
20
|
+
| 'threatmetrix'
|
|
21
|
+
| 'meetrics'
|
|
22
|
+
| 'ocule'
|
|
23
|
+
| 'recaptcha'
|
|
24
|
+
| 'hcaptcha'
|
|
25
|
+
| 'funcaptcha'
|
|
26
|
+
| 'geetest'
|
|
27
|
+
| 'cloudflare-turnstile'
|
|
28
|
+
| 'friendly-captcha'
|
|
29
|
+
| 'captcha-eu'
|
|
30
|
+
| 'qcloud-captcha'
|
|
31
|
+
| 'aliexpress-captcha'
|
|
32
|
+
| 'houzz'
|
|
33
|
+
| 'reddit'
|
|
34
|
+
| 'google'
|
|
35
|
+
| 'linkedin'
|
|
36
|
+
| 'instagram'
|
|
37
|
+
| 'youtube'
|
|
38
|
+
| 'amazon'
|
|
39
|
+
| 'anubis'
|
|
40
|
+
| 'fullstory-challenge'
|
|
41
|
+
| 'aws-waf'
|
|
42
|
+
| 'weibo'
|
|
43
|
+
| 'dribbble'
|
|
44
|
+
| 'douban'
|
|
45
|
+
| 'cloudfront'
|
|
46
|
+
|
|
47
|
+
interface Input {
|
|
48
|
+
headers?: HeadersLike
|
|
49
|
+
html?: string
|
|
50
|
+
body?: string
|
|
51
|
+
url?: string
|
|
52
|
+
statusCode?: number
|
|
53
|
+
status?: number
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface Result {
|
|
57
|
+
detected: boolean
|
|
58
|
+
provider: ProviderName | string | null
|
|
59
|
+
detection: Detection | null
|
|
60
|
+
technique: Technique | null
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
type DetectionRule =
|
|
64
|
+
| { header: string; equals: string }
|
|
65
|
+
| { header: string; startsWith: string }
|
|
66
|
+
| { header: string; exists: true; except?: string }
|
|
67
|
+
| { header: string; oneOf: string[] }
|
|
68
|
+
| { headerNamePattern: string; flags?: string }
|
|
69
|
+
| { cookie: string }
|
|
70
|
+
| { contains: string }
|
|
71
|
+
| { regex: string; flags?: string }
|
|
72
|
+
| { status: number }
|
|
73
|
+
|
|
74
|
+
interface DetectorDetection {
|
|
75
|
+
type: 'headers' | 'cookies' | 'html' | 'url' | 'status_code'
|
|
76
|
+
technique?: Technique
|
|
77
|
+
domain?: string
|
|
78
|
+
domainWithoutSuffix?: string
|
|
79
|
+
statusCodes?: number[]
|
|
80
|
+
rules: DetectionRule[]
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface DetectorProvider {
|
|
84
|
+
name: string
|
|
85
|
+
detections: DetectorDetection[]
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function createDetector(config?: {
|
|
89
|
+
providers?: DetectorProvider[]
|
|
90
|
+
}): (input?: Input) => Result
|
|
91
|
+
|
|
92
|
+
function createHasCookie(
|
|
93
|
+
headers: HeadersLike,
|
|
94
|
+
getHeader?: (name: string) => string | string[] | null | undefined
|
|
95
|
+
): (patternList: string | readonly string[]) => boolean
|
|
96
|
+
|
|
97
|
+
function createTestPattern(
|
|
98
|
+
value?: string | null
|
|
99
|
+
): (
|
|
100
|
+
pattern: string | RegExp | { type: 'contains'; value: string }
|
|
101
|
+
) => boolean
|
|
102
|
+
|
|
103
|
+
const debug: {
|
|
104
|
+
(...args: unknown[]): void
|
|
105
|
+
[level: string]: (...args: unknown[]) => void
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare function isAntibot(input?: isAntibot.Input): isAntibot.Result
|
|
110
|
+
|
|
111
|
+
export = isAntibot
|
package/src/index.js
CHANGED
|
@@ -49,9 +49,14 @@ const createCompiledTestPattern = value => {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
const createResult = (
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
const createResult = (
|
|
53
|
+
detected,
|
|
54
|
+
provider,
|
|
55
|
+
detection = null,
|
|
56
|
+
technique = null
|
|
57
|
+
) => {
|
|
58
|
+
debug({ detected, provider, detection, technique })
|
|
59
|
+
return { detected, provider, detection, technique }
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
const compileCookieMatcher = patternList => {
|
|
@@ -175,6 +180,7 @@ const createRegExp = (pattern, flags = '') => new RegExp(pattern, flags)
|
|
|
175
180
|
|
|
176
181
|
const createCompiledDetection = (detection, matches) => ({
|
|
177
182
|
type: detection.type,
|
|
183
|
+
technique: detection.technique ?? null,
|
|
178
184
|
domain: detection.domain,
|
|
179
185
|
domainWithoutSuffix: detection.domainWithoutSuffix,
|
|
180
186
|
matches
|
|
@@ -330,7 +336,8 @@ const detectWithProviders = (
|
|
|
330
336
|
return createResult(
|
|
331
337
|
true,
|
|
332
338
|
provider.name,
|
|
333
|
-
DETECTION[detection.type] || detection.type
|
|
339
|
+
DETECTION[detection.type] || detection.type,
|
|
340
|
+
detection.technique
|
|
334
341
|
)
|
|
335
342
|
}
|
|
336
343
|
}
|
package/src/providers.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"detections": [
|
|
10
10
|
{
|
|
11
11
|
"type": "headers",
|
|
12
|
+
"technique": "javascript",
|
|
12
13
|
"rules": [
|
|
13
14
|
{
|
|
14
15
|
"header": "cf-mitigated",
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
},
|
|
19
20
|
{
|
|
20
21
|
"type": "cookies",
|
|
22
|
+
"technique": "cookie",
|
|
21
23
|
"rules": [
|
|
22
24
|
{
|
|
23
25
|
"cookie": "cf_clearance="
|
|
@@ -26,6 +28,7 @@
|
|
|
26
28
|
},
|
|
27
29
|
{
|
|
28
30
|
"type": "html",
|
|
31
|
+
"technique": "javascript",
|
|
29
32
|
"rules": [
|
|
30
33
|
{
|
|
31
34
|
"contains": "_cf_chl_opt"
|
|
@@ -41,6 +44,7 @@
|
|
|
41
44
|
"detections": [
|
|
42
45
|
{
|
|
43
46
|
"type": "headers",
|
|
47
|
+
"technique": "javascript",
|
|
44
48
|
"rules": [
|
|
45
49
|
{
|
|
46
50
|
"header": "x-vercel-mitigated",
|
|
@@ -57,6 +61,7 @@
|
|
|
57
61
|
"detections": [
|
|
58
62
|
{
|
|
59
63
|
"type": "headers",
|
|
64
|
+
"technique": "waf",
|
|
60
65
|
"rules": [
|
|
61
66
|
{
|
|
62
67
|
"header": "akamai-cache-status",
|
|
@@ -70,6 +75,7 @@
|
|
|
70
75
|
},
|
|
71
76
|
{
|
|
72
77
|
"type": "cookies",
|
|
78
|
+
"technique": "cookie",
|
|
73
79
|
"rules": [
|
|
74
80
|
{
|
|
75
81
|
"cookie": "_abck="
|
|
@@ -78,6 +84,7 @@
|
|
|
78
84
|
},
|
|
79
85
|
{
|
|
80
86
|
"type": "html",
|
|
87
|
+
"technique": "javascript",
|
|
81
88
|
"rules": [
|
|
82
89
|
{
|
|
83
90
|
"contains": "bmak."
|
|
@@ -93,6 +100,7 @@
|
|
|
93
100
|
"detections": [
|
|
94
101
|
{
|
|
95
102
|
"type": "headers",
|
|
103
|
+
"technique": "javascript",
|
|
96
104
|
"rules": [
|
|
97
105
|
{
|
|
98
106
|
"header": "x-dd-b",
|
|
@@ -114,6 +122,7 @@
|
|
|
114
122
|
},
|
|
115
123
|
{
|
|
116
124
|
"type": "cookies",
|
|
125
|
+
"technique": "cookie",
|
|
117
126
|
"rules": [
|
|
118
127
|
{
|
|
119
128
|
"cookie": "datadome="
|
|
@@ -129,6 +138,7 @@
|
|
|
129
138
|
"detections": [
|
|
130
139
|
{
|
|
131
140
|
"type": "headers",
|
|
141
|
+
"technique": "javascript",
|
|
132
142
|
"rules": [
|
|
133
143
|
{
|
|
134
144
|
"header": "x-px-authorization",
|
|
@@ -138,6 +148,7 @@
|
|
|
138
148
|
},
|
|
139
149
|
{
|
|
140
150
|
"type": "html",
|
|
151
|
+
"technique": "javascript",
|
|
141
152
|
"rules": [
|
|
142
153
|
{
|
|
143
154
|
"contains": "window._pxAppId"
|
|
@@ -152,6 +163,7 @@
|
|
|
152
163
|
},
|
|
153
164
|
{
|
|
154
165
|
"type": "cookies",
|
|
166
|
+
"technique": "cookie",
|
|
155
167
|
"rules": [
|
|
156
168
|
{
|
|
157
169
|
"cookie": "_px3="
|
|
@@ -170,6 +182,7 @@
|
|
|
170
182
|
"detections": [
|
|
171
183
|
{
|
|
172
184
|
"type": "headers",
|
|
185
|
+
"technique": "javascript",
|
|
173
186
|
"rules": [
|
|
174
187
|
{
|
|
175
188
|
"headerNamePattern": "^x-[a-z0-9]{8}-[abcdfz]$",
|
|
@@ -179,6 +192,7 @@
|
|
|
179
192
|
},
|
|
180
193
|
{
|
|
181
194
|
"type": "html",
|
|
195
|
+
"technique": "javascript",
|
|
182
196
|
"rules": [
|
|
183
197
|
{
|
|
184
198
|
"regex": "shapesecurity\\.\\w+\\s*\\("
|
|
@@ -194,6 +208,7 @@
|
|
|
194
208
|
"detections": [
|
|
195
209
|
{
|
|
196
210
|
"type": "headers",
|
|
211
|
+
"technique": "javascript",
|
|
197
212
|
"rules": [
|
|
198
213
|
{
|
|
199
214
|
"header": "x-kasada",
|
|
@@ -207,6 +222,7 @@
|
|
|
207
222
|
},
|
|
208
223
|
{
|
|
209
224
|
"type": "html",
|
|
225
|
+
"technique": "javascript",
|
|
210
226
|
"rules": [
|
|
211
227
|
{
|
|
212
228
|
"contains": "__kasada"
|
|
@@ -225,6 +241,7 @@
|
|
|
225
241
|
"detections": [
|
|
226
242
|
{
|
|
227
243
|
"type": "headers",
|
|
244
|
+
"technique": "waf",
|
|
228
245
|
"rules": [
|
|
229
246
|
{
|
|
230
247
|
"header": "x-cdn",
|
|
@@ -238,6 +255,7 @@
|
|
|
238
255
|
},
|
|
239
256
|
{
|
|
240
257
|
"type": "html",
|
|
258
|
+
"technique": "javascript",
|
|
241
259
|
"rules": [
|
|
242
260
|
{
|
|
243
261
|
"regex": "(?:incapsula|imperva)\\.\\w+\\s*\\("
|
|
@@ -246,6 +264,7 @@
|
|
|
246
264
|
},
|
|
247
265
|
{
|
|
248
266
|
"type": "cookies",
|
|
267
|
+
"technique": "cookie",
|
|
249
268
|
"rules": [
|
|
250
269
|
{
|
|
251
270
|
"cookie": "incap_ses_"
|
|
@@ -267,6 +286,7 @@
|
|
|
267
286
|
"detections": [
|
|
268
287
|
{
|
|
269
288
|
"type": "cookies",
|
|
289
|
+
"technique": "cookie",
|
|
270
290
|
"rules": [
|
|
271
291
|
{
|
|
272
292
|
"cookie": "rbzid="
|
|
@@ -278,6 +298,7 @@
|
|
|
278
298
|
},
|
|
279
299
|
{
|
|
280
300
|
"type": "html",
|
|
301
|
+
"technique": "waf",
|
|
281
302
|
"rules": [
|
|
282
303
|
{
|
|
283
304
|
"contains": "Protected by Reblaze"
|
|
@@ -293,6 +314,7 @@
|
|
|
293
314
|
"detections": [
|
|
294
315
|
{
|
|
295
316
|
"type": "html",
|
|
317
|
+
"technique": "javascript",
|
|
296
318
|
"rules": [
|
|
297
319
|
{
|
|
298
320
|
"contains": "CheqSdk"
|
|
@@ -304,6 +326,7 @@
|
|
|
304
326
|
},
|
|
305
327
|
{
|
|
306
328
|
"type": "url",
|
|
329
|
+
"technique": "javascript",
|
|
307
330
|
"rules": [
|
|
308
331
|
{
|
|
309
332
|
"regex": "cheqzone\\.com",
|
|
@@ -324,6 +347,7 @@
|
|
|
324
347
|
"detections": [
|
|
325
348
|
{
|
|
326
349
|
"type": "html",
|
|
350
|
+
"technique": "waf",
|
|
327
351
|
"rules": [
|
|
328
352
|
{
|
|
329
353
|
"contains": "Sucuri Website Firewall"
|
|
@@ -339,6 +363,7 @@
|
|
|
339
363
|
"detections": [
|
|
340
364
|
{
|
|
341
365
|
"type": "html",
|
|
366
|
+
"technique": "javascript",
|
|
342
367
|
"rules": [
|
|
343
368
|
{
|
|
344
369
|
"regex": "ThreatMetrix\\.\\w+\\s*\\(",
|
|
@@ -348,6 +373,7 @@
|
|
|
348
373
|
},
|
|
349
374
|
{
|
|
350
375
|
"type": "url",
|
|
376
|
+
"technique": "javascript",
|
|
351
377
|
"rules": [
|
|
352
378
|
{
|
|
353
379
|
"contains": "fp/check.js"
|
|
@@ -363,6 +389,7 @@
|
|
|
363
389
|
"detections": [
|
|
364
390
|
{
|
|
365
391
|
"type": "html",
|
|
392
|
+
"technique": "javascript",
|
|
366
393
|
"rules": [
|
|
367
394
|
{
|
|
368
395
|
"regex": "meetricsGlobal\\.\\w+\\s*\\("
|
|
@@ -371,6 +398,7 @@
|
|
|
371
398
|
},
|
|
372
399
|
{
|
|
373
400
|
"type": "url",
|
|
401
|
+
"technique": "javascript",
|
|
374
402
|
"rules": [
|
|
375
403
|
{
|
|
376
404
|
"regex": "meetrics\\.com",
|
|
@@ -387,6 +415,7 @@
|
|
|
387
415
|
"detections": [
|
|
388
416
|
{
|
|
389
417
|
"type": "html",
|
|
418
|
+
"technique": "javascript",
|
|
390
419
|
"rules": [
|
|
391
420
|
{
|
|
392
421
|
"contains": "ocule.co.uk"
|
|
@@ -395,6 +424,7 @@
|
|
|
395
424
|
},
|
|
396
425
|
{
|
|
397
426
|
"type": "url",
|
|
427
|
+
"technique": "javascript",
|
|
398
428
|
"rules": [
|
|
399
429
|
{
|
|
400
430
|
"regex": "ocule\\.co\\.uk",
|
|
@@ -411,6 +441,7 @@
|
|
|
411
441
|
"detections": [
|
|
412
442
|
{
|
|
413
443
|
"type": "url",
|
|
444
|
+
"technique": "captcha",
|
|
414
445
|
"rules": [
|
|
415
446
|
{
|
|
416
447
|
"contains": "recaptcha/api"
|
|
@@ -429,6 +460,7 @@
|
|
|
429
460
|
},
|
|
430
461
|
{
|
|
431
462
|
"type": "html",
|
|
463
|
+
"technique": "captcha",
|
|
432
464
|
"rules": [
|
|
433
465
|
{
|
|
434
466
|
"regex": "\\b(?:window\\.)?grecaptcha\\s*\\.(?:execute|render|ready|getResponse|enterprise)\\b",
|
|
@@ -446,6 +478,7 @@
|
|
|
446
478
|
},
|
|
447
479
|
{
|
|
448
480
|
"type": "html",
|
|
481
|
+
"technique": "captcha",
|
|
449
482
|
"statusCodes": [
|
|
450
483
|
403,
|
|
451
484
|
429,
|
|
@@ -466,6 +499,7 @@
|
|
|
466
499
|
"detections": [
|
|
467
500
|
{
|
|
468
501
|
"type": "url",
|
|
502
|
+
"technique": "captcha",
|
|
469
503
|
"rules": [
|
|
470
504
|
{
|
|
471
505
|
"regex": "hcaptcha\\.com",
|
|
@@ -475,6 +509,7 @@
|
|
|
475
509
|
},
|
|
476
510
|
{
|
|
477
511
|
"type": "html",
|
|
512
|
+
"technique": "captcha",
|
|
478
513
|
"rules": [
|
|
479
514
|
{
|
|
480
515
|
"contains": "hcaptcha.com"
|
|
@@ -493,6 +528,7 @@
|
|
|
493
528
|
"detections": [
|
|
494
529
|
{
|
|
495
530
|
"type": "url",
|
|
531
|
+
"technique": "captcha",
|
|
496
532
|
"rules": [
|
|
497
533
|
{
|
|
498
534
|
"regex": "arkoselabs\\.com",
|
|
@@ -505,6 +541,7 @@
|
|
|
505
541
|
},
|
|
506
542
|
{
|
|
507
543
|
"type": "html",
|
|
544
|
+
"technique": "captcha",
|
|
508
545
|
"rules": [
|
|
509
546
|
{
|
|
510
547
|
"contains": "arkoselabs.com"
|
|
@@ -523,6 +560,7 @@
|
|
|
523
560
|
"detections": [
|
|
524
561
|
{
|
|
525
562
|
"type": "url",
|
|
563
|
+
"technique": "captcha",
|
|
526
564
|
"rules": [
|
|
527
565
|
{
|
|
528
566
|
"regex": "geetest\\.com",
|
|
@@ -532,6 +570,7 @@
|
|
|
532
570
|
},
|
|
533
571
|
{
|
|
534
572
|
"type": "html",
|
|
573
|
+
"technique": "captcha",
|
|
535
574
|
"rules": [
|
|
536
575
|
{
|
|
537
576
|
"regex": "geetest\\.\\w+\\s*\\("
|
|
@@ -547,6 +586,7 @@
|
|
|
547
586
|
"detections": [
|
|
548
587
|
{
|
|
549
588
|
"type": "url",
|
|
589
|
+
"technique": "captcha",
|
|
550
590
|
"rules": [
|
|
551
591
|
{
|
|
552
592
|
"regex": "challenges\\.cloudflare\\.com\\/turnstile",
|
|
@@ -556,6 +596,7 @@
|
|
|
556
596
|
},
|
|
557
597
|
{
|
|
558
598
|
"type": "html",
|
|
599
|
+
"technique": "captcha",
|
|
559
600
|
"rules": [
|
|
560
601
|
{
|
|
561
602
|
"contains": "cf-turnstile"
|
|
@@ -574,6 +615,7 @@
|
|
|
574
615
|
"detections": [
|
|
575
616
|
{
|
|
576
617
|
"type": "url",
|
|
618
|
+
"technique": "captcha",
|
|
577
619
|
"rules": [
|
|
578
620
|
{
|
|
579
621
|
"regex": "friendlycaptcha\\.com",
|
|
@@ -583,6 +625,7 @@
|
|
|
583
625
|
},
|
|
584
626
|
{
|
|
585
627
|
"type": "html",
|
|
628
|
+
"technique": "captcha",
|
|
586
629
|
"rules": [
|
|
587
630
|
{
|
|
588
631
|
"contains": "frc-captcha"
|
|
@@ -601,6 +644,7 @@
|
|
|
601
644
|
"detections": [
|
|
602
645
|
{
|
|
603
646
|
"type": "url",
|
|
647
|
+
"technique": "captcha",
|
|
604
648
|
"rules": [
|
|
605
649
|
{
|
|
606
650
|
"regex": "captcha\\.eu",
|
|
@@ -610,6 +654,7 @@
|
|
|
610
654
|
},
|
|
611
655
|
{
|
|
612
656
|
"type": "html",
|
|
657
|
+
"technique": "captcha",
|
|
613
658
|
"rules": [
|
|
614
659
|
{
|
|
615
660
|
"contains": "CaptchaEU"
|
|
@@ -628,6 +673,7 @@
|
|
|
628
673
|
"detections": [
|
|
629
674
|
{
|
|
630
675
|
"type": "url",
|
|
676
|
+
"technique": "captcha",
|
|
631
677
|
"rules": [
|
|
632
678
|
{
|
|
633
679
|
"regex": "turing\\.captcha\\.qcloud\\.com",
|
|
@@ -637,6 +683,7 @@
|
|
|
637
683
|
},
|
|
638
684
|
{
|
|
639
685
|
"type": "html",
|
|
686
|
+
"technique": "captcha",
|
|
640
687
|
"rules": [
|
|
641
688
|
{
|
|
642
689
|
"contains": "TencentCaptcha"
|
|
@@ -655,6 +702,7 @@
|
|
|
655
702
|
"detections": [
|
|
656
703
|
{
|
|
657
704
|
"type": "url",
|
|
705
|
+
"technique": "captcha",
|
|
658
706
|
"rules": [
|
|
659
707
|
{
|
|
660
708
|
"regex": "punish\\?x5secdata",
|
|
@@ -664,6 +712,7 @@
|
|
|
664
712
|
},
|
|
665
713
|
{
|
|
666
714
|
"type": "html",
|
|
715
|
+
"technique": "captcha",
|
|
667
716
|
"rules": [
|
|
668
717
|
{
|
|
669
718
|
"contains": "x5secdata"
|
|
@@ -679,6 +728,7 @@
|
|
|
679
728
|
"detections": [
|
|
680
729
|
{
|
|
681
730
|
"type": "status_code",
|
|
731
|
+
"technique": "waf",
|
|
682
732
|
"domain": "houzz.com",
|
|
683
733
|
"rules": [
|
|
684
734
|
{
|
|
@@ -695,6 +745,7 @@
|
|
|
695
745
|
"detections": [
|
|
696
746
|
{
|
|
697
747
|
"type": "status_code",
|
|
748
|
+
"technique": "waf",
|
|
698
749
|
"domain": "reddit.com",
|
|
699
750
|
"rules": [
|
|
700
751
|
{
|
|
@@ -707,6 +758,7 @@
|
|
|
707
758
|
},
|
|
708
759
|
{
|
|
709
760
|
"type": "html",
|
|
761
|
+
"technique": "javascript",
|
|
710
762
|
"domain": "reddit.com",
|
|
711
763
|
"rules": [
|
|
712
764
|
{
|
|
@@ -727,6 +779,7 @@
|
|
|
727
779
|
"detections": [
|
|
728
780
|
{
|
|
729
781
|
"type": "url",
|
|
782
|
+
"technique": "javascript",
|
|
730
783
|
"rules": [
|
|
731
784
|
{
|
|
732
785
|
"contains": "consent.google.com"
|
|
@@ -742,6 +795,7 @@
|
|
|
742
795
|
"detections": [
|
|
743
796
|
{
|
|
744
797
|
"type": "status_code",
|
|
798
|
+
"technique": "waf",
|
|
745
799
|
"domain": "linkedin.com",
|
|
746
800
|
"rules": [
|
|
747
801
|
{
|
|
@@ -758,6 +812,7 @@
|
|
|
758
812
|
"detections": [
|
|
759
813
|
{
|
|
760
814
|
"type": "html",
|
|
815
|
+
"technique": "javascript",
|
|
761
816
|
"domain": "instagram.com",
|
|
762
817
|
"rules": [
|
|
763
818
|
{
|
|
@@ -775,6 +830,7 @@
|
|
|
775
830
|
"detections": [
|
|
776
831
|
{
|
|
777
832
|
"type": "html",
|
|
833
|
+
"technique": "waf",
|
|
778
834
|
"rules": [
|
|
779
835
|
{
|
|
780
836
|
"regex": "<title>\\s*-\\s*YouTube<\\/title>",
|
|
@@ -791,6 +847,7 @@
|
|
|
791
847
|
"detections": [
|
|
792
848
|
{
|
|
793
849
|
"type": "headers",
|
|
850
|
+
"technique": "waf",
|
|
794
851
|
"domainWithoutSuffix": "amazon",
|
|
795
852
|
"statusCodes": [
|
|
796
853
|
500
|
|
@@ -804,6 +861,7 @@
|
|
|
804
861
|
},
|
|
805
862
|
{
|
|
806
863
|
"type": "html",
|
|
864
|
+
"technique": "captcha",
|
|
807
865
|
"domainWithoutSuffix": "amazon",
|
|
808
866
|
"rules": [
|
|
809
867
|
{
|
|
@@ -820,6 +878,7 @@
|
|
|
820
878
|
"detections": [
|
|
821
879
|
{
|
|
822
880
|
"type": "html",
|
|
881
|
+
"technique": "javascript",
|
|
823
882
|
"rules": [
|
|
824
883
|
{
|
|
825
884
|
"regex": "<script id=\"anubis_challenge\"",
|
|
@@ -839,6 +898,7 @@
|
|
|
839
898
|
"detections": [
|
|
840
899
|
{
|
|
841
900
|
"type": "html",
|
|
901
|
+
"technique": "javascript",
|
|
842
902
|
"rules": [
|
|
843
903
|
{
|
|
844
904
|
"contains": "_fs-ch-"
|
|
@@ -847,6 +907,7 @@
|
|
|
847
907
|
},
|
|
848
908
|
{
|
|
849
909
|
"type": "cookies",
|
|
910
|
+
"technique": "cookie",
|
|
850
911
|
"rules": [
|
|
851
912
|
{
|
|
852
913
|
"cookie": "_fs_ch_st_"
|
|
@@ -862,6 +923,7 @@
|
|
|
862
923
|
"detections": [
|
|
863
924
|
{
|
|
864
925
|
"type": "headers",
|
|
926
|
+
"technique": "javascript",
|
|
865
927
|
"rules": [
|
|
866
928
|
{
|
|
867
929
|
"header": "x-amzn-waf-action",
|
|
@@ -875,6 +937,7 @@
|
|
|
875
937
|
},
|
|
876
938
|
{
|
|
877
939
|
"type": "html",
|
|
940
|
+
"technique": "javascript",
|
|
878
941
|
"rules": [
|
|
879
942
|
{
|
|
880
943
|
"regex": "aws-waf\\.\\w+\\s*\\("
|
|
@@ -886,6 +949,7 @@
|
|
|
886
949
|
},
|
|
887
950
|
{
|
|
888
951
|
"type": "cookies",
|
|
952
|
+
"technique": "cookie",
|
|
889
953
|
"rules": [
|
|
890
954
|
{
|
|
891
955
|
"cookie": "aws-waf-token="
|
|
@@ -902,6 +966,7 @@
|
|
|
902
966
|
"detections": [
|
|
903
967
|
{
|
|
904
968
|
"type": "html",
|
|
969
|
+
"technique": "javascript",
|
|
905
970
|
"domainWithoutSuffix": "weibo",
|
|
906
971
|
"rules": [
|
|
907
972
|
{
|
|
@@ -919,6 +984,7 @@
|
|
|
919
984
|
"detections": [
|
|
920
985
|
{
|
|
921
986
|
"type": "status_code",
|
|
987
|
+
"technique": "waf",
|
|
922
988
|
"domain": "dribbble.com",
|
|
923
989
|
"rules": [
|
|
924
990
|
{
|
|
@@ -936,6 +1002,7 @@
|
|
|
936
1002
|
"detections": [
|
|
937
1003
|
{
|
|
938
1004
|
"type": "status_code",
|
|
1005
|
+
"technique": "waf",
|
|
939
1006
|
"domain": "doubanio.com",
|
|
940
1007
|
"rules": [
|
|
941
1008
|
{
|
|
@@ -944,6 +1011,34 @@
|
|
|
944
1011
|
]
|
|
945
1012
|
}
|
|
946
1013
|
]
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"name": "cloudfront",
|
|
1017
|
+
"label": "CloudFront",
|
|
1018
|
+
"category": "antibot",
|
|
1019
|
+
"detections": [
|
|
1020
|
+
{
|
|
1021
|
+
"type": "headers",
|
|
1022
|
+
"technique": "waf",
|
|
1023
|
+
"statusCodes": [403, 502, 503, 504],
|
|
1024
|
+
"rules": [
|
|
1025
|
+
{
|
|
1026
|
+
"header": "x-cache",
|
|
1027
|
+
"startsWith": "Error from cloudfront"
|
|
1028
|
+
}
|
|
1029
|
+
]
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"type": "html",
|
|
1033
|
+
"technique": "waf",
|
|
1034
|
+
"statusCodes": [403, 502, 503, 504],
|
|
1035
|
+
"rules": [
|
|
1036
|
+
{
|
|
1037
|
+
"contains": "The request could not be satisfied"
|
|
1038
|
+
}
|
|
1039
|
+
]
|
|
1040
|
+
}
|
|
1041
|
+
]
|
|
947
1042
|
}
|
|
948
1043
|
]
|
|
949
1044
|
}
|
package/src/schema.json
CHANGED
|
@@ -56,12 +56,16 @@
|
|
|
56
56
|
},
|
|
57
57
|
"detection": {
|
|
58
58
|
"type": "object",
|
|
59
|
-
"required": ["type", "rules"],
|
|
59
|
+
"required": ["type", "technique", "rules"],
|
|
60
60
|
"additionalProperties": false,
|
|
61
61
|
"properties": {
|
|
62
62
|
"type": {
|
|
63
63
|
"enum": ["headers", "cookies", "html", "url", "status_code"]
|
|
64
64
|
},
|
|
65
|
+
"technique": {
|
|
66
|
+
"enum": ["javascript", "captcha", "waf", "cookie"],
|
|
67
|
+
"description": "Challenge kind on the matching detection. javascript: JS interstitial that needs a browser. captcha: interactive widget. waf: network/status/IP block. cookie: vendor cookie (may be leftover on success)."
|
|
68
|
+
},
|
|
65
69
|
"domain": {
|
|
66
70
|
"type": "string",
|
|
67
71
|
"description": "When set, this detection only applies if the request URL's registrable domain matches (e.g. 'reddit.com')."
|