π‘οΈ AWS API Gateway REST API Stage is not associated with a WAF Web ACLπ’
- Contextual name: π‘οΈ REST API Stage is not associated with a WAF Web ACLπ’
- ID:
/ce/ca/aws/apigateway/rest-api-stage-waf-web-acl - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- Internal:
dec-x-bfdadcc4
Similar Internal Rulesβ
| Rule | Policies | Flags |
|---|---|---|
| βοΈ dec-x-bfdadcc4 | 1 |
Descriptionβ
Descriptionβ
Associate AWS API Gateway REST API stages with a WAF Web ACL to provide enhanced security against web application threats. AWS WAF is a web application firewall designed to block, allow, or count web requests based on customizable rules and security conditions that you configure. Linking your API Gateway stages to an AWS WAF Web ACL helps safeguard APIs from common exploits such as SQL injection and cross-site scripting (XSS), and other malicious activity targeting your APIs.
Rationaleβ
Configuring AWS WAF Web ACLs for API Gateway stages improves security posture by implementing rule-based traffic filtering. This measure defends against automated attacks, unauthorized access, and other malicious web activities. It also enables security teams to monitor and audit traffic patterns, allowing proactive adjustments to security rules. Without a WAF Web ACL in place, APIs are vulnerable to various attack vectors that could lead to unauthorized access, data breaches, and service disruption.
Impactβ
AWS WAF pricing includes charges for the number of Web ACLs created, the number of rules within those ACLs, and the volume of web requests inspected. It is essential to evaluate the anticipated traffic and associated costs to ensure alignment with your budget and usage expectations.
... see more
Remediationβ
Remediationβ
From Command Lineβ
Associate an AWS WAF Web ACL with an API Gateway API Stageβ
Associate an AWS WAF Web ACL with an API Gateway stage by running the
associate-web-aclcommand:aws wafv2 associate-web-acl \
--web-acl-arn {{web-acl-arn}} \
--resource-arn {{api-gateway-stage-arn}}Replace
{{web-acl-arn}}with the ARN of your Web ACL and{{api-gateway-stage-arn}}with the ARN of your API Gateway stage.