服务 · Security, Identity, and Compliance · 基于 CLF-C02
AWS WAF
Match the web attack to the WAF rule, and know where a web ACL can and cannot attach.
本课尚未翻译,暂以英文显示。
你在云从业者中已学过
- AWS WAF filters HTTP and HTTPS requests at layer 7.
- Rules live in a web ACL attached to CloudFront, an ALB or API Gateway.
- Count mode lets you test a rule before you block.
SQL injection, cross-site scripting
- Managed rule groups, SQLi and XSS rules
One IP floods requests
- Rate-based rule
Traffic from blocked countries
- Geo match rule
Known bad IPs and bots
- IP reputation list, Bot Control
Only the office may log in
- IP set allow rule, default block
| Threat | WAF feature |
|---|---|
| SQL injection, cross-site scripting | Managed rule groups, SQLi and XSS rules |
| One IP floods requests | Rate-based rule |
| Traffic from blocked countries | Geo match rule |
| Known bad IPs and bots | IP reputation list, Bot Control |
| Only the office may log in | IP set allow rule, default block |
CloudFront
- Web ACL
- Yes, global
- Instead
- None needed
Application Load Balancer
- Web ACL
- Yes, Regional
- Instead
- None needed
API Gateway REST API
- Web ACL
- Yes, Regional
- Instead
- None needed
Network Load Balancer
- Web ACL
- No
- Instead
- Security groups, Network Firewall
| Resource | Web ACL | Instead |
|---|---|---|
| CloudFront | Yes, global | None needed |
| Application Load Balancer | Yes, Regional | None needed |
| API Gateway REST API | Yes, Regional | None needed |
| Network Load Balancer | No | Security groups, Network Firewall |
1 / 2
CloudFront
- Web ACL
- Yes, global
- Instead
- None needed
Application Load Balancer
- Web ACL
- Yes, Regional
- Instead
- None needed
API Gateway REST API
- Web ACL
- Yes, Regional
- Instead
- None needed
| Resource | Web ACL | Instead |
|---|---|---|
| CloudFront | Yes, global | None needed |
| Application Load Balancer | Yes, Regional | None needed |
| API Gateway REST API | Yes, Regional | None needed |
2 / 2
Network Load Balancer
- Web ACL
- No
- Instead
- Security groups, Network Firewall
| Resource | Web ACL | Instead |
|---|---|---|
| Network Load Balancer | No | Security groups, Network Firewall |
是什么
A web ACL can protect Amazon CloudFront, an Application Load Balancer, an Amazon API Gateway REST API, AWS AppSync and an Amazon Cognito user pool, among others. It cannot protect a Network Load Balancer, because that works at layer 4. For a CloudFront distribution the web ACL is global and is created in US East (N. Virginia). For the others it is Regional.
是什么
Rules come in several types. Managed rule groups from AWS and from sellers block common attacks, such as SQL injection, cross-site scripting, known bad inputs and bad IP addresses. A rate-based rule blocks an IP address that sends too many requests in a time window. Geo match rules allow or block countries. IP set rules allow or block lists of addresses.
Turn on logging to Amazon S3, Amazon CloudWatch Logs or Amazon Data Firehose to see which rules matched. WAF is billed per web ACL, per rule and per million requests.
要记住
- Attach to CloudFront, ALB, API Gateway REST API, AppSync and Cognito user pools.
- Not for a Network Load Balancer.
- Managed rule groups cover SQL injection, XSS, known bad inputs and IP reputation.
- Rate-based rules slow down floods from one IP.
- Geo match and IP set rules control where requests come from.
要记住
- For CloudFront, create the web ACL in US East (N. Virginia).
考试中
- “Block SQL injection and cross-site scripting on an ALB” points to AWS WAF managed rules.
- “Stop one client from sending thousands of requests” points to a rate-based rule.
- “Only users in two countries may reach the site” points to a geo match rule.
别和这些弄混
AWS ShieldChoose Standard or Advanced, and design the front end so that an attack never reaches your servers.
AWS Network FirewallA managed firewall for a whole VPC: deep packet inspection, domain filtering and central egress control.
AWS Firewall ManagerCentral firewall policy for every account, including accounts and resources added later.