1 00:00:00,000 --> 00:00:04,460 Thank you very much for standing in line or whatever you had to do to come see me talk. 2 00:00:04,800 --> 00:00:10,940 This is awesome. I'm Desius. I'm so stoked to be speaking at DEF CON. 3 00:00:13,920 --> 00:00:18,220 It's pretty easy to figure out who I really am in real life and what company I work for, 4 00:00:18,340 --> 00:00:21,380 and I want to make it clear that I'm here speaking on my own behalf. 5 00:00:21,480 --> 00:00:23,700 I'm not here as a representative of my employer. 6 00:00:24,760 --> 00:00:29,040 And what I'm going to talk about is surveillance systems in the Internet. 7 00:00:30,000 --> 00:00:34,300 And how they work, and actually some concerns I have about how they're architected. 8 00:00:37,060 --> 00:00:46,760 So, there's this great debate that's been going on for years now about the nature of surveillance in the Internet infrastructure in the future. 9 00:00:47,920 --> 00:00:53,140 You know, are we going to have end-to-end encryption so that surveillance of our communications is essentially impossible? 10 00:00:54,320 --> 00:00:57,580 Or are we going to have systems that are built into the Internet 11 00:00:58,280 --> 00:00:59,980 that enable the government to do what they want to do? 12 00:00:59,980 --> 00:01:03,060 Or are we going to have the government to surveil our communications when they decide that they need to? 13 00:01:04,520 --> 00:01:08,720 So, one of the first sort of salvos in this discussion was the Clipper chip. 14 00:01:10,320 --> 00:01:15,760 The Clipper chip was a crypto system that had a backdoor so the government could access the contents. 15 00:01:16,320 --> 00:01:21,440 It also had a flaw, which was discovered by some cryptographers, 16 00:01:21,540 --> 00:01:26,580 and as a consequence, you know, didn't become as popular as they thought it was going to. 17 00:01:28,000 --> 00:01:29,960 That was in the early 1990s. 18 00:01:29,980 --> 00:01:36,560 Around the same period of time, the U.S. government passed a law called the Communications Assistance for Law Enforcement Act. 19 00:01:37,000 --> 00:01:44,940 This law requires telecommunications companies to create interfaces that allow law enforcement to perform surveillance. 20 00:01:47,340 --> 00:01:51,780 The reason for this law, at least the justification for the law that was presented, 21 00:01:51,880 --> 00:01:54,760 is that telecommunications networks are getting more and more complicated. 22 00:01:55,100 --> 00:01:58,300 And so it used to be the case that, you know, if you wanted to wiretap somebody, 23 00:01:58,420 --> 00:01:59,640 you could go out and with your... 24 00:01:59,980 --> 00:02:02,160 you know, alligator clips and hook up to a junction box. 25 00:02:02,500 --> 00:02:06,700 And as the systems have become more sophisticated, it's more complicated to do that. 26 00:02:06,820 --> 00:02:09,800 And so they said, we need an interface that allows us to collect this data. 27 00:02:11,340 --> 00:02:14,980 Originally, there was this agreement negotiated within CALEA 28 00:02:14,980 --> 00:02:20,160 such that it only applied to what we consider to be voice telecommunication systems. 29 00:02:20,340 --> 00:02:26,220 And that data telecommunication or data internet networks like that, you know, were not... 30 00:02:26,220 --> 00:02:27,420 it didn't apply to them. 31 00:02:28,200 --> 00:02:29,900 And in 2005, 32 00:02:29,980 --> 00:02:36,240 the FCC made a ruling that said that broadband internet providers were telecommunications companies. 33 00:02:36,660 --> 00:02:39,120 And so CALEA did apply to them. 34 00:02:39,340 --> 00:02:43,880 And so now we're beginning to see this technology rolled out into the internet. 35 00:02:44,300 --> 00:02:52,140 In fact, in Europe, various governments required this kind of technology to be rolled out into internet networks 36 00:02:52,140 --> 00:02:53,460 before the United States did. 37 00:02:55,260 --> 00:02:57,540 So the IETF got involved. 38 00:02:57,800 --> 00:02:59,960 And they published an RFC in the year 2005. 39 00:02:59,980 --> 00:03:05,540 And this was in the year 2000, which talks about whether or not the IETF will consider requirements for wiretapping 40 00:03:05,540 --> 00:03:08,960 when they're designing the protocols that the Internet is based on. 41 00:03:09,060 --> 00:03:10,800 And they decided that they would not do that. 42 00:03:11,000 --> 00:03:12,580 And there's a bunch of different reasons why. 43 00:03:13,760 --> 00:03:19,260 One of the reasons that they stated was this sort of dichotomy that a lot of people think exists, 44 00:03:19,960 --> 00:03:24,120 where they think that wiretapping, in the future, will either be easy or impossible. 45 00:03:24,520 --> 00:03:27,720 Because we either have end-to-end encryption or we do not. 46 00:03:28,040 --> 00:03:29,960 If we have end-to-end encryption, you can't wiretapping. 47 00:03:29,960 --> 00:03:34,960 wiretap. If we don't, then you hook up somewhere where things aren't encrypted and you don't need 48 00:03:34,960 --> 00:03:42,180 an interface built in for that. So one of the other arguments they made is that the internet 49 00:03:42,180 --> 00:03:46,360 should be free from security loopholes. And so if you built interfaces into the internet that 50 00:03:46,360 --> 00:03:51,380 enabled wiretapping, someone might misuse them. Someone might gain unauthorized access to them. 51 00:03:51,780 --> 00:03:56,720 And that's a concern. So perhaps we shouldn't design those weaknesses in. 52 00:03:56,720 --> 00:04:02,120 Again, however, they did say that if you were going to design a surveillance system into the 53 00:04:02,120 --> 00:04:08,320 internet, that you should tell everyone how you did it. You should publish the details of your 54 00:04:08,320 --> 00:04:13,940 architecture. And there's two reasons for that. The first is that it allows peer review. People 55 00:04:13,940 --> 00:04:17,140 can take a look at your architecture and see if there are any security weaknesses in it. 56 00:04:17,520 --> 00:04:24,600 And the second thing is really that almost all of the architectural underpinnings of the internet 57 00:04:24,600 --> 00:04:26,200 are available for all of us to read. 58 00:04:26,720 --> 00:04:32,240 And so if you had some surveillance system that was a part of the internet infrastructure that was 59 00:04:32,240 --> 00:04:36,240 secret and no one could understand how it worked, then that would almost be antithetical to the way 60 00:04:36,240 --> 00:04:45,360 that, you know, we go about designing the internet. So in keeping with that policy, Cisco published 61 00:04:45,360 --> 00:04:54,300 an RFC that described the interface that they built within Cisco routers for performing wiretaps. 62 00:04:55,660 --> 00:04:56,260 The... 63 00:04:56,260 --> 00:05:01,440 It's not an internet standard because the IETF decided they wouldn't have those. But they published 64 00:05:01,440 --> 00:05:06,780 Cisco's architecture within the IESG so that it would be freely available within the same 65 00:05:06,780 --> 00:05:12,760 documentation set and you can go read about it. Cisco had to build this because their customers 66 00:05:12,760 --> 00:05:17,320 demanded it and because the governments of the countries their customers are operating in 67 00:05:17,320 --> 00:05:23,220 essentially forced them to. And it's... The architecture they decided on was based on 68 00:05:23,220 --> 00:05:26,240 some previous technical standards that were defined by the European Commission. 69 00:05:26,240 --> 00:05:29,380 This is called the European Telecommunications Standards Institute, ETSI. 70 00:05:29,720 --> 00:05:35,040 Some of these ETSI standards are available online. You can find them on cryptome.org. 71 00:05:36,760 --> 00:05:45,740 So the way it works is it's an SNMPv3 interface. By sending an SNMPv3 request, you can provision a 72 00:05:45,740 --> 00:05:52,100 wiretap. It's available in a bunch of different sort of edge routers that large ISPs would be using. 73 00:05:53,180 --> 00:05:54,960 Let's talk about the architecture a little bit. 74 00:05:54,960 --> 00:06:03,000 it. This diagram is from the RFC. And some of the entities in this diagram are actual pieces 75 00:06:03,000 --> 00:06:08,720 of equipment. And some of the entities are organizations of people. The first organization 76 00:06:08,720 --> 00:06:18,320 of people is the LEA. That's the law enforcement agency. They get permission to wiretap a suspect 77 00:06:18,320 --> 00:06:24,000 and they bring it to the ISP. And the LI administration function is this organization 78 00:06:24,000 --> 00:06:29,460 of people in the ISP who handle this interface for law enforcement. So law enforcement comes 79 00:06:29,460 --> 00:06:33,640 to them with the warrant. They validate that the warrant is valid. And they go ahead and 80 00:06:33,640 --> 00:06:40,840 provision the wiretap. You can actually outsource your lawful intercept administration function if 81 00:06:40,840 --> 00:06:44,840 you're a large ISP. This is just marketing material from a number of different companies 82 00:06:44,840 --> 00:06:49,540 that offer to perform this service for you. So they hire lawyers and they have people who 83 00:06:49,540 --> 00:06:53,980 understand the technology. And so when law enforcement wants to access your network, 84 00:06:54,000 --> 00:07:00,580 they provide the access. The wiretap is provisioned using this thing 85 00:07:00,580 --> 00:07:05,400 called a mediation device. The mediation device is really the heart of the wiretapping system. 86 00:07:06,020 --> 00:07:11,580 And what it does is it sends interception requests to various intercept access points. 87 00:07:11,920 --> 00:07:16,340 Various places where you can collect data. The data is collected and then it's sent back 88 00:07:16,340 --> 00:07:20,580 to the mediation device. And the mediation device packs it and sends it on to the law 89 00:07:20,580 --> 00:07:21,180 enforcement agency. 90 00:07:24,060 --> 00:07:29,260 Before I get there, I'm going to talk about mediation device vendors. This is just a partial 91 00:07:29,260 --> 00:07:34,440 list of vendors who make mediation devices that are compatible with the Cisco architecture 92 00:07:34,440 --> 00:07:38,400 for lawful intercept. So there's a bunch of different companies out there that make this 93 00:07:38,400 --> 00:07:46,420 technology. That picture is from one of the companies. I picked their pictures out because 94 00:07:46,420 --> 00:07:53,480 they have really nice looking marketing material. So I want to point something out about this 95 00:07:53,480 --> 00:07:53,800 picture. 96 00:07:54,000 --> 00:07:57,260 So this sort of describes the process that they're going through. At the top there's 97 00:07:57,260 --> 00:08:03,720 a warrant. And the warrant is, you know, enables them to use this technology to find 98 00:08:03,720 --> 00:08:07,160 this red individual who's the target amongst all of this other communication that's going 99 00:08:07,160 --> 00:08:11,760 on. And we filter the red individual out. And now we have actionable intelligence based 100 00:08:11,760 --> 00:08:14,600 on our monitoring of that person. That's the technology they're selling. 101 00:08:14,860 --> 00:08:19,420 So I just want to point out that there are other products that these companies make. 102 00:08:19,780 --> 00:08:23,980 And a number of the different companies in the list, including Variant, also have a 103 00:08:23,980 --> 00:08:26,920 lot of different types of solutions. They have, as opposed to lawful intercept solutions, 104 00:08:27,140 --> 00:08:31,700 they also have mass intercept solutions. And they have marketing material about their 105 00:08:31,700 --> 00:08:37,160 mass intercept solutions. So this is the marketing picture for their mass intercept 106 00:08:37,160 --> 00:08:42,260 solution. There is no warrant at the top. There are a large number of people there. 107 00:08:42,420 --> 00:08:47,200 None of them is identified as the individual target. The technology actually filters out 108 00:08:47,200 --> 00:08:53,560 a list of a number of different new suspects for them to investigate. So that's a completely 109 00:08:53,560 --> 00:08:57,460 different kind of technology. I don't know exactly how it works or in what context 110 00:08:57,460 --> 00:09:02,340 it's sold. Perhaps it's only for use in war zones. I don't know. But I thought it was 111 00:09:02,340 --> 00:09:04,340 interesting. I thought you would think it was interesting. 112 00:09:05,960 --> 00:09:13,540 So let's go back to the subject at hand. This is lawful intercept. The mediation device 113 00:09:14,380 --> 00:09:21,540 accesses two different kinds of intercept access points. There is the IRI IAP over on 114 00:09:21,540 --> 00:09:23,420 the side there. And then there's a content IAP. 115 00:09:23,560 --> 00:09:29,820 This is a consequence of this ancient distinction that most western legal systems make regarding 116 00:09:29,820 --> 00:09:33,900 what kind of authority law enforcement needs in order to access certain kinds of information. 117 00:09:35,480 --> 00:09:41,860 So the most ancient kind of telecommunication system is a letter. And usually letters have 118 00:09:41,860 --> 00:09:47,160 envelopes. And the addresses are on the outside of the envelope. So your postman can tell 119 00:09:47,160 --> 00:09:52,020 who you're receiving letters from and who you're sending letters to. And so that's not 120 00:09:52,020 --> 00:09:53,540 as private as the content. 121 00:09:53,560 --> 00:09:57,500 So the content is inside the envelope. And most western legal systems acknowledge that 122 00:09:57,500 --> 00:10:02,600 distinction. And they say that if law enforcement wants to know who you're sending letters to 123 00:10:02,600 --> 00:10:09,200 and who you're receiving them from, they need a certain level of suspicion and a certain 124 00:10:09,200 --> 00:10:13,320 amount of documentation. And if they want to actually open the envelopes and view the 125 00:10:13,320 --> 00:10:17,100 content inside, they need to establish a greater level of suspicion and they need to 126 00:10:17,100 --> 00:10:20,480 have even more documentation and authorization. 127 00:10:20,820 --> 00:10:23,540 So this actually happens. 128 00:10:23,560 --> 00:10:28,020 ends up impacting this technical architecture in the Internet where you have these IRI IAPs 129 00:10:28,020 --> 00:10:33,040 that only collect addressing information. They collect to and from addresses and other things 130 00:10:33,040 --> 00:10:38,340 like that. And then on the other hand, you have content IAPs. And content IAPs can collect the 131 00:10:38,340 --> 00:10:45,260 entirety of a communication and not just the headers. So I'm going to forget about IRI IAPs. 132 00:10:45,440 --> 00:10:49,720 A number of them are manufactured by the different companies on the list in the previous slide. 133 00:10:49,720 --> 00:10:59,000 Cisco routers are content IAPs. They provide the full content. So if we go back to this diagram 134 00:10:59,000 --> 00:11:04,160 here, you can see this interception request gets sent from the mediation device to the content IAP. 135 00:11:04,400 --> 00:11:09,720 The interception request tells the content IAP what content we want to collect and that content 136 00:11:09,720 --> 00:11:16,400 is sent back to the mediation device by the content IAP. The interception request is an SNMP V3 137 00:11:16,400 --> 00:11:19,440 request. It's a single UDP packet. 138 00:11:19,720 --> 00:11:26,100 It goes from the mediation device to the router. It tells the router everything that the router 139 00:11:26,100 --> 00:11:33,100 needs to know about the wiretap. What addresses, what IP source and destination addresses you want 140 00:11:33,100 --> 00:11:38,900 to collect. What source and destination port numbers you want to collect. And where to send 141 00:11:38,900 --> 00:11:45,540 the content. Where does the output go? And also what transport to send it over. I'll talk more 142 00:11:45,540 --> 00:11:49,280 about that in a minute. These are just little pieces of the 143 00:11:50,300 --> 00:11:53,820 interception request. There's actually a whole bunch of different information that can be specified 144 00:11:53,820 --> 00:11:58,680 in this request. And the whole MIB has been published. You can Google it. It's called the 145 00:11:58,680 --> 00:12:07,180 TAP MIB. So let's look at, you know, the reason that the ITF said that these things should be 146 00:12:07,180 --> 00:12:11,320 published is so that we can look at them from a security perspective and see whether or not we 147 00:12:11,320 --> 00:12:18,640 think that they're strong or weak. And that's what I'm trying to do with this work. So let's 148 00:12:19,720 --> 00:12:26,360 look at, you know, what security concerns exist for lawful intercept. And I don't evaluate all of 149 00:12:26,360 --> 00:12:31,940 these issues in this talk. I'm only focused on the third one. But I wanted to mention all of them so 150 00:12:31,940 --> 00:12:37,560 we have like a full framework for how you analyze these things. So the first thing that you need to 151 00:12:37,560 --> 00:12:41,620 consider, if you were going to design a system for wiretapping, is that you need to make sure that 152 00:12:41,620 --> 00:12:47,180 the subject cannot figure out that he's being wiretapped. And if you go read the RFCs for the 153 00:12:47,180 --> 00:12:49,700 Cisco interface for lawful intercept, they explain how they go about doing that. And if you go read the 154 00:12:49,720 --> 00:12:51,460 RFCs for lawful intercept, they explain how they go about doing that. They talk about how you 155 00:12:51,460 --> 00:12:55,100 don't want to have an additional hop that shows up in the trace route when wiretaps are happening, 156 00:12:55,200 --> 00:13:01,800 for example. So there are certain decisions they made to make it invisible to the user. It's 157 00:13:01,800 --> 00:13:06,520 possible that when this feature is enabled, it could affect the performance of the router, but it 158 00:13:06,520 --> 00:13:09,820 might be difficult to differentiate that from other things that can affect the performance of the 159 00:13:09,820 --> 00:13:16,760 router. And I didn't evaluate that, so I'm not absolutely certain. The second thing you need to 160 00:13:16,760 --> 00:13:19,700 consider is ‑‑ and there's a really awesome paper that I'm going to share with you. It's a 161 00:13:19,700 --> 00:13:24,380 paper by Matt Blaze called the eavesdropper's dilemma. And if you're interested in this, I highly 162 00:13:24,380 --> 00:13:29,540 recommend reading it. He talks about how if you're an eavesdropper, what do you do with data that's 163 00:13:29,540 --> 00:13:34,860 malformed? What do you do with a packet that has a bad checksum? You can either include it in the 164 00:13:34,860 --> 00:13:41,120 information that you're displaying to the law enforcement agency, or you can throw it out. If you 165 00:13:41,120 --> 00:13:47,300 include it, it could confuse the law enforcement agency. The guy who is being tapped could generate 166 00:13:47,300 --> 00:13:49,680 a bunch of extra data with bad checksums. If you include it, it could confuse the law enforcement 167 00:13:49,680 --> 00:13:53,400 agency. Knowing that it will never reach its destination in order to provide a bunch of cover 168 00:13:53,400 --> 00:13:59,320 traffic that basically, you know, misdirects the person who's surveilling them. If you choose not to 169 00:13:59,320 --> 00:14:03,740 include it, then the guy who's being surveilled can send all of his traffic with bad checksums and 170 00:14:03,740 --> 00:14:09,240 just configure the computer on the other end not to do the checks. So it's a difficult and 171 00:14:09,240 --> 00:14:15,460 interesting issue. And again, I recommend reading about it, but it's not what I'm covering in this 172 00:14:15,460 --> 00:14:19,660 talk. What I'm talking about is unauthorized access. And there are two things that I'm going to 173 00:14:21,840 --> 00:14:26,500 talk about. The first is making sure that people who are not authorized to provision a wiretap 174 00:14:26,500 --> 00:14:31,880 cannot do so. And the second is to make sure that the people who are authorized to provision a 175 00:14:31,880 --> 00:14:37,520 wiretap are only collecting the data that they were actually authorized to collect. They've got a 176 00:14:37,520 --> 00:14:43,340 warrant to look at Bob's stuff. They only collect Bob's stuff and not Carol's stuff. So let's talk 177 00:14:43,340 --> 00:14:49,240 about that. Let's talk about gaining unauthorized access. This is a network map. It's an example 178 00:14:49,240 --> 00:14:54,920 network that just kind of shows you how this looks when it's actually deployed in an ISP's 179 00:14:54,920 --> 00:15:00,440 environment. There's this IAP edge router down here that's providing service to a bunch of customers. 180 00:15:01,360 --> 00:15:07,080 And one of those customers is the surveillance target. Somewhere within the ISP's cloud, there's 181 00:15:07,080 --> 00:15:12,580 this service provider management network. This is how ISPs run their networks. They have SNMP 182 00:15:12,580 --> 00:15:17,340 monitoring servers and a bunch of other machines in that network that they use for running all of 183 00:15:17,340 --> 00:15:17,720 their gear. 184 00:15:17,720 --> 00:15:23,460 In that service provider management network is the mediation device. Hopefully behind another 185 00:15:23,460 --> 00:15:30,040 firewall. So this is how this is supposed to work. If you look at the red line, traffic flows ‑‑ 186 00:15:30,040 --> 00:15:34,660 the mediation device sends an interception request out to the IAP edge router and the edge router 187 00:15:34,660 --> 00:15:41,840 collects data from the surveillance target and sends it back to the mediation device. This is sort 188 00:15:41,840 --> 00:15:47,620 of an idealistic attack scenario. The attacker out on the Internet sends his interception request to 189 00:15:47,620 --> 00:15:52,720 the router and the router sends the intercepted traffic back out to the attacker's server on the 190 00:15:52,720 --> 00:15:58,980 Internet. So how do we accomplish this? Well, we have to send an unauthorized interception request. 191 00:15:59,800 --> 00:16:06,700 Again, it's a single UDP packet. It's an SNMPv3 request. It has to have the correct username and 192 00:16:06,700 --> 00:16:10,280 password. You have to know the correct username and password with one caveat which I'll discuss. 193 00:16:11,200 --> 00:16:17,360 You also have to have the SNMPv3 engine ID, engine boots and engine time values. Those are 194 00:16:17,620 --> 00:16:24,220 three numbers that SNMPv3 uses to prevent replay of requests. You can get them from the router as 195 00:16:24,220 --> 00:16:28,560 long as you can talk SNMP to it. You don't need a username or password to get them. It will hand 196 00:16:28,560 --> 00:16:35,900 them out to anybody who asks. And they can be shared between different people. So if you ask for 197 00:16:35,900 --> 00:16:40,940 it, you can hand it to Bob and he can send ‑‑ and he can use it. So it doesn't matter what source 198 00:16:40,940 --> 00:16:47,220 address you're coming from. The attacker would need to be able to interact with the interface. At 199 00:16:47,620 --> 00:16:51,440 least to send a packet that the interface will receive. So packet filters could play a role here. 200 00:16:51,560 --> 00:16:57,280 And I'll talk about that, too. Obviously because it's a single UDP packet, it can be spoofed. But 201 00:16:57,280 --> 00:17:01,780 there are caveats to that. Also, encryption might prove to be an obstacle. And I emphasize 202 00:17:01,780 --> 00:17:08,240 might. So the first thing you want to do, as I said, is you got to have the right username and 203 00:17:08,240 --> 00:17:15,460 password. So it turns out that there was this vulnerability in SNMPv3 implementations which was 204 00:17:15,460 --> 00:17:17,600 disclosed in the middle of the summer of 2020. So it's a little bit of a surprise. But it's a little bit of a 205 00:17:17,600 --> 00:17:23,360 surprise. And it was published in 2008. That allowed somebody to access an SNMPv3 interface 206 00:17:23,360 --> 00:17:28,680 without knowing the password. It affected a bunch of different implementations. And the way ‑‑ so 207 00:17:29,480 --> 00:17:35,180 SNMPv3 messages are actually authenticated using an HMAC. And the HMAC is calculated with the 208 00:17:35,180 --> 00:17:43,240 password. So when a router receives an SNMPv3 request, they're supposed to ‑‑ the way the 209 00:17:43,240 --> 00:17:47,580 RFC is written, it's supposed to take that HMAC out and check to make sure it's 12.0. And if it's 210 00:17:47,580 --> 00:17:55,080 not 12 bytes long, it throws the HMAC away. And it throws the packet away. If it is 12 bytes long, 211 00:17:55,180 --> 00:17:59,200 then it goes further and does verification. It turns out that that particular piece of code was not 212 00:17:59,200 --> 00:18:05,000 actually implemented by a bunch of different SNMPv3 implementations. So regardless of how long 213 00:18:05,000 --> 00:18:11,020 the HMAC was, the software would proceed to the verification step. And that function there is the 214 00:18:11,020 --> 00:18:15,980 actual verification function. The software would go calculate its own HMAC and then it would compare 215 00:18:15,980 --> 00:18:17,560 it with the HMAC that was in the packet. And then it would go calculate its own HMAC and then it would 216 00:18:17,580 --> 00:18:20,460 compare it with the HMAC that was in the packet. And it used the link from the packet to do that 217 00:18:20,460 --> 00:18:27,120 comparison operation. So if you send one byte as your HMAC, and that one byte happens to be the 218 00:18:27,120 --> 00:18:32,220 correct first byte for the real HMAC that you're supposed to send, your packet is accepted as 219 00:18:32,220 --> 00:18:38,180 valid. In practice, this means that you send 256 requests, one for each possible byte, and one of 220 00:18:38,180 --> 00:18:44,060 them will be accepted. So you don't need the password. As I mentioned, this was disclosed in 221 00:18:44,060 --> 00:18:47,560 June of 2008. It impacted a bunch of different vendors. It impacted a bunch of different vendors. 222 00:18:48,840 --> 00:18:55,180 What's interesting is that a lot of the IOS software trains that support Lawful Intercept were 223 00:18:55,180 --> 00:19:00,280 never vulnerable to this vulnerability. And both the vulnerability and Lawful Intercept have existed 224 00:19:00,280 --> 00:19:08,980 in IOS version trains for many years. So it's obviously Cisco had two source branches here. One of 225 00:19:08,980 --> 00:19:15,080 them had the bug and one of them didn't. I did find one version in particular that had both the bug 226 00:19:15,080 --> 00:19:17,560 and the feature. There were probably two of them. One of them had the bug and one of them didn't. I 227 00:19:17,580 --> 00:19:23,080 didn't exhaustively search the list. But the Cisco 10,000 series router supports this particular 228 00:19:23,080 --> 00:19:27,460 version train of IOS and it had both the vulnerability and the Lawful Intercept feature. 229 00:19:28,320 --> 00:19:37,400 Another thing I want to say is that this particular series of router supports IP VPNs. And IP VPNs 230 00:19:37,400 --> 00:19:44,340 are a personal pet peeve of mine. So I like grinding this ax. When I think of a VPN, I think of 231 00:19:44,340 --> 00:19:47,560 encryption. And there are a bunch of people out there who sell VPNs. And I think of encryption. And 232 00:19:47,580 --> 00:19:52,880 the thing is, you have VPN systems that are encryption based. But the service provider industry 233 00:19:52,880 --> 00:20:00,580 sells service provider VPNs. And they use the word VPN. But these VPNs do not have any encryption in 234 00:20:00,580 --> 00:20:05,080 them. And I think it's misleading. I think there's a lot of companies out there that buy these 235 00:20:05,080 --> 00:20:09,580 things thinking that they're buying encryption. And if you press the service providers about it, 236 00:20:09,620 --> 00:20:15,780 they'll say, it's okay. Our networks are not subject to surveillance. So it turns out that yes, 237 00:20:15,800 --> 00:20:17,560 they are. And they're doing that. And it's a very, very good thing. It's a good thing. And it's a 238 00:20:17,560 --> 00:20:21,900 In fact, you can specify a VPN that you would like to listen to within the interception 239 00:20:21,900 --> 00:20:22,160 request. 240 00:20:22,900 --> 00:20:32,260 So in fact, you know, there is a reason that ‑‑ there's a good reason for making a distinction 241 00:20:32,260 --> 00:20:35,360 between encrypted VPNs and other kinds of VPNs that are not encrypted. 242 00:20:35,720 --> 00:20:41,220 Anyway, let's say that the router that you want to target has been patched. 243 00:20:41,680 --> 00:20:46,720 And that's probably a realistic scenario because the vulnerability was disclosed two years 244 00:20:46,720 --> 00:20:46,820 ago. 245 00:20:47,160 --> 00:20:52,300 A lot of people don't patch their routers very often because it's complicated, it involves 246 00:20:52,300 --> 00:20:53,240 down time, et cetera. 247 00:20:53,380 --> 00:20:55,540 So there may still be some machines out there that are unpatched. 248 00:20:55,660 --> 00:20:58,900 But if it's patched, you've got to brute force the username and password. 249 00:20:59,880 --> 00:21:02,960 It turns out that SNMPv3 makes this easy. 250 00:21:03,800 --> 00:21:07,800 It provides verbose error messages whenever you try a username and password. 251 00:21:07,960 --> 00:21:10,640 If you send a bad username, it will tell you the username is bad. 252 00:21:10,760 --> 00:21:12,780 So you can try usernames until you get one that works. 253 00:21:12,940 --> 00:21:16,520 And then if you try a password and it turns out that your password was bad. 254 00:21:16,520 --> 00:21:18,700 It will tell you it was the password that was bad. 255 00:21:18,960 --> 00:21:22,160 And you can keep trying passwords until you get that right, too. 256 00:21:22,540 --> 00:21:24,100 So it's pretty easy to brute force. 257 00:21:24,660 --> 00:21:28,340 And one of the things you might think if you were doing all that brute forcing is that 258 00:21:28,340 --> 00:21:31,400 you'd be caught because it would generate a bunch of logging information. 259 00:21:31,680 --> 00:21:33,620 It would freak out that someone was trying to break into it. 260 00:21:33,860 --> 00:21:35,640 Well, it turns out that it doesn't do that either. 261 00:21:36,860 --> 00:21:40,080 The documentation seems to ‑‑ so let me go back. 262 00:21:40,240 --> 00:21:43,380 In SNMPv2, they didn't have usernames and passwords. 263 00:21:43,620 --> 00:21:45,020 They had community strings. 264 00:21:45,020 --> 00:21:48,300 Which was sort of like a password without a username. 265 00:21:48,980 --> 00:21:55,600 And if you configured your router to send traps, authentication failure traps, specifically, 266 00:21:56,200 --> 00:22:00,600 then if you sent an SNMPv2 request to the router with the wrong community string, the 267 00:22:00,600 --> 00:22:02,680 router would generate this authentication failure trap. 268 00:22:02,940 --> 00:22:07,860 So people running large networks with SNMP devices could tell if people were trying to 269 00:22:07,860 --> 00:22:10,180 crack their community strings on their network. 270 00:22:10,400 --> 00:22:15,000 The documentation strongly implies that this is also true. 271 00:22:15,020 --> 00:22:16,060 True for SNMPv3. 272 00:22:16,580 --> 00:22:20,620 That if you have these traps configured on your router and someone's trying to crack 273 00:22:20,620 --> 00:22:24,360 your username and password, those traps are going to get generated and you'll be able 274 00:22:24,360 --> 00:22:25,340 to know that this is going on. 275 00:22:25,640 --> 00:22:27,140 But it turns out it actually doesn't work. 276 00:22:27,340 --> 00:22:32,820 I tried a bunch of different iOS versions and no traps or informs are generated when 277 00:22:33,260 --> 00:22:35,260 bad usernames and passwords are used. 278 00:22:35,640 --> 00:22:38,580 So I told Cisco about it because I figured it was an implementation bug. 279 00:22:39,160 --> 00:22:44,500 And they decided after deliberating for a while that it was actually a problem with 280 00:22:44,500 --> 00:22:45,000 the documentation. 281 00:22:45,700 --> 00:22:50,260 And so there's actually this bug number down here in CCO. 282 00:22:50,440 --> 00:22:51,080 You can look up. 283 00:22:51,140 --> 00:22:55,060 It tells you that the documentation is wrong and in fact they don't generate any traps 284 00:22:55,060 --> 00:22:56,880 or informs when authentication failure occurs. 285 00:22:58,660 --> 00:23:03,840 So the other thing is that you think that once you got in and you started your wire 286 00:23:03,840 --> 00:23:07,620 tap up, that would result in some sort of audit trail. 287 00:23:07,780 --> 00:23:10,040 But actually that doesn't result in an audit trail. 288 00:23:10,760 --> 00:23:14,060 The person ‑‑ so inside the MIB for the interception request. 289 00:23:14,060 --> 00:23:17,180 You can actually turn notification off. 290 00:23:17,580 --> 00:23:20,040 You can say don't tell anyone about this wire tap. 291 00:23:20,240 --> 00:23:20,820 Keep it a secret. 292 00:23:21,040 --> 00:23:22,440 It's between you and me, router. 293 00:23:24,120 --> 00:23:28,580 So this is really bizarre in my mind. 294 00:23:29,540 --> 00:23:32,040 And I'm going to skip slides a little bit. 295 00:23:32,820 --> 00:23:36,020 What kind of technology allows the user to turn the logs off? 296 00:23:36,600 --> 00:23:36,760 Right? 297 00:23:36,940 --> 00:23:40,080 Unix shells, you get log ‑‑ you get syslogged unless you're root. 298 00:23:41,800 --> 00:23:43,240 DHCP servers have logs. 299 00:23:43,380 --> 00:23:44,040 SMTP servers have logs. 300 00:23:44,040 --> 00:23:46,340 HTTP servers have logs. 301 00:23:46,680 --> 00:23:50,580 All these systems are constantly generating audit trails all the time. 302 00:23:51,240 --> 00:23:56,340 This is the only technology that I think I've ever seen where the user can just turn the 303 00:23:56,340 --> 00:23:56,760 logging off. 304 00:23:58,500 --> 00:24:02,720 We know that this audit trail problem exists in a bunch of different architectures. 305 00:24:02,880 --> 00:24:04,300 It's not just the Cisco interface. 306 00:24:04,680 --> 00:24:06,100 It's not just Cisco's issue. 307 00:24:06,220 --> 00:24:10,740 It's actually something that exists in telecommunications infrastructure which was designed based on 308 00:24:10,740 --> 00:24:13,940 completely different technology by totally different people. 309 00:24:13,940 --> 00:24:15,840 And it's been attacked in the past. 310 00:24:16,480 --> 00:24:21,000 So there's this IEEE Spectrum article called the Athens affair that was published in July 311 00:24:21,000 --> 00:24:21,840 of 2007. 312 00:24:22,140 --> 00:24:23,080 It's a really good read. 313 00:24:23,900 --> 00:24:29,120 There was this ‑‑ and this involved an Ericsson cellular phone switch in Greece. 314 00:24:29,580 --> 00:24:31,920 No Cisco equipment was involved in this case. 315 00:24:32,300 --> 00:24:38,300 What happened was that the switch started crashing and Ericsson's third level support 316 00:24:38,300 --> 00:24:41,800 guys were sent down to Greece to find out what was wrong with the switch. 317 00:24:42,480 --> 00:24:47,900 And so they started looking at the core dumps and they discovered that there was assembly 318 00:24:47,900 --> 00:24:50,300 code in the core dumps that their engineers didn't write. 319 00:24:50,700 --> 00:24:52,660 And it turns out it was spying on people. 320 00:24:52,880 --> 00:24:55,840 So that's got to be the technical support escalation nightmare of all time. 321 00:24:56,940 --> 00:25:02,900 And what it did is access the lawful intercept feature in the switch and use it to spy on 322 00:25:02,900 --> 00:25:04,320 a number of members of the Greek government. 323 00:25:05,560 --> 00:25:10,620 And the reason that no one knew that this was going on is because of the architecture 324 00:25:10,620 --> 00:25:11,540 was very similar. 325 00:25:11,800 --> 00:25:17,200 There's a system for provisioning the wiretaps and all the logging is built into that provisioning 326 00:25:17,200 --> 00:25:19,060 system, which is much like the mediation device. 327 00:25:19,360 --> 00:25:24,880 And then the actual switch where the wiretaps actually occurred, it had no audit trail. 328 00:25:27,060 --> 00:25:32,700 So there are fundamental requirements, architectural requirements that are going into these lawful 329 00:25:32,700 --> 00:25:37,960 intercept systems of different variety that are driving this design decision. 330 00:25:38,120 --> 00:25:41,320 And I'll talk later about why this decision was made. 331 00:25:41,800 --> 00:25:44,380 But I want to point out a couple of other things. 332 00:25:45,460 --> 00:25:50,380 The audit, in addition to the fact that this can be attacked, it's also important to point 333 00:25:50,380 --> 00:25:53,440 out that allegations of misuse of the system cannot be investigated. 334 00:25:53,780 --> 00:25:58,320 If somebody says, hey, I was wiretapped illegally, I'm sorry, there's no logs. 335 00:25:58,400 --> 00:26:00,080 So we can't figure out whether or not you're lying. 336 00:26:01,860 --> 00:26:03,020 So that's another issue. 337 00:26:03,280 --> 00:26:08,020 But if you think about it, it's, you know, in Europe, there are these data retention 338 00:26:08,020 --> 00:26:10,680 laws that require ISPCs. 339 00:26:11,800 --> 00:26:16,920 To store all of the audit trails from all of these systems that the ISPs are running. 340 00:26:17,120 --> 00:26:23,920 They have to store the source and destination of every communication for six months to two 341 00:26:23,920 --> 00:26:25,080 years in Europe. 342 00:26:25,800 --> 00:26:30,120 So there are laws that require all of your activity on the Internet, if you're in Europe, 343 00:26:30,280 --> 00:26:35,380 to be retained so that it can be investigated in the future if there's some allegation 344 00:26:35,380 --> 00:26:36,440 that you did something wrong. 345 00:26:36,800 --> 00:26:41,240 But the law, the wiretapping system in the exact same networks. 346 00:26:41,800 --> 00:26:44,140 Does not have any audit trail at all. 347 00:26:44,420 --> 00:26:47,880 And there is no way to go back and investigate an allegation of misuse. 348 00:26:48,260 --> 00:26:49,220 So what's up with that? 349 00:26:49,980 --> 00:26:52,500 It seems very clear that that's hypocritical. 350 00:26:57,360 --> 00:26:59,900 So I'm going to go on to the next issue. 351 00:27:00,080 --> 00:27:03,380 But once I get further into this talk, I'll explain exactly why they designed it that 352 00:27:03,380 --> 00:27:07,080 way and how they can design it differently so that it doesn't have to work that way. 353 00:27:08,400 --> 00:27:10,440 So another neat feature of this system. 354 00:27:10,560 --> 00:27:11,780 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355 00:27:11,780 --> 00:27:13,660 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356 00:27:13,660 --> 00:27:19,620 One you have provisioned, you can send to the output to any destination on the global 357 00:27:19,620 --> 00:27:23,960 Internet over any port using four different encapsulation schemes. 358 00:27:24,260 --> 00:27:31,060 One which is UDK based, one of which is TCP based , where . . . . . so you can 359 00:27:31,060 --> 00:27:34,240 send this thing anywhere and make it look like the next thing. 360 00:27:34,920 --> 00:27:41,540 For example, you can send it on port 53 as a UDP packet so it has DNS traffic and included 361 00:27:41,540 --> 00:27:44,700 included a picture of Dan Kaminsky because every time I think about DNS, I think of Dan. 362 00:27:48,980 --> 00:27:53,580 Now there are a couple of things the ISP can do to protect this interface. If the ISP configures 363 00:27:53,580 --> 00:27:59,960 the interface properly, they can in fact prevent these attacks fairly well. I just don't think 364 00:27:59,960 --> 00:28:04,220 that most of them are and I'll explain why. One of the key things that ISPs like to do 365 00:28:04,220 --> 00:28:11,300 to protect stuff on their network is use access lists. And all of the SNMPv3 hardening guides 366 00:28:11,300 --> 00:28:16,360 and information from Cisco recommends these infrastructure access control lists that say 367 00:28:16,360 --> 00:28:22,220 that we'll only accept SNMPv3 from our management land. And I figure a lot of ISPs have those 368 00:28:22,220 --> 00:28:28,300 access lists configured. So in theory you can spoof this interception request, but in 369 00:28:28,300 --> 00:28:33,120 practice you probably don't want to. Because if you're cracking usernames and passwords, 370 00:28:33,320 --> 00:28:34,200 you're going to want those errors. 371 00:28:34,820 --> 00:28:42,260 Error messages to come back to you. So you're not going to want to be spoofing. So I'll 372 00:28:42,260 --> 00:28:47,340 just go on. The consequence of this is that I think this is a more realistic attack scenario. 373 00:28:47,920 --> 00:28:52,120 Somebody has owned a machine in the service provider management network. And they use 374 00:28:52,120 --> 00:28:57,180 that machine to send the interception request to the edge router. And then the edge router 375 00:28:57,180 --> 00:29:03,080 sends the wiretap to some system out on the Internet. You don't have to keep control of 376 00:29:03,080 --> 00:29:04,100 that machine for very long. 377 00:29:04,100 --> 00:29:08,260 You only have to send one packet to initiate the wiretap. But you probably want to do it 378 00:29:08,260 --> 00:29:09,580 from within the service provider land. 379 00:29:11,780 --> 00:29:17,960 But service lands are impenetrable. No, they're not. Some people argue that if you're in the 380 00:29:17,960 --> 00:29:23,140 service land, you basically have ‑‑ you own the ISP. And so you could perform wiretapping 381 00:29:23,140 --> 00:29:26,200 if you wanted to regardless of whether or not the system exists. There's a couple of 382 00:29:26,200 --> 00:29:29,940 flaws in that logic. The first thing is that there are a lot of people who have access 383 00:29:29,940 --> 00:29:34,080 to the service land who are not authorized to be engaged in the service land. So you're 384 00:29:34,100 --> 00:29:39,720 engaged in wiretapping. And another thing is that the existence of the wiretapping system 385 00:29:39,720 --> 00:29:44,620 makes it very easy to do this. And so it becomes more attractive to an attacker when 386 00:29:44,620 --> 00:29:45,180 it's cheap. 387 00:29:46,000 --> 00:29:51,080 There is a frack article from a few ‑‑ it's almost 10 years ago, I think, that talks 388 00:29:51,080 --> 00:29:55,360 about if you get in a router and you have enable access, you can configure IP and IP 389 00:29:55,360 --> 00:29:59,140 tunnel from that router to someplace out on the Internet and have the traffic go all the 390 00:29:59,140 --> 00:30:03,660 way out there and then all the way back and then come back out the router. And so that's 391 00:30:04,100 --> 00:30:08,740 kind of putting a wiretap in a router if you have control of it. It's kind of an interesting 392 00:30:08,740 --> 00:30:14,200 idea in theory, but it introduces massive amounts of latency and it's not very practical. 393 00:30:14,420 --> 00:30:18,700 This system is extremely practical. It's very easy to use. And so it actually makes 394 00:30:18,700 --> 00:30:21,660 breaking into the service land more attractive than it otherwise would be. 395 00:30:22,920 --> 00:30:27,240 So there's another kind of access list that's actually way more effective than these ‑‑ 396 00:30:28,900 --> 00:30:33,860 these infrastructure access lists that an ISP could potentially configure. But I don't 397 00:30:33,860 --> 00:30:37,460 think a lot of people used it because it's not well documented. You can configure an 398 00:30:37,460 --> 00:30:42,400 access list for an SNMP user group. And you can say this user cannot use this interface 399 00:30:42,400 --> 00:30:49,300 unless they come from a specific IP address. And it ‑‑ again, you can spoof the request. 400 00:30:49,720 --> 00:30:55,840 So you know, and the other thing is you ‑‑ things like the SNMPv3 engine values, again, 401 00:30:55,900 --> 00:30:59,760 can be shared between sources. So you could have collected them from another ‑‑ from 402 00:30:59,760 --> 00:31:03,220 your address because you can interact from that address and then just send the interception 403 00:31:03,220 --> 00:31:03,840 request from the server. So that's kind of an interesting idea. 404 00:31:03,860 --> 00:31:08,860 So it's not a perfect solution. What it does that's actually kind of interesting 405 00:31:08,860 --> 00:31:15,420 is it gives you an audit trail. If you send a packet to the router from the wrong address 406 00:31:15,420 --> 00:31:19,460 and you have this access list configured, the router will send that authentication failure 407 00:31:19,460 --> 00:31:24,040 trap that I couldn't get it to send when you have the bad password. So that's bizarre. 408 00:31:24,420 --> 00:31:28,060 But it's actually pretty useful if you have to run this on your network. 409 00:31:29,720 --> 00:31:31,920 So another thing you could try is encryption. 410 00:31:33,440 --> 00:31:38,200 The documentation says although encryption is not necessarily a requirement, it's highly 411 00:31:38,200 --> 00:31:45,320 recommended. You can get this lawful intercept feature on your router even if your router 412 00:31:45,320 --> 00:31:50,940 does not have an encryption iOS build. And there are certainly places where people are 413 00:31:50,940 --> 00:31:55,020 operating this system without encryption. I don't think you can adequately protect this 414 00:31:55,020 --> 00:31:59,120 system without encryption. But there are places where they're required to run it even though 415 00:31:59,120 --> 00:32:01,900 they don't have encryption. There are two kinds of encryption. One is the encryption 416 00:32:01,920 --> 00:32:06,320 you could run if you were going to run it. One of them is SNMPV3 encryption. And that's 417 00:32:06,320 --> 00:32:12,080 a pretty decent idea. It doesn't solve all of your security problems. But it makes things 418 00:32:12,080 --> 00:32:18,120 harder for an attacker. You can also implement an IPSec tunnel. And that's what people are 419 00:32:18,120 --> 00:32:24,240 usually doing for this. That's what the RFCs recommend. But an IPSec tunnel doesn't solve 420 00:32:24,240 --> 00:32:29,120 all your problems either. So an IPSec tunnel exists at a different layer than SNMPV3. And 421 00:32:29,120 --> 00:32:31,900 it says all of the traffic between these two addresses will be encrypted. So you can 422 00:32:31,920 --> 00:32:37,000 have a tunnel between the mediation device and the IAP edge router. Well, let's say I'm 423 00:32:37,000 --> 00:32:41,060 launching my attack. I launch my attack from this other machine. That's not the mediation 424 00:32:41,060 --> 00:32:44,720 device. And so the router is not expecting that attack to be encrypted. And so it accepts 425 00:32:44,720 --> 00:32:49,480 it in the clear. And I'm sending my output to another destination address that is not 426 00:32:49,480 --> 00:32:54,040 the mediation device. And so that destination address is not inside the IPSec tunnel. And 427 00:32:54,040 --> 00:32:57,640 so the router is going to send it to me in the clear. And so your encrypted tunnel doesn't 428 00:32:57,640 --> 00:33:01,760 really prevent me from accessing this without authorization. The only way to really lock 429 00:33:01,760 --> 00:33:09,100 this down is to couple that IPSec tunnel with the user group access control list that I mentioned 430 00:33:09,100 --> 00:33:16,660 before. So how practical is this attack? Again, what I think service providers are doing, 431 00:33:16,760 --> 00:33:23,260 they're using the SNMPV3 infrastructure IP access control list. Some service providers were 432 00:33:23,260 --> 00:33:28,140 vulnerable to that CVE. Some might still be. There are certainly service providers that are not 433 00:33:28,140 --> 00:33:31,740 using encryption. So I think when you add all those things up, you're going to be able to 434 00:33:31,760 --> 00:33:38,740 see that this attack is practical on some real networks on the Internet. I have a bunch of 435 00:33:38,740 --> 00:33:43,220 recommendations for how you can deploy this on your network such that it's secure. I've pretty 436 00:33:43,220 --> 00:33:49,360 much already explained them. So I'll skip this. I also have recommendations for how to change 437 00:33:49,360 --> 00:33:55,360 the architecture of this protocol so that we don't have some of these security issues. And I 438 00:33:55,360 --> 00:34:00,220 would like to make progress, I guess, toward changing some of these protocols so that they're 439 00:34:00,220 --> 00:34:01,740 more secure. But I don't know if I have any other questions. 440 00:34:01,760 --> 00:34:06,440 I have been making progress in that regard. In terms of SNMPV3, there are certain things 441 00:34:06,440 --> 00:34:12,920 that you can do to make it harder to brute force usernames and passwords. However, the working 442 00:34:12,920 --> 00:34:19,160 group for SNMPV3 is closed. So in order to get this standard changed, there has to be this whole 443 00:34:19,160 --> 00:34:23,640 process in the ITF to reopen the working group. Then you have to have this whole standards 444 00:34:23,640 --> 00:34:30,820 discussion. And it's like a two-year road to getting this done. And it's a lot of work. I also 445 00:34:30,820 --> 00:34:31,740 have some recommendations that I would like to make. One of the things that I would like to 446 00:34:31,760 --> 00:34:34,080 make clear is that there is a need for an audit trail for the lawful intercept system. In 447 00:34:34,080 --> 00:34:38,680 particular, I think that there needs to be an audit trail. The reason that there isn't an audit 448 00:34:38,680 --> 00:34:45,900 trail is that they don't want the people that run the ISP network to know that wiretaps are 449 00:34:45,900 --> 00:34:52,300 taking place. If the, you know, the people who work for the ISP are not necessarily authorized to 450 00:34:52,300 --> 00:34:56,760 have that information. And if they could configure their own audit trail for themselves in the 451 00:34:56,760 --> 00:35:01,700 router configuration, then any time a wiretap was being provisioned, they would get an 452 00:35:01,760 --> 00:35:06,320 audit notification and they could tell somebody. So that's potentially a problem. And the way I 453 00:35:06,320 --> 00:35:12,280 think you solve that problem is by enforcing agreement between the router configuration and 454 00:35:12,280 --> 00:35:17,300 the wiretap. So the router could be configured with a number of different destinations to send 455 00:35:17,300 --> 00:35:24,240 the audit trail to. And as long as the interception request includes one of those destinations as the 456 00:35:24,240 --> 00:35:30,180 place to send notifications, the interception is allowed to proceed. That way, the guy running the 457 00:35:30,180 --> 00:35:31,740 router cannot configure another address. So the guy running the router cannot configure another address. 458 00:35:31,760 --> 00:35:35,680 that the law enforcement organization doesn't know about. And the law enforcement organization 459 00:35:35,680 --> 00:35:43,800 cannot do wiretaps without having some sort of audit trail. And attackers cannot do a wiretap 460 00:35:43,800 --> 00:35:47,540 without having some sort of audit trail. I think that makes a lot of sense. But again, 461 00:35:48,660 --> 00:35:53,600 this is just a, I'm a security researcher. I don't work for the companies that make this 462 00:35:53,600 --> 00:35:57,440 technology. I haven't been involved in the standards dialogue. So there could be good 463 00:35:57,440 --> 00:36:00,600 reasons why this idea doesn't fly, but I don't know what they are. 464 00:36:01,760 --> 00:36:08,640 I'm just trying to be helpful here. So what's going to happen in the future? This is really what I think 465 00:36:08,640 --> 00:36:13,440 is the interesting part of this discussion. It's like what's going on with wiretapping in the 466 00:36:13,440 --> 00:36:18,400 Internet today and how is it going to evolve over time and what kind of place do we want it to 467 00:36:18,400 --> 00:36:24,860 evolve to? So it seems to me that illegal wiretapping used to be really easy. Telco junction 468 00:36:24,860 --> 00:36:30,280 boxes used to be pretty easy to access. Get a couple of alligator clips and open the box up and 469 00:36:30,280 --> 00:36:31,740 connect to it. So I think that's going to happen in the future. So I think that's going to happen in the 470 00:36:31,760 --> 00:36:36,360 future. Frequency scanners, many of you have them here, can listen to people's cordless phone calls 471 00:36:36,360 --> 00:36:41,580 or their cellular phone calls, et cetera. Over time, that's been getting harder. Cell phones now 472 00:36:41,580 --> 00:36:45,660 usually have some encryption in them. It's not impervious to attack, but it's not as easy as 473 00:36:45,660 --> 00:36:51,840 going down to Radio Shack and buying a scanner. It's also, it's getting more difficult to actually 474 00:36:51,840 --> 00:36:56,920 listen to people's phone calls at the junction box because it's not just a voice call that's 475 00:36:56,920 --> 00:37:01,560 going across copper anymore. You've got, you know, voice over IP that's going over ADSL. 476 00:37:01,760 --> 00:37:07,600 You've got this whole protocol stack. And it's, you know, you have to have equipment that can parse 477 00:37:07,600 --> 00:37:12,680 that protocol stack in order to get back to the voice call. I think that that's actually something 478 00:37:12,680 --> 00:37:17,240 that's going to get easier. So there's this thing that's changed over time where originally it was 479 00:37:17,240 --> 00:37:20,460 really easy to listen to voice calls at the junction box. And it's gotten more complicated 480 00:37:20,880 --> 00:37:26,000 as we've gotten more protocols, more digital telephony. And now it's expensive. You have to 481 00:37:26,000 --> 00:37:31,220 go out and buy this protocol analyzer that costs a lot of money if you want to perform that kind of 482 00:37:31,760 --> 00:37:40,700 work. Did you say five minutes? Oh, I thought I had an hour. All right. So what's going to happen 483 00:37:40,700 --> 00:37:45,020 in the future is GNU radio and software-defined radio will make it easier to have a protocol 484 00:37:45,980 --> 00:37:50,580 analyzer without having to spend tens of thousands of dollars. And so as a consequence, it might be 485 00:37:50,580 --> 00:37:56,980 easier to do that in the future than it is today. I also think we may never see perfect end-to-end 486 00:37:56,980 --> 00:38:01,220 encryption on the Internet. That's something that a lot of people believed. 487 00:38:01,760 --> 00:38:06,860 A few years back. But I don't think it's necessarily going to happen. People don't tend to want to deal 488 00:38:06,860 --> 00:38:11,820 with public keys. People in this room might, but people in general don't. Where encryption really 489 00:38:11,820 --> 00:38:16,380 makes a difference is when it's link layer encryption. Things like your cell phone that you 490 00:38:16,380 --> 00:38:20,840 don't have to think about. You don't have to authenticate. And it actually does protect your 491 00:38:20,840 --> 00:38:25,080 security. So one of the things I think is that if you want to cut down on illegal wiretapping, 492 00:38:25,240 --> 00:38:30,000 anything that you can do to help put link layer encryption into the infrastructure will make a 493 00:38:30,000 --> 00:38:30,280 difference. 494 00:38:32,320 --> 00:38:36,140 But there's this other question about should we build this wiretapping infrastructure? And the 495 00:38:36,140 --> 00:38:42,140 consensus view of the computer science research community is that you shouldn't because of the 496 00:38:42,140 --> 00:38:46,900 sort of risks that I'm describing in this talk. That people can use this stuff without authorization 497 00:38:46,900 --> 00:38:53,280 and it introduces a security risk by being there. And so they argue that, so this is the thing. 498 00:38:53,420 --> 00:38:57,760 There's going to be a way that law enforcement performs wiretaps. I don't think that there's 499 00:38:57,760 --> 00:39:01,740 this future where wiretapping doesn't occur because I think the government is always going to 500 00:39:01,760 --> 00:39:06,580 want to do that and they're going to find a way to do it. So really the question for us is how are 501 00:39:06,580 --> 00:39:13,000 they going to do it? And if you consider the consensus view of computer scientists, the argument is 502 00:39:13,000 --> 00:39:17,500 that they should do it with portable protocol analyzers. And I'm going to go out on a limb here 503 00:39:17,500 --> 00:39:22,360 and say I'm not sure that's actually the best approach. The problem with protocol analyzers is 504 00:39:22,360 --> 00:39:27,020 that, you know, you're, say you're a police officer and you're authorized to perform a wiretap, 505 00:39:27,140 --> 00:39:31,600 you go get the protocol analyzer, you plug it into the network, you collect some data. 506 00:39:31,760 --> 00:39:36,960 And then you do your analysis and you go turn it back in. There's no audit trail, right? 507 00:39:37,400 --> 00:39:41,620 There's no, you have the ability to do whatever you want with that system while you have it checked out. 508 00:39:41,820 --> 00:39:49,220 So the only way to really have an effective access control system is to have a piece of permanent infrastructure 509 00:39:49,220 --> 00:39:53,720 and you get the access control system because you have to have one if you have permanent infrastructure. 510 00:39:54,060 --> 00:40:01,680 And so potentially there's an opportunity if you, if you, if you build permanent wiretapping 511 00:40:01,760 --> 00:40:08,680 infrastructure to build a access control mechanism for it that actually effectively prevents people 512 00:40:08,680 --> 00:40:14,780 from wiretapping if they don't have the right lawful authorization. And so if we, if we see this future 513 00:40:14,780 --> 00:40:19,420 where you get more link layer encryption and you get a more effective system for access control, 514 00:40:20,080 --> 00:40:25,040 you could significantly cut down on all kinds of illegal wiretapping, whether it's done by individuals 515 00:40:25,040 --> 00:40:30,340 or it's done by people in the government. But this access control system has to work effectively. 516 00:40:30,640 --> 00:40:31,740 And I think that, that's the key. 517 00:40:31,760 --> 00:40:36,300 There's a, a concern that, that what we've got right now is, is the worst of both worlds. 518 00:40:36,380 --> 00:40:40,200 We have a vulnerable system and, and we also have vulnerable networks. 519 00:40:41,720 --> 00:40:47,080 So I, I have two more points I want to make. The, the first is that peer review is important. 520 00:40:47,360 --> 00:40:53,900 It's a good thing that Cisco published this architecture in the IESG, that we have the opportunity to read it, 521 00:40:53,940 --> 00:40:57,800 that we can understand how it works and that we can question its security properties. 522 00:40:58,420 --> 00:41:01,380 There's a bunch of other lawful intercept technology. 523 00:41:01,380 --> 00:41:04,920 That's been made by a number of different vendors that's deployed all over the world. 524 00:41:05,060 --> 00:41:08,540 And, and almost none of it has been subjected to this kind of peer review. 525 00:41:08,840 --> 00:41:15,540 So, you know, what we do in the security scene in this conference is, is we go find vulnerabilities in things. 526 00:41:15,700 --> 00:41:18,840 And, and when you do that kind of analysis, it's amazing what you find. 527 00:41:19,380 --> 00:41:22,940 Barnaby Jack tomorrow is going to jackpot a couple of ATMs on stage. 528 00:41:23,080 --> 00:41:27,760 You know, you figure guys who make ATMs are probably pretty secure, serious about their computer security. 529 00:41:28,280 --> 00:41:31,300 But somebody went and did an analysis and it turns out there are vulnerabilities. 530 00:41:31,300 --> 00:41:37,800 In order to have a really secure infrastructure, we have to do that kind of analysis with everything that we're putting into play. 531 00:41:38,160 --> 00:41:41,840 And so that sort of analysis is necessary for these systems, too. 532 00:41:42,040 --> 00:41:45,360 And hopefully other people will go on and do further projects like this. 533 00:41:46,140 --> 00:41:48,940 So what can you do to prevent illegal wiretapping? 534 00:41:49,160 --> 00:41:55,780 You can try to, try to work on projects that involve link layer encryption as well as end-to-end encryption, 535 00:41:55,960 --> 00:41:58,180 although I think that they're less likely to be adopted. 536 00:41:59,280 --> 00:42:00,960 You can help peer review. 537 00:42:01,300 --> 00:42:03,020 There's a bunch of Intercept systems that are out on the Internet. 538 00:42:03,160 --> 00:42:06,360 There's a bunch of technology out there that hasn't been, hasn't been looked at. 539 00:42:06,920 --> 00:42:14,780 And, and you can also insist that, that your ISP and your government, if they're requiring Lawful Intercept to be built into your network, 540 00:42:14,940 --> 00:42:22,320 that, that, that, that technology is secure and that it's open to peer review so that you can understand how it was, how it was architected and implemented. 541 00:42:22,600 --> 00:42:23,400 So that's my talk. 542 00:42:23,780 --> 00:42:24,820 Thank you very much.