Ensure that Amazon Web Application Firewall (WAF) service is integrated with your Application Load Balancers (ALBs) in order to protect the web applications that are running behind the load balancers from common web exploits such as SQL injection attacks, cross-site scripting (XSS) and Cross-Site Request Forgery (CSRF) attacks that could affect application availability and performance, compromise security, or consume excessive resources.
Amazon WAF is a web application firewall service that provides inline inspection of inbound traffic at the application layer in order to detect and filter malicious web requests and scale to handle bursts in traffic. The inbound traffic is inspected against Web Access Control List (Web ACL) rules that you create manually through AWS Management Console or programmatically using AWS API. To protect the web applications behind your Amazon Application Load Balancers from common application-layer exploits, enable the Amazon WAF - Application Load Balancer integration by creating and attaching Web ACLs to load balancers. For example, you can assign Web ACLs to your Application Load Balancers to block requests based on IP address or range of IP addresses originating from a specific country or region, or block requests containing malicious SQL code or malicious scripts. You can also implement Web ACLs to protect your applications from unwanted or unauthorized access (e.g. block bad bots, content scrapers, and attacks from specific user-agents).
Audit
To determine if your Application Load Balancers (ALBs) are associated with WAF Web ACLs, perform the following operations:
Remediation / Resolution
To enable the Amazon WAF integration for your Application Load Balancers (ALBs) in order to protect against common application-layer exploits, perform the following operations:
References
- AWS Documentation
- Elastic Load Balancing features
- Application Load Balancers
- Associating or disassociating a web ACL with an AWS resource
- AWS Command Line Interface (CLI) Documentation
- describe-load-balancers
- get-web-acl-for-resource
- associate-web-acl