7.15 Ensure bot protection is enabled in Azure Web Application Firewall policy on Azure Application Gateway

Information

Enable bot protection on the Web Application Firewall to block or log requests from known malicious IP addresses identified through the Microsoft Threat Intelligence feed.

Internet traffic from bots can scrape, scan, and search for application vulnerabilities. Enabling bot protection stops requests from known malicious IP addresses and enhances the overall security of your application by reducing exposure to automated attacks.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

Remediate from Azure Portal

- Go to Application gateways.
- Click the name of an application gateway.
- Under Settings, click Web application firewall.
- Under Associated web application firewall policy, click the policy name.
- Under Settings, click Managed rules.
- Click Assign.
- Under Bot Management ruleset, click to display the drop-down menu.
- Select a Microsoft_BotManagerRuleSet.
- Click Save.
- Click X to close the panel.
- Repeat steps 1-10 for each application gateway and firewall policy requiring remediation.

Remediate from Azure CLI

For each firewall policy requiring remediation, run the following command to enable bot protection:

az network application-gateway waf-policy managed-rule rule-set add --resource-group <resource-group> --policy-name <firewall-policy> --type Microsoft_BotManagerRuleSet --version <0.1|1.0|1.1>

Impact:

May require monitoring to identify false positives.

See Also

https://workbench.cisecurity.org/benchmarks/21611

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-7(8), CSCv7|12.9

Plugin: microsoft_azure

Control ID: 744e24757034e0fa35aae7a13bd95719596864118eaab28228a8cdc453f17711