

# Copying threat signature rules into your own Amazon Network Firewall rule group

Network Firewall provides full visibility into the threat signature rule content of its Amazon managed rules. This enables you to choose between using the rule group as-is in your firewall policy or copying the rule group's rules into your own rule group and customizing them for your specific needs. 

**Important**  
Copied rules don't automatically inherit rule updates that Amazon makes to managed rule group rules. Subscribe to Amazon SNS topics for updates made to the originating rule group. For more information, see [Notifications for threat signature rule group updates](using-managed-rule-groups-sns.md). You're responsible for validating rule changes and making sure that your own rules are up-to-date.

To copy a managed threat signature rule group's rules, create a local copy of the rule group rules, make your modifications, then create your own rule group. The following procedure explains how to copy a threat signature rule group's rules, and then create your own rule group.

------
#### [ Console ]

**To copy a managed threat signature rule group's rules using the console**

1. Sign in to the Amazon Web Services Management Console and open the Amazon VPC console at [https://console.amazonaws.cn/vpc/](https://console.amazonaws.cn/vpc/).

1. In the navigation pane, under **Network Firewall**, choose **Network Firewall rule groups**.

1. In the **Amazon managed rule groups** tab, under **Threat signature rule groups**, select a rule group to view its details.

1. Choose **Duplicate rule group** to copy the rules into your own rule group. You can modify the rule group details, and then choose **Create rule group**.

   Alternatively, you can choose **Copy** to copy the rules to your clipboard. You can then modify them in a text editor, or create a new rule group and paste the rules into your own rule group. For a Classic Network Firewall policy, paste the rules into a stateful rule group; see [Creating a stateful rule group](rule-group-stateful-creating.md). For a Next Generation policy, paste the rules into an IPS rule group, which uses the same Suricata compatible syntax; see [Working with IPS rule groups in Amazon Network Firewall](ips-rule-groups.md) and [Creating a rule group for a Next Generation policy](rule-groups-v2-creating.md).

------
#### [ CLI ]

**To copy a managed threat signature rule group's rules using the Amazon CLI**

1. Run `aws network-firewall list-rule-groups --scope MANAGED --managed-type AWS_MANAGED_THREAT_SIGNATURES` to filter the Amazon managed threat signature rule groups.

1. In the following command, replace {{rulegroup-arn}} with the Amazon Resource Name (ARN) of the threat signature managed rule group that you'd like to copy:

   `aws network-firewall describe-rule-group --rule-group-arn {{rulegroup-arn}}`.

   Network Firewall returns the rule group details in the response, which you can parse and modify in your text editor. Then, you can use the modified rule group details to create your own rule group using the command [create-rule-group](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/network-firewall/create-rule-group.html).

------