Updated on 2024-04-12 GMT+08:00

Handling False Alarms

If you confirm that an attack event on the Events page is a false alarm, you can handle the event as false alarm by ignoring the URL and rule ID in basic web protection, or by deleting or disabling the corresponding protection rule you configured. You can also add the attack source IP addresses to a whitelist or blacklist to handle the false alarm. After an attack event is handled as a false alarm, the event will not be displayed on the Events page anymore.

WAF detects attacks by using built-in basic web protection rules and custom rules you configured (such as CC attack protection, precise access protection, blacklist, whitelist, and geolocation access control rules). WAF will respond to detected attacks based on the protective actions (such as Block and Log only) defined in the rules and display attack events on the Events page.

Prerequisites

There is at least one false alarm event in the event list.

Constraints

  • Only attack events blocked or recorded by built-in basic web protection rules can be handled as false alarms.
  • For events generated based on custom rules (such as a CC attack protection rule, precise protection rule, blacklist rule, whitelist rule, or geolocation access control rule), they cannot be handled as false alarms. To ignore such an event, delete or disable the custom rule hit by the event.
  • An attack event can only be handled as a false alarm once.
  • The attack event will not be displayed on the Events page.

Application Scenarios

Sometimes normal service requests may be blocked by WAF. For example, suppose you deploy a web application on an ECS and then add the public domain name associated with that application to WAF. If you enable basic web protection for that application, WAF may block the access requests that match the basic web protection rules. As a result, the website cannot be accessed through its domain name. However, the website can still be accessed through the IP address. In this case, you can handle the false alarms to allow normal access requests to the application.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Click in the upper left corner and choose Web Application Firewall under Security.
  4. In the navigation pane on the left, choose Events.
  5. Click the Search tab. In the website or instance drop-down list, select a website to view corresponding event logs. The query time can be Yesterday, Today, Past 3 days, Past 7 days, Past 30 days, or a time range you configure.
  6. In the event list, handle events.

    • If you confirm that an event is a false alarm, locate the row containing the event. In the Operation column, click Handle > Handle as False Alarm and handle the hit rule.
    • Add the source IP address to an address group. Locate the row containing the desired event, in the Operation column, click Handle > Add to Address Group. The source IP address of the event will be blocked or allowed based on the policy used for the address group.

      Add to: You can select an existing address group or create an address group.

    • Add the source IP address to a blacklist or whitelist rule of the corresponding protected domain name. Locate the row containing the desired event. In the Operation column, click Handle > Add to Blacklist/Whitelist. Then, the source IP address will be blocked or allowed based on the protective action configured in the blacklist or whitelist rule.
      Table 1 Parameter

      Parameter

      Description

      Add to

      • Existing rule
      • New rule

      Rule Name

      • If you select Existing rule for Add to, select a rule name from the drop-down list.
      • If you select New rule for Add to, customize a blacklist or whitelist rule.

      IP Address/Range/Group

      This parameter is mandatory when you select New rule for Add to.

      You can select IP address/Range or Address Group to add IP addresses a blacklist or whitelist rule.

      Group Name

      This parameter is mandatory when you select Address group for IP Address/Range/Group.

      Select an address group from the drop-down list. You can also click New address group to create an address group. For details, see Adding an IP Address Group.

      Protective Action

      • Block: Select Block if you want to blacklist an IP address or IP address range.
      • Allow: Select Allow if you want to whitelist an IP address or IP address range.
      • Log only: Select Log only if you want to observe an IP address or IP address range.

      Known Attack Source

      If you select Block for Protective Action, you can select a blocking type of a known attack source rule. WAF will block requests matching the configured IP address, Cookie, or Params for a length of time configured as part of the rule.

      Rule Description

      A brief description of the rule. This parameter is optional.

Verification

A false alarm will be deleted within about a minute after the handling configuration is done. It will no longer be displayed in the attack event details list. You can refresh the browser cache and request the page for which the global protection whitelist (formerly false alarm masking) rule is configured to check whether the configuration takes effect.

Other Operations

If an event is handled as a false alarm, the rule hit will be added to the global protection whitelist (formerly false alarm masking) rule list. You can go to the Policies page and then switch to the Global Protection Whitelist (Formerly False Alarm Masking) page to manage the rule, including querying, disabling, deleting, and modifying the rule. For more details, see Configuring a Global Protection Whitelist (Formerly False Alarm Masking) Rule.