π‘οΈ AWS Network Firewall Rule Group Stateless Rules are emptyπ’
- Contextual name: π‘οΈ Rule Group Stateless Rules are emptyπ’
- ID:
/ce/ca/aws/network-firewall/rule-group-stateless-rules - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
RELIABILITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
Descriptionβ
Descriptionβ
This policy identifies AWS Network Firewall Stateless Rule Groups that are empty and contain no defined rules.
Rationaleβ
AWS Network Firewall stateless rule groups are designed to perform filtering based on source IP, source port, destination IP, destination port, and protocol. When a stateless rule group is associated with a firewall policy but contains no rules, it provides no effective security control. Empty rule groups may create a false sense of protection and unnecessarily complicate firewall configurations, making them more difficult to manage, audit, and maintain.
Auditβ
This policy flags an AWS NetworkFirewall Rule Group with a STATELESS
TypeasINCOMPLIANTif itsStateless Ruleslist is empty.STATEFUL Rule Groups and Rule Groups that are not in ACTIVE
Rule Group Statusare marked asINAPPLICABLE.
Remediationβ
Remediationβ
Add Functional Rules to the Stateless Rule Groupβ
To ensure that a stateless rule group provides effective traffic filtering, add one or more functional stateless rules. Stateless rule groups without rules do not enforce any security controls and should be updated or removed.
From Command Lineβ
When updating a stateless rule group, you must provide the current
UpdateTokento prevent conflicting updates.First, retrieve the current update token for the rule group:
aws network-firewall describe-rule-group \
--rule-group-arn {{rule-group-arn}} \
--query UpdateToken \
--output textNext, update the stateless rule group by adding at least one stateless rule:
aws network-firewall update-rule-group \
--update-token {{update-token}} \
--rule-group-arn {{rule-group-arn}} \
--rule-group '{
"RulesSource": {
"StatelessRulesAndCustomActions": {
"StatelessRules": [
{
"Priority": 100,
"RuleDefinition": {
... [see more](remediation.md)