WEBVTT

00:01.550 --> 00:08.630
Hi, my name is Cooper Quinton and I'm here to talk to you today about detecting 4G base stations in real time.

00:09.190 --> 00:11.050
First, a little bit about me.

00:11.050 --> 00:15.150
I am a senior security researcher with the Electronic Frontier Foundation.

00:15.150 --> 00:22.710
I have a toddler and a new baby who is less than one week old, which should explain the bags under my eyes because I'm very tired.

00:22.710 --> 00:25.790
And it should also explain the dad jokes in this presentation.

00:25.970 --> 00:28.270
I'm also a former teenage phone freak.

00:28.270 --> 00:37.630
I spent a number of years building strangely colored boxes to do nefarious things to the phone system, which might explain why I got into the work that I'm going to present here today.

00:38.290 --> 00:41.810
I work for EFF or the Electronic Frontier Foundation.

00:41.810 --> 00:45.150
If you're not familiar with us, our work can be found at EFF.org.

00:45.150 --> 00:50.970
We're a member supported non-profit and we defend civil liberties as they intersect with technology.

00:50.970 --> 01:02.690
We think things like freedom of speech, the right to assembly, and the right to privacy exist online as well as offline, and when you interact with technology as well as when you don't.

01:02.690 --> 01:07.570
And we've been defending these rights worldwide for more than 30 years.

01:08.950 --> 01:13.750
I work for the EFF Threat Lab specifically, and I'm going to talk about that in a second.

01:13.750 --> 01:17.430
But before I do, I want to take a moment to thank my colleague Yamina.

01:17.490 --> 01:23.450
She's no longer at EFF and has joined a new company, but this work is as much hers as it is mine.

01:23.510 --> 01:29.710
She's a really amazing and smart person, and if you like this work, you should check her out at Rival Elf on Twitter.

01:29.710 --> 01:32.130
None of this would have been possible without her.

01:32.970 --> 01:35.030
So what is Threat Lab?

01:35.030 --> 01:50.590
Threat Lab looks at technology that targets at-risk people, specifically activists, human rights defenders, journalists, domestic abuse victims, immigrants, sex workers, minority populations, and political dissidents.

01:50.590 --> 01:58.330
Anybody who is at risk of violence 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:25.030
To gather intelligence on political opposition, to spy on people illegally or when they've left the country, to locate, capture, extort, and harass people whose views you disagree with, and generally to stifle their freedom of expression and prevent them from speaking out and doing the work they do or even just living their lives.

02:25.850 --> 02:29.510
We look at a couple of different types of technology in this work.

02:29.530 --> 02:34.710
One of the main types of technology that we look at is state-sponsored malware and spyware.

02:34.710 --> 02:40.390
This is malware used to spy on people through their phones or their computers, and that's a big part of what we do.

02:40.430 --> 02:50.450
But another part of what we do is look at the technologies that law enforcement use to spy on people on the streets when they're going about their daily lives.

02:50.450 --> 02:54.350
And one of those technologies is known as a cell-site simulator.

02:54.370 --> 02:56.470
So what is a cell-site simulator?

02:56.470 --> 03:08.150
A cell-site simulator is a transmitter or receiver that intercepts metadata and location information from cellular phones, often by masquerading as a legitimate cell tower.

03:08.590 --> 03:21.610
The terms MCCatcher, Stingray, Hailstorm, fake base station, and cell-site simulator are all pretty much interchangeable, and for the purposes of this presentation, we will use them interchangeably.

03:22.490 --> 03:24.910
So they all mean the same thing.

03:25.550 --> 03:29.390
So how did we get interested in cell-site simulators?

03:29.850 --> 03:41.690
Well, it all started back around Thanksgiving of 2015, when I started getting messages from people at the Standing Rock Indian Reservation in North Dakota.

03:41.790 --> 03:51.610
At that time, there was a large series of protests going on at Standing Rock to protest a pipeline which was being built through the reservation to deliver oil.

03:52.230 --> 04:01.210
And people at those protests had started seeing strange things which they thought might be indicative of the presence of a cell-site simulator.

04:01.310 --> 04:09.710
Some of them had installed applications on their Android phones which reported to detect cell-site simulators, and they sent me the screenshots of the detections.

04:09.710 --> 04:18.330
I thought that these screenshots were suspicious enough that I thought it was worth going out to Standing Rock to see if I could detect these for myself.

04:18.350 --> 04:27.670
So I loaded up a few different apps on my phones, and I grabbed a couple of $20 software-defined radios, and off I went .

