Live data from Hacker News

GitHub under ongoing DDoS attack

status.github.com

81–90 of 352 posts

Re: GitHub under ongoing DDoS attack

#81

Earlier quoted context omitted.

What about inserting invisible iframe to affected sites? I think it can not be prevented.

Since GitHub (and other sites) can modify their webpages, something like: if (window != top) top.location = ' http://www.google.com '; returned as a static webpage would do the trick.

This script can be disabled with the sandbox attribute on : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/if...

Re: GitHub under ongoing DDoS attack

#82

I'm looking forward for a post from GitHub describing what exactly was thrown at them and how they were able to mitigate it.

For what it's worth there's an article[1] from Craig Hockenberry. His servers were hit by massive amounts of traffic from China earlier this year, targeted (randomly?) at Iconfactory's website. The charts are quite impressive. [1] http://furbo.org/2015/01/22/fear-china/

That (52 Mbit/s) was extremely small in comparison to modern DDoS attacks (which can be in the hundreds to thousands of Gbit/s).

It could have been launched from a single raspberry pi with a 100 Mbit/s residential uplink.

Re: GitHub under ongoing DDoS attack

#83
post #62
post #54

Earlier quoted context omitted.

It would be a huge mistake to cut of China from the internet. Whatever power the US wields militarily as well as economically is an absolute joke compared to the power it wields culturally. American culture through movies, tv and music dominates global culture, allowing it define what normal society looks like. You want the people in China consuming more and not less of it.

> You want the people in China consuming more and not less of it. Want all you wish, the Chinese government is actively stopping and blocking the outside internet at an alarming rate. I was in Beijing a few weeks ago and couldn't load google, youtube, gmail, gmaps, instangram, facebook, twitter, various chatting apps, imgur, and on and on. Even using VPNs were difficult. I don't see this stopping anytime soon since i…

I spend about 6 months of the year in China. Yes, I am forced, as you say, to use the Chinese versions of everything, but, to be honest, it doesn't worry me. I use Baidu to put my teaching notes online for my students - it is as good as DropBox. Bing is allowed and works fine as a search engine, even if it blocks any results for "naughty" words. It becomes a bit of a game to see which double entendres it doesn't recognise. Conversing on English corner one night, a student asked me what I thought about their government blocking Google. I think my answer surprised him: I said, "Do you want Google to rule the world?" My implication is that I think services like Baidu are good competition for Google. I honestly think that the governments blocking of Western services is a business decision. It's highly likely sites like Bauidu pay the government a cut to continue the blockade. Imagine a world where you don't get continually served with Google ads. That's pretty close to Nirvana in my opinion.

Re: GitHub under ongoing DDoS attack

#84
post #81

Earlier quoted context omitted.

Since GitHub (and other sites) can modify their webpages, something like: if (window != top) top.location = ' http://www.google.com '; returned as a static webpage would do the trick.

This script can be disabled with the sandbox attribute on : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/if...

In that case maybe the other solution is better. Wow HTML5 is crazy...

Re: GitHub under ongoing DDoS attack

#86

The fact that someone would target GitHub for a massive DDoS attack makes me sick to the stomach.

Any company that makes most or all of its money online is the subject of DDoS attacks for blackmail purposes, github a bit more so because the Chinese government doesn't like it. It's unfortunately a very normal thing these days.

What is the PRC's problem with Github?

Re: GitHub under ongoing DDoS attack

#87
post #47

high level - how does one mitigate against a DDOS attack?

For the basic attack,

1) Webserver - Set threshold and block offending IP [1]

2) TCP/DNS/SYNC/SSL/HTTP - Get DDoS-filtered IP and create GRE tunnel back to your server. You can get one for less than $10 from OVH, BuyVM or Ramnode.

[1] http://deflate.medialayer.com

Re: GitHub under ongoing DDoS attack

#88
post #80

Earlier quoted context omitted.

The first attack based on the Javascript wasn't actually using Chinese IPs to do the attack. As otherwise it'd indeed be very easy to block by just blackholing Chinese traffic. What it was actually doing was a massive MITM attack against non-SSLd HTTP connections from inbound connections to China, from Chinese users abroad visiting Chinese websites. It's an extremely clever trick that is only possible if you have the…

I agree in general, but in this specific case, Beijing can just demand access to Baidu's private keys and MITM all traffic passing through the GFWoC.

That would be the death of Baidu among the Chinese diaspora.

Re: GitHub under ongoing DDoS attack

#90
post #79

Earlier quoted context omitted.

What about inserting invisible iframe to affected sites? I think it can not be prevented.

You can serve an X-Frame-Options:"DENY" (or "SAMEORIGIN") header to prevent browsers from loading the iframes.

But this is a response header, so server shoud respond and that is the goal of attack. Browser doesn't send any request headers saying that site is opened in the iframe.
Post reply on HN