Introduction to AWS WAF
Web application firewall for API Gateway, CloudFront, ALB and AppSync.
- 1 lesson
- Module quiz
Web applications receive requests from anyone on the internet, including attackers. Some requests try to exploit common vulnerabilities, such as SQL injection or cross-site scripting (XSS), and others come from bots or send so many requests that they overwhelm the application.
AWS WAF is a web application firewall that filters HTTP and HTTPS requests before they reach the application. A web access control list (web ACL) contains rules that allow, block or count requests based on conditions such as IP address, country, headers, the request body, known attack patterns and the request rate from each client. AWS Managed Rules provide ready-made protection against common attacks. WAF is charged per web ACL, per rule and per million requests.
Where WAF fits
WAF works at layer 7, the HTTP layer, so it attaches to services that handle HTTP requests: Amazon CloudFront, Application Load Balancers, API Gateway REST APIs, AWS AppSync and Amazon Cognito user pools. It cannot be attached to a Network Load Balancer, which works at the network layer. A web ACL is Regional, or global when it is attached to CloudFront.
How this module is organised
The module has a single lesson, Filtering Malicious Web Requests with AWS WAF, which explains web ACLs and rules, rate-based rules, managed rule groups and WAF logging.