04:27.670 --> 04:40.530
When I got to Standing Rock, I started running the apps, I started scanning the 2G GSM cellular 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:56.290
The apps were showing me some results, but I couldn't really figure out what those results meant.

04:56.290 --> 05:09.010
Did they mean there was actually an MC catcher around, or did they just mean that they that the cellular network was having a hard time and failing in the normal ways that cellular networks fail all the time?

05:09.230 --> 05:24.990
Furthermore, I looked at what the 2G spectrum was producing from my software-defined radios, and realized quickly that there were no 2G GSM towers anywhere in the area, real or fake.

05:24.990 --> 05:27.710
There was nothing going on on that spectrum at all.

05:27.710 --> 05:31.830
All of the connections in the area were over 3G or 4G.

05:33.130 --> 05:35.790
So this was very confusing.

05:35.790 --> 05:37.450
I didn't know what to make of this.

05:37.450 --> 05:46.510
I certainly hadn't found any hard evidence of MC catchers, and it seemed like the methods that I was using wouldn't quite work.

05:48.110 --> 05:56.510
Up until that point, all of the knowledge that we had about MC catchers was based on an older model called the Stingray, as shown here.

05:57.010 --> 06:04.030
The Stingray is made by a company called Harris Corporation, and it is perhaps the most famous MC catcher.

06:04.030 --> 06:17.130
It works natively on 2G, and it takes advantage of vulnerabilities in the 2G specification, two trick phones into connecting to it and giving up their location and metadata for their calls.

06:17.930 --> 06:30.210
Now, since there was no 2G anywhere in the area of Standing Rock, we figured that any MC catchers that were out there must be operating natively on 4G or LTE.

06:30.570 --> 06:42.410
What's more, we had just discovered that the city of Oakland, which is a major city in California, had upgraded their Stingray to a new model of MC catcher called the Hailstorm.

06:42.410 --> 06:51.690
The Hailstorm purported to operate natively on 4G and have all the same characteristics, all the same capabilities that the Stingray has.

06:52.710 --> 07:06.850
This was interesting to us, because up until now we had assumed that 4G LTE had fixed all of the vulnerabilities that the Stingray could take advantage of, and therefore might be impervious to MC catchers.

07:06.850 --> 07:09.930
But clearly, this was not the case.

07:10.250 --> 07:20.330
So we figured that the best thing to do was figure out how 4G LTE native cell site simulators, such as the Hailstorm, could possibly work.

07:20.330 --> 07:24.550
And more importantly, could we be able to detect them?

07:27.490 --> 07:35.950
Yamna and I set about reading all of the academic papers we could for the next year about vulnerabilities in the 4G LTE protocol.

07:36.330 --> 07:44.310
And what we found are that there are several different vulnerabilities that next generation CSS could be taking advantage of.

07:44.710 --> 07:54.650
Yamna wrote all these up in a really excellent white paper called Gotta Catch Em All, which is a nice high level summary of all of the vulnerabilities and how they work.

07:54.730 --> 08:00.370
I'm not going to get into this here, because Yamna's paper is really excellent, and you should really just go read that.

08:00.850 --> 08:10.230
But suffice to say, we found several ways, and we feel like we have a pretty good understanding of how a Hailstorm or a similar cell site simulator might work.

08:10.670 --> 08:15.750
So now that we've found out how they work, how often are they being used?

08:17.210 --> 08:26.330
Well, in the US, we can use Freedom of Information Act requests to figure that out, at least from government usage.

08:26.330 --> 08:41.030
So the Immigration and Customs Enforcement wing of the US government used their cell site simulator 466 times between 2017 and 2019, according to documents obtained by the American Civil Liberties Union.

08:42.410 --> 09:00.730
In local law enforcement, the city of Santa Barbara used their cell site simulator 231 times in 2017, roughly equaling the number of times that the cell site simulator was used by ICE, a federal agency, but for one small city in California.

09:01.110 --> 09:12.690
On the other hand, Oakland, California, which I talked about earlier, only used their cell site simulator 3 times in 2017, 4 times in 2018, and once in 2019.

09:13.050 --> 09:25.850
And we think that the reason for this difference is that Oakland has strong privacy laws about when the police can use the cell site simulator, why they can use the cell site simulator, and what sort of reporting they have to do after they use it.

09:25.850 --> 09:30.070
And we think this is evidence that those privacy laws actually work very well.

09:31.390 --> 09:40.470
But of course, not everybody can be... we can't request freedom of information documents from everybody.

