The default stateless action for Network Firewall policies should be drop or forward for full packets
Checks that the Network Firewall policy's default stateless action for full packets is Drop or Forward to stateful rule groups, not Pass, so a packet that no stateless rule matches is not let through without inspection.
- service
- NetworkFirewall
- severity
- Medium
- scope
- evaluated in every region
How to fix it
- Can break clients: Unmatched packets stop passing on every firewall using this policy: Drop blocks them, and Forward to stateful rule groups lets the stateful rules decide.
- Affects another check: Use the same actions for all packets also sets the action for fragmented packets, which NetworkFirewall.5 checks.
In the console
VPC → Network Firewall → Firewall policies → the policy → Stateless default actions
- Stateless default actions
- Forward to stateful rule groups or Drop for full packets, or for all packets; Pass fails
With the AWS CLI
- Overwrites existing settings: update-firewall-policy replaces the whole policy document, so start from describe-firewall-policy, which also returns the update token, and change only the default actions.
aws network-firewall update-firewall-policy --firewall-policy-arn <policy-arn> --update-token <update-token> --firewall-policy file://firewall-policy.json --region <region>With Terraform
resource "aws_networkfirewall_firewall_policy" "this" {
name = var.policy_name
firewall_policy {
stateless_default_actions = ["aws:forward_to_sfe"]
stateless_fragment_default_actions = ["aws:forward_to_sfe"]
}
}
See which of your accounts this check is failing on.
Book a live scan