Mitigation techniques
Some forms of DDoS mitigation are included automatically with AWS services. DDoS resilience can be improved further by using an AWS architecture with specific services—covered in the following sections—and by implementing additional best practices for each part of the network flow between users and your application.
You can use AWS services that operate from edge locations,
such as Amazon CloudFront
Benefits of using Amazon CloudFront, Global Accelerator, and Amazon Route 53 include:
-
Access to internet and DDoS mitigation capacity across the AWS Global Edge Network. This is useful in mitigating larger volumetric attacks, which can reach terabits per second (Tbps).
-
AWS Shield
DDoS mitigation systems are integrated with AWS edge services, reducing time-to-mitigate from minutes to sub second. -
Stateless SYN Flood mitigation verifies incoming connections using SYN cookies before passing them to the protected service. This is designed to help ensure that only valid connections reach your application while protecting your legitimate end users against false positives drops.
-
Automatic traffic engineering systems that disperse or isolate the impact of large volumetric DDoS attacks. All these services isolate attacks at the source before they reach your origin, which means less impact on systems protected by these services.
-
The AWS Threat research team curates and maintains a list of IP addresses by tracking malicious activities against customer's AWS resources. IP addresses exhibiting repeated malicious behavior are added to this list, which is automatically enforced through CloudFront edge protection systems to help safeguard customer resources.
-
Application layer defense using CloudFront with AWS WAF
, without requiring changes to your existing origin architecture—whether hosted in an AWS Region or on-premises. -
CloudFront
origin fetches are free from any AWS origin such as Amazon Simple Storage Service (Amazon S3), Amazon EC2 , or Elastic Load Balancers , including origins in private subnets through VPC origins. Additionally, you aren't charged for HTTP requests or data transfer out for requests rejected by CloudFront or AWS WAF.
The following architecture diagrams include AWS Global Edge Network services. The BP labels in these diagrams see best practices that are detailed in later sections of this document.
The following figure illustrates a typical reference architecture web applications and maps its components to best practices that will be elaborated in the following sections of the chapter. These applications include the application layer of the Open Systems Interconnection (OSI) model and for that reason use CloudFront and AWS WAF at the edge for the protection.
Figure 5 – DDoS-resilient reference architecture for web applications
The following figure illustrates a typical architecture for applications that operate at the transport layer of the OSI model and because of that the best practices include a different component for protection at the Edge.
Figure 6 – DDoS-resilient reference architecture for TCP and UDP applications
With AWS service you can also protect applications that run inside corporate data centers, the following figure illustrates a collection of best practices applicable to that scenario.
Figure 7 – DDoS-resilient reference architecture for web applications on-premises
These architectures include several AWS services that can help you improve your application's resiliency against DDoS attacks. The following table provides a summary of these services and the capabilities that they can provide. AWS has tagged each service with a best practice indicator (BP1, BP2) for easier reference within this document. For example, an upcoming section discusses the capabilities provided by Amazon CloudFront and Global Accelerator that includes the best practice indicator BP1.
Table 2 – Summary of best practices
| AWS Edge | AWS Region | |||||
|---|---|---|---|---|---|---|
| Using Amazon CloudFront (BP1) with AWS WAF (BP2) | Using Global Accelerator (BP1) |
Using Amazon Route 53 (BP3) |
Using Application Load Balancer (BP6) with AWS WAF (BP2) |
Using security groups and network ACLs in Amazon VPC (BP5) |
Using Amazon Elastic Compute Cloud |
|
|
Layer 3 (for example, UDP reflection) attack mitigation |
✔ | ✔ | ✔ |
✔ |
✔ |
✔ |
| Layer 4 (for example, SYN flood) attack mitigation | ✔ | ✔ | ✔ |
✔ |
||
| Layer 6 (for example, TLS) attack mitigation | ✔ | ✔ | ✔ |
✔ |
||
| Reduce attack surface | ✔ | ✔ | ✔ |
✔ |
✔ |
|
| Scale to absorb application layer traffic | ✔ | ✔ | ✔ |
✔ |
✔ |
✔ |
| Layer 7 (application layer) attack mitigation | ✔ | ✔ |
✔ |
|||
|
Geographic isolation and dispersion of excess traffic and larger DDoS attacks |
✔ | ✔ | ✔ |
|||
Another way to improve your readiness to respond to and mitigate
DDoS attacks is by subscribing to AWS Shield Advanced
-
Access to 24x7 specialized support from the AWS Shield Response Team (AWS SRT) for assistance with mitigating DDoS attacks that impact application availability, including an optional proactive engagement feature. It requires a Business Support+ or Enterprise Support subscription.
-
Sensitive detection thresholds that route traffic into the DDoS mitigation system earlier and can improve time-to-mitigate attacks against Amazon EC2 (including elastic Load Balancer) or Network Load Balancer
, when used with an Elastic IP address -
Automatic application layer DDoS mitigation where Shield Advanced responds to detected DDoS attacks by creating, evaluating, and deploying custom AWS WAF rules
-
Shield Advanced includes WAF request coverage at no additional cost (subject to usage thresholds). For current pricing details, see the AWS Shield Pricing
page. -
Centralized management of security policies through AWS Firewall Manager
at no additional cost. -
Cost protection that enables you to request a limited refund of scaling-related costs that result from a DDoS attack.
-
Protection groups that enable you to bundle resources, providing a self-service way to customize the scope of detection and mitigation for your application by treating multiple resources as a single unit.
-
DDoS attack visibility by using the AWS Management Console
, API, and Amazon CloudWatch metrics and alarms.
This optional DDoS mitigation service helps protect applications
hosted on any AWS Region. The service is available globally for
CloudFront, Route 53, and Global Accelerator. Regionally, you can
protect Application Load Balancer and
Elastic IP addresses which allows you to protect
Network
Load Balancer (NLBs) or
Amazon EC2
For a complete list of AWS Shield Advanced features and for more
information about AWS Shield