start	end	text
0	9700	So my name is Rich and I work for a company that gets a lot of DDoS attacks.
9700	15300	I do a lot of stuff related to DDoS and network security.
15300	22340	And this vulnerability got released about six months ago.
23300	31520	And the vulnerability is related to encapsulating traffic.
32280	38840	And then there are various types of attacks that you can do with this encapsulated traffic.
38840	45560	But first, I'm just going to give a brief overview on DDoS amplification attacks.
45560	54500	In a DDoS amplification attack, the attacker is able to spoof the source IP of the victim.
54640	59080	They say the victim is quad one.
59080	68460	The attacker will spoof that quad one and then send an amplification request, a request packet, to an open amplifier.
68460	71340	And so these can be open DNS servers.
71340	72460	We see that quite a bit.
72460	74220	Open NTP servers.
74840	87520	There are vulnerable HTTP middle boxes like web censoring things like the Great Firewall of China.
88560	95080	And you know, like other firewalls that will say like, hey, you can't go to this porn site because it's being blocked.
95080	98020	A lot of those devices do not check the state.
98020	102020	And so attackers have been using those to generate amplification attacks.
102020	114200	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.
114200	118080	And if it doesn't get a SYNACK, it will send back another SYNACK and another SYNACK.
118080	123160	And so, you know, even with TCP, it has this small amplification factor.
123560	134160	And some devices, some TCP stacks will send out like hundreds or thousands of SYNACKs back.
134160	137520	So there can be a large amplification factor there.
137580	147060	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.
147880	157900	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.
157900	161740	And I have a nice animated picture of that, but you can't see it.
166320	172460	So how do these attackers find these networks that they can do the spoofing from?
172730	175580	There are numerous ways that they can do this.
176020	179640	A lot of times they trade this information online.
179640	192320	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.
192320	211540	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.
211540	221380	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.
222020	228680	There is a project called the spoofer project that's out of UC San Diego.
228820	237020	And they are trying to identify networks that can do spoofing to try to get the network operators to fix the issue.
237020	239900	But the attackers are actually using this information as well.
239900	244760	They're like, oh, wow, okay, they see that this network, this hosting company allows spoofing.
245460	252140	And they're like, okay, I'm going to go set up my DDoS stressor website there.
252140	253860	And now I can send spoof traffic.
258060	275040	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.
275300	279140	And, you know, very easy, you can make lots of money.
279300	285060	As long as the authorities don't find you, you know, people have have made lots of money, unfortunately.
289350	297670	So in the community, we have been trying to trace back where these DDoS attacks come from, where this spoof traffic is coming from.
297670	310870	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.
310870	315090	And then you see, oh, it came from this other upstream ISP.
315090	322170	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?
322170	322910	Was it on your network?
322910	324010	Or was it someone behind you?
324010	327250	And you have to, and this is more, this is kind of a manual process.
327250	328610	It's very tedious.
329450	333550	We have been making some some progress at this.
335050	341030	Sometimes, you know, you contact a another company and like, hey, we see the spoofing coming from you.
341030	342410	And then they just ignore it.
342410	345710	And they're like, ah, you know, this isn't our IP, we don't know what the heck to do.
345710	347590	Sorry, you know, we can't help you.
347590	350310	But there are a lot of good networks out there.
350310	352910	They're doing a good job and trying to help.
353430	358530	So we have been working at this for a few years now, we've actually made some progress.
358530	368430	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.
368470	373150	And then as we've been doing this traceback, we've seen this this decrease.
373290	379630	So we see the attacker is switching a little bit more to to using botnets, residential proxies, stuff like that.
380270	384810	But this still the amplification traffic is still out there is still a really big problem.
385470	388990	But we have we have made some progress globally.
389730	395550	But there is this big tunnel vulnerability that is recently announced.
395810	403710	So there were this is released by two researchers Angelos Benedictus and Matthew Vanhoef.
403710	406270	I hope I'm I'm probably butchering their names there.
406270	412310	They're out of the KU Leuven in Belgium, I believe is the university.
412310	415910	And it's called Haunted by Legacy.
415910	420150	I have a link to to the paper here in the in the slides.
420710	429510	But there are numerous vulnerabilities that they described in the paper, but I want to focus on one specific vulnerability.
429510	436090	And that is the vulnerability where you can send spoof traffic using this tunnel vulnerability.
436670	438810	And the vulnerability it affects.
438890	456830	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.
456830	475050	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,
475050	478570	Nope, sorry, you're not allowed to send that out out to the internet.
479830	481310	So that would be dropped.
481310	496010	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.
497350	503450	So this is this is unfortunately, is a very, very big vulnerability.
503870	510830	And I believe that it's going to cause a lot of a lot of problems in the future.
511010	525690	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.
527610	548930	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,
548930	557590	then it gets sent to the amplifier, the amplifier then amplifies the attack traffic, and then it's sent down to to the victim.
560080	566940	So the the researchers found that there were 4 million vulnerable hosts on the internet.
567020	574220	4 million and and out of those 2.3 million specifically can send spoof traffic.
575000	599380	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.
599380	610800	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.
610940	617000	But they have a map that shows where these vulnerable devices are, they're spread all throughout the world.
617000	623220	There are there are 11,000 different autonomous systems that are out there that that have these these vulnerabilities.
623720	628400	And so this is this is going to be a heyday for this for spoofers.
628420	643300	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.
647810	652610	And as an attacker, you don't have to keep sending the spoof traffic to just one vulnerable devices.
652750	661350	Since there are these 2.3 million vulnerable devices on the internet, you could send spoof traffic to each one of these different hosts.
661350	667210	And you know, the likelihood of getting caught goes down even more, unfortunately.
672780	677720	So here's how to find out if you have devices that are vulnerable.
677980	683420	As I said, shadow server, as this this free report, they will tell you.
684040	686640	NetScout is a company.
686640	693060	And they have DDoS detection, mitigation services and appliances.
693080	706060	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.
706840	709780	I created a script.
709800	710740	I have it.
710740	714140	I have my GitHub link there for the script.
714140	720100	And so you can you can use that to test to see if your devices is vulnerable or not.
721360	739120	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.
739120	739880	Sorry.
740440	751800	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.
751800	757660	And if it identifies that there's spoof traffic, then it puts the information into the elastic database.
757660	772220	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.
772220	778060	So that's a free tool that's available that that'll help you identify that spoof traffic.
778580	781500	So what do you do if you're vulnerable?
782020	787400	You contact you can contact the vendor, the vendor should have a patch for this.
788140	798660	Also, you can apply an access list to block unwanted tunnel traffic going to your devices with your devices as the destination.
798660	801140	I have an example ACL here.
801720	804180	That's that's in the slide.
807820	816320	Some other things that you should be doing, you should be preventing, you should prevent spoofing coming from anywhere on your network.
816760	826620	So if you like, normally, we have these filters to prevent spoofing from the edge from our devices, like laptops that are directly connected.
826620	832840	But most networks do not have the filters preventing the spoof, the routers from doing spoofing.
832840	843440	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.
843440	845140	But they didn't think about the routers.
845140	852660	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.
853140	861320	And so I also need to be looking for the spoof traffic with NetFlow and using tools like that tattletale tool that I have.
865210	874810	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.
874810	876970	So, so we're good, right?
877190	878390	Wrong.
878690	881950	The routers are trying to be helpful.
881950	887870	And when they get a GRE packet or IP and IP packet, they de-encapsulate it just trying to be helpful.
887870	894610	Even if there is no tunnel configuration in the routers, they're still they're still doing the de-encapsulation.
894610	897350	So that's, that's a big issue there.
898910	910230	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.
913690	920890	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?
921090	927590	And so, man, I wish I could present this, you know, but I'm just gonna have to describe it to you.
927590	931610	So I call this around the world in GRE packets.
931610	944110	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.
944690	949050	And then I put it into another GRE packet around that.
949050	952670	And then I put another GRE packet around that and another one and another one.
952670	955630	And I was like, okay, well, how many of this can I do?
955890	965990	So I was able to to do 61 different packets encapsulate encapsulations.
965990	986790	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,
986790	989410	sent the ping to Google.
989510	991850	And then Google sent the reply back to me.
991850	993750	So I was kind of amazed by that.
993750	996810	And so that was, I thought that was a really neat hack.
996810	999270	And I was going to do do a live demo of it.
1002630	1012010	But yeah, the limit there was 61 packets, because that was like, like 1480 bytes or something like that.
1012010	1016470	And so if it got any bigger, then, then it would have to get fragmented.
1016470	1018810	And I didn't do any fragmentation.
1018990	1025590	Theoretically, you could, could make it longer, might be something might be interesting to give that a try.
1025590	1031430	But it was, you know, it was just really something for fun.
1031430	1036370	Just a just just an interesting hack of this, this, this vulnerability.
1044040	1050740	So this is the slides here, talking about that, that interesting hack there.
1050740	1063860	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.
1064260	1067500	We haven't really seen too much of it in the wild yet.
1067500	1074840	And it's kind of difficult to identify when it actually happens because of that difficulty in doing the traceback.
1075680	1081300	But this vulnerability, it can be used for a lot of different things.
1081300	1087140	Other than just doing the amplification, you can do like access list bypass.
1088240	1091640	So let's say like, you know, especially for SNMP sets.
1091980	1095440	So a lot of, you know, SNMP is UDP, it's stateless.
1095440	1103400	And so, you know, we put these ACLs on our on our routers and say, hey, only allow SNMP from these source IPs.
1103400	1111080	But with this tunnel vulnerability, you can put a private IP address in there and get past that, that ACL.
1111600	1114440	So that's a that's a big issue there.
1114440	1125060	I know that there are certain nation states that were doing SNMP sets to to do TFTP copies of the config.
1125640	1130120	So you know, that's that that is a serious issue there.
1130120	1137900	Also, you can do direct path spoofed attacks with this with this vulnerability and then hide the true source IP.
1138420	1142140	And then also you can do corruption of logs.
1142340	1157840	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.
1157840	1164900	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.
1164920	1174840	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.
1178290	1181130	And that's, that's the end of my talk.
1181130	1183770	Does anybody have a question?
1187770	1188870	Yep.
1195510	1206230	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?
1206230	1207130	Is that your question?
1212350	1213430	Yeah.
1222460	1225920	Um, yes, yes.
1225920	1238160	So, yeah, the, the vulnerable routers, they are, they have this gear, this tunnel vulnerability, and they are allowing spoof traffic out.
1238160	1246380	So they may be doing a good job of preventing their customers and another edge devices from sending spoof traffic.
1246380	1254960	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.
1255100	1259260	So that's, that's, I think, where this where the biggest issue is.
1259260	1260040	Yep.
1261260	1262860	Any other questions?
1263500	1264060	Oh, I'm sorry.
1264060	1264540	Yep.
1268320	1270860	An ID for the vulnerability.
1273740	1277680	Okay, the question was, is there an ID for the vulnerability?
1278400	1280980	And like the the network connection here is shit.
1281440	1284900	But I can tell you,
1291450	1302650	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.
1302650	1304550	And they should they should not do that.
1304550	1319710	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.
1319710	1323550	They're just like the routers are like, they just they did a bad job of programming.
1323550	1327570	And they're like, well, we'll just let any IP address as long as it comes in.
1327570	1329090	Okay, we'll do the de-encapsulation on it.
1329090	1335930	It should be like just certain source IPs that have been configured, that will that it should de-encapsulate.
1336030	1344670	So that the vulnerability is called haunted by legacy, discovering and exploiting vulnerable tunneling hosts.
1345850	1353570	So if you if you Google that, like haunted by legacy tunnel, something like that, that it will come up that way.
1353690	1356330	I think I think there are numerous CSVs.
1356330	1361310	I think there are maybe like three of them, four of them, something like that.
1365720	1368020	Okay, anybody have any questions?
1368020	1368460	Yep.
1374150	1375830	Yeah, that's a good question.
1376510	1382710	I believe that does anybody know where the so the question was, where are the slides going to be located?
1383190	1394310	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.
1394450	1399370	So if anybody knows, like, maybe you know where the where the slides are going to be?
1410030	1413810	Yeah, I can actually make the slides available.
1413930	1420910	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.
1420910	1421930	That's no problem.
1424720	1425920	Oh, yeah.
1437270	1439010	I'm sorry, I'm having trouble hearing you.
1439010	1442510	Like you're asking about the ACL bypass.
1442510	1442650	Yeah.
1450170	1451410	Okay, yeah.
1451410	1454170	So the question was about the the ACL bypass.
1454590	1472150	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.
1472150	1475230	So that so it has to be sourced from certain source IPs.
1475230	1486350	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.
1487290	1492010	But yeah, that's that's normally the way that the ACL is is configured.
1492110	1494890	Does that answer your question?
1497680	1498780	I'm sorry.
1503760	1504720	Oh, yeah.
1504960	1505940	6061.
1505940	1506940	Yeah.
1511880	1515540	Oh, no.
1515540	1515780	Okay.
1515780	1516000	All right.
1516000	1517640	So that that's 61 number.
1517640	1536500	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.
1536500	1539260	And, you know, I was able to do it.
1539260	1547920	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.
1548680	1552900	But yeah, that was just that was just kind of a fun hack that I wanted to share.
1552900	1556340	Just show how you could take advantage of this vulnerability.
1556840	1557480	Yep.
1558180	1559040	Yeah.
1570900	1571500	Yeah.
1571500	1576700	So that question was like, do the large number of encapsulations help with spoofing?
1576940	1583200	I guess it could you could you could like make this sort of like jump around the internet.
1583200	1585520	So it's even harder to track back.
1585520	1594960	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.
1594960	1602620	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.
1602620	1611780	So it makes it exponentially more difficult for for the defenders to figure out where it's coming from.
1611820	1628900	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.
1628900	1633420	And then you're like, okay, I'm in, you know, Uzbekistan, and I'm going to do the attack from there.
1633420	1638980	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.
1639000	1641600	So yeah, you can do that with this encapsulation.
1649480	1650440	Yeah.
1654360	1655800	Yes, exactly.
1656180	1657980	Yeah, that's, yeah.
1657980	1665740	So yeah, the person in the audience is saying that like, hey, you can change the the IPs around change the encapsulations.
1665740	1667480	And yeah, that's, that's interesting.
1667480	1672720	I didn't really think about that is you could, you could have like GRE inside of IP and IP inside of another protocol.
1672720	1678600	And, and yeah, that's, that's definitely something you that I believe you can do with this, this vulnerability.
1680940	1681780	Cool.
1682200	1683760	Anybody else?
1684460	1685700	Going once, going twice?
1685880	1686360	Okay.
1686360	1686760	All right.
1686760	1687620	Thanks, everybody.
