The global mitigation policy feature contains general mitigation rules that are accumulated based on the attack and defense experience of Anti-DDoS Proxy. After you enable the global mitigation policy feature, the feature can help reduce the risks that are caused by attacks on your websites. This topic describes how to configure the global mitigation policy feature.
Introduction to the global mitigation policy feature
Modes
The global mitigation policy feature supports the following modes: Loose, Normal, and Strict. The following table describes the modes. After you configure a forwarding rule for a domain name, Anti-DDoS Proxy automatically enables the global mitigation policy feature and uses the Normal mode for the domain name. You can change the mode based on your business requirements.
Mode | Mitigation effect | Scenario |
Loose | Blocks specific known attacks and allows normal requests. |
|
Normal (recommended) | Blocks attacks that are disclosed on the Internet but are not recorded in the historical traffic of your website. This mode has low impacts on your website. | This mode is suitable for scenarios in which the number of requests does not greatly fluctuate and the business attributes and user sources are stable. |
Strict | Strictly blocks attacks. Normal requests may also be blocked. Important To prevent adverse impacts of the mode change on your website, we recommend that you contact Alibaba Cloud technical support before you use the Strict mode. |
|
Mitigation rules
Anti-DDoS Proxy provides a number of mitigation rules and categorizes the rules into different types. The following table describes the types. In addition, each mode of the global mitigation policy feature supports a specific number of rules. If attack analysis reports or logs reveal that a rule causes a false positive and adversely affects your workloads, you do not need to change the existing mode. You need to only disable the rule or change the action of the rule.
Type |
Description |
Invalid Request |
The HTTP header of the request is invalid due to encoding errors. |
Simulated Browser Request |
The request is a simulated HTTP request designed to mimic a browser-initiated request. In most cases, such a request triggers a JavaScript challenge. |
Simulated Crawler Request |
The request is a simulated HTTP request designed to mimic a crawler-initiated request. |
Attack Tool Request |
The HTTP request is initiated by a common attack tool. |
High-frequency Attack Request |
The HTTP requests are initiated by attackers at a high frequency. |
Attack Request |
The request features the attack characteristics that are accumulated from the attack and defense experience of Alibaba Cloud. |
Decide whether to change a mode or a mitigation rule
You can decide whether to change a mode or a mitigation rule from the following dimensions.
Decide which mitigation rule to change
In this example, the mitigation rule whose ID is global_cc_1321b42f0967324a4581f7df931b4b64_C_t is used. This mitigation rule is used to protect against attacks that initiate high-frequency HTTP requests to a homepage. This mitigation rule may cause a false positive in the following scenarios:
During a large-scale promotional event, a large number of users may frequently refresh the homepage within 1 minute after the event starts. In this case, the system may generate a false positive.
After a technical issue of a website is fixed, the website administrator needs to test whether the performance and features of the website are restored. To perform a quick test, the administrator may use automated test tools to simulate frequent visits to the homepage of the website. The frequent visits are designed to check the loading speed and link availability of the homepage but may cause a false positive.
You can check the attack analysis reports and logs to identify the mitigation rule that causes the false positive. Then, you can disable the mitigation rule or change the action of the mitigation rule to Monitor.
-
Attack analysis reports
On the Attack Analysis page, you can find details about web resource exhaustion attacks and view the ID of the effective protection rule in the Top 10 Hit Policies section. In the left navigation bar, choose Investigation & Analysis > Attack Analysis to view statistics on the number of blocked requests for various protection policies, such as rate limiting, region blocking, and fine-grained access control. In the Top 10 Protection Policies panel on the right, you can view a list of protection rules ranked by the number of blocked requests, and click Protection Settings to go to the corresponding rule and modify it.
-
Logs
On the Log Analysis page, enter
last_ownerin the search box to view the ID of the effective mitigation rule. The mitigation rule whose ID starts withglobalis a global mitigation rule.In the left-side navigation pane, choose Investigation & Analysis > Full Log Analysis. In the search box at the top of the page, enter
last_owner. The indexed field panel on the left displays the value distribution for this field and the hit percentage for each rule ID.
Usage notes
If you add a website to Anti-DDoS Proxy after November 24, 2021, the global mitigation policy in Normal mode is automatically enabled for the domain name of the website.
If you add a website to Anti-DDoS Proxy before November 24, 2021, the global mitigation policy is disabled for the domain name of the website. We recommend that you enable the global mitigation policy for the domain name.
Prerequisites
A website service is added to Anti-DDoS Proxy. For more information, see Add websites.
Change mitigation rules
Log on to the General Policies page in the Anti-DDoS Proxy console.
In the top navigation bar, select the region of your instance.
Anti-DDoS Proxy (Chinese Mainland): Choose the Chinese Mainland region.
Anti-DDoS Proxy (Outside Chinese Mainland): Choose the Outside Chinese Mainland region.
Click the Protection for Website Services tab. On the tab, select the domain name that you want to manage from the list on the left side.
In the Anti-DDoS Global Mitigation Policy section, change the mode or click Settings to change the mitigation rules that are contained in the mode.