More Info:

This rule verifies whether AWS AppSync resources are associated with AWS WAF (Web Application Firewall) to protect against common web exploits and security vulnerabilities. Associating AppSync with WAF allows for the enforcement of custom access control rules and provides an additional layer of security against malicious traffic

Risk Level

High

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To associate AWS AppSync with AWS WAF (Web Application Firewall) in AWS console, follow these steps:

  1. Sign in to the AWS Management Console: Go to https://aws.amazon.com/ and sign in to the AWS Management Console using your credentials.

  2. Navigate to AWS AppSync service: Click on the “Services” dropdown menu at the top of the console, search for “AppSync” in the search bar, and click on “AWS AppSync” to open the AWS AppSync console.

  3. Select the AppSync API: In the AWS AppSync console, select the API that you want to associate with AWS WAF from the list of APIs displayed.

  4. Click on “Settings” tab: Once you have selected the API, click on the “Settings” tab in the left-hand menu to configure the settings for the selected API.

  5. Enable AWS WAF: In the “Settings” tab, look for the “Security” section and find the option to enable AWS WAF. Click on the “Edit” button next to the AWS WAF option.

  6. Associate AWS WAF with the API: In the AWS WAF configuration settings, you can choose to associate an existing AWS WAF web ACL with the API or create a new web ACL. Select the appropriate option based on your requirements.

  7. Configure AWS WAF settings: If you are creating a new web ACL, follow the on-screen instructions to configure the AWS WAF settings such as rules, conditions, and actions to protect your API from common web exploits and attacks.

  8. Save the changes: After configuring the AWS WAF settings, click on the “Save” or “Update” button to associate AWS WAF with the selected AppSync API.

  9. Verify the association: Once the changes are saved, verify that AWS WAF is successfully associated with the AWS AppSync API by checking the settings and configurations in the AWS AppSync console.

By following these steps, you can remediate the misconfiguration by associating AWS AppSync with AWS WAF in the AWS console to enhance the security of your API.