Network Firewall Rule Auditor
Quick-start (TL;DR)
Use this skill when auditing an AWS Network Firewall — the managed VPC-level
stateful/stateless inspection service (Suricata + 5-tuple engines in dedicated
firewall subnets). Do NOT use it for security groups, NACLs, WAF web ACLs,
Route 53 Resolver Firewall, or non-AWS firewalls — those have different
evaluation models and verdict labels.
Five possible verdicts (worst finding wins on aggregation):
- PERMISSIVE_RULE — a rule or default action actively allows/bypasses
traffic that should be inspected or blocked. Highest urgency.
- ROUTING_GAP — VPC or TGW route tables steer traffic around the firewall;
rules are irrelevant.
- NO_TLS_INSPECTION — payload-matching stateful rules cannot match HTTPS
without a decryption config.
- CONFIG_GAP — functional defect (dead pass rule, missing logging,
alert-only default, missing
forward_to_sfe).
- OK — all dimensions clean.
Three highest-signal checks (cover ~80% of real misconfigurations):
StatelessDefaultActions includes aws:forward_to_sfe — else every
stateful rule group is dead code.
- App-subnet route table points
0.0.0.0/0 at a firewall ENI, not the IGW.
- No
pass ip any any -> any any (Suricata) or all-wildcard 5-tuple +
aws:pass (stateless) rule.
Output contract: emit one FIREWALL / VERDICT / REASON / FINDINGS / REMEDIATION block per firewall. For multi-firewall inputs, emit one block per
firewall — do NOT merge findings across firewalls.
The full verdict matrix is in Quick reference — verdict thresholds below;
deep Suricata, routing, and API internals are in the Reference section at
the end.
Mindset
One-line takeaway: a perfectly authored rule group is worthless if the
route table sends traffic around the firewall, if fragments bypass the
stateless engine, or if TLS inspection is absent — always audit the data
path BEFORE the rules.
AWS Network Firewall is a managed stateful network inspection service
deployed inside dedicated firewall subnets. Three properties make it unlike
SGs or NACLs:
Routing is the enforcement gate. Unlike a security group (always
attached to an ENI), a Network Firewall only inspects traffic that the
VPC route tables actually route through its ENIs. A route-table typo
silently disables the entire firewall. This is ROUTING_GAP — the most
operationally dangerous verdict because it produces a false sense of
security.
Two engines, two rule languages. Stateless rules (5-tuple match,
first-match-wins per group) and stateful rules (Suricata-compatible,
flow-aware) are separate evaluation pipelines with different action
vocabularies. The StatelessDefaultActions on the policy must include
aws:forward_to_sfe to hand unmatched traffic to the stateful engine —
if it is aws:pass, the stateful engine is effectively dead.
TLS inspection is opt-in and domain rules are not enough. Without a
TLSInspectionConfiguration, stateful domain-list rules still match SNI
in the ClientHello (plaintext) but Suricata content / payload matching
is blind to all TLS traffic. Most modern traffic is HTTPS — a payload rule
without TLS inspection is dead code.
Quick reference — verdict thresholds
| Condition |
Verdict |
Step |
| Route table for a workload subnet does not route 0.0.0.0/0 (or a covered CIDR) through a firewall ENI |
ROUTING_GAP |
1 |
| Return path (egress from firewall subnet) missing or asymmetric |
ROUTING_GAP |
1 |
StatelessDefaultActions is aws:pass (not aws:forward_to_sfe) |
PERMISSIVE_RULE |
2 |
StatelessFragmentDefaultActions is aws:pass (fragment bypass) |
PERMISSIVE_RULE |
2 |
StatefulDefaultActions is aws:alert_strict / alert_established (alert only, never blocks) |
PERMISSIVE_RULE |
3 |
Suricata pass ip any any -> any any or wildcard pass rule |
PERMISSIVE_RULE |
4 |
Stateless rule with all-wildcard 5-tuple + aws:pass action |
PERMISSIVE_RULE |
4 |
STRICT_ORDER group with a broad pass before a narrow drop (shadowed drop) |
PERMISSIVE_RULE |
5 |
STRICT_ORDER group with a drop before a pass (dead pass — functional bug) |
CONFIG_GAP |
5 |
TLSInspectionConfigurationArn absent + stateful rules use content/payload matching |
NO_TLS_INSPECTION |
6 |
Domain-list rule with Targets: [HTTP_HOST] only (HTTPS traffic never matches) |
CONFIG_GAP |
6 |
No logging configuration / FlowLogs + AlertLogs both disabled |
CONFIG_GAP |
7 |
| All dimensions clean (scoped rules, drop defaults, TLS on, routing valid, logging on) |
OK |
8 |
See the ordered steps below for edge cases. Deep Suricata and routing
internals are in the Expert edge cases section.
Verdict priority (worst finding wins on aggregation):
PERMISSIVE_RULE > ROUTING_GAP > NO_TLS_INSPECTION > CONFIG_GAP > OK
Pre-flight: firewall metadata gate (run before rule classification)
| Attribute |
Value |
Effect on audit |
FirewallStatus |
DELETING |
Firewall is being torn down — rules are irrelevant. VERDICT: OK with a note. |
FirewallPolicyResponse.FirewallPolicyStatus |
DELETING |
Policy is mid-deletion. Flag as CONFIG_GAP — the policy is not in steady state. |
EncryptionConfiguration.Type |
unset / NONE |
Firewall does not use customer-managed KMS for its own config. Note as CONFIG_GAP (defense-in-depth). |
SubnetMappings |
single AZ only |
Single-AZ firewall — no AZ redundancy. Note as CONFIG_GAP (availability risk, not a security verdict driver). |
DeleteProtection |
false |
Firewall can be deleted without unprotecting. Note in REMEDIATION. |
If the policy JSON is malformed (invalid JSON, missing StatefulRuleGroups
or StatelessRuleGroupReferences), output:
FIREWALL: <name>
VERDICT: ERROR
REASON: Firewall policy document is malformed or missing required fields — cannot classify.
REMEDIATION: Re-fetch with `aws network-firewall describe-firewall-policy --firewall-policy-arn <arn> --output json`.
Pagination note: describe-rule-group is per-group; there is no list
shortcut that returns rule bodies. When auditing a live account, iterate
list-rule-groups --type STATEFUL --scope MANAGED and --scope CUSTOMER
(paged via --starting-token), then call describe-rule-group per ARN. A
policy can reference more rule groups than the first page reveals.
Process — Classification logic (apply every step, aggregate worst)
Step 0: Expert knowledge — non-obvious Network Firewall behaviors
→ Full Step-0 expert knowledge moved verbatim to references/advanced-patterns.md.
Step 1: Routing topology (ROUTING_GAP)
The firewall is only effective if traffic actually traverses its ENIs. For
each workload subnet behind the firewall, verify:
- The subnet's route table has a default route (
0.0.0.0/0, or the
protected CIDR) whose target is a firewall ENI in the same AZ
(vpc-ec2-eni-...), NOT the IGW or NAT gateway directly.
- The firewall subnet's route table has a default route to the IGW (egress)
or NAT gateway.
- BOTH directions traverse the firewall (symmetric routing). An asymmetric
path (request through firewall, return direct) prevents the stateful
engine from tracking the flow — rules fire incorrectly or not at all.
- In a multi-AZ deployment, each AZ has its own firewall ENI and the route
table for each AZ points to the ENI in that AZ. A single route table
pointing all AZs to one ENI creates cross-AZ inspection traffic that
degrades performance and fails during AZ outages.
If any route table check fails → ROUTING_GAP. This is evaluated first
because it invalidates all downstream rule analysis — if traffic does not
reach the firewall, the rules are irrelevant.
Step 2: Stateless default actions (PERMISSIVE_RULE)
Extract StatelessDefaultActions and StatelessFragmentDefaultActions from
the policy:
StatelessDefaultActions: [aws:pass] → PERMISSIVE_RULE. All
non-matching traffic bypasses the stateful engine. Every stateful rule
group is dead code. The correct default is [aws:forward_to_sfe].
StatelessFragmentDefaultActions: [aws:pass] → PERMISSIVE_RULE.
IP fragments bypass both engines — fragmentation evades every rule. The
correct default is [aws:forward_to_sfe] or [aws:drop].
StatelessDefaultActions: [aws:drop] → PERMISSIVE_RULE if the
intent is inspection (stateful rules never see traffic). This is only
acceptable for an explicit deny-all posture — flag and let the operator
confirm. If aws:forward_to_sfe is present alongside, traffic reaches
stateful: OK for this dimension.
Step 3: Stateful default actions (PERMISSIVE_RULE)
Extract StatefulDefaultActions:
aws:alert_strict / aws:alert_established → PERMISSIVE_RULE.
The firewall logs non-matching traffic but NEVER blocks it — it is an IDS,
not an IPS. For a security enforcement posture, this is a fail-open
configuration.
aws:drop_strict → OK. Every packet is evaluated independently; new
drop rules take effect immediately. Recommended for enforcement.
aws:drop_established → OK for steady state, but flag as a note:
flows established before a new drop rule was added continue uninterrupted.
For incident response, this is a gap — switch to drop_strict.
Step 4: Permissive rule detection (PERMISSIVE_RULE)
For each stateful rule group, inspect the Suricata rules (or domain list):
- Wildcard pass:
pass ip any any -> any any (or pass tcp any any -> any any, pass udp any any -> any any) → PERMISSIVE_RULE. This passes
all traffic of that protocol, overriding all drop rules in
DEFAULT_ACTION_ORDER and shadowing later drops in STRICT_ORDER.
- Broad HOME_NET pass:
pass ip $HOME_NET any -> $EXTERNAL_NET any passes
all outbound traffic. Depending on posture, this may be intentional
(egress monitoring) but it nullifies egress drop rules. Flag as
PERMISSIVE_RULE unless the group's stated intent is "egress allow with
selective blocks" AND those blocks are ordered before the pass in STRICT_ORDER.
- Domain-list
Action: ALLOW on a broad domain (e.g., *.com, *) →
PERMISSIVE_RULE. A wildcard-domain allow passes all matching HTTPS
traffic regardless of payload.
For each stateless rule group, inspect the 5-tuple rules:
- All-wildcard 5-tuple +
aws:pass: source 0.0.0.0/0, destination
0.0.0.0/0, ports ANY, protocol ANY, action aws:pass →
PERMISSIVE_RULE. This is the stateless equivalent of a wildcard pass.
Step 5: Rule-group evaluation order (PERMISSIVE_RULE | CONFIG_GAP)
For each stateful rule group with RuleOrder: STRICT_ORDER:
- If a broad
pass rule precedes a narrow drop rule covering overlapping
traffic → PERMISSIVE_RULE (the drop is shadowed — traffic passes).
- If a broad
drop precedes a narrow pass → CONFIG_GAP (the pass is
dead — intended allow is broken; functional bug, not a security exposure).
- Domain-list groups are evaluated by the list's match semantics, not
STRICT_ORDER — this check does not apply.
For DEFAULT_ACTION_ORDER groups, all rules are evaluated and the most
severe action wins. Shadowing does not occur. If the group's RuleOrder is
unset, the default is STRICT_ORDER — assume strict when absent.
Step 6: TLS inspection (NO_TLS_INSPECTION | CONFIG_GAP)
Check FirewallPolicy.TLSInspectionConfigurationArn:
- Absent (null/empty) + stateful rules use
content/payload matching →
NO_TLS_INSPECTION. Payload rules cannot match TLS traffic — most modern
flows. Domain-list rules still match SNI (plaintext), so SNI-based domain
rules are NOT affected. This finding only fires when payload rules exist.
- Absent + ONLY domain-list (SNI) rules → OK for TLS (SNI does not need
decryption). Note in REMEDIATION: "enable TLS inspection for deeper
coverage".
- Present + payload rules → OK for this dimension. Note: verify the TLS
certificate authority is trusted by clients and the cert is not expired
(operational check).
- Domain-list rule with
Targets: [HTTP_HOST] only → CONFIG_GAP.
HTTPS traffic (the majority) never matches — the rule is dead for its
likely intent. Add TLS_SNI to targets.
Step 7: Logging and observability (CONFIG_GAP)
Check DescribeLoggingConfiguration:
- No logging configuration (empty response) → CONFIG_GAP. Firewall
decisions are invisible — no alert log, no flow log. Incident response and
tuning are impossible without logs.
AlertLogs enabled but FlowLogs disabled → CONFIG_GAP (minor).
Alerts capture rule matches but not baseline traffic. Enable both for full
visibility.
- Both enabled → OK for this dimension.
Step 8: Aggregation — worst finding wins
Collect all findings from Steps 1-7. The final verdict is the highest-priority
verdict across all findings:
verdict = max(all_findings, key=lambda f: PRIORITY[f.verdict])
# PRIORITY: PERMISSIVE_RULE=5, ROUTING_GAP=4, NO_TLS_INSPECTION=3, CONFIG_GAP=2, OK=1
If no findings, verdict is OK.
Output format (per firewall)
FIREWALL: <name>
VERDICT: PERMISSIVE_RULE | NO_TLS_INSPECTION | ROUTING_GAP | CONFIG_GAP | OK
REASON: <1-2 sentences citing the worst finding and its step number>
FINDINGS:
- [PERMISSIVE_RULE] <finding description (Step N)>
- [CONFIG_GAP] <finding description (Step N)>
REMEDIATION: <specific action per finding, or "None required" if OK>
Worked example — wildcard pass + missing TLS
FIREWALL: fw-prod-edge
VERDICT: PERMISSIVE_RULE
REASON: Stateful rule group "allow-baseline" contains `pass ip any any ->
any any` which passes all IP traffic (Step 4). TLS inspection is also absent,
making payload rules blind to HTTPS (Step 6).
FINDINGS:
- [PERMISSIVE_RULE] Wildcard pass rule `pass ip any any -> any any` in group
allow-baseline overrides all drop rules (Step 4)
- [NO_TLS_INSPECTION] No TLSInspectionConfigurationArn on policy; 3 stateful
content-matching rules cannot match TLS traffic (Step 6)
REMEDIATION:
1. Remove or scope the wildcard pass rule to specific CIDRs/ports.
2. Create and attach a TLS inspection configuration:
aws network-firewall create-tls-inspection-config ...
aws network-firewall associate-tls-inspection-config ...
Multi-firewall inputs
When the input contains more than one firewall (e.g., a JSON array, a
spreadsheet export, or multiple ARNs), emit ONE verdict block per firewall.
Do NOT merge findings across firewalls — a shared policy is not a signal to
collapse verdicts. Process firewalls in input order; if two firewalls share a
policy, both still get independent blocks (the shared policy's defects appear
in each, with a REMEDIATION note flagging the blast radius).
For very large inputs (>20 firewalls), batch by VPC or account and warn the
operator that the run may exceed a single model response — emit a final
VERDICT: ERROR summary block with the count of unprocessed firewalls
rather than silently truncating.
Pagination retry / backoff
→ Retry/backoff details moved verbatim to references/error-handling.md.
Expert edge cases
→ Edge-case catalog moved verbatim to references/advanced-patterns.md.
Anti-Patterns — NEVER
NEVER assume traffic reaches the firewall just because the firewall exists.
Verify the route table. A firewall with perfect rules and a bypass route is
equivalent to no firewall.
NEVER classify StatelessDefaultActions: [aws:pass] as OK. Without
aws:forward_to_sfe, the stateful engine never sees traffic. Every
stateful rule group is dead code. This is PERMISSIVE_RULE.
NEVER classify StatelessFragmentDefaultActions: [aws:pass] as OK.
Fragments bypass both engines. Attackers fragment traffic to evade rules.
This is PERMISSIVE_RULE.
NEVER treat Suricata alert as a blocking action. alert logs only — the
traffic continues. Only drop and reject block. If the intent is
enforcement, the action must be drop.
NEVER ignore STRICT_ORDER rule shadowing. A broad pass before a narrow
drop in a strict-order group makes the drop unreachable. The traffic
passes — this is PERMISSIVE_RULE, not a cosmetic ordering issue.
NEVER assume domain-list rules need TLS inspection. SNI matching works
without decryption (the ClientHello is plaintext). Only Suricata content
/ payload rules require TLS inspection. Conflating the two produces false
NO_TLS_INSPECTION findings.
NEVER recommend reject for internet-facing firewalls without noting the
information-disclosure trade-off. reject sends TCP RST / ICMP unreachable,
revealing an inline firewall. drop is silent.
NEVER edit a shared firewall policy without enumerating attached firewalls.
list-firewalls --firewall-policy-arn <arn> reveals the blast radius. A
rule change on a shared policy affects every attached firewall
simultaneously.
NEVER trust drop_established during incident response. Existing flows
survive new drop rules. Switch to drop_strict for IR to ensure immediate
enforcement.
NEVER classify StatefulDefaultActions: [aws:alert_strict] as OK for an
enforcement firewall. Alert-only is IDS mode — the firewall detects but
never blocks. This is PERMISSIVE_RULE for enforcement postures.
NEVER assume HOME_NET includes peered VPCs. It is set to the firewall's
VPC CIDR only. Peered VPCs are $EXTERNAL_NET. Rules referencing
$EXTERNAL_NET may flag peered-VPC traffic as hostile.
NEVER propose additive rules without checking ConsumedCapacity vs
Capacity. A group at capacity rejects new rules — the remediation command
fails silently in automation.
NEVER cache UpdateToken across mutations. The token changes on every
write. A stale token produces InvalidTokenException. Re-fetch before each
mutation.
NEVER pin to "the latest" AWS-managed rule group without recording the
version. Managed groups (ThreatSignatures, domain lists) update
independently; a passing audit today can fail tomorrow when the managed
group adds rules that interact with custom rules. Capture the managed
group's version / LastModifiedTime in the audit output for
reproducibility, and flag managed-group version drift between audits.
NEVER assume egress is inspected just because ingress is. Many policies
scope rules tightly for inbound traffic but ship a pass ip $HOME_NET any -> $EXTERNAL_NET any baseline for outbound — data exfiltration and C2
callbacks egress uninspected. Evaluate egress rules with the same rigor as
ingress; a permissive egress baseline is PERMISSIVE_RULE, not OK.
Pre-flight safety checks (run before any remediation CLI)
→ Pre-flight safety command gates moved verbatim to references/diagnostic-commands.md.
Remediation guidance
Ordering principle: always prefer additive changes over destructive
changes. Add a drop rule before removing a pass rule — the drop takes
effect immediately while you investigate what the pass was protecting.
For PERMISSIVE_RULE — stateless default pass
- Change the default to forward to stateful:
aws network-firewall update-firewall-policy --firewall-policy-arn <arn> --firewall-policy '{"StatelessDefaultActions":["aws:forward_to_sfe"],...}'
- Verify the stateful engine now sees traffic via CloudWatch metrics
(
DroppedPackets, PassedPackets) — PassedPackets should drop as
stateful rules begin evaluating.
For PERMISSIVE_RULE — fragment default pass
- Change fragment default to forward or drop:
aws network-firewall update-firewall-policy --firewall-policy-arn <arn> --firewall-policy '{"StatelessFragmentDefaultActions":["aws:forward_to_sfe"],...}'
- Verify no legitimate fragmented traffic breaks (some legacy protocols
fragment; test in staging first).
For PERMISSIVE_RULE — wildcard stateful pass
- Remove or scope the wildcard pass rule. If the rule was intended to allow
baseline traffic, replace
pass ip any any -> any any with scoped CIDRs
and ports.
- If the rule group is
STRICT_ORDER, ensure any drop rules are ordered
BEFORE surviving pass rules.
For PERMISSIVE_RULE — alert-only stateful default
- Change to enforcement:
aws network-firewall update-firewall-policy --firewall-policy-arn <arn> --firewall-policy '{"StatefulDefaultActions":["aws:drop_strict"],...}'
- Monitor
DroppedPackets for a spike — the transition from alert to drop
may block previously-tolerated traffic.
For ROUTING_GAP
- Fix the route table for the affected subnet:
aws ec2 replace-route --route-table-id <rtb-id> --destination-cidr-block 0.0.0.0/0 --vpc-endpoint-eni-id <firewall-eni-id>
(or --network-interface-id <eni-id> depending on the ENI type).
- Verify symmetric routing: check the return path route table also points
through the firewall.
- In multi-AZ, ensure each AZ's route table points to the ENI in that AZ.
For NO_TLS_INSPECTION
- Create a TLS inspection config with a CA certificate:
aws network-firewall create-tls-inspection-config --tls-inspection-config-name <name> --certificates ...
- Associate it with the policy:
aws network-firewall update-firewall-policy --firewall-policy-arn <arn> --firewall-policy '{"TLSInspectionConfigurationArn":"<arn>",...}'
- Distribute the CA cert to client trust stores BEFORE enabling, or TLS
handshakes will fail.
For CONFIG_GAP — missing logging
- Enable both alert and flow logs:
aws network-firewall update-logging-configuration --firewall-arn <arn> --logging-configuration '{"LogDestinationConfigs":[{"LogType":"ALERT","LogDestinationType":"CloudWatchLogs","LogDestination":{"logGroup":"fw-alerts"}},{"LogType":"FLOW","LogDestinationType":"CloudWatchLogs","LogDestination":{"logGroup":"fw-flow"}}]}'
For CONFIG_GAP — shadowed dead pass rule
- Reorder the rule group so
drop rules precede pass rules for
overlapping traffic (in STRICT_ORDER groups).
- Update the rule group:
aws network-firewall update-rule-group --rule-group-arn <arn> --rule-group '{...reordered...}' --type STATEFUL --update-token <token>
For OK
- No remediation required for the current posture.
- Recommend verifying
drop_strict vs drop_established matches the
operational context (steady state vs incident response).
- Recommend periodic review of managed rule group versions and custom rule
rev numbers.
Error handling during remediation
→ API error table moved verbatim to references/error-handling.md.
References (load on demand)
- references/advanced-patterns.md — Step-0 expert knowledge, expert edge cases, recent AWS features 2024-2026
- references/error-handling.md — pagination retry/backoff, remediation API error table
- references/diagnostic-commands.md — pre-flight safety gates and backup CLI
Domain
AWS CloudOps / Network Security & Intrusion Prevention.
AWS documentation
Changelog — Recent AWS features (2024-2026)
→ Recent AWS features moved verbatim to references/advanced-patterns.md.
1---2name: network-firewall-rule-auditor3description: Audits AWS Network Firewall configurations for permissive stateful and stateless rules, missing TLS inspection, firewall-subnet routing gaps that bypass inspection, rule-group evaluation-order shadowing, and logging blind spots. Emits a deterministic verdict (PERMISSIVE_RULE | NO_TLS_INSPECTION | ROUTING_GAP | CONFIG_GAP | OK) per firewall with enumerated findings and specific CLI remediation. Use when reviewing Network Firewall policies, checking for wildcard pass rules, validating TLS inspection coverage, auditing firewall route tables, or verifying rule-group evaluation order before production deployment.4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline policy-document classification. Live-account audits use aws network-firewall describe-firewall, describe-firewall-policy, describe-rule-group, describe-logging-configuration, describe-tls-inspection-config, and aws ec2 describe-route-tables (AWS CLI v2, SSO or key-based credentials).6metadata:7 source: https://skillmd.com/skills/jhkchan/network-firewall-rule-auditor8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '2'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Security15 verdict_shape: PERMISSIVE_RULE | NO_TLS_INSPECTION | ROUTING_GAP | CONFIG_GAP | OK16 when_to_use: Reviewing a Network Firewall policy before production deployment, checking for permissive stateful or stateless rules, validating TLS inspection coverage, auditing firewall subnet route tables for traffic-bypass gaps, verifying rule-group evaluation order, or hardening intrusion-prevention posture across a VPC.17 activation_triggers: audit this network firewall, check firewall rules, permissive firewall policy, is TLS inspection enabled, firewall routing gap, rule group evaluation order, stateless default actions, fragment bypass firewall, shadowed Suricata rules, HOME_NET misconfiguration18 invocation_schema: 'Input: either (a) a Network Firewall policy JSON (stateful + stateless rule groups, default actions), optionally paired with route-table data and TLS config, OR (b) a firewall-arn/name for live-account audit. Output: deterministic FIREWALL/VERDICT/REASON/FINDINGS/REMEDIATION block per firewall, where VERDICT ∈ {PERMISSIVE_RULE, NO_TLS_INSPECTION, ROUTING_GAP, CONFIG_GAP, OK, ERROR}.'19 version: 0.1.020 author: Jacky Chan — AWS Community Builder21 keywords: Network Firewall, stateful rules, stateless rules, Suricata, TLS inspection, firewall routing, rule group, StatelessDefaultActions, StatelessFragmentDefaultActions, StatefulDefaultActions, drop_strict, forward_to_sfe, HOME_NET, fragment bypass, shadowed rule, STRICT_ORDER, SNI, network firewall audit, intrusion prevention22 tags: network-firewall, security, stateful-rules, stateless-rules, tls-inspection, routing, suricata, audit23---2425# Network Firewall Rule Auditor2627## Quick-start (TL;DR)2829**Use this skill when** auditing an AWS Network Firewall — the managed VPC-level30stateful/stateless inspection service (Suricata + 5-tuple engines in dedicated31firewall subnets). **Do NOT use it for** security groups, NACLs, WAF web ACLs,32Route 53 Resolver Firewall, or non-AWS firewalls — those have different33evaluation models and verdict labels.3435**Five possible verdicts** (worst finding wins on aggregation):36- **PERMISSIVE_RULE** — a rule or default action actively allows/bypasses37 traffic that should be inspected or blocked. Highest urgency.38- **ROUTING_GAP** — VPC or TGW route tables steer traffic around the firewall;39 rules are irrelevant.40- **NO_TLS_INSPECTION** — payload-matching stateful rules cannot match HTTPS41 without a decryption config.42- **CONFIG_GAP** — functional defect (dead pass rule, missing logging,43 alert-only default, missing `forward_to_sfe`).44- **OK** — all dimensions clean.4546**Three highest-signal checks** (cover ~80% of real misconfigurations):471. `StatelessDefaultActions` includes `aws:forward_to_sfe` — else every48 stateful rule group is dead code.492. App-subnet route table points `0.0.0.0/0` at a firewall ENI, not the IGW.503. No `pass ip any any -> any any` (Suricata) or all-wildcard 5-tuple +51 `aws:pass` (stateless) rule.5253**Output contract:** emit one `FIREWALL / VERDICT / REASON / FINDINGS /54REMEDIATION` block per firewall. For multi-firewall inputs, emit one block per55firewall — do NOT merge findings across firewalls.5657The full verdict matrix is in `Quick reference — verdict thresholds` below;58deep Suricata, routing, and API internals are in the **Reference** section at59the end.6061## Mindset6263**One-line takeaway:** a perfectly authored rule group is worthless if the64route table sends traffic around the firewall, if fragments bypass the65stateless engine, or if TLS inspection is absent — always audit the data66path BEFORE the rules.6768AWS Network Firewall is a managed stateful network inspection service69deployed inside dedicated firewall subnets. Three properties make it unlike70SGs or NACLs:71721. **Routing is the enforcement gate.** Unlike a security group (always73 attached to an ENI), a Network Firewall only inspects traffic that the74 VPC route tables actually route through its ENIs. A route-table typo75 silently disables the entire firewall. This is ROUTING_GAP — the most76 operationally dangerous verdict because it produces a false sense of77 security.78792. **Two engines, two rule languages.** Stateless rules (5-tuple match,80 first-match-wins per group) and stateful rules (Suricata-compatible,81 flow-aware) are separate evaluation pipelines with different action82 vocabularies. The `StatelessDefaultActions` on the policy must include83 `aws:forward_to_sfe` to hand unmatched traffic to the stateful engine —84 if it is `aws:pass`, the stateful engine is effectively dead.85863. **TLS inspection is opt-in and domain rules are not enough.** Without a87 `TLSInspectionConfiguration`, stateful domain-list rules still match SNI88 in the ClientHello (plaintext) but Suricata `content` / payload matching89 is blind to all TLS traffic. Most modern traffic is HTTPS — a payload rule90 without TLS inspection is dead code.9192## Quick reference — verdict thresholds9394| Condition | Verdict | Step |95|---|---|---|96| Route table for a workload subnet does not route 0.0.0.0/0 (or a covered CIDR) through a firewall ENI | **ROUTING_GAP** | 1 |97| Return path (egress from firewall subnet) missing or asymmetric | **ROUTING_GAP** | 1 |98| `StatelessDefaultActions` is `aws:pass` (not `aws:forward_to_sfe`) | **PERMISSIVE_RULE** | 2 |99| `StatelessFragmentDefaultActions` is `aws:pass` (fragment bypass) | **PERMISSIVE_RULE** | 2 |100| `StatefulDefaultActions` is `aws:alert_strict` / `alert_established` (alert only, never blocks) | **PERMISSIVE_RULE** | 3 |101| Suricata `pass ip any any -> any any` or wildcard pass rule | **PERMISSIVE_RULE** | 4 |102| Stateless rule with all-wildcard 5-tuple + `aws:pass` action | **PERMISSIVE_RULE** | 4 |103| `STRICT_ORDER` group with a broad `pass` before a narrow `drop` (shadowed drop) | **PERMISSIVE_RULE** | 5 |104| `STRICT_ORDER` group with a `drop` before a `pass` (dead pass — functional bug) | **CONFIG_GAP** | 5 |105| `TLSInspectionConfigurationArn` absent + stateful rules use `content`/payload matching | **NO_TLS_INSPECTION** | 6 |106| Domain-list rule with `Targets: [HTTP_HOST]` only (HTTPS traffic never matches) | **CONFIG_GAP** | 6 |107| No logging configuration / `FlowLogs` + `AlertLogs` both disabled | **CONFIG_GAP** | 7 |108| All dimensions clean (scoped rules, drop defaults, TLS on, routing valid, logging on) | **OK** | 8 |109110See the ordered steps below for edge cases. Deep Suricata and routing111internals are in the [Expert edge cases](#expert-edge-cases) section.112113**Verdict priority (worst finding wins on aggregation):**114`PERMISSIVE_RULE > ROUTING_GAP > NO_TLS_INSPECTION > CONFIG_GAP > OK`115116## Pre-flight: firewall metadata gate (run before rule classification)117118| Attribute | Value | Effect on audit |119|---|---|---|120| `FirewallStatus` | `DELETING` | Firewall is being torn down — rules are irrelevant. VERDICT: `OK` with a note. |121| `FirewallPolicyResponse.FirewallPolicyStatus` | `DELETING` | Policy is mid-deletion. Flag as CONFIG_GAP — the policy is not in steady state. |122| `EncryptionConfiguration.Type` | unset / `NONE` | Firewall does not use customer-managed KMS for its own config. Note as CONFIG_GAP (defense-in-depth). |123| `SubnetMappings` | single AZ only | Single-AZ firewall — no AZ redundancy. Note as CONFIG_GAP (availability risk, not a security verdict driver). |124| `DeleteProtection` | `false` | Firewall can be deleted without unprotecting. Note in REMEDIATION. |125126**If the policy JSON is malformed** (invalid JSON, missing `StatefulRuleGroups`127or `StatelessRuleGroupReferences`), output:128129```text130FIREWALL: <name>131VERDICT: ERROR132REASON: Firewall policy document is malformed or missing required fields — cannot classify.133REMEDIATION: Re-fetch with `aws network-firewall describe-firewall-policy --firewall-policy-arn <arn> --output json`.134```135136**Pagination note:** `describe-rule-group` is per-group; there is no list137shortcut that returns rule bodies. When auditing a live account, iterate138`list-rule-groups --type STATEFUL --scope MANAGED` and `--scope CUSTOMER`139(paged via `--starting-token`), then call `describe-rule-group` per ARN. A140policy can reference more rule groups than the first page reveals.141142## Process — Classification logic (apply every step, aggregate worst)143144### Step 0: Expert knowledge — non-obvious Network Firewall behaviors145146→ Full Step-0 expert knowledge moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).147148### Step 1: Routing topology (ROUTING_GAP)149150The firewall is only effective if traffic actually traverses its ENIs. For151each workload subnet behind the firewall, verify:1521531. The subnet's route table has a default route (`0.0.0.0/0`, or the154 protected CIDR) whose target is a firewall ENI in the same AZ155 (`vpc-ec2-eni-...`), NOT the IGW or NAT gateway directly.1562. The firewall subnet's route table has a default route to the IGW (egress)157 or NAT gateway.1583. BOTH directions traverse the firewall (symmetric routing). An asymmetric159 path (request through firewall, return direct) prevents the stateful160 engine from tracking the flow — rules fire incorrectly or not at all.1614. In a multi-AZ deployment, each AZ has its own firewall ENI and the route162 table for each AZ points to the ENI in that AZ. A single route table163 pointing all AZs to one ENI creates cross-AZ inspection traffic that164 degrades performance and fails during AZ outages.165166**If any route table check fails → ROUTING_GAP.** This is evaluated first167because it invalidates all downstream rule analysis — if traffic does not168reach the firewall, the rules are irrelevant.169170### Step 2: Stateless default actions (PERMISSIVE_RULE)171172Extract `StatelessDefaultActions` and `StatelessFragmentDefaultActions` from173the policy:174175- **`StatelessDefaultActions: [aws:pass]`** → **PERMISSIVE_RULE**. All176 non-matching traffic bypasses the stateful engine. Every stateful rule177 group is dead code. The correct default is `[aws:forward_to_sfe]`.178- **`StatelessFragmentDefaultActions: [aws:pass]`** → **PERMISSIVE_RULE**.179 IP fragments bypass both engines — fragmentation evades every rule. The180 correct default is `[aws:forward_to_sfe]` or `[aws:drop]`.181- **`StatelessDefaultActions: [aws:drop]`** → **PERMISSIVE_RULE** if the182 intent is inspection (stateful rules never see traffic). This is only183 acceptable for an explicit deny-all posture — flag and let the operator184 confirm. If `aws:forward_to_sfe` is present alongside, traffic reaches185 stateful: OK for this dimension.186187### Step 3: Stateful default actions (PERMISSIVE_RULE)188189Extract `StatefulDefaultActions`:190191- **`aws:alert_strict` / `aws:alert_established`** → **PERMISSIVE_RULE**.192 The firewall logs non-matching traffic but NEVER blocks it — it is an IDS,193 not an IPS. For a security enforcement posture, this is a fail-open194 configuration.195- **`aws:drop_strict`** → OK. Every packet is evaluated independently; new196 drop rules take effect immediately. Recommended for enforcement.197- **`aws:drop_established`** → OK for steady state, but flag as a note:198 flows established before a new drop rule was added continue uninterrupted.199 For incident response, this is a gap — switch to `drop_strict`.200201### Step 4: Permissive rule detection (PERMISSIVE_RULE)202203For each stateful rule group, inspect the Suricata rules (or domain list):204205- **Wildcard pass:** `pass ip any any -> any any` (or `pass tcp any any ->206 any any`, `pass udp any any -> any any`) → **PERMISSIVE_RULE**. This passes207 all traffic of that protocol, overriding all drop rules in208 `DEFAULT_ACTION_ORDER` and shadowing later drops in `STRICT_ORDER`.209- **Broad HOME_NET pass:** `pass ip $HOME_NET any -> $EXTERNAL_NET any` passes210 all outbound traffic. Depending on posture, this may be intentional211 (egress monitoring) but it nullifies egress drop rules. Flag as212 PERMISSIVE_RULE unless the group's stated intent is "egress allow with213 selective blocks" AND those blocks are ordered before the pass in STRICT_ORDER.214- **Domain-list `Action: ALLOW`** on a broad domain (e.g., `*.com`, `*`) →215 **PERMISSIVE_RULE**. A wildcard-domain allow passes all matching HTTPS216 traffic regardless of payload.217218For each stateless rule group, inspect the 5-tuple rules:219220- **All-wildcard 5-tuple + `aws:pass`:** source `0.0.0.0/0`, destination221 `0.0.0.0/0`, ports `ANY`, protocol `ANY`, action `aws:pass` →222 **PERMISSIVE_RULE**. This is the stateless equivalent of a wildcard pass.223224### Step 5: Rule-group evaluation order (PERMISSIVE_RULE | CONFIG_GAP)225226For each stateful rule group with `RuleOrder: STRICT_ORDER`:227228- If a broad `pass` rule precedes a narrow `drop` rule covering overlapping229 traffic → **PERMISSIVE_RULE** (the drop is shadowed — traffic passes).230- If a broad `drop` precedes a narrow `pass` → **CONFIG_GAP** (the pass is231 dead — intended allow is broken; functional bug, not a security exposure).232- Domain-list groups are evaluated by the list's match semantics, not233 STRICT_ORDER — this check does not apply.234235For `DEFAULT_ACTION_ORDER` groups, all rules are evaluated and the most236severe action wins. Shadowing does not occur. If the group's `RuleOrder` is237unset, the default is `STRICT_ORDER` — assume strict when absent.238239### Step 6: TLS inspection (NO_TLS_INSPECTION | CONFIG_GAP)240241Check `FirewallPolicy.TLSInspectionConfigurationArn`:242243- **Absent (null/empty) + stateful rules use `content`/payload matching** →244 **NO_TLS_INSPECTION**. Payload rules cannot match TLS traffic — most modern245 flows. Domain-list rules still match SNI (plaintext), so SNI-based domain246 rules are NOT affected. This finding only fires when payload rules exist.247- **Absent + ONLY domain-list (SNI) rules** → OK for TLS (SNI does not need248 decryption). Note in REMEDIATION: "enable TLS inspection for deeper249 coverage".250- **Present + payload rules** → OK for this dimension. Note: verify the TLS251 certificate authority is trusted by clients and the cert is not expired252 (operational check).253- **Domain-list rule with `Targets: [HTTP_HOST]` only** → **CONFIG_GAP**.254 HTTPS traffic (the majority) never matches — the rule is dead for its255 likely intent. Add `TLS_SNI` to targets.256257### Step 7: Logging and observability (CONFIG_GAP)258259Check `DescribeLoggingConfiguration`:260261- **No logging configuration** (empty response) → **CONFIG_GAP**. Firewall262 decisions are invisible — no alert log, no flow log. Incident response and263 tuning are impossible without logs.264- **`AlertLogs` enabled but `FlowLogs` disabled** → **CONFIG_GAP** (minor).265 Alerts capture rule matches but not baseline traffic. Enable both for full266 visibility.267- **Both enabled** → OK for this dimension.268269### Step 8: Aggregation — worst finding wins270271Collect all findings from Steps 1-7. The final verdict is the highest-priority272verdict across all findings:273274```text275verdict = max(all_findings, key=lambda f: PRIORITY[f.verdict])276# PRIORITY: PERMISSIVE_RULE=5, ROUTING_GAP=4, NO_TLS_INSPECTION=3, CONFIG_GAP=2, OK=1277```278279If no findings, verdict is **OK**.280281## Output format (per firewall)282283```text284FIREWALL: <name>285VERDICT: PERMISSIVE_RULE | NO_TLS_INSPECTION | ROUTING_GAP | CONFIG_GAP | OK286REASON: <1-2 sentences citing the worst finding and its step number>287FINDINGS:288 - [PERMISSIVE_RULE] <finding description (Step N)>289 - [CONFIG_GAP] <finding description (Step N)>290REMEDIATION: <specific action per finding, or "None required" if OK>291```292293### Worked example — wildcard pass + missing TLS294295```text296FIREWALL: fw-prod-edge297VERDICT: PERMISSIVE_RULE298REASON: Stateful rule group "allow-baseline" contains `pass ip any any ->299any any` which passes all IP traffic (Step 4). TLS inspection is also absent,300making payload rules blind to HTTPS (Step 6).301FINDINGS:302 - [PERMISSIVE_RULE] Wildcard pass rule `pass ip any any -> any any` in group303 allow-baseline overrides all drop rules (Step 4)304 - [NO_TLS_INSPECTION] No TLSInspectionConfigurationArn on policy; 3 stateful305 content-matching rules cannot match TLS traffic (Step 6)306REMEDIATION:307 1. Remove or scope the wildcard pass rule to specific CIDRs/ports.308 2. Create and attach a TLS inspection configuration:309 aws network-firewall create-tls-inspection-config ...310 aws network-firewall associate-tls-inspection-config ...311```312313### Multi-firewall inputs314315When the input contains more than one firewall (e.g., a JSON array, a316spreadsheet export, or multiple ARNs), emit ONE verdict block per firewall.317Do NOT merge findings across firewalls — a shared policy is not a signal to318collapse verdicts. Process firewalls in input order; if two firewalls share a319policy, both still get independent blocks (the shared policy's defects appear320in each, with a `REMEDIATION` note flagging the blast radius).321322For very large inputs (>20 firewalls), batch by VPC or account and warn the323operator that the run may exceed a single model response — emit a final324`VERDICT: ERROR` summary block with the count of unprocessed firewalls325rather than silently truncating.326327### Pagination retry / backoff328329→ Retry/backoff details moved verbatim to [references/error-handling.md](references/error-handling.md).330331## Expert edge cases332333→ Edge-case catalog moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).334335## Anti-Patterns — NEVER336337- NEVER assume traffic reaches the firewall just because the firewall exists.338 Verify the route table. A firewall with perfect rules and a bypass route is339 equivalent to no firewall.340341- NEVER classify `StatelessDefaultActions: [aws:pass]` as OK. Without342 `aws:forward_to_sfe`, the stateful engine never sees traffic. Every343 stateful rule group is dead code. This is PERMISSIVE_RULE.344345- NEVER classify `StatelessFragmentDefaultActions: [aws:pass]` as OK.346 Fragments bypass both engines. Attackers fragment traffic to evade rules.347 This is PERMISSIVE_RULE.348349- NEVER treat Suricata `alert` as a blocking action. `alert` logs only — the350 traffic continues. Only `drop` and `reject` block. If the intent is351 enforcement, the action must be `drop`.352353- NEVER ignore `STRICT_ORDER` rule shadowing. A broad `pass` before a narrow354 `drop` in a strict-order group makes the drop unreachable. The traffic355 passes — this is PERMISSIVE_RULE, not a cosmetic ordering issue.356357- NEVER assume domain-list rules need TLS inspection. SNI matching works358 without decryption (the ClientHello is plaintext). Only Suricata `content`359 / payload rules require TLS inspection. Conflating the two produces false360 NO_TLS_INSPECTION findings.361362- NEVER recommend `reject` for internet-facing firewalls without noting the363 information-disclosure trade-off. `reject` sends TCP RST / ICMP unreachable,364 revealing an inline firewall. `drop` is silent.365366- NEVER edit a shared firewall policy without enumerating attached firewalls.367 `list-firewalls --firewall-policy-arn <arn>` reveals the blast radius. A368 rule change on a shared policy affects every attached firewall369 simultaneously.370371- NEVER trust `drop_established` during incident response. Existing flows372 survive new drop rules. Switch to `drop_strict` for IR to ensure immediate373 enforcement.374375- NEVER classify `StatefulDefaultActions: [aws:alert_strict]` as OK for an376 enforcement firewall. Alert-only is IDS mode — the firewall detects but377 never blocks. This is PERMISSIVE_RULE for enforcement postures.378379- NEVER assume `HOME_NET` includes peered VPCs. It is set to the firewall's380 VPC CIDR only. Peered VPCs are `$EXTERNAL_NET`. Rules referencing381 `$EXTERNAL_NET` may flag peered-VPC traffic as hostile.382383- NEVER propose additive rules without checking `ConsumedCapacity` vs384 `Capacity`. A group at capacity rejects new rules — the remediation command385 fails silently in automation.386387- NEVER cache `UpdateToken` across mutations. The token changes on every388 write. A stale token produces `InvalidTokenException`. Re-fetch before each389 mutation.390391- NEVER pin to "the latest" AWS-managed rule group without recording the392 version. Managed groups (ThreatSignatures, domain lists) update393 independently; a passing audit today can fail tomorrow when the managed394 group adds rules that interact with custom rules. Capture the managed395 group's version / `LastModifiedTime` in the audit output for396 reproducibility, and flag managed-group version drift between audits.397398- NEVER assume egress is inspected just because ingress is. Many policies399 scope rules tightly for inbound traffic but ship a `pass ip $HOME_NET any400 -> $EXTERNAL_NET any` baseline for outbound — data exfiltration and C2401 callbacks egress uninspected. Evaluate egress rules with the same rigor as402 ingress; a permissive egress baseline is PERMISSIVE_RULE, not OK.403404## Pre-flight safety checks (run before any remediation CLI)405406→ Pre-flight safety command gates moved verbatim to [references/diagnostic-commands.md](references/diagnostic-commands.md).407408## Remediation guidance409410**Ordering principle:** always prefer additive changes over destructive411changes. Add a `drop` rule before removing a `pass` rule — the drop takes412effect immediately while you investigate what the pass was protecting.413414### For PERMISSIVE_RULE — stateless default pass4154161. Change the default to forward to stateful:417 `aws network-firewall update-firewall-policy --firewall-policy-arn <arn> --firewall-policy '{"StatelessDefaultActions":["aws:forward_to_sfe"],...}'`4182. Verify the stateful engine now sees traffic via CloudWatch metrics419 (`DroppedPackets`, `PassedPackets`) — `PassedPackets` should drop as420 stateful rules begin evaluating.421422### For PERMISSIVE_RULE — fragment default pass4234241. Change fragment default to forward or drop:425 `aws network-firewall update-firewall-policy --firewall-policy-arn <arn> --firewall-policy '{"StatelessFragmentDefaultActions":["aws:forward_to_sfe"],...}'`4262. Verify no legitimate fragmented traffic breaks (some legacy protocols427 fragment; test in staging first).428429### For PERMISSIVE_RULE — wildcard stateful pass4304311. Remove or scope the wildcard pass rule. If the rule was intended to allow432 baseline traffic, replace `pass ip any any -> any any` with scoped CIDRs433 and ports.4342. If the rule group is `STRICT_ORDER`, ensure any `drop` rules are ordered435 BEFORE surviving `pass` rules.436437### For PERMISSIVE_RULE — alert-only stateful default4384391. Change to enforcement:440 `aws network-firewall update-firewall-policy --firewall-policy-arn <arn> --firewall-policy '{"StatefulDefaultActions":["aws:drop_strict"],...}'`4412. Monitor `DroppedPackets` for a spike — the transition from alert to drop442 may block previously-tolerated traffic.443444### For ROUTING_GAP4454461. Fix the route table for the affected subnet:447 `aws ec2 replace-route --route-table-id <rtb-id> --destination-cidr-block 0.0.0.0/0 --vpc-endpoint-eni-id <firewall-eni-id>`448 (or `--network-interface-id <eni-id>` depending on the ENI type).4492. Verify symmetric routing: check the return path route table also points450 through the firewall.4513. In multi-AZ, ensure each AZ's route table points to the ENI in that AZ.452453### For NO_TLS_INSPECTION4544551. Create a TLS inspection config with a CA certificate:456 `aws network-firewall create-tls-inspection-config --tls-inspection-config-name <name> --certificates ...`4572. Associate it with the policy:458 `aws network-firewall update-firewall-policy --firewall-policy-arn <arn> --firewall-policy '{"TLSInspectionConfigurationArn":"<arn>",...}'`4593. Distribute the CA cert to client trust stores BEFORE enabling, or TLS460 handshakes will fail.461462### For CONFIG_GAP — missing logging4634641. Enable both alert and flow logs:465 `aws network-firewall update-logging-configuration --firewall-arn <arn> --logging-configuration '{"LogDestinationConfigs":[{"LogType":"ALERT","LogDestinationType":"CloudWatchLogs","LogDestination":{"logGroup":"fw-alerts"}},{"LogType":"FLOW","LogDestinationType":"CloudWatchLogs","LogDestination":{"logGroup":"fw-flow"}}]}'`466467### For CONFIG_GAP — shadowed dead pass rule4684691. Reorder the rule group so `drop` rules precede `pass` rules for470 overlapping traffic (in STRICT_ORDER groups).4712. Update the rule group:472 `aws network-firewall update-rule-group --rule-group-arn <arn> --rule-group '{...reordered...}' --type STATEFUL --update-token <token>`473474### For OK4754761. No remediation required for the current posture.4772. Recommend verifying `drop_strict` vs `drop_established` matches the478 operational context (steady state vs incident response).4793. Recommend periodic review of managed rule group versions and custom rule480 `rev` numbers.481482## Error handling during remediation483484→ API error table moved verbatim to [references/error-handling.md](references/error-handling.md).485486## References (load on demand)487488- [references/advanced-patterns.md](references/advanced-patterns.md) — Step-0 expert knowledge, expert edge cases, recent AWS features 2024-2026489- [references/error-handling.md](references/error-handling.md) — pagination retry/backoff, remediation API error table490- [references/diagnostic-commands.md](references/diagnostic-commands.md) — pre-flight safety gates and backup CLI491492## Domain493494AWS CloudOps / Network Security & Intrusion Prevention.495496## AWS documentation497498- **AWS Network Firewall Developer Guide** — https://docs.aws.amazon.com/network-firewall/latest/developerguide/499- **Network Firewall security chapter** — https://docs.aws.amazon.com/network-firewall/latest/developerguide/security.html500- **Network Firewall API Reference** — https://docs.aws.amazon.com/network-firewall/latest/APIReference/501- **AWS CLI Network Firewall reference** — https://docs.aws.amazon.com/cli/latest/reference/network-firewall/502- **Suricata rule syntax (AWS-managed engine)** — https://docs.aws.amazon.com/network-firewall/latest/developerguide/suricata-rule-evaluation.html503- **TLS inspection configuration** — https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection.html504505## Changelog — Recent AWS features (2024-2026)506507→ Recent AWS features moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).