News for hackers. Stuff that matters.
Re:February 28th DDoS Incident Report by hyperpower on Thursday March 01, 2018 @11:17AM (#16493204)
Wow, 1.35Tbps? That's a lot for a DoS attack, right?
Re:February 28th DDoS Incident Report by flafla2 on Thursday March 01, 2018 @11:23AM (#16493280)
According to [0] that is around 1/400th of total internet traffic per second. This begs the question: who has that kind of botnet at their disposal and why are they targeting Github?

Edit: The attacker didn't need nearly that kind of bandwidth to execute this attack. See [1]

Edit: 1/50th -> 1/400th (bits vs bytes)

[0] http://www.internetlivestats.com/one-second/#traffic-band

[1] https://news.ycombinator.com/item?id=16493497

Re:February 28th DDoS Incident Report by sarreph on Thursday March 01, 2018 @11:38AM (#16493466)
I assume this explains the apparent hugeness of the attack:

> The vulnerability via misconfiguration described in the post is somewhat unique amongst that class of attacks because the amplification factor is up to 51,000, meaning that for each byte sent by the attacker, up to 51KB is sent toward the target.

Re:February 28th DDoS Incident Report by voltagex_ on Thursday March 01, 2018 @11:25AM (#16493311)
Re:February 28th DDoS Incident Report by toomuchtodo on Thursday March 01, 2018 @11:39AM (#16493480)
Who is exposing their memcached instances on the public internet? Who is not filtering outbound UDP traffic from their memcached instances?

Rhetorical of course. Akamai should have logs of their offenders. Off to scan for offenders and notify their providers!

Re:February 28th DDoS Incident Report by theojulienne on Thursday March 01, 2018 @12:03PM (#16493775)
During some analysis we did notice that at least some cloud providers default to having instances with public IPs (with no network-level ACLs) by default, and some Linux distributions default to having memcached listening for UDP traffic and binding to `0.0.0.0` by default as soon as it's installed. The unfortunate combination of these result in the machine being vulnerable to being used as an amplification vector in these attacks.
Re:February 28th DDoS Incident Report by snuxoll on Thursday March 01, 2018 @12:33PM (#16494136)
This is one area where I really disagree with Debian and derivatives default behavior of starting a service immediately after installation and not having a firewall enabled by default.

If I install a service on CentOS/RHEL/Fedora it is disabled by default, if I start the service firewalld will block traffic until I have explicitly enabled a rule to allow it (or explicitly stopped and disabled the firewalld service).

Does this prevent people from making poor decisions, like just blindly starting the service without reading the configuration file, or disabling firewalld/enabling a rule without checking the configuration first? No, it doesn't - but that small hurdle at least prevents people from inadvertently turning on a service and opening it up to the world just by installing a package.

Re:February 28th DDoS Incident Report by vbernat on Thursday March 01, 2018 @12:46PM (#16494274)
As a compromise, Debian also comes with a secure-by-default configuration. In the case of memcached, the service is configured to listen on 127.0.0.1.
Re:February 28th DDoS Incident Report by snuxoll on Thursday March 01, 2018 @01:06PM (#16494473)
Thankfully that is one thing they do pretty well in most cases, though there are some (apache2, for example) that do listen on all interfaces by default. While even services like Apache may have secure configurations by default, it can often be installed by other programs that link or copy their own configuration files into the apache config directory - and then all you need is a PHP vulnerability or whatever.
Re:February 28th DDoS Incident Report by toomuchtodo on Thursday March 01, 2018 @12:31PM (#16494104)
Did you receive any cooperation from those cloud providers in using ACLs at their network edge to drop that traffic (that they should’ve been blocking in the first place)?
Re:February 28th DDoS Incident Report by toast0 on Thursday March 01, 2018 @12:07PM (#16493815)
> Who is not filtering outbound UDP traffic from their memcached instances?

This is of course the wrong way to do it -- you need to filter inbound UDP to your memcached instances so you don't waste your resources generating the responses, and also so you don't accidentally fragment the responses and only drop the first fragment outbound.

Re:February 28th DDoS Incident Report by toomuchtodo on Thursday March 01, 2018 @12:28PM (#16494066)
I disagree, due to seperation of responsibilities. Having run both an ISP and a hosting company, you have to filter traffic at your edge that can impact external resources (just as ISPs block outbound NetBios and SMTP traffic on port 25/tcp).

Yes, the server or instance customer should be doing this. But they’re not, because poor security practices are an externality, not a cost they sustain.

Security is more important than developer velocity, but users pay the bills.

Re:February 28th DDoS Incident Report by hueving on Thursday March 01, 2018 @09:38PM (#16498518)
Your confused if you think it's the clouds that are misconfigured here. The issue is the ISPs allowing the spoofed traffic going towards the memcached servers.
Re:February 28th DDoS Incident Report by toomuchtodo on Thursday March 01, 2018 @11:25PM (#16499005)
If you’re a service provider allowing your equipment to participate in an amplification attack, you’re the fool trashing the commons.

It’s an ISPs job to filter outbound udp on arbitrary ports? Shall we only let 443 tcp outbound from eyeball networks?

Re:February 28th DDoS Incident Report by hueving on Friday March 02, 2018 @04:28AM (#16500181)
Any UDP service can be used in an amplification attack. It's not the responsibility of AWS or other hosting companies to shut down all UDP traffic.

The problem is the ISPs allowing spoofed IPs.

Re:February 28th DDoS Incident Report by mnw21cam on Friday March 02, 2018 @05:16AM (#16500364)
So the problem here is that a number of UDP packets were sent from somewhere (with a small bandwidth) that had a spoofed source address. They were then sent to the reflection servers which produced more/bigger UDP packets that did not have a spoofed source address.

So the attacker only needs to find somewhere on the internet that is capable of generating spoofed packets. They needed a lot of places that had a reflection server, but the requirements for the spoofing was much smaller.

In other words, you would have to prevent 99.9% of the internet from being able to spoof source addresses before you fixed this problem.

Re:February 28th DDoS Incident Report by hueving on Sunday March 04, 2018 @02:42PM (#16516225)
And taking down UDP services is just as folly. It only takes a 1000 servers with 100 mbps upload streams to wipe out any single load balancer. There are at least that many root name servers.
Re:February 28th DDoS Incident Report by dylz on Friday March 02, 2018 @03:28PM (#16505393)
udp is also used for web traffic, a very very large amount of web traffic - so you can't really block it.
Re:February 28th DDoS Incident Report by flafla2 on Thursday March 01, 2018 @11:40AM (#16493497)
I see. For anyone else who doesn't have any background in this attack: memcached is an open source general purpose cache that uses sockets to cache data. From what I gather, the attack here was possible because Github engineers accidentally left the memcached port open. So the attackers were able to spam memcached with large requests, and memcached responds immediately with the full contents of the cached memory (assuming, of course, that the client is localhost).

> The memcache protocol was never meant to be exposed to the Internet, but there are currently more than 50,000 known vulnerable systems exposed at the time of this writing. By default, memcached listens on localhost on TCP and UDP port 11211 on most versions of Linux, but in some distributions it is configured to listen to this port on all interfaces by default.

Yikes!

Re:February 28th DDoS Incident Report by kevinconaway on Thursday March 01, 2018 @11:45AM (#16493560)
> From what I gather, the attack here was possible because Github engineers accidentally left the memcached port open.

That is incorrect.

The attackers made requests that were forged to have the sender IP address of Github to multiple public memcached instances. Memcached then responds back to Github instead of the attacker.

This is documented in more detail in the Cloudflare vulnerability report[0]

https://blog.cloudflare.com/memcrashed-major-amplification-a...

Re:February 28th DDoS Incident Report by flafla2 on Thursday March 01, 2018 @11:51AM (#16493620)
Ah ok. This makes much more sense -- leaving a port open seems like an amateur mistake for a firm like Github. Thanks for the link.
Re:February 28th DDoS Incident Report by shuntress on Thursday March 01, 2018 @01:54PM (#16494951)
If Github had no open ports they wouldn't have much of a website.
Re:February 28th DDoS Incident Report by dc_gregory on Thursday March 01, 2018 @09:56PM (#16498593)
I think it was more likely meant re. the original (incorrect) interpretation that github had left public access to memcache instances.
Re:February 28th DDoS Incident Report by tlunter on Thursday March 01, 2018 @11:45AM (#16493551)
I don't think it was GitHub's memcached instances. It was other public instances that with spoofed network requests ended up sending traffic back towards GitHub's network.
Re:February 28th DDoS Incident Report by sneak on Thursday March 01, 2018 @12:40PM (#16494205)
Re:February 28th DDoS Incident Report by randall on Thursday March 01, 2018 @12:03PM (#16493777)
Probably to get press. If you have a giant botnet and get press for it, it's probably easier to get clients.
Re:February 28th DDoS Incident Report by Thaxll on Thursday March 01, 2018 @11:42AM (#16493518)
It's in bit/sec not byte/sec so 8x lower.
Re:February 28th DDoS Incident Report by crescentfresh on Thursday March 01, 2018 @02:12PM (#16495124)
Linked article for the memcached explanation: https://blog.cloudflare.com/memcrashed-major-amplification-a...

From what I understand the attack originates from publicly exposed memcached servers configured to support udp and that have no authentication requirements:

- put a large object in a key

- construct a memcached "get" request for that key

- forge the IP address of the udp request to point to that of the target/victim server

- memcached sends the large object to the target/victim

Multiply times thousands of exposed memcached servers.

That about right?

Re:February 28th DDoS Incident Report by jgrahamc on Thursday March 01, 2018 @12:27PM (#16494057)
Yes and there are a lot of attacks of very, very large sizes going on. Over the last few days we've mitigated some huge attacks. Luckily, everyone is working together to rate limit and clean up this problem.
Re:February 28th DDoS Incident Report by paulie_a on Thursday March 01, 2018 @06:52PM (#16497518)
This is honestly why I have no problem with things like brickerbot.

I consider it community service.

Re:February 28th DDoS Incident Report by gjtorikian on Thursday March 01, 2018 @11:35AM (#16493435)
It's the largest recorded attack: https://www.wired.com/story/github-ddos-memcached
Re:February 28th DDoS Incident Report by jwilk on Thursday March 01, 2018 @12:15PM (#16493916)
The GitHub post says the amplification factor is 51000, while the Wired article says it's 50. So which is it?
Re:February 28th DDoS Incident Report by jgrahamc on Thursday March 01, 2018 @12:25PM (#16494034)
We've seen 51,000x. I've personally looked at the pcaps of that.