09:42.830 --> 09:48.910
For example, we think that foreign spies are using MC catchers around Washington, D.C.

09:48.910 --> 09:49.490
and the U.S.

09:49.490 --> 09:50.310
Capitol.

09:50.390 --> 09:59.610
And we think this because the Department of Homeland Security put out a report saying that they had found several MC catchers in the area, which they assumed were operated by foreign spies.

09:59.610 --> 10:04.930
We also think that cyber mercenaries, such as the NSO Group, are using MC catchers.

10:04.930 --> 10:16.150
There was a report from Amnesty International about how NSO Group had used MC catchers to spy on a Moroccan journalist, presumably on behalf of the Moroccan government.

10:16.390 --> 10:19.330
Also, we think that criminals are using MC catchers.

10:19.330 --> 10:29.110
There's some body of evidence that Mexican drug cartels are using MC catchers to keep tabs on the Mexican federal forces that are going after them.

10:29.110 --> 10:30.430
And this makes sense.

10:30.430 --> 10:34.830
It only costs a couple of thousand dollars to build a really nice MC catcher.

10:34.830 --> 10:45.310
And this is certainly within the budget of a well-funded crime group such as a cartel, or even a smaller crime group such as a robbery ring.

10:46.810 --> 10:53.670
So, since we can't FOIA everybody, we also want to figure out how we can detect 4G MC catchers.

10:53.690 --> 10:59.970
There are a couple of previous attempts at this, and two schools of thought, which I'll call app-based and radio-based.

10:59.970 --> 11:10.970
The app-based school of thought, such as Android MC catcher detector and Snoop Snitch, usually is a free Android application that can be downloaded from the Android Play Store.

11:11.110 --> 11:19.130
They're easy to use, but they can only get data about the transmitters or base stations that your phone is connecting to.

11:19.170 --> 11:36.390
They also get a lot of false positives and false negatives, because a lot of the things that might look like MC catcher activity are also things that happen often in the cellular network, and you have no way to tell whether this is a normal glitch or something that's actually suspicious.

11:38.390 --> 11:49.990
On the other hand, there is a school of thought called radio-based MC catchers, and these are things such as the Seaglass project out of University of Washington, or the Sitch project by Ash Wilson.

11:50.090 --> 11:53.730
The advantages of these are that you can get better data.

11:53.730 --> 12:02.510
You can get data about all of the transmitters or base stations in an area, not just the ones that your phone is connecting to, and you can get lower level information.

12:02.750 --> 12:07.050
The cons are the downsides are that they're harder to set up and use.

12:07.050 --> 12:13.170
You have to know Linux, you have to know some programming, and you have to buy some hardware, so it's not as cheap.

12:15.790 --> 12:22.170
So after looking at these, we thought can we detect 4G cell site simulators?

12:22.170 --> 12:26.390
How can we improve on these previous attempts?

12:26.610 --> 12:30.350
Well, one thing we can do is to collect lower level data.

12:30.350 --> 12:36.970
We like the radio-based approach to be able to see all the towers in the area, not just the ones that our phone chooses to connect to.

12:36.970 --> 12:41.850
And we can also compare that data over time to look for changes and suspicious new events.

12:42.390 --> 12:57.410
But the most important improvement that we can make is to not look at 2G or GSM towers, which all the previous technologies do, but to look at the 4G spectrum and to look at the anomalies we expect to see in 4G MC catchers.

12:57.410 --> 13:07.170
And the other really important thing we can do is verify the results, meaning to actually track down suspicious towers and see them with our own two eyes.

13:07.450 --> 13:15.630
If the suspicious base station is on top of a normal cell tower, that's probably fine.

13:15.630 --> 13:22.210
If it's on top of an embassy belonging to a foreign government, that is more suspicious.

13:22.430 --> 13:28.930
And if it's in the back of an unmarked van, 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:44.330
Crocodile Hunter is an open source software stack which is based on SRS LTE.

13:44.490 --> 13:56.970
SRS LTE is an open source LTE implementation which implements not only the base station and back end of LTE, but also the mobile phone equipment itself.

13:56.970 --> 13:59.960
It can be an LTE client as well as an LTE server.

14:00.610 --> 14:11.990
We also use Python for the database and front end and heuristics and number crunching about whether something is a suspicious base station or not.

14:13.410 --> 14:27.350
The hardware stack is a laptop or Raspberry Pi running Linux, a USB GPS dongle, a software defined radio, and two LTE antennas.

14:27.510 --> 14:36.150
This is very small and can easily fit into a backpack or into your car for concealability.

