- Home
- Skills
- DevOps & Cloud
- Azure Front Door WAF Rule Reviewer
Azure Front Door WAF Rule Reviewer
This skill gives your agent a deterministic, offline workflow: export the policy, run the bundled reviewer, read the blockers and warnings, and fix the policy before it ships.
$9.99
What it does
- Reads a Front Door WAF policy export or an ARM template that contains one
- Flags custom rules that never run because an earlier Allow, Block or Redirect rule stops evaluation
- Flags broad Allow rules, duplicate priorities and policies that are Disabled
- Flags EqualsAny exclusions and disabled managed rules, and warns about narrower exclusions
- Warns about Detection mode, Log-only overrides, rate limit rules that only log or lack a threshold
- Warns about default rule sets older than 2.0 and a missing bot manager rule set
Who it's for
Security and platform engineers
who own an Azure Front Door WAF policy, and reviewers approving WAF changes in a pull request.
Azure Front Door WAF Rule Reviewer
Example session with this skill installed
Command: python3 scripts/review_waf_policy.py examples/dirty/waf-policy.json
- Read your context and instructions
- Compiled the azure front door
The sample policy is in Detection mode and starts with a custom rule that allows every source address. Everything under it never runs, and an Allow and a Block for the same admin path share the same conditions.
[WARN] waf-policy.json: policy 'wafprodpolicy': mode is Detection; matching traffic is logged, not blocked
[WARN] waf-policy.json: policy 'wafprodpolicy': requestBodyCheck is Disabled; request bodies are not inspected
[BLOCKER] waf-policy.json: policy 'wafprodpolicy': custom rule 'AllowOfficeAndAll' (priority 10) allows every request it matches, and an Allow stops evaluation, so lower-priority rules and managed rules are skipped
[BLOCKER] waf-policy.json: policy 'wafprodpolicy': custom rule 'BlockBadBots' (priority 20) never runs: broad Allow rule 'AllowOfficeAndAll' (priority 10) stops evaluation first
[WARN] waf-policy.json: policy 'wafprodpolicy': custom rule 'AllowAdminFromWorld' (priority 25) has action Allow on a non-IP match; matching traffic skips managed rules and later rules, so keep the match narrow
[BLOCKER] waf-policy.json: policy 'wafprodpolicy': custom rule 'AllowAdminFromWorld' (priority 25) never runs: broad Allow rule 'AllowOfficeAndAll' (priority 10) stops evaluation first
[BLOCKER] waf-policy.json: policy 'wafprodpolicy': custom rule 'BlockAdminFromWorld' (priority 30) never runs: 'AllowAdminFromWorld' (priority 25, action Allow) has identical match conditions and stops evaluation first
[WARN] waf-policy.json: policy 'wafprodpolicy': rate limit rule 'ThrottleLogin' only logs; it does not throttle
[BLOCKER] waf-policy.json: policy 'wafprodpolicy': custom rule 'ThrottleLogin' (priority 40) never runs: broad Allow rule 'AllowOfficeAndAll' (priority 10) stops evaluation first
[WARN] waf-policy.json: policy 'wafprodpolicy': custom rule 'OldBlock' (priority 50) is Disabled
[WARN] waf-policy.json: policy 'wafprodpolicy': Microsoft_DefaultRuleSet version 1.1 is older than 2.0; check the current supported version
[WARN] waf-policy.json: policy 'wafprodpolicy': Microsoft_DefaultRuleSet rule 942100 in group SQLI is disabled
[WARN] waf-policy.json: policy 'wafprodpolicy': no bot manager rule set is attached
[BLOCKER] waf-policy.json: policy 'wafprodpolicy': managed rule exclusion on RequestBodyPostArgNames uses EqualsAny, so every RequestBodyPostArgNames is excluded from inspection
[WARN] waf-policy.json: policy 'wafprodpolicy': managed rule exclusion on RequestCookieNames (Equals 'session'); confirm it is still needed
Summary: 6 blocker(s), 9 warning(s), 1 policy(ies), 1 file(s)
Command: python3 scripts/review_waf_policy.py examples/clean
A policy in Prevention mode with a narrow monitoring Allow, a bot block, a throttling rate limit rule, default rule set 2.1 and the bot manager rule set returns exit code 0:
Summary: 0 blocker(s), 0 warning(s), 1 policy(ies), 1 file(s)
Connects securely to your tools. The creator never sees your data.
About this skill
WAF rules fail quietly. A broad Allow rule at priority 10 means every block rule under it never runs, two rules sharing a priority is invalid, and an exclusion that matches every cookie turns inspection off for that variable. This skill gives your agent a deterministic, offline workflow: export the policy, run the bundled reviewer, read the blockers and warnings, and fix the policy before it ships.
The reviewer is a single standard-library script. It does not call Azure and never changes a policy. It reads a policy export (properties with policySettings, customRules and managedRules) or an ARM template with a Front Door WAF policy resource. It follows the documented rule behaviour: custom rules are evaluated in priority order, an Allow, Block or Redirect stops evaluation, and Log continues. It reports rules that can never run, broad Allow rules, duplicate priorities, disabled policies, EqualsAny exclusions, disabled managed rules, Log-only overrides inside a Prevention policy, rate limit rules that only log or have no threshold, default rule sets older than 2.0 and a missing bot manager rule set.
Synthetic example policies with expected output are included so you can verify the behaviour in seconds.
- Policy files only: it cannot see logs, traffic, or whether a rule matches real requests.
- Shadow detection covers identical conditions and clearly broad Allow rules; overlapping but different conditions are not analysed.
- Rule behaviour follows the documented Front Door WAF semantics at the time of writing; check the current documentation for changes.
- It reviews policy JSON as written; ARM template expressions are not evaluated.
- Reports and explains; it does not change a policy.
The reviewer is a single standard-library Python script. It makes no network calls and never writes files. Give it files or directories; it reads .json. Input is either a policy export (an object with properties containing policySettings, customRules and managedRules) or an ARM template whose resources include a Front Door WAF policy. Several policies in one file are reviewed in turn. Custom rules are sorted by priority. Following the documented behaviour (a lower number runs first; Allow, Block and Redirect stop evaluation; Log continues), a rule is reported as never running when an earlier enabled stopping rule has identical match conditions or is a broad Allow (operator Any, or an IP match of 0.0.0.0/0). Policy settings, rate limit rules, managed rule sets (version, action, group overrides) and exclusions are checked against a fixed list. Exit codes: 0 no blockers, 1 blockers found, 2 bad arguments. Optional --format json. Shadowing is detected only for identical or clearly broad conditions; overlapping but different conditions are not analysed.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
Permissions
What's inside
Frequently Asked Questions
New in DevOps & Cloud
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.