turbot/aws_compliance

Query: networkfirewall_firewall_policy_default_stateless_action_check_full_packets

Usage

powerpipe query aws_compliance.query.networkfirewall_firewall_policy_default_stateless_action_check_full_packets

SQL

select
arn as resource,
case
when (
not (firewall_policy -> 'StatelessDefaultActions') ? 'aws:drop'
and not (firewall_policy -> 'StatelessDefaultActions') ? 'aws:forward_to_sfe'
) then 'alarm'
else 'ok'
end as status,
case
when (
not (firewall_policy -> 'StatelessDefaultActions') ? 'aws:drop'
and not (firewall_policy -> 'StatelessDefaultActions') ? 'aws:forward_to_sfe'
) then title || ' stateless action is neither drop nor forward for full packets.'
else title || ' stateless action is either drop or forward for full packets.'
end as reason,
region,
account_id
from
aws_networkfirewall_firewall_policy;

Controls

The query is being used by the following controls: