Search
Lori MacVittie - Two Different Socks
You are here: DevCentral > Weblogs

posted on Thursday, August 06, 2009 2:40 PM

If they can take down Twitter via DNS, they can take your site, too.

Everyone is talking about the DoS (Denial of Service) attack on Twitter but most of them are missing what really happened. We’re so used to defending against HTTP-based DoS attacks that we’ve missed that it’s much easier to DoS a site based on the most critical piece of infrastructure on the Internet: DNS.

If you really wanted to take out a site like Twitter or Facebook using an HTTP-based DoS it would take a whole lot of serious traffic because those sites are designed and architected to handle millions of users making millions of requests every second. But if you wanted to take out a big site like that with a lot less effort (or bots) all you’d need to do is … right. Take out their nameservers (DNS).

As has been pointed out by this Threat Chaos post (and many others via Twitter – when they could actually get through) there appears to have been a sudden decrease in Twitter traffic around 9am EDT, not an increase as would be expected with a traditional HTTP-based DoS attack. If you then take a look at another post from Threat Chaos on the subject, you’ll see that there was, in fact, a DNS attack perpetrated that affected Twitter:

DYNECT.NET Is a global load balancing service that must have taken the brunt of the attack against Twitter this morning. Their managed DNS service DYNDNS reports:

DynDNS WebHop DDoS
Thu, 06 Aug 2009 1632 UTC

Beginning at approximately 1630 UTC, DynDNS servers experienced a very high traffic spike in our Newark Data Center. The high traffic resulted in an interruption in service for our website, NIC update, and WebHop. The WebHop service is currently down as we continue to investigate the source of the traffic.

Update: 1755 UTC – DynDNS.com WebHop service is now functional. All of our other services (including our DNS services on DynDNS.com and Dynect Platform) have been fully functional during this entire time.

The evidence appears to be pointing toward a DNS DoS as the culprit. That’s still an attack against Twitter, but it’s a very different set of concerns – and ultimately solutions – that need to be discussed if that turns out to be true.

UPDATE (8-7-2009): Dynect writes that the DNS issue referenced by ThreatChaos was unrelated to the attack; Twitter's DNS resolution services remained available throughout the attack. As Russ Garrett points out in a comment this is looking more like a typical old DoS attack.


DNS CRITICAL COMPONENT

Even if it turns out that the DNS DoS wasn’t wholly responsible for Twitter’s outage (and it's looking more and more that way), it still should force us all to take a moment and consider the ramifications of an attack on our DNS infrastructure.

DNS is one of the more (if not the most) critical components in an IP-based architecture. Without it we can’t even find Twitter let alone interact with the site. That Twitter was attacked this morning is obvious and already heavily written about, but the importance of the attack on its nameservers has not been widely mentioned despite how much more of an impact an attack on DNS is to the availability of a web site and all its services it is than a simple HTTP-based DoS.

Without DNS nothing works: e-mail, web, voice, nothing. Everything relies upon those two servers that sit, lonely, translating host names to IP addresses for the world. DNS is under considerable strain all the time, and whether it’s an attack or a sudden “event of interest”, the additional strain of more queries can easily take a site down faster than even the ensuing traffic. Consider MSNBC during the 2008 U.S. Presidential election. Their site normally sees a lot of traffic, but spikes on election night drove over 20 million unique visitors to view the ongoing results. That’s 20 million people who were likely saturating DNS servers with requests, ostensibly with huge percentages of them at the same time – every hour when another poll closed. When we talk about how well their “infrastructure” performed it is often abstracted; we just say “their site” and leave most people believing that they must have some awesome infrastructure and applications running to support that high volume of traffic.

But that does an incredible disservice to the underlying infrastructure that while not as visible or sexy ends up being infinitely more important when you get down to brass tacks.

We have an infinite array of tools and tricks and processes around securing web applications, web servers, and web sites in general. We have multi-layer security in our application delivery controllers / load balancers, web application firewalls, firewalls, IPS, IDS, and access control. But we have very little comparatively speaking in the way of DNS-specific protections. We can’t really limit access to them because, well, they must be available publicly and anonymously because that’s the way the Internet works.

We may never know exactly what took out Twitter today. But we don’t need to know to be able to take away a valuable lesson, albeit at the expense of Twitter and its users: DNS needs to be treated with a bit more respect. Its importance to availability and reliability should not be underestimated, nor should it simply be deployed in a corner and ignored.

Follow me on Twitter View Lori's profile on SlideShare AddThis Feed Button Bookmark and Share


Related blogs & articles:



Feedback

8/6/2009 5:38 PM
Gravatar This appears to be wrong.

Not only did many sites have perfectly good DNS resolution to Twitter while the DoS was taking place, several sites reported seeing substantial packet loss to their last hop.

Even sites which managed to resolve twitter.com saw a lack of service.

This is a textbook (D)DoS, and nothing more sinister than that.



Russ Garrett
8/7/2009 3:10 AM
Gravatar @Russ

The evidence was pointing toward DNS last night but you're right - as more information is being "discovered" it's looking more like the problem was elsewhere.

Dynect (Twitter's DNS service) writes that the DNS issue mentioned by ThreatChaos and others was unrelated, leaving - as you point out - a fairly typical DoS attack as the culprit.

Regardless, I'm glad the DNS issue was raised as a possibility; it does make for a good reminder about the importance of DNS and the ease with which you *could* take out a site if you attacked DNS rather than the application.

Lori
Lori MacVittie
8/7/2009 7:30 AM
Gravatar I think your headline is inaccurate. The DDoS to the DynDNS.com MyWebHop service (which we posted on our status page: http://status.dyn-inc.com/) was completely unrelated to Twitter, as all of these systems run on different infrastructures. The Dynect Platform has been happily resolving DNS requests all day long. The only commonality between these two events is that they were both DDoS events, not DNS events.

You can check out our performance reports for the day at: www.flickr.com/.../72157621964668700/

Another good resource to look at is Barrett Lyon's blog article about the problem, where he delves into the issue (and never mentions DNS as being a problem): www.blyon.com/.../twitter-down-due-to-ddos/
Tom Daly
8/10/2009 9:28 PM
Gravatar However, this standard DoS attack would have been prevented automatically by the L7 DoS protection that now comes out of the box with ASM.
Pat
11/5/2009 3:27 AM
Gravatar Twitter Account Lockouts Continue to Plague Users
Lori MacVittie

Let Me Know What You Think


Please use the form below if you have any comments, questions, or suggestions.

Title:
 
Name:
 
Email: (so we can show your gravatar)
Website:
Comment: Allowed tags: blockquote, a, strong, em, p, u, strike, super, sub, code
 
Please add 3 and 4 and type the answer here:

Blog Stats

Posts:975
Comments:1681
Stories:0
Trackbacks:582
  

Image Galleries

  

Application Delivery

  

Cloud Computing

  

Random

  

Security

  

Chat Catcher

82,243 Members in 102 Countries and Growing!

Join DevCentral Today!

About DevCentral

DevCentral has been a successful, thriving community for many years. We have always strived to bring you the best technical documentation, discussion forums, blogs, media and much more that we can.

So dive in, get familiar with DevCentral. We hope you like it, we hope it makes your job easier, and lets you get that much more power out of the community. To learn more, make sure to check out the Getting Started section. And if you have any problems, or think something could be easier to use, drop us a line to let us know.

Got It !

We've received your comment and transmitted it directly to DevCentral HQ.

Thanks for taking time to let us know what's on your mind. At DevCentral | Community Matters!

Get In Touch With Us

Have questions, suggestions or just want to get something off your chest?

Use our handy form below to Direct Connect with DevCentral Mission Control.

Send Us Feedback       or