Technical Tip: Deploying Fortinet AWS WAF Partner Rule Groups (AWS WAF v2)
| Description | This article describes how to setup and deploy Fortinet's AWS WAF Partner Rule Groups (AKA managed rule groups) on the AWS WAF v2 platform. |
| Scope | AWS WAF Partner Rule Groups |
| Solution | AWS WAF Partner Rule Groups are sets of subscription-based web application firewall (WAF) rules/signatures offered by third-party vendors that can be used to augment the basic WAF protections offered by Amazon’s WAF product. For more information on AWS WAF, refer to the following document provided by AWS: AWS WAF
Note that AWS WAF has two versions, those being AWS WAF v1/'Classic' and AWS WAF v2. Notable feature improvements of AWS WAF v2 over AWS WAF v1-based groups include the following:
For information regarding the legacy AWS WAF 'Classic' version of Fortinet's managed rule groups, refer to the following KB article: Technical Tip: Deploying Fortinet AWS WAF Partner Rule Groups (AWS WAF v1/'Classic')
Fortinet currently offers two rulesets for AWS WAF v2 that are based on the FortiWeb WAF service signatures and receive regular updates by the FortiGuard Labs team:
For technical assistance/support regarding these managed rule groups, contact Fortinet directly by email at awswaf@fortinet.com.
Configuring Fortinet Managed Rules for AWS WAF:
It is important to understand that managed rule groups do not require administrators to deploy new VM instances to AWS. Instead, managed rule groups are deployed as modules that can be installed into AWS protection packs (AKA web ACLs) to protect AWS resources, just like the standard AWS WAF solution. Below is an example of deploying a Fortinet AWS WAF Partner Rule Group.
Subscribe to the Service:
In AWS Marketplace, search for 'Fortinet Managed Rules for AWS WAF', or use the links provided above. Ensure that an AWS WAF v2 listing is chosen, rather than an AWS WAF v1/Classic listing, then select the Continue to Subscribe button:
Review the pricing information, then select Subscribe to subscribe to the module:
Add the managed rule group to an AWS Protection Pack (web ACL):
Navigate to the AWS WAF & Shield application, then select AWS WAF -> Protection Packs (web ACLs). Create or select a protection pack, then navigate to the Rules tab and choose Add managed rule groups:
Find the section labelled 'Fortinet managed rule groups' and enable the Add to web ACL toggle, followed by selecting Add rules.
After committing the change, a new entry labelled 'Fortinet-all_rules' will be visible under the protection pack/web ACL.
Verification:
There are two typical methods available for confirming that the new Fortinet managed rule group for AWS WAF is working correctly:
Method 1: Access testing using HTTP/HTTPS:
Use a tool like cURL or a web browser to access the WAF-protected application using the following URL and test path. This should trigger an HTTP 403 Forbidden response/block page to be sent back, indicating that WAF denied the request:
http://<domain_name_here>/?a=%3Cscript%3E OR https://<domain_name_here>/?a=%3Cscript%3E
Method 2: Checking Attack Logs:
Before testing, ensure that logging has been enabled in the protection pack (web ACL). It may be necessary to create a log group first in order to receive the generated logs (note that the log group name should start with 'aws-waf-logs-'):
Once logging has been enabled, use Method 1 (or similar) to trigger another block page. This should result in AWS log entries being generated for these block events.
Utilizing versioning support for Fortinet Managed Rules for AWS WAF:
AWS WAF started supporting versioning as of November 2021, and this allows users to switch between different versions of a given managed rule group as they are updated over time. This can be particularly useful for environments that need to lock-in a particular version for validation and for clients who are wary of new signature updates causing unexpected changes in traffic handling.
Take care when specifying a static version of a managed rule group, as the ruleset will not be updated to address new threats until an administrator manually changes the version again. To specify a particular ruleset version using the versioning system, use the following steps:
Navigate back to the AWS WAF & Shield application, then select AWS WAF -> Protection Packs (web ACLs). Select the protection pack to modify, navigate to the Rules section, then select the 'Fortinet-all_rules' entry and select Edit.
Use the ruleset's Version dropdown menu to select the version. Three version options will be available for the Complete OWASP Top 10 ruleset:
Simple Notification Service (SNS) support for Fortinet Managed Rules for AWS WAF:
An SNS topic exists that users can subscribe to in order to receive notices of updates and new releases for Fortinet managed rule groups. The following Amazon Resource Name (ARN) can be used to subscribe to the topic:
arn:aws:sns:us-east-1:040422370703:Fortinet_OWASP_Top_10_Notifications
It is also possible to find the SNS topic ARN for a given managed rule group in the same page as the Version setting:
Currently there are two types of notifications published by Fortinet via these SNS topics:
Additional Information:
Related documents: |















