Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 3.11 KB

application-gateway-customize-waf-rules-portal.md

File metadata and controls

61 lines (42 loc) · 3.11 KB
title description services author ms.service ms.date ms.author ms.topic ms.custom
Customize rules using portal - Azure Web Application Firewall
This article provides information on how to customize Web Application Firewall rules in Application Gateway with the Azure portal.
web-application-firewall
vhorne
web-application-firewall
11/07/2022
victorh
article
FY23-content-maintenance

Customize Web Application Firewall rules using the Azure portal

The Azure Application Gateway Web Application Firewall (WAF) provides protection for web applications. These protections are provided by the Open Web Application Security Project (OWASP) Core Rule Set (CRS). Some rules can cause false positives and block real traffic. For this reason, Application Gateway provides the capability to customize rule groups and rules. For more information on the specific rule groups and rules, see List of Web Application Firewall CRS rule groups and rules.

Note

If your application gateway is not using the WAF tier, the option to upgrade the application gateway to the WAF tier appears in the right pane.

:::image type="content" source="../media/application-gateway-customize-waf-rules-portal/1.png" alt-text="Enable WAF":::

View rule groups and rules

To view rule groups and rules

  1. Browse to the application gateway, and then select Web application firewall.

  2. Select your WAF Policy.

  3. Select Managed Rules.

    This view shows a table on the page of all the rule groups provided with the chosen rule set. All of the rule's check boxes are selected.

Disable rule groups and rules

Important

Use caution when disabling any rule groups or rules. This may expose you to increased security risks. The anomaly score is not incremented and no logging happens for disabled rules.

To disable rule groups or specific rules

  1. Search for the rules or rule groups that you want to disable.
  2. Select the check boxes for the rules that you want to disable.
  3. Select the action at the top of the page (enable/disable) for the selected rules.
  4. Select Save. :::image type="content" source="../media/application-gateway-customize-waf-rules-portal/figure3.png" alt-text="Save disabled rules":::

Mandatory rules

The following list contains conditions that cause the WAF to block the request while in Prevention Mode. In Detection Mode, they're logged as exceptions.

These can't be configured or disabled:

  • Failure to parse the request body results in the request being blocked, unless body inspection is turned off (XML, JSON, form data)
  • Request body (with no files) data length is larger than the configured limit
  • Request body (including files) is larger than the limit
  • An internal error happened in the WAF engine

CRS 3.x specific:

  • Inbound anomaly score exceeded threshold

Next steps

After you configure your disabled rules, you can learn how to view your WAF logs. For more information, see Application Gateway diagnostics.