AWS Builder Center
AWS Shield: Defending Against DDoS Attacks

AWS Shield: Defending Against DDoS Attacks

What AWS Shield does behind the scenes to protect your applications from DDoS attacks—how it detects malicious traffic, automatically absorbs or mitigates attack traffic, and keeps legitimate users connected while your infrastructure remains available.

Series: AWS Security 30 Days, 30 Articles Challenge (31 articles)

  1. …
  2. 22
    AWS Shield: Defending Against DDoS Attacks This article
Welcome to Day 21 of the 30 Days AWS Security Challenge, closing out our stretch on monitoring and detection. Yesterday we covered WAF blocking malicious requests based on content. Today we look at a different threat entirely, not malicious content, but sheer overwhelming volume, and how AWS Shield defends against it.

What a DDoS Attack Actually Is

DDoS stands for Distributed Denial of Service. Instead of trying to exploit a weakness in your application's code, a DDoS attack simply tries to flood it with so much traffic that it can't keep up, slowing it down or knocking it offline entirely for legitimate users. The word "distributed" matters here, these attacks typically come from thousands of different sources at once, often a network of compromised devices, which makes them much harder to block with a simple IP based rule than a single attacker sending traffic from one location.
DDoS attacks generally fall into a few categories: volumetric attacks that simply try to consume all available bandwidth, protocol attacks that exploit weaknesses in network protocols themselves, and application layer attacks that target a specific, resource intensive part of your application, like a search feature that triggers an expensive database query.

What AWS Shield Actually Does

AWS Shield comes in two tiers, and understanding the difference matters for deciding what you need.
Shield Standard is automatically enabled for every AWS customer, at no additional cost. It provides protection against the most common, most frequently occurring network and transport layer DDoS attacks, and it works automatically in the background for any resource using services like CloudFront, Route 53, or an Elastic Load Balancer. You don't need to configure anything to get this baseline protection.
Shield Advanced is a paid tier that adds significantly more. It provides enhanced protection against larger and more sophisticated attacks, near real time visibility into attacks as they happen, and access to the AWS DDoS Response Team, a specialized team you can engage during an active attack for direct support. It also includes cost protection, covering scaling charges that result specifically from a DDoS attack, so a volumetric attack doesn't also leave you with a surprise bill from auto scaling reacting to the flood of traffic.

Do You Need Shield Advanced?

For most small to medium applications, Shield Standard covers a meaningful baseline of protection without any action needed on your part. Shield Advanced makes the most sense for businesses where downtime carries serious financial or reputational cost, like e-commerce platforms during high traffic events, financial services applications, or any business where even a short outage translates directly into significant lost revenue.
If you do decide Shield Advanced is worth it, it's set up under WAF & Shield > Get Started with AWS Shield Advanced, where you subscribe at the account level and can then apply advanced protections to specific resources like CloudFront distributions, load balancers, and Elastic IP addresses.

How Shield and WAF Work Together

Shield and WAF solve related but distinct problems, and they work best together rather than as a choice between one or the other. Shield defends against volume based and protocol based attacks at the network layer, while WAF defends against malicious content and application layer attacks, including application layer DDoS attempts that look like normal traffic but target an expensive part of your application logic.
Shield Advanced specifically integrates with WAF, giving you automatic rule recommendations during an attack, and even automatic application layer DDoS mitigation that can create and apply WAF rules on your behalf in response to an ongoing attack.

A Practical Example

Imagine your application, sitting behind CloudFront and an Application Load Balancer, suddenly receives a massive spike in traffic from thousands of different IP addresses simultaneously. Shield Standard already absorbs a large portion of this automatically at the network layer, since CloudFront and your load balancer are both protected by default. If you're subscribed to Shield Advanced, you'd also get near real time visibility into the attack's characteristics, and could engage the DDoS Response Team directly if it escalates beyond what automatic mitigation handles.

Key Takeaways

  • DDoS attacks aim to overwhelm your application with volume rather than exploit a specific weakness
  • Shield Standard is automatic and free, covering common network and transport layer attacks for services like CloudFront and load balancers
  • Shield Advanced adds enhanced protection, real time visibility, cost protection, and access to AWS's DDoS Response Team
  • Shield Advanced makes the most sense where downtime has serious financial or reputational consequences
  • Shield and WAF work together, Shield handles volume and protocol attacks, WAF handles malicious content and application layer threats
That wraps up our run through AWS's monitoring and detection services. Tomorrow we shift into week four, focused on application and workload security, starting with best practices for securing AWS Lambda functions.

Series: AWS Security 30 Days, 30 Articles Challenge (31 articles)

  1. …
  2. 22
    AWS Shield: Defending Against DDoS Attacks This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article