You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/ruleset-engine/rules-language/fields/dynamic-fields.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -436,25 +436,25 @@ For more details, refer to [Malicious uploads detection](/waf/detections/malicio
436
436
437
437
`cf.waf.score` <Typetext='Number' />
438
438
439
-
A global score from 1 to 99 that combines the score of each WAF attack vector into a single score. This is the standard [WAF attack score](/waf/detections/attack-score/) to detect variants of attack patterns.
439
+
A global score from `1` to `99` that combines the score of each WAF attack vector into a single score. The special score `100` indicates that the Cloudflare WAF did not score the request. This is the standard [WAF attack score](/waf/detections/attack-score/) to detect variants of attack patterns.
440
440
441
441
## `cf.waf.score.sqli`
442
442
443
443
`cf.waf.score.sqli` <Typetext='Number' />
444
444
445
-
An attack score from 1 to 99 classifying the SQL injection (SQLi) attack vector.
445
+
An attack score from `1` to `99` classifying the SQL injection (SQLi) attack vector. The special score `100` indicates that the Cloudflare WAF did not score the request.
446
446
447
447
## `cf.waf.score.xss`
448
448
449
449
`cf.waf.score.xss` <Typetext='Number' />
450
450
451
-
An attack score from 1 to 99 classifying the cross-site scripting (XSS) attack vector.
451
+
An attack score from `1` to `99` classifying the cross-site scripting (XSS) attack vector. The special score `100` indicates that the Cloudflare WAF did not score the request.
452
452
453
453
## `cf.waf.score.rce`
454
454
455
455
`cf.waf.score.rce` <Typetext='Number' />
456
456
457
-
An attack score from 1 to 99 classifying the command injection or Remote Code Execution (RCE) attack vector.
457
+
An attack score from `1` to `99` classifying the command injection or Remote Code Execution (RCE) attack vector. The special score `100` indicates that the Cloudflare WAF did not score the request.
You can use these fields in expressions of [custom rules](/waf/custom-rules/) and [rate limiting rules](/waf/rate-limiting-rules/) where:
35
+
You can use these fields in expressions of [custom rules](/waf/custom-rules/) and [rate limiting rules](/waf/rate-limiting-rules/). Attack score fields of data type `Number` vary between `1` and `99` with the following meaning:
36
36
37
37
- A score of `1` indicates that the request is almost certainly malicious.
38
38
- A score of `99` indicates that the request is likely clean.
39
-
- A score of `100` indicates that the Cloudflare WAF did not score the request.
40
39
41
-
The individual attack scores (such as WAF SQLi Attack Score and XSS Attack Score) are independent of each other. Additionally, the global WAF Attack Score is related to individual scores, but does not result from a direct calculation.
40
+
The special score `100` indicates that the Cloudflare WAF did not score the request.
41
+
42
+
The global WAF Attack Score is mathematically derived from individual attack scores (for example, from SQLi Attack Score and XSS Attack Score), reflecting their interdependence. However, the global score is not a sum of individual scores. A low global score usually indicates medium to low individual scores, while a high global score suggests higher individual scores.
42
43
43
44
The WAF Attack Score Class field can have one of the following values, depending on the calculated request attack score:
44
45
@@ -49,7 +50,7 @@ The WAF Attack Score Class field can have one of the following values, depending
49
50
|_Likely clean_|`likely_clean`| Attack score between `51` and `80`. |
50
51
|_Clean_|`clean`| Attack score between `81` and `99`. |
51
52
52
-
Requests with an attack score of `100` will have a class of _Unscored_ in the Cloudflare dashboard, but you cannot use this class value in rule expressions.
53
+
Requests with the special attack score `100` will show a WAF Attack Score Class of _Unscored_ in the Cloudflare dashboard, but you cannot use this class value in rule expressions.
53
54
54
55
Attack score automatically detects and decodes Base64, JavaScript (Unicode escape sequences), and URL encoded content anywhere in the request: URL, headers, and body.
0 commit comments