[00:01.550 --> 00:07.070] Hi, my name is Cooper Quinton and I'm here to talk to you today about detecting 4G base stations [00:07.070 --> 00:13.770] in real time. First, a little bit about me. I am a senior security researcher with the Electronic [00:13.770 --> 00:19.750] Frontier Foundation. I have a toddler and a new baby who is less than one week old, which should [00:19.750 --> 00:24.590] explain the bags under my eyes because I'm very tired. And it should also explain the dad jokes [00:24.590 --> 00:29.910] in this presentation. I'm also a former teenage phone freak. I spent a number of years building [00:29.910 --> 00:35.070] strangely colored boxes to do nefarious things to the phone system, which might explain why I got [00:35.070 --> 00:41.030] into the work that I'm going to present here today. I work for EFF or the Electronic Frontier [00:41.030 --> 00:45.910] Foundation. If you're not familiar with us, our work can be found at EFF.org. We're a member [00:45.910 --> 00:51.650] supported non-profit and we defend civil liberties as they intersect with technology. We think things [00:51.650 --> 00:57.770] like freedom of speech, the right to assembly, and the right to privacy exist online as well as [00:57.770 --> 01:02.990] offline, and when you interact with technology as well as when you don't. And we've [01:02.990 --> 01:11.450] been defending these rights worldwide for more than 30 years. I work for the EFF Threat Lab [01:11.450 --> 01:15.650] specifically, and I'm going to talk about that in a second. But before I do, I want to take a moment [01:15.650 --> 01:21.030] to thank my colleague Yamina. She's no longer at EFF and has joined a new company, but this work [01:21.030 --> 01:26.290] is as much hers as it is mine. She's a really amazing and smart person, and if you like this [01:26.290 --> 01:30.870] work, you should check her out at Rival Elf on Twitter. None of this would have been possible [01:30.870 --> 01:39.270] without her. So what is Threat Lab? Threat Lab looks at technology that targets at-risk people, [01:39.270 --> 01:46.510] specifically activists, human rights defenders, journalists, domestic abuse victims, immigrants, [01:46.510 --> 01:53.970] sex workers, minority populations, and political dissidents. Anybody who is at risk of violence [01:53.970 --> 01:58.330] for doing the work they do or simply being who they are. [01:59.590 --> 02:04.070] And the technology that we look at usually shares a few similar goals. [02:04.270 --> 02:10.810] To gather intelligence on political opposition, to spy on people illegally or when they've left [02:10.810 --> 02:17.050] the country, to locate, capture, extort, and harass people whose views you disagree with, [02:17.050 --> 02:21.490] and generally to stifle their freedom of expression and prevent them from speaking out [02:21.490 --> 02:25.030] and doing the work they do or even just living their lives. [02:25.850 --> 02:30.250] We look at a couple of different types of technology in this work. One of the main [02:30.250 --> 02:35.170] types of technology that we look at is state-sponsored malware and spyware. This is [02:35.170 --> 02:39.110] malware used to spy on people through their phones or their computers, and that's a big [02:39.110 --> 02:44.530] part of what we do. But another part of what we do is look at the technologies that law enforcement [02:44.530 --> 02:51.290] use to spy on people on the streets when they're going about their daily lives. And one of those [02:51.290 --> 02:56.990] technologies is known as a cell-site simulator. So what is a cell-site simulator? A cell-site [02:56.990 --> 03:03.050] simulator is a transmitter or receiver that intercepts metadata and location information [03:03.050 --> 03:10.510] from cellular phones, often by masquerading as a legitimate cell tower. The terms MCCatcher, [03:10.510 --> 03:16.990] Stingray, Hailstorm, fake base station, and cell-site simulator are all pretty much [03:16.990 --> 03:21.610] interchangeable, and for the purposes of this presentation, we will use them interchangeably. [03:22.490 --> 03:29.390] So they all mean the same thing. So how did we get interested in cell-site simulators? [03:29.850 --> 03:37.890] Well, it all started back around Thanksgiving of 2015, when I started getting messages from people [03:37.890 --> 03:44.590] at the Standing Rock Indian Reservation in North Dakota. At that time, there was a large series of [03:44.590 --> 03:51.610] protests going on at Standing Rock to protest a pipeline which was being built through the reservation to deliver oil. [03:52.230 --> 03:57.650] And people at those protests had started seeing strange things which they thought might be [03:57.650 --> 04:02.970] indicative of the presence of a cell-site simulator. Some of them had installed applications [04:02.970 --> 04:07.850] on their Android phones which reported to detect cell-site simulators, and they sent me the [04:07.850 --> 04:13.570] screenshots of the detections. I thought that these screenshots were suspicious enough that I thought [04:13.570 --> 04:19.770] it was worth going out to Standing Rock to see if I could detect these for myself. So I loaded up a [04:19.770 --> 04:27.210] few different apps on my phones, and I grabbed a couple of $20 software-defined radios, and off I [04:27.210 --> 04:34.910] went. When I got to Standing Rock, I started running the apps, I started scanning the 2G GSM cellular [04:34.910 --> 04:40.530] spectrum for any anomalies with the software-defined radios, and set about to see what I could learn. [04:40.530 --> 04:46.730] And what I learned is that I have no idea what I was doing. [04:48.150 --> 04:55.370] The apps were showing me some results, but I couldn't really figure out what those results [04:55.370 --> 05:00.450] meant. Did they mean there was actually an MC catcher around, or did they just mean that they [05:00.450 --> 05:06.950] that the cellular network was having a hard time and failing in the normal ways that cellular [05:06.950 --> 05:14.890] networks fail all the time? Furthermore, I looked at what the 2G spectrum was producing [05:14.890 --> 05:21.810] from my software-defined radios, and realized quickly that there were no 2G GSM towers anywhere [05:21.810 --> 05:28.230] in the area, real or fake. There was nothing going on on that spectrum at all. All of the [05:28.230 --> 05:36.730] connections in the area were over 3G or 4G. So this was very confusing. I didn't know what to [05:36.730 --> 05:42.830] make of this. I certainly hadn't found any hard evidence of MC catchers, and it seemed like the [05:42.830 --> 05:50.750] methods that I was using wouldn't quite work. Up until that point, all of the knowledge that we [05:50.750 --> 05:56.510] had about MC catchers was based on an older model called the Stingray, as shown here. [05:57.010 --> 06:03.570] The Stingray is made by a company called Harris Corporation, and it is perhaps the most famous MC [06:03.570 --> 06:11.330] catcher. It works natively on 2G, and it takes advantage of vulnerabilities in the 2G specification, [06:11.330 --> 06:17.130] two trick phones into connecting to it and giving up their location and metadata for their calls. [06:17.930 --> 06:24.990] Now, since there was no 2G anywhere in the area of Standing Rock, we figured that any MC catchers [06:24.990 --> 06:32.550] that were out there must be operating natively on 4G or LTE. What's more, we had just discovered [06:32.550 --> 06:39.830] that the city of Oakland, which is a major city in California, had upgraded their Stingray to a [06:39.830 --> 06:46.190] new model of MC catcher called the Hailstorm. The Hailstorm purported to operate natively on 4G [06:46.190 --> 06:53.350] and have all the same characteristics, all the same capabilities that the Stingray has. [06:53.350 --> 07:00.990] This was interesting to us, because up until now we had assumed that 4G LTE had fixed all of the [07:00.990 --> 07:05.430] vulnerabilities that the Stingray could take advantage of, and therefore might be impervious [07:05.430 --> 07:12.750] to MC catchers. But clearly, this was not the case. So we figured that the best thing to do [07:12.750 --> 07:18.750] was figure out how 4G LTE native cell site simulators, such as the Hailstorm, [07:18.750 --> 07:24.550] could possibly work. And more importantly, could we be able to detect them? [07:27.490 --> 07:31.850] Yamna and I set about reading all of the academic papers we could for the next year [07:31.850 --> 07:38.670] about vulnerabilities in the 4G LTE protocol. And what we found are that there are several [07:38.670 --> 07:45.570] different vulnerabilities that next generation CSS could be taking advantage of. Yamna wrote [07:45.570 --> 07:51.550] all these up in a really excellent white paper called Gotta Catch Em All, which is a nice high [07:51.550 --> 07:56.270] level summary of all of the vulnerabilities and how they work. I'm not going to get into this here, [07:56.270 --> 08:00.370] because Yamna's paper is really excellent, and you should really just go read that. [08:00.850 --> 08:05.610] But suffice to say, we found several ways, and we feel like we have a pretty good understanding [08:05.610 --> 08:12.350] of how a Hailstorm or a similar cell site simulator might work. So now that we've found [08:12.350 --> 08:20.690] out how they work, how often are they being used? Well, in the US, we can use Freedom of Information [08:20.690 --> 08:28.130] Act requests to figure that out, at least from government usage. So the Immigration and Customs [08:28.130 --> 08:35.870] Enforcement wing of the US government used their cell site simulator 466 times between 2017 and [08:35.870 --> 08:43.850] 2019, according to documents obtained by the American Civil Liberties Union. In local law [08:43.850 --> 08:51.590] enforcement, the city of Santa Barbara used their cell site simulator 231 times in 2017, [08:51.590 --> 08:56.430] roughly equaling the number of times that the cell site simulator was used by ICE, [08:56.650 --> 09:03.730] a federal agency, but for one small city in California. On the other hand, Oakland, California, [09:03.730 --> 09:11.010] which I talked about earlier, only used their cell site simulator 3 times in 2017, 4 times in 2018, [09:11.010 --> 09:16.850] and once in 2019. And we think that the reason for this difference is that Oakland has strong [09:16.850 --> 09:21.870] privacy laws about when the police can use the cell site simulator, why they can use the cell [09:21.870 --> 09:26.130] site simulator, and what sort of reporting they have to do after they use it. And we [09:26.130 --> 09:32.630] think this is evidence that those privacy laws actually work very well. But of course, not [09:32.630 --> 09:40.470] everybody can be... we can't request freedom of information documents from everybody. [09:42.830 --> 09:48.610] For example, we think that foreign spies are using MC catchers around Washington, [09:48.610 --> 09:52.990] D.C. and the U.S. Capitol. And we think this because the Department of Homeland Security [09:52.990 --> 09:57.070] put out a report saying that they had found several MC catchers in the area, [09:57.070 --> 10:02.090] which they assumed were operated by foreign spies. We also think that cyber mercenaries, [10:02.090 --> 10:07.130] such as the NSO Group, are using MC catchers. There was a report from Amnesty International [10:07.690 --> 10:13.090] about how NSO Group had used MC catchers to spy on a Moroccan journalist, [10:13.090 --> 10:18.730] presumably on behalf of the Moroccan government. Also, we think that criminals are using MC [10:18.730 --> 10:24.290] catchers. There's some body of evidence that Mexican drug cartels are using MC catchers [10:24.290 --> 10:30.590] to keep tabs on the Mexican federal forces that are going after them. And this makes sense. It [10:30.590 --> 10:35.570] only costs a couple of thousand dollars to build a really nice MC catcher. And this is certainly [10:35.570 --> 10:43.590] within the budget of a well-funded crime group such as a cartel, or even a smaller crime group [10:43.590 --> 10:51.550] such as a robbery ring. So, since we can't FOIA everybody, we also want to figure out how we can [10:51.550 --> 10:57.510] detect 4G MC catchers. There are a couple of previous attempts at this, and two schools of [10:57.510 --> 11:02.290] thought, which I'll call app-based and radio-based. The app-based school of thought, such as Android [11:02.290 --> 11:08.710] MC catcher detector and Snoop Snitch, usually is a free Android application that can be downloaded [11:08.710 --> 11:15.130] from the Android Play Store. They're easy to use, but they can only get data about the [11:15.850 --> 11:20.990] transmitters or base stations that your phone is connecting to. They also get a lot of false [11:20.990 --> 11:26.710] positives and false negatives, because a lot of the things that might look like MC catcher activity [11:27.210 --> 11:31.790] are also things that happen often in the cellular network, and you have no way to tell [11:31.790 --> 11:36.390] whether this is a normal glitch or something that's actually suspicious. [11:38.390 --> 11:43.070] On the other hand, there is a school of thought called radio-based MC catchers, and these are [11:43.070 --> 11:48.610] things such as the Seaglass project out of University of Washington, or the Sitch project [11:48.610 --> 11:55.030] by Ash Wilson. The advantages of these are that you can get better data. You can get data about [11:55.030 --> 11:59.610] all of the transmitters or base stations in an area, not just the ones that your phone is [11:59.610 --> 12:05.170] connecting to, and you can get lower level information. The cons are the downsides are [12:05.170 --> 12:09.590] that they're harder to set up and use. You have to know Linux, you have to know some programming, [12:09.590 --> 12:13.170] and you have to buy some hardware, so it's not as cheap. [12:15.790 --> 12:22.730] So after looking at these, we thought can we detect 4G cell site simulators? How can we [12:22.730 --> 12:30.350] improve on these previous attempts? Well, one thing we can do is to collect lower level data. [12:30.350 --> 12:35.070] We like the radio-based approach to be able to see all the towers in the area, not just the ones [12:35.070 --> 12:39.630] that our phone chooses to connect to. And we can also compare that data over time to look for [12:39.630 --> 12:45.950] changes and suspicious new events. But the most important improvement that we can make is to not [12:45.950 --> 12:52.610] look at 2G or GSM towers, which all the previous technologies do, but to look at the 4G spectrum [12:52.610 --> 12:58.610] and to look at the anomalies we expect to see in 4G MC catchers. And the other really important [12:58.610 --> 13:04.970] thing we can do is verify the results, meaning to actually track down suspicious towers and [13:04.970 --> 13:13.950] see them with our own two eyes. If the suspicious base station is on top of a normal cell tower, [13:13.950 --> 13:19.790] that's probably fine. If it's on top of an embassy belonging to a foreign government, [13:19.790 --> 13:24.430] that is more suspicious. And if it's in the back of an unmarked van, [13:24.430 --> 13:28.930] that is extremely suspicious and most likely to be an MC catcher. [13:29.930 --> 13:35.890] So me and Yamana set out building our detector, which we call Crocodile Hunter. [13:37.910 --> 13:45.710] Crocodile Hunter is an open source software stack which is based on SRS LTE. SRS LTE is an [13:45.710 --> 13:53.490] open source LTE implementation which implements not only the base station and back end of LTE, [13:53.490 --> 13:59.960] but also the mobile phone equipment itself. It can be an LTE client as well as an LTE server. [14:00.610 --> 14:07.410] We also use Python for the database and front end and heuristics and number crunching [14:07.410 --> 14:11.990] about whether something is a suspicious base station or not. [14:13.410 --> 14:23.130] The hardware stack is a laptop or Raspberry Pi running Linux, a USB GPS dongle, a software [14:23.130 --> 14:30.590] defined radio, and two LTE antennas. This is very small and can easily fit into a backpack [14:30.590 --> 14:36.150] or into your car for concealability. [14:39.440 --> 14:46.220] So this is an example of the Crocodile Hunter user interface. Each of the orange dots and black [14:46.220 --> 14:52.100] skulls are a base station. This was collected in downtown San Francisco in 2019. The black [14:52.100 --> 14:56.080] skulls are base stations that we think are suspicious, but of course not every one of them. [14:56.080 --> 15:02.180] In fact, in this case, probably none of them are cell site simulators, but they are all [15:02.180 --> 15:06.800] base stations that Crocodile Hunter found suspicious and we should probably follow up on. [15:08.000 --> 15:15.480] The way that Crocodile Hunter works is we use SRS-LTE to scan a list of the 4G frequencies [15:15.480 --> 15:20.960] for information blocks. These are packets which are sent out by the base stations [15:21.920 --> 15:29.500] fairly frequently, which contain information like a cellular ID, a unique ID for the base station, [15:29.500 --> 15:36.040] and a few other pieces of interesting information. SRS-LTE decodes the system information blocks [15:36.040 --> 15:40.180] and sends them back to the Python server over a local socket. [15:40.600 --> 15:48.020] The Python server then does a few things. The first thing we do is try to map out the antennas [15:48.020 --> 15:54.080] in real time. We use a method called trilateration, which is similar to triangulation, [15:54.080 --> 15:58.620] and some radio physics to estimate where all the base stations are located. [15:59.040 --> 16:05.060] We then can compare this to a public open source database, such as Wiggle or OpenCellID, [16:05.060 --> 16:11.240] to see if this transmitter has a history. Is this transmitter regularly seen in that area? [16:11.300 --> 16:17.840] Is this transmitter one that's been in that area for a while? And this is predicated on the idea [16:17.840 --> 16:23.240] that cell-site simulators will tend to be mobile and only show up for a little bit and then leave, [16:23.240 --> 16:26.840] and not stationary sitting in one place for months or years. [16:29.660 --> 16:34.100] Then we can look for anomalies, now that we have the base stations and we've mapped them out. [16:34.100 --> 16:40.640] We look for things like base stations that move, base stations that are in two places at once, [16:40.640 --> 16:44.500] base stations that are new and haven't been seen before, or base stations [16:44.500 --> 16:49.240] that are only seen once and then never seen again. Things that are changing parameters [16:49.240 --> 16:54.400] or missing parameters, all of these things are suspicious. And when we find a suspicious base [16:54.400 --> 16:58.820] station, we don't immediately assume it's a cell-site simulator or an MC catcher. [16:58.820 --> 17:03.360] That's why we have to go physically verify it and take a look at it with our own two eyes, [17:03.360 --> 17:07.980] to see if this is a false positive or to see if this is the real thing. [17:10.540 --> 17:15.710] So what have we found so far? One of our earliest tests was in Washington, D.C., [17:16.680 --> 17:22.340] where we found a really interesting base station. Normally, it would [17:23.800 --> 17:31.300] give the mobile country code and mobile network code of 310 and 410, which correspond to the [17:31.300 --> 17:37.880] United States and AT&T, respectively. There was another base station, similarly, [17:37.880 --> 17:45.260] giving the country code and network code of 310 and 410. But in one instance, those base stations, [17:45.260 --> 17:52.400] one of them, suddenly started broadcasting a country code and network code of 350 and 490. [17:52.400 --> 17:59.460] 350 is the country code for Bermuda, and 490 is a network code which is not used by any network [17:59.460 --> 18:06.980] provider in Bermuda, but which is used by Sprint or T-Mobile in the United States. But notably, [18:06.980 --> 18:13.180] not AT&T, which is who this base station belongs to. It even had the same base station ID. [18:14.440 --> 18:19.200] In the other case, the base station suddenly started broadcasting the country code and [18:19.200 --> 18:25.560] network code of 308 and 451, which belong, respectively, 308 to Saint-Pierre-en-Miquelon, [18:25.560 --> 18:31.620] which is a small island off the coast of Nova Scotia, and 451, which is not used by any network [18:31.620 --> 18:39.000] anywhere in the world. So this is really interesting, and why the heck is this happening? [18:39.000 --> 18:44.000] We have no idea. This is certainly not a result we expected to see, [18:44.000 --> 18:49.500] and although it is suspicious, we're not really sure what's going on here. [18:51.060 --> 18:54.920] So we kind of wrote that off as an anomaly and meant to investigate it later. [18:55.560 --> 18:58.520] Later that summer in Oakland, California... [19:02.050 --> 19:09.170] Later that summer in Oakland, California, there were a series of Black Lives Matter protests, [19:09.790 --> 19:21.310] during which we ran Crocodile Hunter between June 3rd and July 15th. And for most of that time, [19:21.310 --> 19:30.330] saw what we would expect to see. Base stations from T-Mobile, AT&T, Sprint, and so on. But in [19:30.330 --> 19:38.670] two instances, what we found were really strange base stations suddenly broadcasting. Sorry, [19:38.670 --> 19:42.710] in one instance, what we found were three different base stations suddenly broadcasting [19:43.310 --> 19:50.010] different country codes and network codes. And these were all seen on June 19th, which was the [19:50.010 --> 19:54.530] of a large protest in downtown Oakland, which marched from the port of Oakland, [19:54.530 --> 20:00.730] one of the biggest shipping ports in the world, to Oakland City Hall. In one case, [20:00.730 --> 20:07.810] the base station was broadcasting a country code of 213, which is used by the country code of Andorra, [20:07.810 --> 20:14.630] and 688, which is not used by any network in Andorra. In another case, the country code was 710, [20:14.630 --> 20:22.170] which is used by the country of Nicaragua, and 738, which is not used by any mobile network [20:22.170 --> 20:27.650] provider in Nicaragua. And in the third case, it was broadcasting the country code of 319, [20:27.650 --> 20:33.750] and a network code of 59, which isn't used by any country or network anywhere in the world. [20:33.790 --> 20:39.910] So these are, again, very suspicious. And we only saw them that one time, despite doing scans for [20:39.910 --> 20:45.970] for three different scans over the course of a month and a half in the same area. This is pretty [20:45.970 --> 20:50.150] similar to what we saw in DC, and we still don't know what to make of it, but we think it's very [20:50.150 --> 21:00.510] suspicious, and we're hoping to collect more data. Finally, what's with the name? Well, there is a [21:00.510 --> 21:06.630] man, Steve Irwin, who used to run a show called The Crocodile Hunter. And unfortunately, he was [21:06.630 --> 21:16.570] killed by the animal, the stingray, while he was swimming in Australia. You may remember, [21:16.570 --> 21:21.310] the stingray was the name of one of the original MC catchers. So we named this Crocodile Hunter [21:21.310 --> 21:25.930] to pay our respects to Steve Irwin. Thanks, Steve. Much love. [21:29.720 --> 21:36.220] So what is our future work here? Well, we have ongoing tests in Latin America with the FADE [21:36.220 --> 21:42.240] project, in Washington DC, in New York City, and hopefully in your hometown and in countries around [21:42.240 --> 21:48.960] the world. The project is open source, and we would love for you to download it, take a look, [21:48.960 --> 21:53.960] and run it yourself. We would like to get more data. We think that this can only be improved [21:53.960 --> 21:58.700] with more data. We want to see if those strange networks with strange country codes pop up again [21:58.700 --> 22:03.680] in other places and try to figure out what that means. And we also want to improve our heuristics [22:03.680 --> 22:07.340] as we see what MC catchers look like in the wild. [22:08.440 --> 22:14.120] Finally, how can we stop cell site simulators? Unfortunately, there's not much that we as [22:14.120 --> 22:21.460] individuals can do. And unfortunately, 5G doesn't solve the problem. In fact, it leaves many of the [22:21.460 --> 22:29.620] same security problems that 4G has still open. One thing we can do is end 2G support on iOS and [22:29.620 --> 22:35.140] Android. 2G allows some of the worst abuses of MC catchers, such as listening to the content of [22:35.140 --> 22:40.660] phone calls. And if we stop 2G, that would at least make the problem a little bit better. [22:40.820 --> 22:44.960] We can also eliminate some of the vulnerabilities in 4G, and there are some amazing [22:45.620 --> 22:50.320] proposals for how to do that, which I can't get into now, but will be linked to in the slides. [22:51.620 --> 22:56.120] We can get more data about the threat that cell site simulators pose and how to detect them, [22:56.120 --> 23:01.880] which will help us pressure our governments to pass stronger privacy regulations and to pressure [23:01.880 --> 23:08.240] standards orgs, carriers, manufacturers to care more about user privacy and take this threat [23:08.240 --> 23:14.380] seriously. None of these are foolproof solutions, but we're not even doing the bare minimum yet, [23:14.380 --> 23:21.780] and I think that we could do better. The final takeaway is here. We have a pretty good understanding [23:21.780 --> 23:27.100] of the vulnerabilities in 4G which commercial cell site simulators might exploit. [23:28.160 --> 23:33.700] None of the previous MC catcher detector applications really do the job anymore, [23:33.700 --> 23:39.720] but we've proven that the same principles which worked for previous cell site simulator [23:39.720 --> 23:44.120] detection apps should work for the next generation of cell site simulators. [23:44.440 --> 23:50.360] Finally, the problems of CSS abuse can be solved, but it's going to take a lot of work, [23:50.360 --> 23:53.780] not only engineering work, but political work as well. [23:56.120 --> 24:01.160] Thank you for your time. Again, I'm Cooper Quinton. I'm with the EFF Threat Lab, [24:01.160 --> 24:06.000] and I'm a senior security researcher there, and you can find me on Twitter at CooperQ or email [24:06.000 --> 24:12.440] cooperq at EFF.org, and Crocodile Hunter can be found on our GitHub page here as well. [24:12.980 --> 24:16.980] Thanks, and I hope you enjoy the rest of the conference. Bye-bye.