AWS Shield and DDoS Resilience
Shield Standard versus Shield Advanced, which resources each protects, and the architecture patterns that make an application resilient to DDoS.
Exam tasks: 3.1 (Shield Advanced)
The decision: is the free automatic baseline enough, or does the requirement name layer 7 mitigation, an expert response team or cost protection?
AWS Shield protects against DDoS attacks. Standard is automatic and free for every customer. Advanced is a paid subscription for named resources that adds detection tuning, WAF integration, response-team help and cost protection.
Standard versus Advanced
| Shield Standard | Shield Advanced | |
|---|---|---|
| Cost | Included for all customers | Paid subscription |
| Layers | Common network and transport layer (3 and 4) attacks | Layers 3, 4 and 7 |
| Enablement | Automatic | You must explicitly add each resource, or use a Firewall Manager policy |
| Best coverage | Route 53 hosted zones, CloudFront, Global Accelerator standard accelerators | Same, plus Elastic IPs, ALB, Classic LB, NLB (through Elastic IPs), EC2 (through Elastic IPs) |
| WAF | Separate | WAF costs for protected resources are covered up to normal limits. Includes the Anti-DDoS managed rule group |
| Layer 7 response | None | Automatic application layer mitigation. Adds a WAF rule group of 150 WCUs and rate limits known DDoS sources. You choose count or block |
| Detection | Always-on | Health-based detection using Route 53 health checks, which cuts false positives |
| People | None | Shield Response Team (SRT), 24x7. Needs Business or Enterprise Support |
| Proactive engagement | None | SRT contacts you when an associated health check turns unhealthy during an event. Needs health-based detection |
| Money | None | Cost protection as service credits for scaling charges caused by an attack |
| Visibility | Basic | Real-time metrics in CloudWatch, event details, DDoS reports |
| Grouping | None | Protection groups treat related resources as one unit |
Exam signal
"DDoS response team", "cost spike from an attack", "automatic layer 7 mitigation" or "proactive engagement": Shield Advanced. "Free, automatic baseline protection": Standard.
Exam trap
Shield Advanced does not protect anything by default. A resource is covered only after you add it to Shield Advanced or include it in a Firewall Manager Shield Advanced policy. An NLB must be associated with an Elastic IP.
Attack layers
| Layer | Example attacks | Defense |
|---|---|---|
| 3 and 4 infrastructure | SYN flood, UDP flood, ICMP flood, reflection | Shield, CloudFront, Route 53, Global Accelerator, enough capacity |
| 7 application | HTTP request floods, DNS query floods, WordPress pingback | WAF rate-based rules, CloudFront caching, bot controls |
Infrastructure attacks are high volume. Application attacks can be low volume and still exhaust a backend.
Resilience patterns
- Reduce the attack surface. Put only CloudFront, load balancers and gateways in public view. Lock origins to CloudFront with OAC or VPC origins. Use security groups and NACLs to cut open ports.
- Plan for scale. Spread load with CloudFront, Route 53 and Global Accelerator. Auto Scaling and load balancers absorb server capacity attacks.
- Know normal traffic. Baseline traffic, then use rate-based rules to trim the abnormal.
- Add a WAF for SQL injection, XSS and bad bots.
Shield Response Team access
- Grant the SRT access with a role (
AWSShieldDRTAccessPolicy) and, if they need your logs, access to the WAF log bucket. - Protection groups treat several resources as one for detection, for example all ALBs behind one app.
Related
Further reading
AWS WAF and Firewall Manager
Layer 7 filtering with web ACLs, rate-based rules and managed rule groups, and org-wide enforcement with Firewall Manager.
CloudFront Edge Security
Protecting S3 and custom origins behind CloudFront with OAC, signed URLs and cookies, response headers policies, geo restriction and field-level encryption.