14:39.440 --> 14:44.480
So this is an example of the Crocodile Hunter user interface.

14:44.520 --> 14:47.960
Each of the orange dots and black skulls are a base station.

14:47.960 --> 14:51.160
This was collected in downtown San Francisco in 2019.

14:51.440 --> 14:56.080
The black skulls are base stations that we think are suspicious, but of course not every one of them.

14:56.080 --> 15:06.800
In fact, in this case, probably none of them are cell site simulators, but they are all base stations that Crocodile Hunter found suspicious and we should probably follow up on.

15:08.000 --> 15:17.480
The way that Crocodile Hunter works is we use SRS-LTE to scan a list of the 4G frequencies for information blocks.

15:17.540 --> 15:32.460
These are packets which are sent out by the base stations fairly frequently, which contain information like a cellular ID, a unique ID for the base station, and a few other pieces of interesting information.

15:32.660 --> 15:40.180
SRS-LTE decodes the system information blocks and sends them back to the Python server over a local socket.

15:40.600 --> 15:43.160
The Python server then does a few things.

15:43.160 --> 15:49.900
The first thing we do is try to map out the antennas in real time.

15:49.900 --> 15:58.620
We use a method called trilateration, which is similar to triangulation, and some radio physics to estimate where all the base stations are located.

15:59.040 --> 16:07.860
We then can compare this to a public open source database, such as Wiggle or OpenCellID, to see if this transmitter has a history.

16:08.280 --> 16:11.240
Is this transmitter regularly seen in that area?

16:11.300 --> 16:15.880
Is this transmitter one that's been in that area for a while?

16:16.160 --> 16:26.840
And this is predicated on the idea that cell-site simulators will tend to be mobile and only show up for a little bit and then leave, 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:47.540
We look for things like base stations that move, base stations that are in two places at once, base stations that are new and haven't been seen before, or base stations that are only seen once and then never seen again.

16:47.660 --> 16:52.380
Things that are changing parameters or missing parameters, all of these things are suspicious.

16:52.780 --> 16:58.820
And when we find a suspicious base station, we don't immediately assume it's a cell-site simulator or an MC catcher.

16:58.820 --> 17:07.980
That's why we have to go physically verify it and take a look at it with our own two eyes, to see if this is a false positive or to see if this is the real thing.

17:10.540 --> 17:12.580
So what have we found so far?

17:12.660 --> 17:20.300
One of our earliest tests was in Washington, D.C., where we found a really interesting base station.

17:20.800 --> 17:34.380
Normally, it would give the mobile country code and mobile network code of 310 and 410, which correspond to the United States and AT&T, respectively.

17:35.180 --> 17:41.640
There was another base station, similarly, giving the country code and network code of 310 and 410.

17:41.700 --> 17:52.400
But in one instance, those base stations, one of them, suddenly started broadcasting a country code and network code of 350 and 490.

17:52.400 --> 18:06.140
350 is the country code for Bermuda, and 490 is a network code which is not used by any network provider in Bermuda, but which is used by Sprint or T-Mobile in the United States.

18:06.140 --> 18:10.660
But notably, not AT&T, which is who this base station belongs to.

18:10.660 --> 18:13.180
It even had the same base station ID.

18:14.440 --> 18:33.800
In the other case, the base station suddenly started broadcasting the country code and network code of 308 and 451, which belong, respectively, 308 to Saint-Pierre-en-Miquelon, which is a small island off the coast of Nova Scotia, and 451, which is not used by any network anywhere in the world.

18:34.220 --> 18:39.000
So this is really interesting, and why the heck is this happening?

18:39.000 --> 18:40.500
We have no idea.

18:40.500 --> 18:49.500
This is certainly not a result we expected to see, 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:19.310
Later that summer in Oakland, California, there were a series of Black Lives Matter protests, during which we ran Crocodile Hunter between June 3rd and July 15th.

19:19.310 --> 19:23.510
And for most of that time, saw what we would expect to see.

19:23.510 --> 19:29.270
Base stations from T-Mobile, AT&T, Sprint, and so on.

19:29.270 --> 19:38.150
But in two instances, what we found were really strange base stations suddenly broadcasting.

19:38.150 --> 19:45.870
Sorry, in one instance, what we found were three different base stations suddenly broadcasting different country codes and network codes.

19:46.550 --> 19:58.950
And these were all seen on June 19th, which was the of a large protest in downtown Oakland, which marched from the port of Oakland, one of the biggest shipping ports in the world, to Oakland City Hall.

