Skip to main content

Generating Amazon Web Services WAF Rules From Invicti

This document is for:
Invicti Standard

Amazon Web Services Web Application Firewall (AWS WAF) enables you to monitor the HTTP and HTTPS requests that are forwarded to an Amazon CloudFront, Application Load Balancer or API Gateway. With AWS WAF, you can create rules for traffic to allow or block requests. This function is only available in Invicti Standard.

AWS WAF Integration

If you can't immediately fix all vulnerabilities that Invicti has detected, you can cover them up and defer fixing them until another time. This is achieved by exporting Invicti’s findings as rules for the AWS WAF.

warning

Since AWS WAF has limits for Regex patterns, be careful not to exceed them, otherwise Invicti cannot create the rule.For more information about AWS WAF, see AWS WAF, AWS Firewall Manager, and AWS Shield Advanced and AWS WAF Limits.

See the Web Application Firewalls before reading this document. It describes WAF rule creation process and how to configure Auto WAF Rule.

This topic explains how to configure Invicti Standard to send a detected vulnerability to AWS WAF.

AWS WAF Fields

The table lists and describes the AWS WAF fields in the Web Application Firewall tab.

FieldDescription
AddClick to add an integration.
DeleteClick to delete the integration and clear all fields.
Test SettingsClick to confirm that Invicti Standard can connect to the configured system.
ActionThis section contains general fields about the Send To Action.
Display NameThis is the name of the configuration that will be shown on menus.
MandatoryThis section contains fields that must be completed.
Access KeyThis is the access key of the user.
Secret KeyThis is the secret key of the user.
Web ACL IDThis is the Web Access List Control identifier.
OptionalThis section contains optional fields.
RegionThis is the region name, where the Web ACL is located.

How to Configure AWS WAF Rules in Invicti Standard

  1. Open Invicti Standard.
  2. From the Home tab on the ribbon, click Options. The Options dialog is displayed.
  3. Click Web Application Firewall.
AWS WAF Integration
  1. From the Add dropdown, select AWS. The AWS fields are displayed.
AWS WAF Integration
  1. In the Mandatory section, complete the connection details:
    • Access Key
    • Secret Key
    • Web ACL ID
  2. In the Optional settings you can specify:
    • Region
  1. Click Test Settings to confirm that Invicti Standard can connect to the configured system and validate the configuration details. The WAF Settings Test dialog is displayed to confirm that the settings have been validated.
AWS WAF Integration

How to Generate AWS WAF Rules from Invicti Standard

  1. Open Invicti Standard.
  2. From the ribbon, select the File tab. Local Scans are displayed. Double-click the relevant scan to display its results.
AWS WAF Integration
  1. In the Issues panel, right click the vulnerability you want to export and select AWS WAF Rules. (Alternatively, from the ribbon, click the Vulnerability tab, then AWS WAF Rules.) A confirmation message and link is displayed at the bottom of the screen.
AWS WAF Integration
  1. Click the AWS rule is created for the selected vulnerability. Click to open in the default browser. link to view the newly-created rule.
  2. The rule is automatically created in the AWS WAF. You can view it in AWS WAF’s Rules tab.
AWS WAF Integration
  1. Retest the vulnerability from the ribbon, click the Vulnerability tab, then Retest. If the WAF blocks the request, the status code of the response is 403-Forbidden and Invicti displays a message: Vulnerability seems to be fixed and removed from the report.

Need help?

Invicti Support team is ready to provide you with technical help. Go to Help Center

Was this page useful?