Lesson 2 of 3 AWS WAF, Shield and Firewall Manager

Protecting Against DDoS Attacks with AWS Shield

This lesson explains how AWS Shield protects applications against distributed denial of service (DDoS) attacks. Shield Standard is automatic and free; Shield Advanced adds broader protection, expert support and cost protection.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish Shield Standard from Shield Advanced.
  • Describe a DDoS-resilient architecture.

Shield Standard and Advanced

AWS Shield protects against distributed denial-of-service (DDoS) attacks in two tiers. Shield Standard is free and automatic for every customer. It defends against the most common network and transport layer attacks, such as SYN floods and UDP reflection, and gives the strongest protection to applications behind CloudFront and Route 53.

Shield Advanced is a monthly subscription for an organisation, enabled on chosen resources: Elastic IP addresses, load balancers, CloudFront distributions, Global Accelerator and Route 53 hosted zones. It adds health-based detection, which uses Route 53 health checks to tell an attack from a legitimate surge, near real-time visibility of attacks, and automatic mitigation of application layer attacks by creating AWS WAF rules. Subscribers can engage the Shield Response Team at any time, and DDoS cost protection credits charges for scaling caused by an attack. The following table summarises the two tiers.

Shield Standard
CostFree, automatic
CoversCommon layer 3 and 4 attacks (SYN floods, UDP reflection), especially for CloudFront and Route 53
DetectionAutomatic
Layer 7No
SupportNone
Cost protectionNo
Shield Advanced
CostMonthly subscription per organisation, plus data transfer fees
CoversElastic IPs, ELB, CloudFront, Global Accelerator and Route 53, enabled per resource; protection groups
DetectionHealth-based detection using Route 53 health checks, plus near real-time attack visibility
Layer 7Automatic application-layer mitigation by creating AWS WAF rules
SupportShield Response Team 24/7 and proactive engagement
Cost protectionDDoS cost protection: credits for scaling charges caused by an attack
Sort into groups

Shield Standard or Advanced?

Exam skills 1.2.3

Decide which Shield tier each feature belongs to.

Log in to try this activity Interactive activities are free with an account.

DDoS-resilient architecture

Shield protects against distributed denial-of-service (DDoS) attacks, but resilience also comes from architecture. Traffic should be served through Amazon CloudFront and Amazon Route 53, which absorb attacks at edge locations across a large global network before they reach the application. Application Load Balancers and Auto Scaling behind them absorb load that does reach the Region.

The attack surface should be kept small: instances in private subnets with no public IP addresses, and security groups that admit traffic only from the load balancer. AWS WAF rate-based rules protect against HTTP floods, which operate at the application layer. For applications that do not use HTTP, AWS Global Accelerator provides edge protection with static IP addresses.

The following diagram shows the layers of a DDoS-resilient web application.

A DDoS-resilient architecture. Route 53 and CloudFront absorb attacks at edge locations, with AWS WAF rate-based rules stopping HTTP floods. An Application Load Balancer and Auto Scaling absorb load that reaches the Region, and instances sit in private subnets with no public IP addresses, admitting traffic only from the load balancer. Shield Standard protects every layer.
Each layer absorbs or filters traffic before it reaches the next, and the instances have no public address to attack.
Select all that apply

A DDoS-resilient design

Exam skills 1.2.3 · 2.2.4

Identify the design choices that make an application more resilient to DDoS attacks.

Log in to try this activity Interactive activities are free with an account.
Worked example

Preparing for DDoS attacks

An online ticketing company expects DDoS attacks during major sales and has 30 AWS accounts.

NeedSolution
Basic protection against network floodsShield Standard: automatic and free
Protection against large attacks with expert help and cost protectionShield Advanced on CloudFront, Route 53 and the ALBs
Absorb attacks away from the applicationCloudFront and Route 53 at the edge; Auto Scaling behind
Apply the same WAF rules and Shield Advanced in all 30 accountsAWS Firewall Manager policies

Firewall Manager also applies protection to new accounts and resources automatically, so a team launching a new ALB next month is protected without anyone remembering to configure it.

Check yourself

Which DDoS protection does every AWS customer receive at no extra cost?

Show answer

Shield Standard, which protects against common network and transport layer attacks. Shield Advanced adds protection for specific resources, the Shield Response Team and cost protection.

Exam Tips

Remember for the exam

  • For large DDoS attacks, with expert help and cost protection, use Shield Advanced.
  • Basic DDoS protection at no cost is Shield Standard, which is automatic.
  • To recover charges caused by scaling during a DDoS attack, use Shield Advanced DDoS cost protection.
  • A DDoS-resilient design puts CloudFront and Route 53 at the edge and keeps instances private.