Skip to content

Commit f7c61c7

Browse files
authored
Merge pull request #952 from andrewmathuj/main
Update to Network Pillar - Azure Network Security - DDoS Ruleset, JavaScript Challenge, Rate Limit and CAPTCHA
2 parents b3a4e75 + c867b29 commit f7c61c7

4 files changed

Lines changed: 56 additions & 10 deletions

File tree

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
# Enable and configure Custom Rules for Rate Limit, JS Challenge(preview) and CAPTCHA(preview)
1+
# Enable and configure Custom Rules for Rate Limit
22

33
**Implementation Effort:** Medium
44

5-
**User Impact:** Low
5+
**User Impact:** Medium
66

77

88
## Overview
99

10-
Use custom WAF rules to augment the core rule set (CRS) and address specific needs with precision—such as blocking traffic from certain countries, rate-limiting on sensitive paths, or matching on particular HTTP headers or query parameters. In both Azure Front Door and Application Gateway WAF policies, navigate to Custom rules, define your match conditions (for example, RemoteAddr within a set of country IP ranges for geo-blocking, or a request rate threshold on a given URI), and then select the action: Block, Allow, or Log.
10+
Application-layer abuse and denial-of-service conditions are frequently caused by excessive or abnormal request rates rather than malformed payloads. Scenarios such as credential‑stuffing attacks, brute‑force sign‑in attempts, API abuse, and misconfigured clients can overwhelm application backends even when traffic appears syntactically valid. Static network controls and signature-based protections alone are insufficient to address these patterns because they lack awareness of request frequency and context.
1111

12-
For interactive challenges, you can choose JavaScript Challenge (supported in both Azure Front Door and Application Gateway) or CAPTCHA (Azure Front Door ) to verify genuine users. This approach lets you tailor your WAF policy to your application’s unique requirements while ensuring a balance between security and user experience.
12+
Rate limiting in Azure Web Application Firewall (WAF) provides a mechanism to detect and mitigate these behaviors by monitoring the number of requests that match defined conditions over a specified time window. When request volumes exceed configured thresholds, WAF can automatically block or throttle traffic, helping to preserve application availability and protect backend resources from exhaustion. This capability is implemented through custom WAF rules and is supported on Azure Application Gateway WAF v2 and Azure Front Door WAF when using the latest WAF engine.
1313

1414
## Reference
1515

