Skip to content
Back to skills

Cis Azure Foundations 7.15

ASecurity

Ensure bot protection is enabled in Azure WAF policy on Azure Application Gateway

  • 3,723 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 3, 2026
securitygobashazuresecurity

Works with

  • cli

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add CyberStrikeus/CyberStrike --skill cis-azure-foundations-7.15 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cis Azure Foundations 7.15?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cis Azure Foundations 7.15
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyberstrikeus-cis-azure-foundations-7-15/badge)](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-azure-foundations-7-15)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cis-azure-foundations-7.15
description: "Ensure bot protection is enabled in Azure WAF policy on Azure Application Gateway"
category: cis-azure-foundations
version: "5.0.0"
author: cyberstrike-official
tags: [cis, azure, networking, waf, application-gateway]
cis_id: "7.15"
cis_benchmark: "CIS Microsoft Azure Foundations Benchmark v5.0.0"
tech_stack: [azure]
cwe_ids: []
chains_with: [cis-azure-foundations-7.10, cis-azure-foundations-7.14]
prerequisites: []
severity_boost: {}
---

# Ensure bot protection is enabled in Azure WAF policy on Azure Application Gateway

## Description

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.

## Rationale

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.

## Impact

May require monitoring to identify false positives.

## Audit Procedure

### Using Azure Portal

1. Go to `Application gateways`.
2. Click the name of an application gateway.
3. Under `Settings`, click `Web application firewall`.
4. Under `Associated web application firewall policy`, click the policy name.
5. Under `Settings`, click `Managed rules`.
6. Ensure a `Rule Id` containing `Microsoft_BotManagerRuleSet` is listed.
7. Click the `>` to expand the row.
8. Ensure the `Status` for `Malicious Bots` is set to `Enabled`.
9. Repeat steps 1-8 for each application gateway.

### Using Azure CLI

Run the following command to list application gateways:

```bash
az network application-gateway list
```

For each application gateway, run the following command to get the firewall policy id:

```bash
az network application-gateway show --resource-group <resource-group> --name <application-gateway> --query firewallPolicy.id
```

For each firewall policy, run the following command to get the managed rule sets:

```bash
az network application-gateway waf-policy show --ids <firewall-policy> --query managedRules.managedRuleSets
```

Ensure a managed rule set with `ruleSetType` of `Microsoft_BotManagerRuleSet` is returned, and that no `ruleGroupOverrides` for `ruleGroupName` `KnownBadBots` with `state` `Disabled` are returned.

### Using Azure Policy

- **Policy ID:** ebea0d86-7fbd-42e3-8a46-27e7568c2525 - **Name:** 'Bot Protection should be enabled for Azure Application Gateway WAF'

## Expected Result

All WAF policies associated with Application Gateways should have `Microsoft_BotManagerRuleSet` enabled with `Malicious Bots` rule group status set to `Enabled`.

## Remediation

### Remediate from Azure Portal

1. Go to `Application gateways`.
2. Click the name of an application gateway.
3. Under `Settings`, click `Web application firewall`.
4. Under `Associated web application firewall policy`, click the policy name.
5. Under `Settings`, click `Managed rules`.
6. Click `Assign`.
7. Under `Bot Management ruleset`, click to display the drop-down menu.
8. Select a `Microsoft_BotManagerRuleSet`.
9. Click `Save`.
10. Click `X` to close the panel.
11. 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:

```bash
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>
```

## Default Value

Bot protection is disabled by default on Azure Application Gateways with Web Application Firewall.

## References

1. https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/bot-protection-overview
2. https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/bot-protection
3. https://learn.microsoft.com/en-us/cli/azure/network/application-gateway
4. https://learn.microsoft.com/en-us/cli/azure/network/application-gateway/waf-policy
5. https://learn.microsoft.com/en-us/cli/azure/network/application-gateway/waf-policy/managed-rule/rule-set

## CIS Controls

| Controls Version | Control                                              | IG 1 | IG 2 | IG 3 |
| ---------------- | ---------------------------------------------------- | ---- | ---- | ---- |
| v8               | 13.10 Perform Application Layer Filtering            |      |      | x    |
| v7               | 12.9 Deploy Application Layer Filtering Proxy Server |      |      | x    |

## MITRE ATT&CK Mappings

| Techniques / Sub-techniques | Tactics | Mitigations |
| --------------------------- | ------- | ----------- |
| T1190                       | TA0001  | M1030       |

## Profile

Level 2 | Automated

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.