AWS network-firewall: Restructure stateful rule group creation steps, add KMS and IP validation options
Summary
Reorganizes the console workflow for creating stateful rule groups, adding a Rule group version (Classic/Next Generation) choice, rule group format options (Visual rule builder, Text rule builder, Domain list), expanded IP set references (container associations), a new 'Enable Route 53 Resolved IP validation' option for domain lists, capacity sizing presets, and renumbered Customer managed key (encryption at rest) and tagging steps.
Security assessment
The change is a documentation reorganization of the stateful rule group creation flow, but it retains/documents the Customer managed key option referencing KMS encryption at rest and adds a security-relevant 'Enable Route 53 Resolved IP validation' control plus expanded IP set references. These document encryption and traffic-validation configuration with security impact, but there is no evidence of addressing a specific vulnerability or incident.
Evidence
+ 3. (Optional) Under **Customer managed key** , toggle the **Customize encryption settings** option to configure your customer managed key. For more information about this option, see [Encryption at rest with AWS Key Management Service](./kms-encryption-at-rest.html).
Diff
diff --git a/network-firewall/latest/developerguide/rule-group-stateful-creating.md b/network-firewall/latest/developerguide/rule-group-stateful-creating.md index 77a207e..5e00284 100644 --- a//network-firewall/latest/developerguide/rule-group-stateful-creating.md +++ b//network-firewall/latest/developerguide/rule-group-stateful-creating.md @@ -29 +29 @@ You can't change the name after you create the rule group. - 3. For **Capacity** , set the maximum capacity you want to allow for the stateful rule group, up to the maximum of 50,000. You can't change this setting after you create the rule group. For information about how to calculate this, see [Setting rule group capacity in AWS Network Firewall](./nwfw-rule-group-capacity.html). For information about the maximum setting, see [AWS Network Firewall quotas](./quotas.html). + 3. (Optional) Under **Customer managed key** , toggle the **Customize encryption settings** option to configure your customer managed key. For more information about this option, see [Encryption at rest with AWS Key Management Service](./kms-encryption-at-rest.html). @@ -31,3 +31 @@ You can't change the name after you create the rule group. - 4. (Optional) Under **Customer managed key** , toggle the **Customize encryption settings** option to configure your customer managed key. For more information about this option, see [Encryption at rest with AWS Key Management Service](./kms-encryption-at-rest.html). - - 5. (Optional) Under **Tags** , enter a key and optional value for any tag that you want added to this rule group. Tags help you organize and manage your AWS resources. For more information about tagging your resources, see [Tagging AWS Network Firewall resources](./tagging.html). + 4. (Optional) Under **Tags** , enter a key and optional value for any tag that you want added to this rule group. Tags help you organize and manage your AWS resources. For more information about tagging your resources, see [Tagging AWS Network Firewall resources](./tagging.html). @@ -37,3 +35 @@ You can't change the name after you create the rule group. - 6. On the **Choose rule group type** page, for the **Rule group format** , choose **Stateful rule group**. - -For **Rule evaluation order** , choose the way that your stateful rules are ordered for evaluation: + 6. On the **Choose rule group type** page, do the following: @@ -41 +37 @@ For **Rule evaluation order** , choose the way that your stateful rules are orde - * Choose **Strict order** (recommended) to provide your rules in the order that you want them to be evaluated. You can then choose one or more default actions for packets that don't match any rules. + 1. For **Rule group version** , choose **Classic**. To create a rule group for a Next Generation policy instead, see [Creating a rule group for a Next Generation policy](./rule-groups-v2-creating.html). @@ -43 +39 @@ For **Rule evaluation order** , choose the way that your stateful rules are orde - * Choose **Action order** to have the stateful rules engine determine the evaluation order of your rules. The default action for this rule order is **Pass** , followed by **Drop** , **Reject** , and **Alert** actions. This option was previously named **Default** order. + 2. For **Rule group type** , select **Stateful rule group**. To create a stateless rule group, see [Creating a stateless rule group](./rule-group-stateless-creating.html). @@ -45 +41 @@ For **Rule evaluation order** , choose the way that your stateful rules are orde -For more information about stateful default actions for rule groups, see [Action order](./suricata-rule-evaluation-order.html#suricata-default-rule-evaluation-order). + 3. For **Rule group format** , select **Visual rule builder** , **Text rule builder** , or **Domain list**. @@ -47 +43 @@ For more information about stateful default actions for rule groups, see [Action -For more information about stateful rule groups, see [Working with stateful rule groups in AWS Network Firewall](./stateful-rule-groups-ips.html). + 4. For **Rule evaluation order** , select the way that your stateful rules are ordered for evaluation: @@ -49 +45 @@ For more information about stateful rule groups, see [Working with stateful rule - 7. Choose **Next**. + * Select **Strict order** (recommended) to provide your rules in the order that you want them to be evaluated. You can then select one or more default actions for packets that don't match any rules. @@ -51 +47 @@ For more information about stateful rule groups, see [Working with stateful rule - 8. Select the type of rule group that you want to add, from the **Stateful rule group options**. The rest of your rule group specifications depend on the option you choose. + * Select **Action order** to have the stateful rules engine determine the evaluation order of your rules. The default action for this rule order is **Pass** , followed by **Drop** , **Reject** , and **Alert** actions. This option was previously named **Default** order. @@ -53 +49 @@ For more information about stateful rule groups, see [Working with stateful rule -###### Note +For more information about stateful default actions for rule groups, see [Action order](./suricata-rule-evaluation-order.html#suricata-default-rule-evaluation-order). For more information about stateful rule groups, see [Working with stateful rule groups in AWS Network Firewall](./stateful-rule-groups-ips.html). @@ -55 +51 @@ For more information about stateful rule groups, see [Working with stateful rule -If you need to specify options that aren't available through the console, you can use one of the APIs or AWS CloudFormation. For information, see [StatefulRule](https://docs.aws.amazon.com/network-firewall/latest/APIReference/API_StatefulRule.html) in the _AWS Network Firewall API Reference_ and [AWS::NetworkFirewall::RuleGroup StatefulRule](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulrule.html) in the _AWS CloudFormation User Guide_. + 7. Choose **Next**. @@ -57 +53 @@ If you need to specify options that aren't available through the console, you ca - * (Option) **Standard stateful rule** – Entry form for a basic Suricata rule. + 8. (Optional) If you chose **Visual rule builder** or **Text rule builder** , on the **Rule group variables** page, define variables that your rules can reference, then choose **Next**. This page doesn't appear for the **Domain list** format. @@ -59 +55 @@ If you need to specify options that aren't available through the console, you ca -For each rule that you want in your rule group, specify the following information and then choose **Add rule**. Your added rules are listed in the **Rules** list. + * Under **Rule variables** , enter variables and values for **IP set variables** and **Port variables**. @@ -61 +57 @@ For each rule that you want in your rule group, specify the following informatio - * Choose the protocol and source and destination settings for your rule. + * Under **IP set references** , choose **Add IP set reference** , enter an IP set variable name, and select an IP set reference ID. The IP set reference ID corresponds to the resource ID of the IP set Amazon Resource Name (ARN) that you want to reference. Network Firewall supports Amazon VPC managed prefix lists, resource groups, address lists, and container associations as IP set references. For more information, see [Referencing Amazon VPC prefix lists](./rule-groups-ip-set-references.html#rule-groups-referencing-prefix-lists). @@ -63 +59 @@ For each rule that you want in your rule group, specify the following informatio - * For **Traffic direction** , choose whether to apply the rule to any direction or only for traffic that flows forward, from the specified source to the specified destination. + 9. On the **Configure rules** page, add your rules. The available controls depend on the rule group format that you chose. @@ -67,51 +63 @@ For each rule that you want in your rule group, specify the following informatio -Network Firewall doesn't automatically add the direction keyword `to_server`, and will inspect all the packets in the flow, irrespective of the flow state. - - * For **Action** , select the action that you want Network Firewall to take when a packet matches the rule settings. For information on these options, see [Actions for stateful rules](./rule-action.html#rule-action-stateful). - -To define IP sets and ports as variables that you can reference in your rules: - - * In the **Rule variables** section, enter variables and values for **IP set variables** and **Port variables**. - -To add one or more references to IP set resources, such as Amazon VPC prefix lists, that you can use as variables in your rules: - - * In the **IP set reference** section, enter a **IP set variable name** and select an **IP set reference ID**. The **IP set reference ID** corresponds to the resource ID of the IP set Amazon Resource Name (ARN) that you want to reference. Network Firewall currently supports Amazon VPC prefix lists and resource groups as IP set references. For more information about working with IP set references in Network Firewall, see [Referencing Amazon VPC prefix lists](./rule-groups-ip-set-references.html#rule-groups-referencing-prefix-lists). - -For enhanced filtering options, you can specify the following: - -**Geographic IP filtering -** To filter traffic based on country: - - * Choose to enable **Geographic IP filtering** - - * Select the matching option: - - * Match only selected countries - - * Match all but selected countries - - * Choose the **Geographic IP traffic direction** (source, destination, or any) - - * Choose the **Country codes** from the dropdown list - - * For more information, see [Geographic IP filtering in Suricata compatible AWS Network Firewall rule groups](./rule-groups-geo-ip-filtering.html) - -**URL and Domain Category filtering -** To filter traffic based on web content categories: - - * Choose to enable **URL and Domain Category filtering** - - * Select the matching option: - - * Match all selected categories - - * Match all unselected categories - - * Choose the **AWS category type:** - - * aws_url_category (for HTTP protocol, requires TLS inspection for HTTPS) - - * aws_domain_category (for TLS and HTTP protocols) - - * Choose the **categories** from the dropdown list - - * For more information, see [URL and Domain Category Filtering in Suricata compatible AWS Network Firewall rule groups](./rule-groups-url-filtering.html) - -For information about these rules, see [Standard stateful rule groups in AWS Network Firewall](./stateful-rule-groups-basic.html). +If you need to specify options that aren't available through the console, you can use one of the APIs or AWS CloudFormation. For information, see [StatefulRule](https://docs.aws.amazon.com/network-firewall/latest/APIReference/API_StatefulRule.html) in the _AWS Network Firewall API Reference_ and [AWS::NetworkFirewall::RuleGroup StatefulRule](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulrule.html) in the _AWS CloudFormation User Guide_. @@ -119 +65 @@ For information about these rules, see [Standard stateful rule groups in AWS Net - * (Option) **Domain list** – Specify the following information. + * **Visual rule builder** – In the **Standard stateful rules** section, for **Rule template** , select **Custom rule** to build a rule from scratch, or select a template such as **Domain Filtering** , **Geographic IP Filtering** , or **Category matching** to prefill a common rule. Select the **Protocol**. For **Source** , **Source port** , **Destination** , and **Destination port** , keep **Any** or select **Custom** and enter values. For **Action** , select the action that you want Network Firewall to take when a packet matches the rule. For information on these options, see [Actions for stateful rules](./rule-action.html#rule-action-stateful). Optionally, expand **Rule options** to review or add Suricata keyword and setting pairs. Choose **Add rule**. The rule appears in the **Rules** table. @@ -123 +69,3 @@ For information about these rules, see [Standard stateful rule groups in AWS Net -You can create domain list rules from traffic analysis reports. For information, see [Creating stateful rule groups from reports](./reporting.html#creating-stateful-rule-groups-from-reports). +Network Firewall doesn't automatically add the direction keyword `to_server`, and inspects all the packets in the flow, irrespective of the flow state. + + * **Text rule builder** – In the **Suricata compatible rule string** section, enter your rules, one rule per line. @@ -125 +73 @@ You can create domain list rules from traffic analysis reports. For information, - * For **Domain name source** , enter the domain names that you want to inspect for, one name specification per line. Valid domain name specifications are the following: + * **Domain list** – For **Domain names** , enter the domain names that you want to inspect for, one name specification per line. Valid domain name specifications are the following: @@ -131,7 +79 @@ You can create domain list rules from traffic analysis reports. For information, - * For **CIDR ranges** , choose whether to inspect default or custom ranges. - - * For **Protocols** , choose the protocols you want to inspect. - - * For **Action** , select the list type that you are creating, either **Allow** or **Deny**. For information on these options, see [Actions for stateful rules](./rule-action.html#rule-action-stateful). - -For information about stateful domain name rules, see [Stateful domain list rule groups in AWS Network Firewall](./stateful-rule-groups-domain-names.html). +(Optional) Select **Enable Route 53 Resolved IP validation** to validate destination IP addresses against the domains that Amazon Route 53 resolved. For **CIDR ranges** , select whether to inspect default or custom ranges. For **Protocols** , select the protocols you want to inspect. For **Action** , select **Allow** or **Deny**. For information on these options, see [Actions for stateful rules](./rule-action.html#rule-action-stateful). @@ -139,7 +81 @@ For information about stateful domain name rules, see [Stateful domain list rule - * (Option) **Suricata compatible rule string** - -To define IP sets and ports as variables that you can reference in your rules: - - * In the **Rule variables** section, enter variables and values for **IP set variables** and **Port variables**. - -To add one or more references to IP set resources, such as Amazon VPC prefix lists, that you can use as variables in your rules: +###### Note @@ -147 +83 @@ To add one or more references to IP set resources, such as Amazon VPC prefix lis - * In the **IP set reference** section, enter a **IP set variable name** and select an **IP set reference ID**. The **IP set reference ID** corresponds to the resource ID of the IP set Amazon Resource Name (ARN) that you want to reference. Network Firewall currently supports Amazon VPC prefix lists and resource groups as IP set references. For more information about working with IP set references in Network Firewall, see [Referencing Amazon VPC prefix lists](./rule-groups-ip-set-references.html#rule-groups-referencing-prefix-lists). +You can create domain list rules from traffic analysis reports. For information, see [Creating stateful rule groups from reports](./reporting.html#creating-stateful-rule-groups-from-reports). @@ -149 +85 @@ To add one or more references to IP set resources, such as Amazon VPC prefix lis -Paste your rules into the text box. +Under **Capacity** , for **Capacity sizing** , select **Allow room to grow** (recommended), **Match current rules** , or **Custom capacity** , up to the maximum of 50,000. You can't change the capacity after you create the rule group. For information about how to calculate this, see [Setting rule group capacity in AWS Network Firewall](./nwfw-rule-group-capacity.html). For information about the maximum setting, see [AWS Network Firewall quotas](./quotas.html). @@ -151 +87 @@ Paste your rules into the text box. - 9. Choose **Next**. + 10. Choose **Next**. @@ -153 +89 @@ Paste your rules into the text box. - 10. Review the settings that you've provided for the rule group, then choose **Create stateful rule group**. + 11. On the **Review and create** page, review the settings that you've provided for the rule group, and then choose **Create**.