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
title: New machine learning (ML) scores for detected scripts
10
+
description: |-
11
+
In addition to the global integrity score, Page Shield now provides individual script scores (from 1 to 99) for the following malicious code detections: Magecart, Crypto mining, and Malware.
12
+
8
13
- publish_date: "2024-09-18"
9
14
title: Page Shield's script monitor now available in Free plan
Copy file name to clipboardExpand all lines: src/content/docs/page-shield/how-it-works/malicious-script-detection.mdx
+30-16Lines changed: 30 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,25 +6,39 @@ sidebar:
6
6
head: []
7
7
description: Page Shield implements different mechanisms to determine if a
8
8
script or a connection is malicious.
9
-
10
9
---
11
10
12
11
:::note
13
-
14
-
This feature is available as a paid add-on for customers on an Enterprise plan.
12
+
This feature is available as a paid add-on for customers on an Enterprise plan.
15
13
:::
16
14
17
15
Page Shield implements different mechanisms to determine if a script, or a connection made by a script, is malicious. These mechanisms are:
18
16
19
-
* Malicious URL checks
20
-
* Malicious domain checks
21
-
* Malicious script detection
17
+
- Malicious script detection
18
+
- Malicious URL checks
19
+
- Malicious domain checks
22
20
23
21
Any updates to the threat feeds will trigger new checks for previously detected scripts or connections so that the Page Shield dashboards always reflect the latest categorization.
24
22
23
+
## Malicious script detection
24
+
25
+
In this type of detection, Page Shield will download the script file and run it through a classifier. The classifier is a machine learning (ML) model that has learned to detect patterns of malicious operations such as [Magecart-type attacks](https://sansec.io/what-is-magecart).
26
+
27
+
The script classifier will output a probability score for the script (also called the JS integrity score) between 1 and 99, where 1 means definitely malicious and 99 means definitely not malicious. This score, together with a threshold value, will determine if the malicious script detection system will classify the script as malicious or not.
28
+
29
+
The score threshold for considering a script as malicious is currently set to 10. If the script classification score is below this value, the Page Shield dashboards will display the script as being malicious.
30
+
31
+
In addition to the integrity score, Page Shield will also provide individual scores for different malicious code detections (scores from 1 to 99):
32
+
33
+
-**Magecart**
34
+
-**Crypto mining**
35
+
-**Malware**
36
+
37
+
You can configure [Malicious Script Alerts](/page-shield/reference/alerts/). You will receive an alert notification as soon as Cloudflare detects JavaScript code classified as malicious in your domain.
38
+
25
39
## Malicious URL checks
26
40
27
-
Page Shield will search for the URLs of your JavaScript dependencies in threat feeds to determine if any of those scripts should be categorized as malicious.
41
+
Page Shield will search for the URLs of your JavaScript dependencies in threat intelligence feeds to determine if any of those scripts should be categorized as malicious.
28
42
29
43
The Page Shield dashboards display the scripts that were considered malicious at the top of the scripts list.
30
44
@@ -52,19 +66,19 @@ The score threshold for considering a script as malicious is currently set to 50
52
66
53
67
You can configure [Malicious Script Alerts](/page-shield/reference/alerts/). You will receive an alert notification as soon as Cloudflare detects JavaScript code classified as malicious in your domain.
54
68
55
-
***
69
+
---
56
70
57
71
## Malicious script and connection categories
58
72
59
73
Scripts and connections considered malicious are categorized based on data from threat intelligence feeds. The current categories are the following:
60
74
61
-
* Security threats
62
-
* Command-and-Control (C2) & Botnet
63
-
* Cryptomining
64
-
* Spyware
65
-
* Phishing
66
-
* Malware
67
-
* Domain Generation Algorithm (DGA) domain
68
-
* Typosquatting & Impersonation
75
+
- Security threats
76
+
- Command-and-Control (C2) & Botnet
77
+
- Crypto mining
78
+
- Spyware
79
+
- Phishing
80
+
- Malware
81
+
- Domain Generation Algorithm (DGA) domain
82
+
- Typosquatting & Impersonation
69
83
70
84
Each script or connection considered malicious can belong to several categories.
Copy file name to clipboardExpand all lines: src/content/docs/page-shield/reference/page-shield-api.mdx
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,6 @@ You can enable and disable Page Shield, configure its settings, and fetch inform
12
12
To authenticate API requests you need an [API token](/fundamentals/api/get-started/create-token/). For more information on the required API token permissions, refer to [Roles and permissions](/page-shield/reference/roles-and-permissions/).
13
13
14
14
:::note
15
-
16
15
Refer to [API deprecations](/fundamentals/api/reference/deprecations/) for details on Page Shield API changes.
17
16
:::
18
17
@@ -64,9 +63,7 @@ The following table summarizes the available operations:
64
63
65
64
## API notes
66
65
67
-
- The malicious script classification (`Malicious` or `Not malicious`) is not directly available in the API. To determine this classification, compare the script's `js_integrity_score` value with the classification threshold, which is currently set to 50. Scripts with a score value lower than the threshold are considered malicious.
68
-
69
-
- The API provides two separate properties for malicious script/connection categories: `malicious_domain_categories` and `malicious_url_categories`, related to the `domain_reported_malicious` and `url_reported_malicious` properties, respectively. The Cloudflare dashboard displays all the categories in a single **Malicious category** field. For more information, refer to [Malicious script and connection categories](/page-shield/how-it-works/malicious-script-detection/#malicious-script-and-connection-categories).
66
+
The malicious script classification (`Malicious` or `Not malicious`) is not directly available in the API. To determine this classification, compare the script's `js_integrity_score` value with the classification threshold, which is currently set to 10. Scripts with a score value lower than the threshold are considered malicious.
0 commit comments