> 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-api-gateway-rest-api-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 API Gateway REST API not configured with AWS Web Application Firewall v2 (AWS WAFv2)

### Synopsis

| Field               | Value                                                                                    |
| ------------------- | ---------------------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                                |
| Finding Type        | AWS API Gateway REST API not configured with AWS Web Application Firewall v2 (AWS WAFv2) |
| Finding ID          | 60000640                                                                                 |
| Generates a Finding | This detection rule also generates a finding                                             |
| Severity            | Medium                                                                                   |
| Category            | CONFIGURATION                                                                            |
| Cloud Providers     | AWS                                                                                      |
| Platform Module     | CSPM                                                                                     |
| Asset Types         | AMAZON\_API\_GATEWAY\_REST\_API\_STAGE                                                   |
| ATT\&CK Tactic      | TA0112 (TA0112)                                                                          |
| ATT\&CK Technique   | T1686.001 (T1686.001)                                                                    |

### Description

AWS API Gateway REST APIs lacking AWS WAFv2 protection are vulnerable to various application layer attacks. This misconfiguration exposes APIs to malicious traffic, potentially leading to data breaches, service disruptions, or unauthorized access.

AWS API Gateway allows developers to create and manage RESTful APIs. However, without AWS WAFv2 enabled, these APIs are unprotected against common web attacks like SQL injection, cross-site scripting (XSS), and denial-of-service (DoS) attempts. Malicious actors can exploit these vulnerabilities to gain unauthorized access, manipulate data, or disrupt service availability.

The impact of this misconfiguration can range from minor service interruptions to significant data breaches and financial losses. Implementing AWS WAFv2 is crucial for protecting APIs from malicious traffic. Its proactive defense mechanisms significantly reduce the risk of exploitation and maintain the integrity and availability of the API.

To mitigate this risk, ensure that all AWS API Gateway REST APIs are configured with AWS WAFv2. Define appropriate rules and criteria within the WAF web ACL to block malicious requests effectively. Regularly review and update these rules to adapt to evolving threat landscapes.

### Remediation

**Manual steps:**

Amazon API Gateway REST API Stage - Manual remediation steps:

1. Log in to the AWS console
2. Make sure your the reported API Gateway REST API requires WAF based on your requirement and Note down the API Gateway REST API name

Follow steps given in below URL to associate API Gateway REST API to WAF Web ACL ,

<https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-associating-aws-resource.html>


---

# 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-api-gateway-rest-api-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.
