[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A8GN2CBH86MA22XNMNABA2":3,"skill-same:01M7A8GN2CBH86MA22XNMNABA2":147},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M7A8GN2CBH86MA22XNMNABA2","firewall-manager-compliance-auditor",null,"Audits AWS Firewall Manager (FMS) policies across WAF, Shield Advanced, VPC Security Groups, Network Firewall, DNS Firewall, and third-party firewalls — evaluates policy state (READY vs NOT_READY), resource-tag scope coverage gaps, RemediationEnabled posture (enforce vs detect-only), PolicyType currency (WAFV2 vs legacy WAF), IncludeMap\u002FExcludeMap account\u002FOU coverage, ResourceTypeLists completeness, and live NonCompliantResourceCount. Emits a deterministic verdict (NONCOMPLIANT | INCOMPLETE_COVERAGE | CONFIG_GAP | OK) per policy with enumerated findings and specific CLI remediation. Use when reviewing FMS policy coverage, checking WAF\u002FSG\u002FShield policy scope, auditing resource-tag enforcement, validating remediation posture, or hardening FMS. Triggers: Firewall Manager, FMS, policy compliance, WAF policy, Shield Advanced policy, Security Group policy, Network Firewall policy, DNS Firewall policy, RemediationEnabled, PolicyState, NOT_READY, ResourceTags scope, IncludeMap, ExcludeMap, NonCompliantResourceCount.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: firewall-manager-compliance-auditor\ndescription: 'Audits AWS Firewall Manager (FMS) policies across WAF, Shield Advanced, VPC Security Groups, Network Firewall, DNS Firewall, and third-party firewalls — evaluates policy state (READY vs NOT_READY), resource-tag scope coverage gaps, RemediationEnabled posture (enforce vs detect-only), PolicyType currency (WAFV2 vs legacy WAF), IncludeMap\u002FExcludeMap account\u002FOU coverage, ResourceTypeLists completeness, and live NonCompliantResourceCount. Emits a deterministic verdict (NONCOMPLIANT | INCOMPLETE_COVERAGE | CONFIG_GAP | OK) per policy with enumerated findings and specific CLI remediation. Use when reviewing FMS policy coverage, checking WAF\u002FSG\u002FShield policy scope, auditing resource-tag enforcement, validating remediation posture, or hardening FMS. Triggers: Firewall Manager, FMS, policy compliance, WAF policy, Shield Advanced policy, Security Group policy, Network Firewall policy, DNS Firewall policy, RemediationEnabled, PolicyState, NOT_READY, ResourceTags scope, IncludeMap, ExcludeMap, NonCompliantResourceCount.'\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex). No AWS CLI required for offline policy classification. Live-account audits use aws fms list-policies, aws fms get-policy, aws fms list-compliance-status, aws fms get-compliance-detail, aws fms get-protection-status, aws fms get-admin-scope (AWS CLI v2, SSO or key-based credentials).\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '2'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Security\n  verdict_shape: NONCOMPLIANT | INCOMPLETE_COVERAGE | CONFIG_GAP | OK\n  when_to_use: Reviewing an FMS policy configuration, auditing policy scope coverage across an AWS Organization, validating PolicyState (READY vs NOT_READY), checking RemediationEnabled posture, investigating non-compliant resource counts, or hardening FMS posture across WAF, Shield Advanced, VPC Security Groups, Network Firewall, or DNS Firewall policies.\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: Firewall Manager, FMS, policy compliance, WAF policy, Shield Advanced, Security Groups policy, Network Firewall policy, DNS Firewall, PolicyState, NOT_READY, RemediationEnabled, ResourceTags, ResourceTypeLists, IncludeMap, ExcludeMap, NonCompliantResourceCount, NONCOMPLIANT, WAFV2, SECURITY_GROUPS_COMMON, SECURITY_GROUPS_CONTENT_AUDIT, SECURITY_GROUPS_USAGE_AUDIT, THIRD_PARTY_FIREWALL, IMPORTED_FIREWALL\n  tags: aws, fms, firewall-manager, security, compliance, waf, shield, policy, audit, organizations\n  dependencies: aws-orchestrator\n---\n\n# Firewall Manager Compliance Auditor\n\n## When to invoke\n\nInvoke-pattern catalog and do-not-invoke routing moved to references.\n→ [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § When to invoke\n\n## Mindset\n\n**One-line takeaway:** the verdict is the **worst** finding across all\ndimensions, and three FMS conditions are silent failures —\n`PolicyState: NOT_READY` (policy exists but does not enforce),\n`RemediationEnabled: false` (detect-only mode), and ResourceTags-only\nscope (untagged resources are silently unprotected). Live\n`NonCompliantResourceCount > 0` is the loudest signal — but the silent\nfailures are how environments drift into NONCOMPLIANT over months.\n\nAWS Firewall Manager (FMS) is an Organization-wide enforcement layer for\nWAF, Shield Advanced, VPC Security Groups, Network Firewall, DNS\nFirewall, and third-party firewalls. It does NOT replace those services;\nit applies and maintains their configurations across member accounts.\n- `PolicyState: NOT_READY` is a **lifecycle trap**: the policy ARN exists\n  but enforcement is suspended. Operators confuse \"policy exists\" with\n  \"policy enforced\" — the FMS console does not surface this loudly.\n- `RemediationEnabled: false` is **detect-only posture**: FMS reports\n  NONCOMPLIANT resources but does not auto-apply the WebACL, baseline\n  SG, or Shield protection. Violations grow unbounded until an operator\n  manually intervenes.\n- ResourceTags-only scope is a **silent hole**: resources that should be\n  in scope but lack the tag are silently excluded — FMS reports zero\n  violations because it sees zero in-scope resources for them.\n\n## Critical rules — read first\n\nSix rules prevent the most dangerous FMS misclassifications:\n\n1. **NOT_READY is not OK.** A `NOT_READY` policy does not enforce —\n   zero violations means zero enforcement, not zero exposure.\n2. **Detect-only is a sensor, not a control.** `RemediationEnabled:\n   false` reports violations but does not apply WebACLs, SGs, or\n   Shield. Production detect-only >30 days is a CONFIG_GAP.\n3. **Zero violations can mean blind, not clean.** FMS derives\n   compliance from AWS Config. A member with Config disabled or\n   `EvaluationLimitExceeded=true` reports zero — absence of data, not\n   absence of violations.\n4. **ResourceTags-only scope is a silent hole.** Resources without the\n   tag are out of scope entirely, not just out of remediation.\n5. **Deleting a READY policy strips enforcement instantly.** Always\n   run `get-protection-status` and confirm `ProtectedResourceCount` is\n   zero before `delete-policy`.\n6. **PutPolicy is atomic, not staged.** A WebACL swap via FMS applies\n   to ALL in-scope resources at once. Edit the WebACL via `wafv2` and\n   let FMS re-apply — reversible, one resource at a time.\n\n## Quick reference — verdict thresholds\n\n| Condition | Verdict | Rule |\n|---|---|---|\n| `NonCompliantResourceCount > 0` (live violations) | **NONCOMPLIANT** | Step 6 |\n| `PolicyState: NOT_READY` | **CONFIG_GAP** | Step 1 |\n| `PolicyType: WAF` (legacy, not WAFV2) | **CONFIG_GAP** | Step 2 |\n| `RemediationEnabled: false` (detect-only) | **CONFIG_GAP** | Step 4 |\n| ResourceTags-only scope, ResourceTypeLists empty | **INCOMPLETE_COVERAGE** | Step 3a |\n| IncludeMap omits active OUs\u002Faccounts in scope | **INCOMPLETE_COVERAGE** | Step 3b |\n| ResourceTypeLists omit critical types for PolicyType | **INCOMPLETE_COVERAGE** | Step 3c |\n| FMS administrator account not set | **CONFIG_GAP** | Pre-flight |\n| Empty ResourceTypeLists AND empty ResourceTags (silent no-op) | **CONFIG_GAP** | Step 3d |\n| READY + full coverage + RemediationEnabled + 0 NonCompliant | **OK** | Step 7 |\n\nVerdict precedence on aggregation (worst finding wins):\n`NONCOMPLIANT > INCOMPLETE_COVERAGE > CONFIG_GAP > OK`.\n\nSee the ordered steps below for edge cases. Deep FMS internals\n(enforcement pipeline, AWS Config coupling, region semantics) are in the\n[Deep reference](#deep-reference-fms-enforcement-internals) section at\nthe end.\n\n## Pre-flight: FMS administrator and Organizations gate\n\nBefore evaluating any policy, classify the FMS deployment itself. FMS\ncannot operate without an Organizations-managed administrator account.\n\nLive-account pre-flight CLI checks (admin scope, Org delegation, Config recorders, notification channel) moved to references.\n→ [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § Live-account pre-flight checks\n\n| Attribute | Value | Effect on audit |\n|---|---|---|\n| FMS admin account | not set | **CONFIG_GAP** (org-wide). FMS is unconfigured; policies are inert artifacts. Output a single org-level finding and stop — per-policy classification is meaningless without an admin. |\n| FMS admin account | set, member of Org | Proceed with full audit. |\n| FMS admin account | set, NOT in Org | **ERROR** — admin scope cannot be reconciled. Re-onboard via `aws organizations register-delegated-administrator`. |\n| Account scope | Org root | All org accounts in scope. IncludeMap\u002FExcludeMap empty is NORMAL here — do not flag as coverage gap. |\n| Account scope | Specific OUs | Cross-check each OU against current `aws organizations list-roots` → children. A dissolved OU in IncludeMap is a stale coverage gap. |\n| Region scope | Not specified | Policy applies to ALL regions including GovCloud\u002FChina if the org spans them. Treat as a coverage note, not a finding. |\n\n**If the policy JSON is malformed** (invalid JSON, missing `PolicyId`,\nmissing `PolicyType`), output:\n\n```text\nPOLICY: \u003Cpolicy-id>\nVERDICT: ERROR\nREASON: FMS policy document is not valid JSON or is missing required\nfields — cannot classify.\nREMEDIATION: Retrieve the canonical policy with `aws fms get-policy\n--policy-id \u003Cid> --output json` and re-audit.\n```\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Expert knowledge — non-obvious FMS behaviors\n\nNon-obvious FMS behavior catalog (NOT_READY lifecycle, Config dark spots, silent exclusions, quota traps) moved to references.\n→ [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § Step 0: Expert knowledge\n\n### Step 1: PolicyState evaluation (NOT_READY is a lifecycle trap)\n\nIf `PolicyState` is `NOT_READY`, classify as **CONFIG_GAP**. The policy\nexists in the FMS artifact store but does not enforce. Continue\nevaluation — the other dimensions are still meaningful for the eventual\n`READY` state.\n\nA NOT_READY policy that has been in that state for >24 hours is a stuck\ndeployment. Common causes: (1) the underlying WebACL\u002FSG baseline does\nnot exist or has been deleted; (2) the PolicyType was changed without\nre-creating the policy; (3) FMS service-linked role issues in a member\naccount; (4) Organizations change broke the admin scope.\n\nNote in REMEDIATION: \"PolicyState has been NOT_READY for >24h — run\n`aws fms get-policy --policy-id \u003Cid>` and check\n`PolicyUpdateToken`. If stuck, open an AWS support case.\"\n\n### Step 2: PolicyType currency check\n\nClassify the `PolicyType`:\n\n- `WAFV2` — current. Proceed.\n- `WAF` — **legacy WAF Classic.** Flag as **CONFIG_GAP** with a\n  migration finding: \"PolicyType=WAF is WAF Classic (legacy). AWS\n  recommends migration to WAFV2. Create a parallel WAFV2 policy, verify\n  parity, then `aws fms delete-policy --policy-id \u003Clegacy>`.\"\n- `SHIELD_ADVANCED`, `SECURITY_GROUPS_COMMON`,\n  `SECURITY_GROUPS_CONTENT_AUDIT`, `SECURITY_GROUPS_USAGE_AUDIT`,\n  `NETWORK_FIREWALL`, `DNS_FIREWALL`, `THIRD_PARTY_FIREWALL`,\n  `IMPORTED_FIREWALL` — current. Proceed.\n\nA PolicyType value outside the known set is a malformed input → ERROR.\n\n### Step 3: Resource scope coverage (the silent hole)\n\nThe scope is the union of `ResourceTypeLists` × `ResourceTags` ×\n`IncludeMap` (minus `ExcludeMap`). A scope narrower than the security\nobjective is INCOMPLETE_COVERAGE. A scope that is empty or contradictory\nis CONFIG_GAP.\n\n**Step 3a: ResourceTags-only scope trap.** If `ResourceTags` is\nNON-EMPTY (has at least one tag entry) AND `ResourceTypeLists` is\nempty, classify as **INCOMPLETE_COVERAGE**. The policy protects only\nresources with the specified tags — every untagged resource in the\norg is silently unprotected. The mitigation is either (a) add the tag\nto all resources that should be in scope (enforced via SCP), or (b)\nbroaden the policy to ResourceTypeLists and use ResourceTags as a\nrefinement, not the sole scope key.\n\n> **Disambiguation — do NOT trigger Step 3a on empty ResourceTags.**\n> An EMPTY `ResourceTags: []` (no tag entries) is NOT a finding. It\n> means the policy applies to ALL resources of the specified\n> `ResourceTypeLists` types — the normal broad-scope case. Only\n> NON-EMPTY `ResourceTags` combined with empty `ResourceTypeLists`\n> triggers this verdict.\n\n**Step 3b: IncludeMap coverage gap.** If `IncludeMap` lists specific\nOUs\u002Faccounts, cross-reference against the current Organization tree\n(`aws organizations list-roots` recursively). An active OU absent from\nIncludeMap is a coverage gap if the policy's stated scope is \"org-wide\"\n(indicated by `ResourceTags` or `ResourceTypeLists` covering broad\ntypes). Classify as **INCOMPLETE_COVERAGE** with the missing OUs listed.\n\nIf `IncludeMap` is empty AND the admin scope is Org root, the policy\napplies org-wide. This is NORMAL — do not flag.\n\n**Step 3c: ResourceTypeLists completeness per PolicyType.** Compare\n`ResourceTypeLists` against the minimum expected set for the\n`PolicyType`. Critical omissions are INCOMPLETE_COVERAGE:\n- `WAFV2` policy missing `CloudFrontDistribution` and\n  `AwsApiGatewayStage`: incomplete (edge + API unprotected).\n- `SHIELD_ADVANCED` policy missing `AwsEc2Eip` AND\n  `CloudFrontDistribution`: incomplete (EIPs and CloudFront\n  unprotected — the two most common DDoS vectors).\n- `SECURITY_GROUPS_COMMON` policy missing `AwsEc2Instance` AND\n  `AwsElasticLoadBalancingV2LoadBalancer`: incomplete (no EC2\u002FLB\n  baseline).\n\nIf `ResourceTypeLists` covers at least one critical type for the\nPolicyType, do NOT flag — operators may intentionally narrow scope.\nCritical-type minimums:\n- WAFV2: at least one of {`AwsWafv2WebAcl`,\n  `AwsElasticLoadBalancingV2LoadBalancer`, `CloudFrontDistribution`,\n  `AwsApiGatewayStage`}\n- SHIELD_ADVANCED: at least one of {`AwsEc2Eip`,\n  `AwsElasticLoadBalancingV2LoadBalancer`, `CloudFrontDistribution`}\n- SECURITY_GROUPS_*: at least one of {`AwsEc2Instance`,\n  `AwsEc2NetworkInterface`, `AwsElasticLoadBalancingV2LoadBalancer`}\n- NETWORK_FIREWALL \u002F DNS_FIREWALL: `AwsEc2Vpc`\n\n**Step 3d: Empty scope.** If `ResourceTypeLists` is empty AND\n`ResourceTags` is empty AND `IncludeMap` is empty (and admin scope is\nNOT Org root), the policy is a silent no-op. Classify as **CONFIG_GAP**.\nFMS will accept the policy but protect zero resources.\n\n### Step 4: Remediation posture (detect-only vs enforce)\n\nIf `RemediationEnabled: false`, classify as **CONFIG_GAP**. The policy\nis detect-only: FMS reports NONCOMPLIANT resources but does not apply\nthe WebACL, SG, Shield protection, or DNS Firewall rule group. This is\nthe FMS analogue of a WAF in COUNT mode — useful for staging, dangerous\nin production.\n\nNote in REMEDIATION: \"RemediationEnabled is false — the policy detects\nbut does not remediate. To enable enforcement: `aws fms put-policy\n--policy \u003Cupdated-json-with-RemediationEnabled-true>`.\"\n\nA detect-only policy is INTENTIONAL during onboarding (first 1-2 weeks)\nbut a misconfiguration in steady state. If the policy was created\n>30 days ago and RemediationEnabled is still false, escalate the\nfinding severity.\n\n### Step 5: Live compliance count evaluation\n\nExtract `NonCompliantResourceCount` (aggregated from\n`list-compliance-status` across all member accounts in scope):\n\n- **NonCompliantResourceCount > 0** → **NONCOMPLIANT** (highest\n  precedence). Live violations exist. The number is a lower bound — FMS\n  reports based on Config data, so a Config-disabled member account\n  hides its violations.\n\n- **NonCompliantResourceCount = 0 AND PolicyState READY AND\n  RemediationEnabled true AND ProtectedResourceCount > 0** → compliance\n  dimension OK.\n\n- **ProtectedResourceCount = 0** → coverage gap. Either the scope is\n  empty (Step 3d) or FMS could not enumerate resources (Config gap).\n  Note as INCOMPLETE_COVERAGE if scope appears non-empty.\n\n**Per-account NONCOMPLIANT drill-down:** When the policy verdict is\nNONCOMPLIANT, enumerate the violating member accounts and per-account\nviolator counts in FINDINGS. A single member at 90% of violations is a\ndifferent operational problem than uniform distribution — call it out.\n\n### Step 6: Cross-cutting — PolicyType-specific coverage validation\n\nApply PolicyType-specific sanity checks as additive findings:\n\n- **WAFV2**: verify the referenced WebACL exists in the policy's\n  `SecurityServicePolicyData.ManagedServiceData`. A WAFV2 policy with\n  an empty or malformed WebACL JSON is CONFIG_GAP — the policy has\n  nothing to apply.\n- **SECURITY_GROUPS_COMMON**: verify the baseline SG ID is set and\n  reachable from member accounts. A baseline SG in a security account\n  requires RAM share or the SG ID is unreachable.\n- **NETWORK_FIREWALL**: verify the firewall policy ARN exists. A\n  NETWORK_FIREWALL policy with an empty firewall policy reference is\n  CONFIG_GAP.\n- **SHIELD_ADVANCED**: verify `ProtectedResourceCount` > 0 if scope is\n  non-empty. Shield Advanced with 0 protected resources is either an\n  empty scope or a stuck protection application.\n\n### Step 7: Aggregation — worst finding wins\n\nThe final verdict is the **maximum severity** across all findings, where\nNONCOMPLIANT > INCOMPLETE_COVERAGE > CONFIG_GAP > OK:\n\n```text\nverdict = max(\n  policy_state_severity,\n  policy_type_severity,\n  scope_severity,\n  remediation_severity,\n  compliance_severity,\n  policytype_specific_severity\n)\n```\n\nIf no findings (all dimensions OK), the verdict is **OK**.\n\n## Output format (per policy)\n\n```text\nPOLICY: \u003Cpolicy-id>\nPOLICY_NAME: \u003Cname>\nPOLICY_TYPE: \u003CWAFV2 | SHIELD_ADVANCED | SECURITY_GROUPS_COMMON | ...>\nVERDICT: NONCOMPLIANT | INCOMPLETE_COVERAGE | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and its step>\nFINDINGS:\n  - [NONCOMPLIANT] \u003Cfinding description (Step N)>\n  - [INCOMPLETE_COVERAGE] \u003Cfinding description (Step N)>\n  - [CONFIG_GAP] \u003Cfinding description (Step N)>\n  - [OK] \u003Cdimension that passed>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n### Worked example — WAF policy with violations and detect-only mode\n\n```text\nPOLICY: waf-prod-edge-protect\nPOLICY_NAME: prod-edge-waf\nPOLICY_TYPE: WAFV2\nVERDICT: NONCOMPLIANT\nREASON: NonCompliantResourceCount=14 across 3 member accounts (Step 5)\n— live violations on CloudFront and ALB resources. RemediationEnabled\nis false (Step 4), compounding the exposure: FMS reports but does not\napply the WebACL.\nFINDINGS:\n  - [NONCOMPLIANT] 14 resources non-compliant across 3 accounts:\n    111111111111 (4), 222222222222 (8), 333333333333 (2) (Step 5)\n  - [CONFIG_GAP] RemediationEnabled=false — policy is detect-only;\n    WebACL is not auto-applied to non-compliant resources (Step 4)\nREMEDIATION:\n  1. Re-enable remediation: `aws fms put-policy --policy\n     \u003Cupdated-json-with-RemediationEnabled-true>`.\n  2. Drill per account: `aws fms get-compliance-detail --policy-id\n     \u003Cid> --member-account 222222222222`.\n  3. Investigate why 222222222222 dominates (8\u002F14 violators) — likely\n     a Config recorder gap or a member-local WebACL override.\n```\n\n### Worked example — malformed ManagedServiceData (WAFV2 with broken WebACL ref)\n\nThis second worked example (malformed ManagedServiceData) moved to references.\n→ [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § Worked example — malformed ManagedServiceData\n\n## Edge-case handling\n\nEdge-case catalog (partially malformed policies, legacy fields, conflicting scopes) moved to references.\n→ [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § Edge-case handling\n\n## Anti-Patterns — NEVER\n\n- NEVER classify a `PolicyState: NOT_READY` policy as OK. NOT_READY\n  means FMS is not enforcing — the absence of violations reflects the\n  absence of enforcement, not compliance. This is the most common FMS\n  false positive.\n\n- NEVER treat `RemediationEnabled: false` as equivalent to `true`. The\n  former is detect-only: FMS produces findings but does not apply\n  WebACLs, SG baselines, or Shield protection. Treating them as\n  equivalent collapses the distinction between a sensor and a control.\n\n- NEVER assume `NonCompliantResourceCount: 0` means \"compliant.\" FMS\n  derives compliance from AWS Config. A member account with Config\n  disabled reports 0 — the absence of data, not the absence of\n  violations. Always cross-reference Config recorder status before\n  trusting a clean count.\n\n- NEVER classify a ResourceTags-only scope (empty ResourceTypeLists) as\n  OK. Resources without the tag are silently excluded — the policy\n  appears healthy while leaving the untagged population unprotected.\n  This is the FMS analogue of an IAM `NotResource` — easy to miss,\n  catastrophic in effect.\n\n- NEVER treat `PolicyType: WAF` as equivalent to `WAFV2`. WAF Classic\n  is legacy and in maintenance mode. A `WAF` policy in production is a\n  migration gap; flag as CONFIG_GAP with the migration path.\n\n- NEVER assume `ProtectedResourceCount: 0` on a READY policy is\n  benign. It means FMS is enforcing but found nothing to protect —\n  usually a scope misconfiguration (empty ResourceTypeLists, impossible\n  ResourceTags combo) or a Config enumeration gap. Investigate before\n  closing.\n\n- NEVER recommend deleting an FMS policy without first verifying it is\n  NOT_READY or has zero in-scope resources for >30 days. Deleting a\n  READY policy that protects resources removes the WebACL\u002FSG\u002FShield\n  enforcement immediately. Always run `aws fms get-protection-status\n  --policy-id \u003Cid>` before `delete-policy`.\n\n- NEVER assume a policy in `IncludeMap: {ORG_UNIT: [ou-root]}` covers\n  the entire org. The OU ID must match the current Organizations root.\n  A dissolved\u002Frecreated OU produces a new ID; the policy silently\n  protects nothing. Verify OU IDs against `aws organizations\n  list-roots`.\n\n- NEVER recommend changing the FMS policy itself as the first-line\n  remediation for a WebACL rule gap. FMS applies ONE WebACL to all\n  in-scope resources atomically. Edit the underlying WebACL via\n  `aws wafv2 update-web-acl` and let FMS re-apply — this is reversible\n  and staged. Changing the FMS policy to swap WebACLs is atomic and\n  breaks all applications simultaneously if the new WebACL is wrong.\n\n- NEVER treat `SECURITY_GROUPS_COMMON`, `SECURITY_GROUPS_CONTENT_AUDIT`,\n  and `SECURITY_GROUPS_USAGE_AUDIT` as interchangeable. COMMON applies\n  a baseline SG; CONTENT_AUDIT audits existing SG rules against a\n  policy; USAGE_AUDIT finds unused SGs. The three are complementary,\n  not redundant.\n\n- NEVER overlook `NETWORK_FIREWALL` policies scoped to VPCs without\n  firewalls. FMS does NOT create firewalls — it manages rules on\n  existing ones. A VPC in scope without a firewall is NONCOMPLIANT and\n  stays NONCOMPLIANT until an operator provisions the firewall.\n\n- NEVER treat `ExcludeMap` as weaker than `IncludeMap`. Exclude wins —\n  an account in both is excluded. A misconfigured ExcludeMap silently\n  punches holes in coverage.\n\n- NEVER assume FMS policies are global. WAF, SG, and Network Firewall\n  policies are regional. A multi-region workload requires auditing N\n  regional policies. Only Shield Advanced CloudFront protection is\n  global.\n\n- NEVER classify a `DNS_FIREWALL` policy as OK just because\n  NonCompliantResourceCount is 0. Cross-reference the VPC Resolver\n  DNS Firewall associations — FMS manages the rule group, but the VPC\n  association is a separate operation. An unassociated VPC is silently\n  unprotected.\n\n- NEVER recommend enabling `RemediationEnabled: true` without a\n  detect-only staging period for new policies. The transition from\n  detect-only to enforce applies the WebACL\u002FSG to all resources\n  simultaneously. Stage in detect mode for 1-2 weeks, review the\n  violations, then enable.\n\n- NEVER ignore `LimitExceededException` on `put-policy`. The 50-policy\n  org cap, when hit mid-remediation, leaves the org partially migrated\n  with no rollback path. Validate headroom via\n  `aws fms list-policies | jq '.PolicyList | length'` before creating\n  new policies.\n\n- NEVER assume the FMS service-linked role\n  (`AWSServiceRoleForFMSService`) exists in all member accounts. If a\n  member deleted it, enforcement silently fails and resources stay\n  NONCOMPLIANT with no error surfaced in the FMS console. Verify via\n  `aws iam get-role --role-name AWSServiceRoleForFMSService` per member;\n  recovery is `aws iam create-service-linked-role --aws-service-name\n  fms.amazonaws.com`.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\nPre-flight safety checks and confirmation gates before any remediation CLI moved to references.\n→ [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § Pre-flight safety checks\n\n## Remediation guidance\n\nFull per-verdict remediation runbooks (ordering principle + For NONCOMPLIANT \u002F INCOMPLETE_COVERAGE \u002F CONFIG_GAP \u002F OK) moved to references.\n→ [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § Remediation guidance\n\n## Practical execution reference (pagination, multi-region, error branching)\n\nExecution-layer patterns (pagination, multi-region, error branching, malformed JSON, quotas, ExcludeMap, enforcement pipeline, Config coupling, region semantics, migration) moved to references.\n→ [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md), [references\u002Ferror-handling.md](references\u002Ferror-handling.md), [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md)\n\n## Condition strength reference (FMS-specific)\n\nCondition-strength table (STRONG\u002FWEAK scope conditions) moved to references.\n→ [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § Condition strength reference\n\n## Recent AWS features (2024-2026)\n\n2024-2026 FMS feature notes moved to references.\n→ [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § Recent AWS features\n\n## References (load on demand)\n\nConsult these only when the corresponding topic comes up:\n\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — the malformed-ManagedServiceData worked example (moved from § Worked example)\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — error-code branching and malformed JSON recovery (moved from § Practical execution reference)\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — live pre-flight checks, pre-flight safety checks, per-verdict remediation runbooks, pagination and multi-region iteration\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — invoke patterns, Step-0 expert knowledge, edge cases, quotas\u002FExcludeMap\u002Fenforcement\u002FConfig\u002Fregions\u002Fmigration, condition strength, recent AWS features\n\n## Domain\n\nAWS CloudOps \u002F Firewall Manager Compliance & Organization-wide Security.\n\n## AWS documentation\n\n- FMS Developer Guide — https:\u002F\u002Fdocs.aws.amazon.com\u002Fwaf\u002Flatest\u002Fdeveloperguide\u002Ffms-chapter.html\n- FMS API Reference — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffms\u002F2018-01-01\u002FAPIReference\u002F\n- FMS CLI Reference — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Ffms\u002F\n- **AWS Firewall Manager compliance status** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fwaf\u002Flatest\u002Fdeveloperguide\u002Ffms-compliance-status.html\n","# Firewall Manager Compliance Auditor\n\n## When to invoke\n\nInvoke-pattern catalog and do-not-invoke routing moved to references.\n→ [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § When to invoke\n\n## Mindset\n\n**One-line takeaway:** the verdict is the **worst** finding across all\ndimensions, and three FMS conditions are silent failures —\n`PolicyState: NOT_READY` (policy exists but does not enforce),\n`RemediationEnabled: false` (detect-only mode), and ResourceTags-only\nscope (untagged resources are silently unprotected). Live\n`NonCompliantResourceCount > 0` is the loudest signal — but the silent\nfailures are how environments drift into NONCOMPLIANT over months.\n\nAWS Firewall Manager (FMS) is an Organization-wide enforcement layer for\nWAF, Shield Advanced, VPC Security Groups, Network Firewall, DNS\nFirewall, and third-party firewalls. It does NOT replace those services;\nit applies and maintains their configurations across member accounts.\n- `PolicyState: NOT_READY` is a **lifecycle trap**: the policy ARN exists\n  but enforcement is suspended. Operators confuse \"policy exists\" with\n  \"policy enforced\" — the FMS console does not surface this loudly.\n- `RemediationEnabled: false` is **detect-only posture**: FMS reports\n  NONCOMPLIANT resources but does not auto-apply the WebACL, baseline\n  SG, or Shield protection. Violations grow unbounded until an operator\n  manually intervenes.\n- ResourceTags-only scope is a **silent hole**: resources that should be\n  in scope but lack the tag are silently excluded — FMS reports zero\n  violations because it sees zero in-scope resources for them.\n\n## Critical rules — read first\n\nSix rules prevent the most dangerous FMS misclassifications:\n\n1. **NOT_READY is not OK.** A `NOT_READY` policy does not enforce —\n   zero violations means zero enforcement, not zero exposure.\n2. **Detect-only is a sensor, not a control.** `RemediationEnabled:\n   false` reports violations but does not apply WebACLs, SGs, or\n   Shield. Production detect-only >30 days is a CONFIG_GAP.\n3. **Zero violations can mean blind, not clean.** FMS derives\n   compliance from AWS Config. A member with Config disabled or\n   `EvaluationLimitExceeded=true` reports zero — absence of data, not\n   absence of violations.\n4. **ResourceTags-only scope is a silent hole.** Resources without the\n   tag are out of scope entirely, not just out of remediation.\n5. **Deleting a READY policy strips enforcement instantly.** Always\n   run `get-protection-status` and confirm `ProtectedResourceCount` is\n   zero before `delete-policy`.\n6. **PutPolicy is atomic, not staged.** A WebACL swap via FMS applies\n   to ALL in-scope resources at once. Edit the WebACL via `wafv2` and\n   let FMS re-apply — reversible, one resource at a time.\n\n## Quick reference — verdict thresholds\n\n| Condition | Verdict | Rule |\n|---|---|---|\n| `NonCompliantResourceCount > 0` (live violations) | **NONCOMPLIANT** | Step 6 |\n| `PolicyState: NOT_READY` | **CONFIG_GAP** | Step 1 |\n| `PolicyType: WAF` (legacy, not WAFV2) | **CONFIG_GAP** | Step 2 |\n| `RemediationEnabled: false` (detect-only) | **CONFIG_GAP** | Step 4 |\n| ResourceTags-only scope, ResourceTypeLists empty | **INCOMPLETE_COVERAGE** | Step 3a |\n| IncludeMap omits active OUs\u002Faccounts in scope | **INCOMPLETE_COVERAGE** | Step 3b |\n| ResourceTypeLists omit critical types for PolicyType | **INCOMPLETE_COVERAGE** | Step 3c |\n| FMS administrator account not set | **CONFIG_GAP** | Pre-flight |\n| Empty ResourceTypeLists AND empty ResourceTags (silent no-op) | **CONFIG_GAP** | Step 3d |\n| READY + full coverage + RemediationEnabled + 0 NonCompliant | **OK** | Step 7 |\n\nVerdict precedence on aggregation (worst finding wins):\n`NONCOMPLIANT > INCOMPLETE_COVERAGE > CONFIG_GAP > OK`.\n\nSee the ordered steps below for edge cases. Deep FMS internals\n(enforcement pipeline, AWS Config coupling, region semantics) are in the\n[Deep reference](#deep-reference-fms-enforcement-internals) section at\nthe end.\n\n## Pre-flight: FMS administrator and Organizations gate\n\nBefore evaluating any policy, classify the FMS deployment itself. FMS\ncannot operate without an Organizations-managed administrator account.\n\nLive-account pre-flight CLI checks (admin scope, Org delegation, Config recorders, notification channel) moved to references.\n→ [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § Live-account pre-flight checks\n\n| Attribute | Value | Effect on audit |\n|---|---|---|\n| FMS admin account | not set | **CONFIG_GAP** (org-wide). FMS is unconfigured; policies are inert artifacts. Output a single org-level finding and stop — per-policy classification is meaningless without an admin. |\n| FMS admin account | set, member of Org | Proceed with full audit. |\n| FMS admin account | set, NOT in Org | **ERROR** — admin scope cannot be reconciled. Re-onboard via `aws organizations register-delegated-administrator`. |\n| Account scope | Org root | All org accounts in scope. IncludeMap\u002FExcludeMap empty is NORMAL here — do not flag as coverage gap. |\n| Account scope | Specific OUs | Cross-check each OU against current `aws organizations list-roots` → children. A dissolved OU in IncludeMap is a stale coverage gap. |\n| Region scope | Not specified | Policy applies to ALL regions including GovCloud\u002FChina if the org spans them. Treat as a coverage note, not a finding. |\n\n**If the policy JSON is malformed** (invalid JSON, missing `PolicyId`,\nmissing `PolicyType`), output:\n\n```text\nPOLICY: \u003Cpolicy-id>\nVERDICT: ERROR\nREASON: FMS policy document is not valid JSON or is missing required\nfields — cannot classify.\nREMEDIATION: Retrieve the canonical policy with `aws fms get-policy\n--policy-id \u003Cid> --output json` and re-audit.\n```\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Expert knowledge — non-obvious FMS behaviors\n\nNon-obvious FMS behavior catalog (NOT_READY lifecycle, Config dark spots, silent exclusions, quota traps) moved to references.\n→ [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § Step 0: Expert knowledge\n\n### Step 1: PolicyState evaluation (NOT_READY is a lifecycle trap)\n\nIf `PolicyState` is `NOT_READY`, classify as **CONFIG_GAP**. The policy\nexists in the FMS artifact store but does not enforce. Continue\nevaluation — the other dimensions are still meaningful for the eventual\n`READY` state.\n\nA NOT_READY policy that has been in that state for >24 hours is a stuck\ndeployment. Common causes: (1) the underlying WebACL\u002FSG baseline does\nnot exist or has been deleted; (2) the PolicyType was changed without\nre-creating the policy; (3) FMS service-linked role issues in a member\naccount; (4) Organizations change broke the admin scope.\n\nNote in REMEDIATION: \"PolicyState has been NOT_READY for >24h — run\n`aws fms get-policy --policy-id \u003Cid>` and check\n`PolicyUpdateToken`. If stuck, open an AWS support case.\"\n\n### Step 2: PolicyType currency check\n\nClassify the `PolicyType`:\n\n- `WAFV2` — current. Proceed.\n- `WAF` — **legacy WAF Classic.** Flag as **CONFIG_GAP** with a\n  migration finding: \"PolicyType=WAF is WAF Classic (legacy). AWS\n  recommends migration to WAFV2. Create a parallel WAFV2 policy, verify\n  parity, then `aws fms delete-policy --policy-id \u003Clegacy>`.\"\n- `SHIELD_ADVANCED`, `SECURITY_GROUPS_COMMON`,\n  `SECURITY_GROUPS_CONTENT_AUDIT`, `SECURITY_GROUPS_USAGE_AUDIT`,\n  `NETWORK_FIREWALL`, `DNS_FIREWALL`, `THIRD_PARTY_FIREWALL`,\n  `IMPORTED_FIREWALL` — current. Proceed.\n\nA PolicyType value outside the known set is a malformed input → ERROR.\n\n### Step 3: Resource scope coverage (the silent hole)\n\nThe scope is the union of `ResourceTypeLists` × `ResourceTags` ×\n`IncludeMap` (minus `ExcludeMap`). A scope narrower than the security\nobjective is INCOMPLETE_COVERAGE. A scope that is empty or contradictory\nis CONFIG_GAP.\n\n**Step 3a: ResourceTags-only scope trap.** If `ResourceTags` is\nNON-EMPTY (has at least one tag entry) AND `ResourceTypeLists` is\nempty, classify as **INCOMPLETE_COVERAGE**. The policy protects only\nresources with the specified tags — every untagged resource in the\norg is silently unprotected. The mitigation is either (a) add the tag\nto all resources that should be in scope (enforced via SCP), or (b)\nbroaden the policy to ResourceTypeLists and use ResourceTags as a\nrefinement, not the sole scope key.\n\n> **Disambiguation — do NOT trigger Step 3a on empty ResourceTags.**\n> An EMPTY `ResourceTags: []` (no tag entries) is NOT a finding. It\n> means the policy applies to ALL resources of the specified\n> `ResourceTypeLists` types — the normal broad-scope case. Only\n> NON-EMPTY `ResourceTags` combined with empty `ResourceTypeLists`\n> triggers this verdict.\n\n**Step 3b: IncludeMap coverage gap.** If `IncludeMap` lists specific\nOUs\u002Faccounts, cross-reference against the current Organization tree\n(`aws organizations list-roots` recursively). An active OU absent from\nIncludeMap is a coverage gap if the policy's stated scope is \"org-wide\"\n(indicated by `ResourceTags` or `ResourceTypeLists` covering broad\ntypes). Classify as **INCOMPLETE_COVERAGE** with the missing OUs listed.\n\nIf `IncludeMap` is empty AND the admin scope is Org root, the policy\napplies org-wide. This is NORMAL — do not flag.\n\n**Step 3c: ResourceTypeLists completeness per PolicyType.** Compare\n`ResourceTypeLists` against the minimum expected set for the\n`PolicyType`. Critical omissions are INCOMPLETE_COVERAGE:\n- `WAFV2` policy missing `CloudFrontDistribution` and\n  `AwsApiGatewayStage`: incomplete (edge + API unprotected).\n- `SHIELD_ADVANCED` policy missing `AwsEc2Eip` AND\n  `CloudFrontDistribution`: incomplete (EIPs and CloudFront\n  unprotected — the two most common DDoS vectors).\n- `SECURITY_GROUPS_COMMON` policy missing `AwsEc2Instance` AND\n  `AwsElasticLoadBalancingV2LoadBalancer`: incomplete (no EC2\u002FLB\n  baseline).\n\nIf `ResourceTypeLists` covers at least one critical type for the\nPolicyType, do NOT flag — operators may intentionally narrow scope.\nCritical-type minimums:\n- WAFV2: at least one of {`AwsWafv2WebAcl`,\n  `AwsElasticLoadBalancingV2LoadBalancer`, `CloudFrontDistribution`,\n  `AwsApiGatewayStage`}\n- SHIELD_ADVANCED: at least one of {`AwsEc2Eip`,\n  `AwsElasticLoadBalancingV2LoadBalancer`, `CloudFrontDistribution`}\n- SECURITY_GROUPS_*: at least one of {`AwsEc2Instance`,\n  `AwsEc2NetworkInterface`, `AwsElasticLoadBalancingV2LoadBalancer`}\n- NETWORK_FIREWALL \u002F DNS_FIREWALL: `AwsEc2Vpc`\n\n**Step 3d: Empty scope.** If `ResourceTypeLists` is empty AND\n`ResourceTags` is empty AND `IncludeMap` is empty (and admin scope is\nNOT Org root), the policy is a silent no-op. Classify as **CONFIG_GAP**.\nFMS will accept the policy but protect zero resources.\n\n### Step 4: Remediation posture (detect-only vs enforce)\n\nIf `RemediationEnabled: false`, classify as **CONFIG_GAP**. The policy\nis detect-only: FMS reports NONCOMPLIANT resources but does not apply\nthe WebACL, SG, Shield protection, or DNS Firewall rule group. This is\nthe FMS analogue of a WAF in COUNT mode — useful for staging, dangerous\nin production.\n\nNote in REMEDIATION: \"RemediationEnabled is false — the policy detects\nbut does not remediate. To enable enforcement: `aws fms put-policy\n--policy \u003Cupdated-json-with-RemediationEnabled-true>`.\"\n\nA detect-only policy is INTENTIONAL during onboarding (first 1-2 weeks)\nbut a misconfiguration in steady state. If the policy was created\n>30 days ago and RemediationEnabled is still false, escalate the\nfinding severity.\n\n### Step 5: Live compliance count evaluation\n\nExtract `NonCompliantResourceCount` (aggregated from\n`list-compliance-status` across all member accounts in scope):\n\n- **NonCompliantResourceCount > 0** → **NONCOMPLIANT** (highest\n  precedence). Live violations exist. The number is a lower bound — FMS\n  reports based on Config data, so a Config-disabled member account\n  hides its violations.\n\n- **NonCompliantResourceCount = 0 AND PolicyState READY AND\n  RemediationEnabled true AND ProtectedResourceCount > 0** → compliance\n  dimension OK.\n\n- **ProtectedResourceCount = 0** → coverage gap. Either the scope is\n  empty (Step 3d) or FMS could not enumerate resources (Config gap).\n  Note as INCOMPLETE_COVERAGE if scope appears non-empty.\n\n**Per-account NONCOMPLIANT drill-down:** When the policy verdict is\nNONCOMPLIANT, enumerate the violating member accounts and per-account\nviolator counts in FINDINGS. A single member at 90% of violations is a\ndifferent operational problem than uniform distribution — call it out.\n\n### Step 6: Cross-cutting — PolicyType-specific coverage validation\n\nApply PolicyType-specific sanity checks as additive findings:\n\n- **WAFV2**: verify the referenced WebACL exists in the policy's\n  `SecurityServicePolicyData.ManagedServiceData`. A WAFV2 policy with\n  an empty or malformed WebACL JSON is CONFIG_GAP — the policy has\n  nothing to apply.\n- **SECURITY_GROUPS_COMMON**: verify the baseline SG ID is set and\n  reachable from member accounts. A baseline SG in a security account\n  requires RAM share or the SG ID is unreachable.\n- **NETWORK_FIREWALL**: verify the firewall policy ARN exists. A\n  NETWORK_FIREWALL policy with an empty firewall policy reference is\n  CONFIG_GAP.\n- **SHIELD_ADVANCED**: verify `ProtectedResourceCount` > 0 if scope is\n  non-empty. Shield Advanced with 0 protected resources is either an\n  empty scope or a stuck protection application.\n\n### Step 7: Aggregation — worst finding wins\n\nThe final verdict is the **maximum severity** across all findings, where\nNONCOMPLIANT > INCOMPLETE_COVERAGE > CONFIG_GAP > OK:\n\n```text\nverdict = max(\n  policy_state_severity,\n  policy_type_severity,\n  scope_severity,\n  remediation_severity,\n  compliance_severity,\n  policytype_specific_severity\n)\n```\n\nIf no findings (all dimensions OK), the verdict is **OK**.\n\n## Output format (per policy)\n\n```text\nPOLICY: \u003Cpolicy-id>\nPOLICY_NAME: \u003Cname>\nPOLICY_TYPE: \u003CWAFV2 | SHIELD_ADVANCED | SECURITY_GROUPS_COMMON | ...>\nVERDICT: NONCOMPLIANT | INCOMPLETE_COVERAGE | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and its step>\nFINDINGS:\n  - [NONCOMPLIANT] \u003Cfinding description (Step N)>\n  - [INCOMPLETE_COVERAGE] \u003Cfinding description (Step N)>\n  - [CONFIG_GAP] \u003Cfinding description (Step N)>\n  - [OK] \u003Cdimension that passed>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n### Worked example — WAF policy with violations and detect-only mode\n\n```text\nPOLICY: waf-prod-edge-protect\nPOLICY_NAME: prod-edge-waf\nPOLICY_TYPE: WAFV2\nVERDICT: NONCOMPLIANT\nREASON: NonCompliantResourceCount=14 across 3 member accounts (Step 5)\n— live violations on CloudFront and ALB resources. RemediationEnabled\nis false (Step 4), compounding the exposure: FMS reports but does not\napply the WebACL.\nFINDINGS:\n  - [NONCOMPLIANT] 14 resources non-compliant across 3 accounts:\n    111111111111 (4), 222222222222 (8), 333333333333 (2) (Step 5)\n  - [CONFIG_GAP] RemediationEnabled=false — policy is detect-only;\n    WebACL is not auto-applied to non-compliant resources (Step 4)\nREMEDIATION:\n  1. Re-enable remediation: `aws fms put-policy --policy\n     \u003Cupdated-json-with-RemediationEnabled-true>`.\n  2. Drill per account: `aws fms get-compliance-detail --policy-id\n     \u003Cid> --member-account 222222222222`.\n  3. Investigate why 222222222222 dominates (8\u002F14 violators) — likely\n     a Config recorder gap or a member-local WebACL override.\n```\n\n### Worked example — malformed ManagedServiceData (WAFV2 with broken WebACL ref)\n\nThis second worked example (malformed ManagedServiceData) moved to references.\n→ [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § Worked example — malformed ManagedServiceData\n\n## Edge-case handling\n\nEdge-case catalog (partially malformed policies, legacy fields, conflicting scopes) moved to references.\n→ [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § Edge-case handling\n\n## Anti-Patterns — NEVER\n\n- NEVER classify a `PolicyState: NOT_READY` policy as OK. NOT_READY\n  means FMS is not enforcing — the absence of violations reflects the\n  absence of enforcement, not compliance. This is the most common FMS\n  false positive.\n\n- NEVER treat `RemediationEnabled: false` as equivalent to `true`. The\n  former is detect-only: FMS produces findings but does not apply\n  WebACLs, SG baselines, or Shield protection. Treating them as\n  equivalent collapses the distinction between a sensor and a control.\n\n- NEVER assume `NonCompliantResourceCount: 0` means \"compliant.\" FMS\n  derives compliance from AWS Config. A member account with Config\n  disabled reports 0 — the absence of data, not the absence of\n  violations. Always cross-reference Config recorder status before\n  trusting a clean count.\n\n- NEVER classify a ResourceTags-only scope (empty ResourceTypeLists) as\n  OK. Resources without the tag are silently excluded — the policy\n  appears healthy while leaving the untagged population unprotected.\n  This is the FMS analogue of an IAM `NotResource` — easy to miss,\n  catastrophic in effect.\n\n- NEVER treat `PolicyType: WAF` as equivalent to `WAFV2`. WAF Classic\n  is legacy and in maintenance mode. A `WAF` policy in production is a\n  migration gap; flag as CONFIG_GAP with the migration path.\n\n- NEVER assume `ProtectedResourceCount: 0` on a READY policy is\n  benign. It means FMS is enforcing but found nothing to protect —\n  usually a scope misconfiguration (empty ResourceTypeLists, impossible\n  ResourceTags combo) or a Config enumeration gap. Investigate before\n  closing.\n\n- NEVER recommend deleting an FMS policy without first verifying it is\n  NOT_READY or has zero in-scope resources for >30 days. Deleting a\n  READY policy that protects resources removes the WebACL\u002FSG\u002FShield\n  enforcement immediately. Always run `aws fms get-protection-status\n  --policy-id \u003Cid>` before `delete-policy`.\n\n- NEVER assume a policy in `IncludeMap: {ORG_UNIT: [ou-root]}` covers\n  the entire org. The OU ID must match the current Organizations root.\n  A dissolved\u002Frecreated OU produces a new ID; the policy silently\n  protects nothing. Verify OU IDs against `aws organizations\n  list-roots`.\n\n- NEVER recommend changing the FMS policy itself as the first-line\n  remediation for a WebACL rule gap. FMS applies ONE WebACL to all\n  in-scope resources atomically. Edit the underlying WebACL via\n  `aws wafv2 update-web-acl` and let FMS re-apply — this is reversible\n  and staged. Changing the FMS policy to swap WebACLs is atomic and\n  breaks all applications simultaneously if the new WebACL is wrong.\n\n- NEVER treat `SECURITY_GROUPS_COMMON`, `SECURITY_GROUPS_CONTENT_AUDIT`,\n  and `SECURITY_GROUPS_USAGE_AUDIT` as interchangeable. COMMON applies\n  a baseline SG; CONTENT_AUDIT audits existing SG rules against a\n  policy; USAGE_AUDIT finds unused SGs. The three are complementary,\n  not redundant.\n\n- NEVER overlook `NETWORK_FIREWALL` policies scoped to VPCs without\n  firewalls. FMS does NOT create firewalls — it manages rules on\n  existing ones. A VPC in scope without a firewall is NONCOMPLIANT and\n  stays NONCOMPLIANT until an operator provisions the firewall.\n\n- NEVER treat `ExcludeMap` as weaker than `IncludeMap`. Exclude wins —\n  an account in both is excluded. A misconfigured ExcludeMap silently\n  punches holes in coverage.\n\n- NEVER assume FMS policies are global. WAF, SG, and Network Firewall\n  policies are regional. A multi-region workload requires auditing N\n  regional policies. Only Shield Advanced CloudFront protection is\n  global.\n\n- NEVER classify a `DNS_FIREWALL` policy as OK just because\n  NonCompliantResourceCount is 0. Cross-reference the VPC Resolver\n  DNS Firewall associations — FMS manages the rule group, but the VPC\n  association is a separate operation. An unassociated VPC is silently\n  unprotected.\n\n- NEVER recommend enabling `RemediationEnabled: true` without a\n  detect-only staging period for new policies. The transition from\n  detect-only to enforce applies the WebACL\u002FSG to all resources\n  simultaneously. Stage in detect mode for 1-2 weeks, review the\n  violations, then enable.\n\n- NEVER ignore `LimitExceededException` on `put-policy`. The 50-policy\n  org cap, when hit mid-remediation, leaves the org partially migrated\n  with no rollback path. Validate headroom via\n  `aws fms list-policies | jq '.PolicyList | length'` before creating\n  new policies.\n\n- NEVER assume the FMS service-linked role\n  (`AWSServiceRoleForFMSService`) exists in all member accounts. If a\n  member deleted it, enforcement silently fails and resources stay\n  NONCOMPLIANT with no error surfaced in the FMS console. Verify via\n  `aws iam get-role --role-name AWSServiceRoleForFMSService` per member;\n  recovery is `aws iam create-service-linked-role --aws-service-name\n  fms.amazonaws.com`.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\nPre-flight safety checks and confirmation gates before any remediation CLI moved to references.\n→ [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § Pre-flight safety checks\n\n## Remediation guidance\n\nFull per-verdict remediation runbooks (ordering principle + For NONCOMPLIANT \u002F INCOMPLETE_COVERAGE \u002F CONFIG_GAP \u002F OK) moved to references.\n→ [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § Remediation guidance\n\n## Practical execution reference (pagination, multi-region, error branching)\n\nExecution-layer patterns (pagination, multi-region, error branching, malformed JSON, quotas, ExcludeMap, enforcement pipeline, Config coupling, region semantics, migration) moved to references.\n→ [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md), [references\u002Ferror-handling.md](references\u002Ferror-handling.md), [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md)\n\n## Condition strength reference (FMS-specific)\n\nCondition-strength table (STRONG\u002FWEAK scope conditions) moved to references.\n→ [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § Condition strength reference\n\n## Recent AWS features (2024-2026)\n\n2024-2026 FMS feature notes moved to references.\n→ [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § Recent AWS features\n\n## References (load on demand)\n\nConsult these only when the corresponding topic comes up:\n\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — the malformed-ManagedServiceData worked example (moved from § Worked example)\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — error-code branching and malformed JSON recovery (moved from § Practical execution reference)\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — live pre-flight checks, pre-flight safety checks, per-verdict remediation runbooks, pagination and multi-region iteration\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — invoke patterns, Step-0 expert knowledge, edge cases, quotas\u002FExcludeMap\u002Fenforcement\u002FConfig\u002Fregions\u002Fmigration, condition strength, recent AWS features\n\n## Domain\n\nAWS CloudOps \u002F Firewall Manager Compliance & Organization-wide Security.\n\n## AWS documentation\n\n- FMS Developer Guide — https:\u002F\u002Fdocs.aws.amazon.com\u002Fwaf\u002Flatest\u002Fdeveloperguide\u002Ffms-chapter.html\n- FMS API Reference — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffms\u002F2018-01-01\u002FAPIReference\u002F\n- FMS CLI Reference — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Ffms\u002F\n- **AWS Firewall Manager compliance status** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fwaf\u002Flatest\u002Fdeveloperguide\u002Ffms-compliance-status.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":38},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"complexity":32,"entry_point":33,"when_to_use":34,"dependencies":35,"requires_llm":36,"verdict_shape":37,"supports_pipeline":36},"aws, fms, firewall-manager, security, compliance, waf, shield, policy, audit, organizations","2","Jacky Chan — AWS Community Builder","aws-cloudops","Security","0.1.0","Firewall Manager, FMS, policy compliance, WAF policy, Shield Advanced, Security Groups policy, Network Firewall policy, DNS Firewall, PolicyState, NOT_READY, RemediationEnabled, ResourceTags, ResourceTypeLists, IncludeMap, ExcludeMap, NonCompliantResourceCount, NONCOMPLIANT, WAFV2, SECURITY_GROUPS_COMMON, SECURITY_GROUPS_CONTENT_AUDIT, SECURITY_GROUPS_USAGE_AUDIT, THIRD_PARTY_FIREWALL, IMPORTED_FIREWALL","high","false","Reviewing an FMS policy configuration, auditing policy scope coverage across an AWS Organization, validating PolicyState (READY vs NOT_READY), checking RemediationEnabled posture, investigating non-compliant resource counts, or hardening FMS posture across WAF, Shield Advanced, VPC Security Groups, Network Firewall, or DNS Firewall policies.","aws-orchestrator","true","NONCOMPLIANT | INCOMPLETE_COVERAGE | CONFIG_GAP | OK","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex). No AWS CLI required for offline policy classification. Live-account audits use aws fms list-policies, aws fms get-policy, aws fms list-compliance-status, aws fms get-compliance-detail, aws fms get-protection-status, aws fms get-admin-scope (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Ffirewall-manager-compliance-auditor",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill firewall-manager-compliance-auditor",{"tool":53,"command":54},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill firewall-manager-compliance-auditor",{"tool":56,"command":57},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill firewall-manager-compliance-auditor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002FSKILL.md",true,[61,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",10569,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Feval\u002Ftest-cases.yaml",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"evals\u002Fbaselines\u002Fpolicy-not-ready.md",859,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Fbaselines\u002Fpolicy-not-ready.md",{"path":72,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Fremediation-disabled-config-gap.md",834,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Fbaselines\u002Fremediation-disabled-config-gap.md",{"path":76,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Fsg-common-full-coverage-ok.md",759,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Fbaselines\u002Fsg-common-full-coverage-ok.md",{"path":80,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Fshield-tag-scope-incomplete.md",919,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Fbaselines\u002Fshield-tag-scope-incomplete.md",{"path":84,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Fwaf-legacy-policy-type.md",741,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Fbaselines\u002Fwaf-legacy-policy-type.md",{"path":88,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fbaselines\u002Fwaf-noncompliant-remediation.md",920,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Fbaselines\u002Fwaf-noncompliant-remediation.md",{"path":92,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Feval_config.yaml",2092,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Feval_config.yaml",{"path":96,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fevals.json",5533,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Fevals.json",{"path":100,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fprompts\u002Fpolicy-not-ready.md",768,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Fprompts\u002Fpolicy-not-ready.md",{"path":104,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fprompts\u002Fremediation-disabled-config-gap.md",909,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Fprompts\u002Fremediation-disabled-config-gap.md",{"path":108,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":109,"sourceHtmlUrl":110},"evals\u002Fprompts\u002Fsg-common-full-coverage-ok.md",924,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Fprompts\u002Fsg-common-full-coverage-ok.md",{"path":112,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":113,"sourceHtmlUrl":114},"evals\u002Fprompts\u002Fshield-tag-scope-incomplete.md",993,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Fprompts\u002Fshield-tag-scope-incomplete.md",{"path":116,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":117,"sourceHtmlUrl":118},"evals\u002Fprompts\u002Fwaf-legacy-policy-type.md",694,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Fprompts\u002Fwaf-legacy-policy-type.md",{"path":120,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":121,"sourceHtmlUrl":122},"evals\u002Fprompts\u002Fwaf-noncompliant-remediation.md",876,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fevals\u002Fprompts\u002Fwaf-noncompliant-remediation.md",{"path":124,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":125,"sourceHtmlUrl":126},"examples\u002Fend-to-end.md",5892,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fexamples\u002Fend-to-end.md",{"path":128,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fadvanced-patterns.md",13045,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Freferences\u002Fadvanced-patterns.md",{"path":132,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Fdiagnostic-commands.md",10544,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Freferences\u002Fdiagnostic-commands.md",{"path":136,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Ferror-handling.md",2220,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Freferences\u002Ferror-handling.md",{"path":140,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":141,"sourceHtmlUrl":142},"references\u002Fworked-examples.md",1097,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Freferences\u002Fworked-examples.md",{"path":144,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":145,"sourceHtmlUrl":146},"skill.usf.yaml",4328,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirewall-manager-compliance-auditor\u002Fskill.usf.yaml",[148,155,162,169,176,183],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]