> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-cloudfront-not-configured-with-aws-web-application-firewall-v2-aws-wafv2.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS CloudFront not configured with AWS Web Application Firewall v2 (AWS WAFv2)

### Synopsis

| Field               | Value                                                                          |
| ------------------- | ------------------------------------------------------------------------------ |
| Rule Type           | Detection                                                                      |
| Finding Type        | AWS CloudFront not configured with AWS Web Application Firewall v2 (AWS WAFv2) |
| Finding ID          | 60000641                                                                       |
| Generates a Finding | This detection rule also generates a finding                                   |
| Severity            | Medium                                                                         |
| Category            | CONFIGURATION                                                                  |
| Cloud Providers     | AWS                                                                            |
| Platform Module     | CSPM                                                                           |
| Asset Types         | CLOUDFRONT\_DISTRIBUTION                                                       |

### Description

AWS CloudFront distributions lacking AWS WAFv2 protection are susceptible to various web application attacks. This misconfiguration exposes web applications to common threats like SQL injection, cross-site scripting (XSS), and denial-of-service (DoS) attacks.

CloudFront, a content delivery network (CDN), serves content globally, but without WAFv2, it lacks a crucial layer of security against malicious traffic. Malicious actors can exploit this lack of protection to compromise applications, steal data, or disrupt services. Failing to implement WAFv2 increases the attack surface and compromises the security posture of web applications.

The impact of this misconfiguration includes data breaches, application downtime, reputational damage, and financial losses. Implementing WAFv2 is a crucial best practice because it provides a robust security layer for filtering malicious requests before they reach the origin server. This proactive approach minimizes the risk of successful attacks.

To mitigate this, ensure every CloudFront distribution is configured with a WAFv2 web ACL. Define rules within the web ACL to block suspicious traffic based on criteria such as IP addresses, HTTP methods, or request content. Regularly review and update WAFv2 rules to address emerging threats and maintain effective protection.

### Remediation

1. Sign in to the AWS console
2. Go to the CloudFront Distributions Dashboard
3. Click on the reported web distribution
4. On 'General' tab, Click on 'Edit' button under 'Settings'
5. On 'Edit Distribution' page, from 'AWS WAF Web ACL' dropdown select WAFv2 ACL which you want to apply

   Note: In case no WAFv2 ACL found from 'AWS WAF Web ACL' dropdown list, Please follow below URL to create WAFv2 ACL:

   <https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-creating.html>
6. Click on 'Save changes'


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-cloudfront-not-configured-with-aws-web-application-firewall-v2-aws-wafv2.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