16+
* [What is rate limiting for Web Application Firewall on Application Gateway?](https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/rate-limiting-overview)
17+
* [What is rate limiting for Azure Front Door?](https://learn.microsoft.com/en-us/azure/web-application-firewall/afds/waf-front-door-rate-limit)
1618
* [Custom rules for Azure Web Application Firewall on Azure Front Door](https://learn.microsoft.com/en-us/azure/web-application-firewall/afds/waf-front-door-custom-rules)
1719
* [Create and use Web Application Firewall v2 custom rules on Application Gateway](https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/create-custom-waf-rules)
18-
* [Azure Web Application Firewall JavaScript challenge (preview) overview](https://learn.microsoft.com/en-us/azure/web-application-firewall/waf-javascript-challenge)
19-
* [Azure Front Door Web Application Firewall CAPTCHA (preview)](https://learn.microsoft.com/en-us/azure/web-application-firewall/afds/captcha-challenge)
20+
2021

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1-
# Enable and configure Layer 7 DDoS Ruleset
1+
# Enable and use the latest HTTP DDoS Ruleset
2+
3+
**Implementation Effort:** Low
4+
5+
**User Impact:** Low
26

37
## Overview
48

5-
Layer 7 DDoS Ruleset - Not yet available.
9+
Application-layer (HTTP) distributed denial-of-service (DDoS) attacks are one of the most common causes of application outages. Unlike volumetric network-layer attacks, HTTP DDoS attacks often use valid-looking requests that closely resemble normal user behavior, making them difficult to mitigate using static controls such as IP blocking or fixed rate limits.
610

7-
Once available, the HTTP DDoS Ruleset will automatically detect and mitigate spikes of anomalous HTTP traffic—without any user configuration or tuning during an attack.
11+
The Microsoft HTTP DDoS ruleset is an adaptive, application-layer protection capability built into Azure Web Application Firewall (WAF). It continuously learns normal traffic patterns for each protected application and automatically detects and mitigates abnormal request surges with minimal configuration. By enabling the HTTP DDoS ruleset, organizations can significantly improve application resilience while aligning with Zero Trust principles of assume breach and continuous verification. Once enabled on a WAF policy, the HTTP DDoS ruleset observes inbound traffic to learn normal request rates for each protected resource. This learning phase establishes both global request thresholds and per-client baselines.
812

913
## Reference
1014

11-
15+
* [Application (Layer 7) DDoS protection](https://learn.microsoft.com/en-us/azure/web-application-firewall/shared/application-ddos-protection)
16+
* [Azure Web Application Firewall on Azure Front Door](https://learn.microsoft.com/en-us/azure/web-application-firewall/afds/afds-overview)
17+
* [What is Azure Web Application Firewall on Azure Application Gateway?](https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/ag-overview)
18+
* [Web Application Firewall DRS rule groups and rules](https://learn.microsoft.com/en-us/azure/web-application-firewall/afds/waf-front-door-drs)
19+
* [Best practices for Azure Web Application Firewall (WAF) on Azure Application Gateway](https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/best-practices)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Enable and configure JavaScript Challenge
2+
3+
**Implementation Effort:** Low
4+
5+
**User Impact:** Medium
6+
7+
8+
## Overview
9+
10+
Bots generate a significant portion of internet traffic and are a common source of application abuse, including credential stuffing, scraping, and denial‑of‑service conditions that directly impact availability and business operations.
11+
When left unchecked, automated traffic can overwhelm application resources, degrade user experience, and increase operational risk.
12+
13+
The JavaScript Challenge in Azure Web Application Firewall (WAF) provides a lightweight, browser‑based verification mechanism that validates client behavior before access to protected application resources is allowed.
14+
When a request matches a rule configured with this action, the client browser must complete a short JavaScript computation; requests that fail the challenge are blocked. JavaScript Challenge can be applied through Bot Manager managed rules or custom WAF rules, enabling targeted protection for high‑risk endpoints such as authentication, registration, and checkout flows. This capability aligns with Zero Trust principles by verifying clients explicitly and assuming breach, while preserving a low‑friction experience for legitimate users.
15+
16+
## Reference
17+
18+
* [Azure Web Application Firewall JavaScript challenge](https://learn.microsoft.com/en-us/azure/web-application-firewall/waf-javascript-challenge?pivots=application-gateway)
19+
20+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Enable and configure CAPTCHA Challenge
2+
3+
**Implementation Effort:** Low
4+
5+
**User Impact:** Medium
6+
7+
8+
## Overview
9+
Automated bots are a common source of application abuse, including credential stuffing, brute-force attacks, and form submission spam. These attacks often target high‑value user workflows such as sign‑in, registration, and checkout processes, where distinguishing legitimate users from automated traffic is critical.
10+
11+
CAPTCHA in Azure Web Application Firewall (WAF) introduces an interactive human verification step that helps ensure requests originate from real users before allowing access to protected application resources.
12+
13+
CAPTCHA can be enforced through Bot Manager rules or custom WAF rules on Azure Front Door WAF. When a request matches a rule configured with the CAPTCHA action, the client is presented with a Microsoft CAPTCHA challenge. Requests that successfully complete the challenge are validated and allowed to proceed, while requests that fail are blocked. This approach aligns with Zero Trust principles by verifying explicitly at moments of elevated risk and assuming breach for suspicious traffic, reducing automated abuse while maintaining controlled access to sensitive application workflow.
14+
15+
## Reference
16+
17+
* [Azure Front Door Web Application Firewall CAPTCHA](https://learn.microsoft.com/en-us/azure/web-application-firewall/afds/captcha-challenge)

0 commit comments

Comments
 (0)