Back to controls

Ensure Application Gateway WAF is enabled in Prevention mode

Detection-only mode provides visibility but does not block attacks. Prevention mode is required for stronger protection on internet-facing workloads.

Category

Controls

High

Applies to

Microsoft Azure

Coverage

null controls, 1 queries

Asset types

1 covered

Overview

Detection-only mode provides visibility but does not block attacks. Prevention mode is required for stronger protection on internet-facing workloads.

Remediation guidance

Azure Remediation

Service-Wide (Recommended)

Apply Azure Policy to require WAF-enabled Application Gateway with Prevention mode.

Azure Portal (Asset-Level)

  1. Open Application Gateway.
  2. Associate a WAF policy if missing.
  3. Set WAF mode to Prevention.

Azure CLI (Asset-Level)

az network application-gateway waf-policy policy-setting update --resource-group <resource-group> --policy-name <waf-policy-name> --mode Prevention

References

  • https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/ag-overview

Query logic

These are the stored checks tied to this control.

Application gateways without WAF prevention mode

Connectors

Microsoft Azure

Covered asset types

ApplicationGateway

Expected check: eq []

{ applicationGateways(where: { OR: [ { wafEnabled: false }, { wafMode_NOT: "Prevention" } ] }) { ...AssetFragment } }
Cyscale Logo
Cyscale is an agentless cloud-native application protection platform (CNAPP) that automates the contextual analysis of cloud misconfigurations, vulnerabilities, access, and data, to provide an accurate and actionable assessment of risk.

Stay connected

Receive new blog posts and product updates from Cyscale

By clicking Subscribe, I agree to Cyscale’s Privacy Policy


© 2026 Cyscale Limited

LinkedIn icon
Twitter icon
Facebook icon
crunch base icon
angel icon