19:59.190 --> 20:11.510
In one case, the base station was broadcasting a country code of 213, which is used by the country code of Andorra, and 688, which is not used by any network in Andorra.

20:11.650 --> 20:23.910
In another case, the country code was 710, which is used by the country of Nicaragua, and 738, which is not used by any mobile network provider in Nicaragua.

20:23.910 --> 20:33.750
And in the third case, it was broadcasting the country code of 319, and a network code of 59, which isn't used by any country or network anywhere in the world.

20:33.790 --> 20:36.410
So these are, again, very suspicious.

20:36.410 --> 20:45.190
And we only saw them that one time, despite doing scans for for three different scans over the course of a month and a half in the same area.

20:45.370 --> 20:53.250
This is pretty similar to what we saw in DC, and we still don't know what to make of it, but we think it's very suspicious, and we're hoping to collect more data.

20:55.070 --> 20:57.150
Finally, what's with the name?

20:57.750 --> 21:04.650
Well, there is a man , Steve Irwin, who used to run a show called The Crocodile Hunter.

21:04.970 --> 21:12.890
And unfortunately, he was killed by the animal, the stingray, while he was swimming in Australia.

21:14.030 --> 21:19.490
You may remember, the stingray was the name of one of the original MC catchers.

21:19.490 --> 21:23.970
So we named this Crocodile Hunter to pay our respects to Steve Irwin.

21:24.050 --> 21:24.890
Thanks, Steve.

21:24.890 --> 21:25.930
Much love.

21:29.720 --> 21:32.460
So what is our future work here?

21:32.500 --> 21:43.140
Well, we have ongoing tests in Latin America with the FADE project, in Washington DC, in New York City, and hopefully in your hometown and in countries around the world.

21:43.480 --> 21:50.180
The project is open source, and we would love for you to download it, take a look, and run it yourself.

21:50.680 --> 21:52.420
We would like to get more data.

21:52.420 --> 21:54.740
We think that this can only be improved with more data.

21:54.740 --> 22:01.460
We want to see if those strange networks with strange country codes pop up again in other places and try to figure out what that means.

22:01.560 --> 22:07.340
And we also want to improve our heuristics as we see what MC catchers look like in the wild.

22:08.440 --> 22:11.920
Finally, how can we stop cell site simulators?

22:12.100 --> 22:15.820
Unfortunately, there's not much that we as individuals can do.

22:15.820 --> 22:19.340
And unfortunately, 5G doesn't solve the problem.

22:19.340 --> 22:25.160
In fact, it leaves many of the same security problems that 4G has still open.

22:25.420 --> 22:30.420
One thing we can do is end 2G support on iOS and Android.

22:30.800 --> 22:36.040
2G allows some of the worst abuses of MC catchers, such as listening to the content of phone calls.

22:36.160 --> 22:40.660
And if we stop 2G, that would at least make the problem a little bit better.

22:40.820 --> 22:50.320
We can also eliminate some of the vulnerabilities in 4G, and there are some amazing proposals for how to do that, which I can't get into now, but will be linked to in the slides.

22:51.620 --> 23:09.280
We can get more data about the threat that cell site simulators pose and how to detect them, which will help us pressure our governments to pass stronger privacy regulations and to pressure standards orgs, carriers, manufacturers to care more about user privacy and take this threat seriously.

23:09.840 --> 23:16.340
None of these are foolproof solutions, but we're not even doing the bare minimum yet, and I think that we could do better.

23:18.440 --> 23:20.220
The final takeaway is here.

23:20.220 --> 23:27.100
We have a pretty good understanding of the vulnerabilities in 4G which commercial cell site simulators might exploit.

23:28.160 --> 23:44.120
None of the previous MC catcher detector applications really do the job anymore, but we've proven that the same principles which worked for previous cell site simulator detection apps should work for the next generation of cell site simulators.

23:44.440 --> 23:53.780
Finally, the problems of CSS abuse can be solved, but it's going to take a lot of work, not only engineering work, but political work as well.

23:56.120 --> 23:57.600
Thank you for your time.

23:57.600 --> 23:58.980
Again, I'm Cooper Quinton.

23:58.980 --> 24:12.440
I'm with the EFF Threat Lab, and I'm a senior security researcher there, and you can find me on Twitter at CooperQ or email cooperq at EFF.org, and Crocodile Hunter can be found on our GitHub page here as well.

24:12.980 --> 24:16.140
Thanks, and I hope you enjoy the rest of the conference.

24:16.200 --> 24:16.980
Bye-bye.

