So my name is Rich and I work for a company that gets a lot of DDoS attacks. I do a lot of stuff related to DDoS and network security. And this vulnerability got released about six months ago. And the vulnerability is related to encapsulating traffic. And then there are various types of attacks that you can do with this encapsulated traffic. But first, I'm just going to give a brief overview on DDoS amplification attacks. In a DDoS amplification attack, the attacker is able to spoof the source IP of the victim. They say the victim is quad one. The attacker will spoof that quad one and then send an amplification request, a request packet, to an open amplifier. And so these can be open DNS servers. We see that quite a bit. Open NTP servers. There are vulnerable HTTP middle boxes like web censoring things like the Great Firewall of China. And you know, like other firewalls that will say like, hey, you can't go to this porn site because it's being blocked. A lot of those devices do not check the state. And so attackers have been using those to generate amplification attacks. Also, even a TCP stack can generate an amplification because the attackers can send a SYN to an open TCP server and then it will send back a SYNACK. And if it doesn't get a SYNACK, it will send back another SYNACK and another SYNACK. And so, you know, even with TCP, it has this small amplification factor. And some devices, some TCP stacks will send out like hundreds or thousands of SYNACKs back. So there can be a large amplification factor there. There is a researcher named Christian Rousseau who did a paper called Hell of a Handshake, if you're interested in more details about that attack. So the attacker, they're able to send the spoof traffic, goes to these amplifiers, and then the amplifiers send the large volume of traffic down to the victim. And I have a nice animated picture of that, but you can't see it. So how do these attackers find these networks that they can do the spoofing from? There are numerous ways that they can do this. A lot of times they trade this information online. There will be somebody else that is scanning around looking for networks that can do spoofing, they get the list, and then they can sell it to these attackers. A lot of them will run DDoS stressor or booter sites, where you could, you know, as a, you know, say you want to cheat at an online game, you can just figure out the IP address of the user, normally via voice over IP or something like that. And then you the you can put it into these booters slash stressor site, and that they will do the amplification attack to that victim IP. There is a project called the spoofer project that's out of UC San Diego. And they are trying to identify networks that can do spoofing to try to get the network operators to fix the issue. But the attackers are actually using this information as well. They're like, oh, wow, okay, they see that this network, this hosting company allows spoofing. And they're like, okay, I'm going to go set up my DDoS stressor website there. And now I can send spoof traffic. Yeah, so it's, this is for an attacker, this is really great, especially, you know, if you want to set up this stressor booter service, it doesn't cost you anything other than running, you know, buying some hosting capacity, you know, like a VPS or something. And, you know, very easy, you can make lots of money. As long as the authorities don't find you, you know, people have have made lots of money, unfortunately. So in the community, we have been trying to trace back where these DDoS attacks come from, where this spoof traffic is coming from. And, you know, it's easy to trace back if the if it's a true source IP that's coming in, but if it's spoofed, then you have to dig through your traffic logs , like NetFlow records, and then figure out where it came from, which interface it came from. And then you see, oh, it came from this other upstream ISP. So then you need to contact them and say, Hey, would you please look into your logs, and see if you can figure out who who sent that? Was it on your network? Or was it someone behind you? And you have to, and this is more, this is kind of a manual process. It's very tedious. We have been making some some progress at this. Sometimes, you know, you contact a another company and like, hey, we see the spoofing coming from you. And then they just ignore it. And they're like, ah, you know, this isn't our IP, we don't know what the heck to do. Sorry, you know, we can't help you. But there are a lot of good networks out there. They're doing a good job and trying to help. So we have been working at this for a few years now, we've actually made some progress. And you can see the the graph of this amplification traffic, it's just been going up for since like, the year 2000 is just steady increase, increase. And then as we've been doing this traceback, we've seen this this decrease. So we see the attacker is switching a little bit more to to using botnets, residential proxies, stuff like that. But this still the amplification traffic is still out there is still a really big problem. But we have we have made some progress globally. But there is this big tunnel vulnerability that is recently announced. So there were this is released by two researchers Angelos Benedictus and Matthew Vanhoef. I hope I'm I'm probably butchering their names there. They're out of the KU Leuven in Belgium, I believe is the university. And it's called Haunted by Legacy. I have a link to to the paper here in the in the slides. But there are numerous vulnerabilities that they described in the paper, but I want to focus on one specific vulnerability. And that is the vulnerability where you can send spoof traffic using this tunnel vulnerability. And the vulnerability it affects. This is GRE, IP and IP 6 and 4, 4 and 6 and GUE, which is I had never heard of GUE as a as a tunneling protocol, but I guess that is a valid tunneling tunneling protocol. Okay, so this spoofing vulnerability is that the researchers, they, they realize that you could, if I try to send a spoof packet from my laptop here to go out to the internet, it would be blocked, you know, hopefully they're doing a good job here at DEF CON and they're like, Nope, sorry, you're not allowed to send that out out to the internet. So that would be dropped. But if I took that packet, and I encapsulated it, say in GRE , the spoof traffic, and then sent it to a vulnerable device, then that device will de-encapsulate it, and then send the spoof traffic out. So this is this is unfortunately, is a very, very big vulnerability. And I believe that it's going to cause a lot of a lot of problems in the future. So we infected devices, you have Cisco routers, Cisco switches, Juniper VPN servers, ISP home routers, there, there are lots of different devices that are that are vulnerable to this. And I have a picture here, a animated slide that shows how the attack works, where the there is a the attacker is creating this spoof packet, encapsulates it in GRE, sends it to the vulnerable router, the vulnerable router removes that GRE encapsulation, then it gets sent to the amplifier, the amplifier then amplifies the attack traffic, and then it's sent down to to the victim. So the the researchers found that there were 4 million vulnerable hosts on the internet. 4 million and and out of those 2.3 million specifically can send spoof traffic. And I have a link there to shadow server, shadow servers, that organization, like a nonprofit that scans the internet looking for vulnerable hosts to these different things like this tunnel vulnerability, a lot of other issues, and they provide that information for free to organizations. So if you, you know, operating a network out there, and you want to get free information about vulnerable devices on your network, contact shadow server. But they have a map that shows where these vulnerable devices are, they're spread all throughout the world. There are there are 11,000 different autonomous systems that are out there that that have these these vulnerabilities. And so this is this is going to be a heyday for this for spoofers. So now instead of having to find a vulnerable network, a hosting company that will allow you to send spoof traffic, now anybody, anybody can send spoof traffic from any IP address. And as an attacker, you don't have to keep sending the spoof traffic to just one vulnerable devices. Since there are these 2.3 million vulnerable devices on the internet, you could send spoof traffic to each one of these different hosts. And you know, the likelihood of getting caught goes down even more, unfortunately. So here's how to find out if you have devices that are vulnerable. As I said, shadow server, as this this free report, they will tell you. NetScout is a company. And they have DDoS detection, mitigation services and appliances. And they realize that this is such a big vulnerability that even if you're not a customer, you can contact NetScout and they will give you a free report to say to identify which what devices on your network are vulnerable. I created a script. I have it. I have my GitHub link there for the script. And so you can you can use that to test to see if your devices is vulnerable or not. And I also created a, a tool that I call Tattletail that uses the elastic, the elk stash, the elk that yeah, it's like elastic log stash cabana. Sorry. And so these are scripts that integrate in with that to and then it uses file beat to collect NetFlow data, do the analysis and look for spoof traffic. And if it identifies that there's spoof traffic, then it puts the information into the elastic database. And then you can go through the elastic database and view, you know, when when this spoof traffic is coming in and allows you to trace it back and see like, oh, it's came from, you know, this this peer of mine, this this other network, they keep sending me spoof traffic. So that's a free tool that's available that that'll help you identify that spoof traffic. So what do you do if you're vulnerable? You contact you can contact the vendor, the vendor should have a patch for this. Also, you can apply an access list to block unwanted tunnel traffic going to your devices with your devices as the destination. I have an example ACL here. That's that's in the slide. Some other things that you should be doing, you should be preventing, you should prevent spoofing coming from anywhere on your network. So if you like, normally, we have these filters to prevent spoofing from the edge from our devices, like laptops that are directly connected. But most networks do not have the filters preventing the spoof, the routers from doing spoofing. And so I think that is why this is such a big vulnerability that like, like all these networks that are doing a good job preventing their customers, the edge devices from generating from journeying spoof traffic, that's great. But they didn't think about the routers. And so now there are all these vulnerable routers that are in the middle there in the in the network that can generate the spoof traffic. And so I also need to be looking for the spoof traffic with NetFlow and using tools like that tattletale tool that I have. So you may think that you're not vulnerable, you know, you'd be like, hey, we we don't even have any kind of tunnel configuration on any of our routers. So, so we're good, right? Wrong. The routers are trying to be helpful. And when they get a GRE packet or IP and IP packet, they de-encapsulate it just trying to be helpful. Even if there is no tunnel configuration in the routers, they're still they're still doing the de-encapsulation. So that's, that's a big issue there. So yeah, that's, that's the reason that you need to have these access lists, you need to make sure your routers are patched, even if you don't have the encapsulated traffic, any kind of tunnel configuration in your router. So, you know, this being DEF CON, I was like, okay, I'm gonna what kind of interesting hack can I can I do with this? And so, man, I wish I could present this, you know, but I'm just gonna have to describe it to you. So I call this around the world in GRE packets. So what if you took this this GRE packet, say the I started with a ping to quad eight to Google quad eight, and then I put that into a GRE packet. And then I put it into another GRE packet around that. And then I put another GRE packet around that and another one and another one. And I was like, okay, well, how many of this can I do? So I was able to to do 61 different packets encapsulate encapsulations. So this packet that I sent out, it went from from this virtual machine, you know, I think in like, you know, Linode or something like that, went out to one of these vulnerable routers got de encapsulated, sent to another vulnerable router, and went back 61 times until the last router de encapsulated it, sent the ping to Google. And then Google sent the reply back to me. So I was kind of amazed by that. And so that was, I thought that was a really neat hack. And I was going to do do a live demo of it. But yeah, the limit there was 61 packets, because that was like, like 1480 bytes or something like that. And so if it got any bigger, then, then it would have to get fragmented. And I didn't do any fragmentation. Theoretically, you could, could make it longer, might be something might be interesting to give that a try. But it was, you know, it was just really something for fun. Just a just just an interesting hack of this, this, this vulnerability. So this is the slides here, talking about that, that interesting hack there. And so coming to the end here, I really want people to realize that this is an important vulnerability that attackers are going to start to to abuse. We haven't really seen too much of it in the wild yet. And it's kind of difficult to identify when it actually happens because of that difficulty in doing the traceback. But this vulnerability, it can be used for a lot of different things. Other than just doing the amplification, you can do like access list bypass. So let's say like, you know, especially for SNMP sets. So a lot of, you know, SNMP is UDP, it's stateless. And so, you know, we put these ACLs on our on our routers and say, hey, only allow SNMP from these source IPs. But with this tunnel vulnerability, you can put a private IP address in there and get past that, that ACL. So that's a that's a big issue there. I know that there are certain nation states that were doing SNMP sets to to do TFTP copies of the config. So you know, that's that that is a serious issue there. Also, you can do direct path spoofed attacks with this with this vulnerability and then hide the true source IP. And then also you can do corruption of logs. I know there were there were a lot of people, they're like SSH servers, I think we're getting blocked because people were sending spoof traffic to their, you know, from from certain source IPs, it was going to these SSH servers. And then they're like, I think they were using something similar to like fail fail to ban that was saying like, Oh, that's a bad IP, I'm going to block that. Well, using this, you know, you could spoof from any source IP, and theoretically, you know, corrupt logs or get hosts on on blacklists like that. And that's, that's the end of my talk. Does anybody have a question? Yep. So yeah, so the question is, do the vulnerable hosts, they have to be on one of the the routers that that has the vulnerability? Is that your question? Yeah. Um, yes, yes. So, yeah, the, the vulnerable routers, they are, they have this gear, this tunnel vulnerability, and they are allowing spoof traffic out. So they may be doing a good job of preventing their customers and another edge devices from sending spoof traffic. But a lot of networks, I would say, you know, maybe like 90% of networks are not thinking about that spoofing coming from the router. So that's, that's, I think, where this where the biggest issue is. Yep. Any other questions? Oh, I'm sorry. Yep. An ID for the vulnerability. Okay, the question was, is there an ID for the vulnerability? And like the the network connection here is shit. But I can tell you, it's , it's a it's a vulnerability, I would say, because even if there's no configuration on a lot of these devices, they will still do the de-encapsulation. And they should they should not do that. Like, yeah, they should be checking to make sure that the, the GRE IP address, you know, whatever , whatever tunnel IP address it is that it's, you know, that they're supposed to de-encapsulate it. They're just like the routers are like, they just they did a bad job of programming. And they're like, well, we'll just let any IP address as long as it comes in. Okay, we'll do the de-encapsulation on it. It should be like just certain source IPs that have been configured, that will that it should de-encapsulate. So that the vulnerability is called haunted by legacy, discovering and exploiting vulnerable tunneling hosts. So if you if you Google that, like haunted by legacy tunnel, something like that, that it will come up that way. I think I think there are numerous CSVs. I think there are maybe like three of them, four of them, something like that. Okay, anybody have any questions? Yep. Yeah, that's a good question. I believe that does anybody know where the so the question was, where are the slides going to be located? And I I don't think I've ever looked up slides on like presentations that that have been on DEF CON, other than on YouTube, but I'm pretty sure this is not going to be on on YouTube. So if anybody knows, like, maybe you know where the where the slides are going to be? Yeah, I can actually make the slides available. I could I could share it like if you want to give me your email address or some contact information or anybody I can I can send it out to you. That's no problem. Oh, yeah. I'm sorry, I'm having trouble hearing you. Like you're asking about the ACL bypass. Yeah. Okay, yeah. So the question was about the the ACL bypass. So normally, say, say with like, an access list that you would put on your SNMP server on the on the router, you would say like, hey, permit from these source IPs, and then deny from everyone anywhere else. So that so it has to be sourced from certain source IPs. So the attacker would need to know one of those source IPs, they could try to enumerate through and just keep doing SNMP queries, SNMP sets to see if it gets by. But yeah, that's that's normally the way that the ACL is is configured. Does that answer your question? I'm sorry. Oh, yeah. 6061. Yeah. Oh, no. Okay. All right. So that that's 61 number. So that was a just kind of a hack that I did, just to see what would happen if I took a GRE packet and put it inside another GRE packet inside of another GRE packet inside of another one, and sent it to these vulnerable routers around the internet, and see if I could get my ping back. And, you know, I was able to do it. And sometimes it took like, I would have to do it like over and over again until until I got my ping back and select like different hosts. But yeah, that was just that was just kind of a fun hack that I wanted to share. Just show how you could take advantage of this vulnerability. Yep. Yeah. Yeah. So that question was like, do the large number of encapsulations help with spoofing? I guess it could you could you could like make this sort of like jump around the internet. So it's even harder to track back. Because if you do like, if you if like, let's say a researcher is figuring out like, oh, this guy is sending spoof traffic, and it's coming, you know, from here, it's going from this router. But let's say that you do this multiple encapsulation, then you know, your packet is like jumping all around the world before it gets de-encapsulated. So it makes it exponentially more difficult for for the defenders to figure out where it's coming from. It's kind of like, you know, say if you're a hacker, you know, you, you know, you have multiple servers that you've set up that you bounce from, and then you then you do your attack, you don't do it from your, you know, local computer, you jump from host to host to host. And then you're like, okay, I'm in, you know, Uzbekistan, and I'm going to do the attack from there. Then if they figure out like, oh, let's trace back to that, and then yeah, it makes it it just makes it more much more difficult. So yeah, you can do that with this encapsulation. Yeah. Yes, exactly. Yeah, that's, yeah. So yeah, the person in the audience is saying that like, hey, you can change the the IPs around change the encapsulations. And yeah, that's, that's interesting. I didn't really think about that is you could, you could have like GRE inside of IP and IP inside of another protocol. And, and yeah, that's, that's definitely something you that I believe you can do with this, this vulnerability. Cool. Anybody else? Going once, going twice? Okay. All right. Thanks, everybody.