1 00:00:04,720 --> 00:00:12,620 Good morning, everyone. Yeah, my name is Adrian Dabrowski, my colleague Gabriel Dabrowski. 2 00:00:12,820 --> 00:00:20,800 This is work together with Wilfred Meyer and Edgar Weipel. We will be talking about decoupling the 3 00:00:20,800 --> 00:00:29,400 SIM card from the mobile phone or the modem to get all kinds of fancy measurements. And it's 4 00:00:29,400 --> 00:00:34,800 called cellular carriers hate district. I will explain it why. Using SIM tunnels to travel at 5 00:00:34,800 --> 00:00:41,520 light speed. So for the motivational example, let's assume we have like three medieval city 6 00:00:41,520 --> 00:00:50,260 states and they recently invested into technology and so they switched from land line to 7 00:00:50,260 --> 00:00:59,280 wireless to cellular networks and we have like all this new mobile phone operators popping 8 00:00:59,400 --> 00:01:06,940 up like night mobile or after and Excalibur with the sword in there and dragon phone and all the 9 00:01:06,940 --> 00:01:16,520 others. And with that, we also had like an explosion of new social networks. And we have 10 00:01:16,520 --> 00:01:24,140 something like royal tweet and bar board and peasant post. And all these people are like super 11 00:01:24,140 --> 00:01:29,380 hooked on social networks. So the mobile phone operators think, well, how do we do this? How do we 12 00:01:29,380 --> 00:01:37,360 target some demographics that are like social networks? So they come up with this new data 13 00:01:37,360 --> 00:01:43,380 plans where there is something already included like video streaming or messaging or social 14 00:01:43,380 --> 00:01:51,020 network apps. And we have like it's super transformative. It's very addictive. You have all 15 00:01:51,020 --> 00:01:59,300 these people spending hours and hours on end on the social networks. And I heard the king over there, 16 00:01:59,380 --> 00:02:06,320 got actually so much hooked on it, he's considering buying royal tweet and renaming it to the 17 00:02:06,320 --> 00:02:17,320 Roman numeral of 10. And so this is Archibald. He recently switched from Alchemy to cellular 18 00:02:17,320 --> 00:02:26,220 network research. And he also likes has a few friends abroad. And he also already found a few 19 00:02:26,220 --> 00:02:33,460 new inconsistencies and maybe vulnerabilities in his local network. But he is a prisoner of his 20 00:02:33,460 --> 00:02:39,740 own city-state. Well, when he can travel, he can like do the measurements abroad in another 21 00:02:39,740 --> 00:02:46,480 network. But also when he's visiting his friends, he actually would like to spend time with 22 00:02:46,480 --> 00:02:55,020 the friends. And also it's getting very expensive. So why is roaming so complex or why is it so 23 00:02:56,220 --> 00:03:02,720 interesting? The interesting thing with roaming is that you have your home network operator on 24 00:03:02,720 --> 00:03:09,760 one side and your visiting mobile network operator that's using some interconnection in between. 25 00:03:12,200 --> 00:03:20,060 Pretend to you as the customer that they're providing a singular set of services. And a consistent 26 00:03:20,060 --> 00:03:26,120 set of services. Although they're using completely different configurations, hardware, software, 27 00:03:27,440 --> 00:03:37,260 manufacturers, whatnot. And so at a closer look, we see that this picture of a consistent service 28 00:03:37,260 --> 00:03:45,880 pretty fast falls apart. And you might wonder, well, when I'm abroad, how is my traffic actually 29 00:03:45,880 --> 00:03:51,820 routed? And there are two ways. You can have either local breakout or you can have home routing. 30 00:03:53,580 --> 00:03:56,200 Interestingly, depending on the service that you're using, you can have home routing or you can have local 31 00:03:56,220 --> 00:04:01,960 breakout. So if you're using, it will either use one or the other. So, for example, if you're using 32 00:04:01,960 --> 00:04:09,280 data, that's usually home routed. So even if you're abroad, all your data will exit with an IP address 33 00:04:09,280 --> 00:04:18,580 of your home network operator. So you can't use all the fancy geo-locked services in another country. 34 00:04:19,220 --> 00:04:26,200 Unless you connect to the Wi-Fi. For other services, like voice, you have local breakout. So if you're 35 00:04:26,200 --> 00:04:33,360 using, for example, back in the 1980s, when GSM was specified, or even today, voice is considered 36 00:04:33,360 --> 00:04:42,680 as a time-critical service. So you like to get it out into the public networks as fast as possible 37 00:04:42,680 --> 00:04:55,480 with a route as short as possible. So technically, for example, voice roaming works by the visiting network operator 38 00:04:55,480 --> 00:05:03,480 issuing you a temporary phone number in that country that you're visiting, and your home network operator 39 00:05:03,480 --> 00:05:13,980 then reroutes all the incoming calls to this new temporary phone number. So you have all the small differences 40 00:05:13,980 --> 00:05:22,460 in roaming. And so, while ArchDribbble likes to travel, it's getting very expensive, and all this testing 41 00:05:22,460 --> 00:05:24,940 can be quite tedious. 42 00:05:25,480 --> 00:05:33,620 So let's look at an example. So whoever travels internationally for DEF CON might have received that 43 00:05:34,240 --> 00:05:43,940 SMS. That's because AT&T doesn't support voice roaming for most European carriers. However, it does 44 00:05:44,160 --> 00:05:54,680 support data and SMS. So you might even get billed for voice traffic while in the U.S. without being 45 00:05:54,680 --> 00:06:03,180 able to use voice. And so you have all the small oddities, and let's see, can we measure that in our 46 00:06:03,180 --> 00:06:13,020 toy example? So let's take one SIM card. We have, like, one home operator plus three network operators 47 00:06:13,020 --> 00:06:21,620 in one other city state and in the other. However, that's just one SIM card. Of course, there are 48 00:06:21,620 --> 00:06:24,660 multiple carriers within our home network. So you can see that there are multiple carriers within our home 49 00:06:24,680 --> 00:06:35,440 country. So we'll have to buy multiple SIM cards. But there are also more than one data plan, which might 50 00:06:35,440 --> 00:06:43,900 be important because they support different services. So we'll have to multiply by that. But then, of 51 00:06:43,900 --> 00:06:49,620 course, you have all the network operators in the other city states as well, and we end up, like, just in 52 00:06:49,620 --> 00:06:52,880 our toy example, with 190 combinations. 53 00:06:54,680 --> 00:07:04,680 So clearly, that doesn't scale well. And what are the possibilities here for Archibald to continue his work? 54 00:07:04,860 --> 00:07:11,820 Well, he could buy a lot of SIM cards and a lot of modems and position them everywhere, well, in the 55 00:07:11,820 --> 00:07:18,660 three countries. But, well, the hardware costs, the monthly costs, and soon after that, a bankruptcy. 56 00:07:19,000 --> 00:07:20,240 So that doesn't work. 57 00:07:21,960 --> 00:07:24,460 Well, you could have, like, one modem. 58 00:07:24,460 --> 00:07:32,980 One modem in each country and then ship SIM cards around. But that has, like, large overhead and the shipping times 59 00:07:32,980 --> 00:07:41,720 and a lot of manual labor. Or what we did is try to decouple the SIM card from the modem. So usually the SIM card 60 00:07:41,720 --> 00:07:49,900 and the modem are, like, one unit. And they communicate with each other. But what if we can extend this internal bus 61 00:07:50,640 --> 00:07:51,960 all around the globe? 62 00:07:51,960 --> 00:08:01,340 And so that's what Mobile Atlas does. The academic name is Geographically Decoupling Cellular Measurements and 63 00:08:01,340 --> 00:08:11,180 Exploitation. And with that, we can now, like, solid state travel. We can connect SIM cards to different places 64 00:08:11,180 --> 00:08:19,240 all around, to our modems all around the world, and pretend to the network operators that we are in that country 65 00:08:19,240 --> 00:08:21,080 and do our measurements there. 66 00:08:21,080 --> 00:08:22,020 And tests. 67 00:08:22,820 --> 00:08:24,820 So what were our goals with the project? 68 00:08:25,040 --> 00:08:31,840 Well, of course, scalability, automatability, but also an important point is control the background noise. 69 00:08:31,980 --> 00:08:40,200 If you use, like, an off-the-shelf cellular phone, then you have, like, a full-blown operating system on it with all kinds of 70 00:08:40,200 --> 00:08:40,880 background tasks. 71 00:08:41,620 --> 00:08:49,200 And that might interfere with the measurements you are doing or with the exploits you are testing, depending on what 72 00:08:49,200 --> 00:08:51,660 you are precisely doing. 73 00:08:51,920 --> 00:08:56,580 And we also would like to have, like, the full feature spectrum. 74 00:08:56,980 --> 00:09:05,700 So for those who know RIPE Atlas, so our name, Mobile Atlas, basically is an homage to RIPE Atlas. 75 00:09:06,080 --> 00:09:15,520 RIPE Atlas is a probe system developed and maintained by the European Internet authorities or administration. 76 00:09:15,980 --> 00:09:18,820 And they have, like, the probes. 77 00:09:18,820 --> 00:09:23,120 And you can do pings and trace routes between different autonomous systems. 78 00:09:23,480 --> 00:09:28,960 However, in a cellular world, we have more than just an Internet or data connection. 79 00:09:29,300 --> 00:09:31,200 We also have, like, phone calls. 80 00:09:31,440 --> 00:09:32,600 We have USSDs. 81 00:09:32,700 --> 00:09:33,780 We have text messaging. 82 00:09:34,340 --> 00:09:42,040 So we would like to ideally to test or have a test system that works on all these features. 83 00:09:43,620 --> 00:09:45,440 So here, short diagram. 84 00:09:47,260 --> 00:09:48,800 Traditional combinatorial explanation. 85 00:09:48,800 --> 00:09:49,040 You have an explosion. 86 00:09:49,160 --> 00:09:53,260 You put in probes in different countries and replicate all the SIM cards. 87 00:09:53,560 --> 00:10:01,060 Or you have something where it can tunnel the SIM cards to one place and save a lot of costs. 88 00:10:02,680 --> 00:10:04,480 So basically that's what we did. 89 00:10:05,560 --> 00:10:07,080 We decoupled the SIM card. 90 00:10:07,500 --> 00:10:11,500 We can have a SIM card reader connected to a computer. 91 00:10:11,780 --> 00:10:18,720 And we have done a TCP tunnel to our measurement probes and replicate the SIM card there. 92 00:10:20,260 --> 00:10:28,000 And so, like, at a management on top of it, and you end up with a system, like, on the left side, you have the probes. 93 00:10:28,000 --> 00:10:29,200 On the right, you have the SIM cards. 94 00:10:29,640 --> 00:10:41,980 And you have a SIM provider, which is basically just a piece of software that connects to a PCSC or serial or even an Android phone and routes the SIM card traffic to the probes. 95 00:10:43,580 --> 00:10:48,700 It needs to be an online connection because the SIM cards produce all the cryptographic material. 96 00:10:48,700 --> 00:10:53,640 It needs to be an online connection because the SIM cards produce all the cryptographic material that we need on the network side to authenticate and to encrypt the traffic there. 97 00:10:55,320 --> 00:11:00,780 So this has been a project for ongoing for five years now. 98 00:11:00,940 --> 00:11:06,420 So we have, like, you can see our left probe, which looks very crude. 99 00:11:06,600 --> 00:11:15,640 So we put in, we had, like, a Raspberry Pi and a USB adapter and then an M2 modem attached to this adapter. 100 00:11:15,920 --> 00:11:18,680 And because everything was very loose in the box, we put in a USB adapter. 101 00:11:18,700 --> 00:11:23,500 And because everything was very loose in the box, we put in, like, this yellow piece of foam in there to, like, hold everything in place. 102 00:11:24,200 --> 00:11:26,520 And because everything was very loose in the box, we put in, like, this yellow piece of foam in there to, like, hold everything in place. 103 00:11:26,520 --> 00:11:32,020 And because everything was very loose in the box, we put in, like, this yellow piece of foam in there to, like, hold everything in place. 104 00:11:32,040 --> 00:11:33,700 And because everything was very loose in the box, we put in, like, this yellow piece of foam in there to, like, hold everything in place. 105 00:11:33,700 --> 00:11:38,420 And because everything was very loose in the box, we put in, like, this yellow piece of foam in there to, like, hold everything in place. 106 00:11:39,460 --> 00:11:48,680 And because everything was very loose in the box, we put in, like, this yellow piece of foam in there to, like, hold everything in place. 107 00:11:48,680 --> 00:11:56,680 all the usual SIM card readers, you can use the more expensive PCSC readers or the very 108 00:11:56,680 --> 00:12:02,400 cheap Chinese SIM readers that only speak a very crude serial protocol or you can even 109 00:12:02,400 --> 00:12:11,840 use Android phone. Oh, we didn't have the picture. Okay. Maybe it's later in our slides. 110 00:12:11,840 --> 00:12:21,640 So I briefly want to talk about the challenges that we face and like have to pick like two because 111 00:12:21,640 --> 00:12:30,520 of time. So let's talk about the SIM interface and the SIM protocol. The SIM card protocol is 112 00:12:30,520 --> 00:12:38,040 basically a smart card protocol but it's now 40 years old. So you have a lot of different options, 113 00:12:38,180 --> 00:12:41,820 voltages, speeds and all of that. So the SIM card protocol is basically a smart card protocol but 114 00:12:41,840 --> 00:12:48,600 kinds of that and also it was designed to be to work within one device so with 115 00:12:48,600 --> 00:12:54,240 very low latencies when we stretch that over half of the globe we need a few 116 00:12:54,240 --> 00:13:03,560 techniques to cope with the latency so you can see for example this is how we 117 00:13:03,560 --> 00:13:09,760 connected it to the GP with a sim slot of the modem to the GPIO pins of the 118 00:13:09,760 --> 00:13:16,620 Raspberry Pi we just made a very small simple adapter that we slot in our first 119 00:13:16,620 --> 00:13:23,380 version was actually directly soldered in and you can see just one component on 120 00:13:23,380 --> 00:13:29,660 it and that's a short kid yield why is that because the SIM card I open is 121 00:13:29,660 --> 00:13:35,680 actually an open collector bus so on the Raspberry Pi side we need a short 122 00:13:35,680 --> 00:13:39,580 kiti out to split up the send and receive channels 123 00:13:39,580 --> 00:13:39,740 so on the Raspberry Pi side we need a short kiti out to split up the send and receive channels 124 00:13:39,740 --> 00:13:51,040 for the UART. And the pull up resistor is already provided by the modem. Luckily for us, this 125 00:13:51,040 --> 00:13:58,420 reduces a lot of complexity for us. We can negotiate speeds and voltages and other parameters 126 00:14:00,160 --> 00:14:08,300 independently on the SIM provider side and on the modem side. We don't have to pass it one on 127 00:14:08,300 --> 00:14:16,680 one. So that eases much of the problems. We can also add waiting time extensions and we tested 128 00:14:16,680 --> 00:14:24,540 it for latencies up to 1,000 milliseconds. So this should actually be good enough even for, like, 129 00:14:24,560 --> 00:14:31,360 Starlink connections. And future work we would like to also locally emulate some of the files 130 00:14:31,360 --> 00:14:38,280 that are not necessary for the modem or for the measurements to work. So that's something we 131 00:14:38,300 --> 00:14:46,820 can do. The second problem that I'd like to mention is traffic metering. And we need a way to 132 00:14:46,820 --> 00:14:55,400 control the background traffic. So let's step back. So some of the tests we want to do is test the 133 00:14:55,400 --> 00:15:01,120 accounting, the data accounting of network operators. So we need very precise measurements on 134 00:15:01,730 --> 00:15:07,460 what we are sending to the network and what is then accounted. And so the background traffic is 135 00:15:07,460 --> 00:15:13,080 something that will mess up with these measurements. And the other thing is that the call data 136 00:15:13,080 --> 00:15:21,980 records often are shown on the operator website with a large delay. So domestically this can be, like, 137 00:15:21,980 --> 00:15:28,820 hours. But internationally this can be something around days. And also there is no, like, 138 00:15:28,840 --> 00:15:37,440 standardized way to check your account balance. So some operators use an app or web application that 139 00:15:37,460 --> 00:15:45,700 is not licensed. And some can use or support USSD codes or SMS inquiries. So to eliminate 140 00:15:45,700 --> 00:15:53,920 background traffic, we basically use Linux network spaces. That's the same thing that Docker does. 141 00:15:54,260 --> 00:16:05,540 So our measurement process is put into a separate namespace that's then connected to the modem. And 142 00:16:05,540 --> 00:16:07,340 and only that one talks to the modem. 143 00:16:07,380 --> 00:16:09,920 So all the traffic from that process groups 144 00:16:10,220 --> 00:16:12,840 is routed through the modem and all the other things 145 00:16:12,840 --> 00:16:18,740 like the management suite is all over the VPN. 146 00:16:19,820 --> 00:16:21,200 They're completely separated. 147 00:16:21,700 --> 00:16:24,620 How do we deal with delayed traffic accounting? 148 00:16:25,060 --> 00:16:27,720 Well, we came up with a binary encoding. 149 00:16:28,280 --> 00:16:31,480 So what we do is like, for example, 150 00:16:31,480 --> 00:16:35,480 the first test is what, like one megabyte in size, 151 00:16:35,660 --> 00:16:37,340 the second test is two megabytes, 152 00:16:37,460 --> 00:16:42,260 the third one is four, and the fourth test is eight, 153 00:16:42,300 --> 00:16:42,920 and so on. 154 00:16:43,360 --> 00:16:46,920 So one of these also will be a control group 155 00:16:47,320 --> 00:16:50,000 so that at the end, like maybe a day later 156 00:16:50,000 --> 00:16:53,280 when it finally shows up on the accounting balance, 157 00:16:53,600 --> 00:16:57,220 we can then distinguish exactly which test was accounted 158 00:16:57,220 --> 00:17:00,220 and which wasn't, like which traffic group. 159 00:17:02,600 --> 00:17:06,040 You might ask, well, you do all this thing 160 00:17:06,040 --> 00:17:09,840 to like tunnel physical SIM cards across the globe. 161 00:17:10,000 --> 00:17:11,500 What's about eSIMs? 162 00:17:12,420 --> 00:17:15,000 The problem with eSIMs, even though, for example, 163 00:17:15,000 --> 00:17:16,940 in the US, they're pretty prevalent, 164 00:17:17,420 --> 00:17:20,420 they are not widely available everywhere, 165 00:17:20,700 --> 00:17:26,720 and also it usually tends to only cover some data plans 166 00:17:26,720 --> 00:17:30,720 and not all, and they're not always easy transferable 167 00:17:30,720 --> 00:17:31,580 between devices. 168 00:17:32,140 --> 00:17:37,280 So what we actually can do is we can use Bluetooth R-Sub 169 00:17:37,280 --> 00:17:42,780 protocol to connect to an Android phone that then shares 170 00:17:42,780 --> 00:17:46,360 the SIM card over Bluetooth to our system. 171 00:17:47,040 --> 00:17:52,320 The SIM access profile was actually delivered, 172 00:17:52,460 --> 00:17:55,780 I think, or developed somewhere in the 90s 173 00:17:55,780 --> 00:17:58,540 to allow cars to connect to your phone 174 00:17:58,540 --> 00:18:00,620 and then use the SIM card on your phone, 175 00:18:00,620 --> 00:18:01,900 and the modem from the car. 176 00:18:02,360 --> 00:18:05,600 But today, this is rarely actually used. 177 00:18:05,840 --> 00:18:08,200 So the only thing you need to do on an Android 178 00:18:08,200 --> 00:18:10,940 is make the eSIM your primary SIM card, 179 00:18:11,160 --> 00:18:16,540 and then you get the screen and you allow the usage. 180 00:18:18,200 --> 00:18:21,800 In the title, we said carriers hate this trick. 181 00:18:22,420 --> 00:18:24,120 That might be a little bit controversial. 182 00:18:24,420 --> 00:18:26,520 Why do we think carriers hate this trick? 183 00:18:27,280 --> 00:18:30,020 Well, SIM tunneling isn't exactly new. 184 00:18:30,620 --> 00:18:34,300 It has already been used for over-the-top bypass fraud. 185 00:18:34,560 --> 00:18:40,620 So that's when you use batteries of SIMs or SIM banks 186 00:18:41,630 --> 00:18:44,440 to terminate international travel 187 00:18:44,440 --> 00:18:46,880 or international calls within a country 188 00:18:46,880 --> 00:18:50,000 because usually local call rates are cheaper 189 00:18:50,000 --> 00:18:51,800 than international interconnect fees. 190 00:18:52,950 --> 00:18:55,340 However, we do actually the opposite. 191 00:18:55,720 --> 00:18:59,260 We are tunneling from domestic to abroad 192 00:19:00,620 --> 00:19:02,740 to test all the other networks. 193 00:19:04,180 --> 00:19:08,000 So this might also hint why this might be an opportunity 194 00:19:08,360 --> 00:19:12,360 for carriers to have such a system 195 00:19:13,020 --> 00:19:16,740 because nowadays, carriers have to rely 196 00:19:16,740 --> 00:19:19,520 on their roaming partners to deliver the services 197 00:19:20,020 --> 00:19:24,000 the way that they want it for their customers. 198 00:19:25,300 --> 00:19:29,820 But with a system like this, 199 00:19:29,820 --> 00:19:32,680 the carriers can actually verify the services 200 00:19:33,160 --> 00:19:36,420 and especially things like voiceover LTE roaming, 201 00:19:36,640 --> 00:19:40,160 which lacks a good auto-configuration protocol 202 00:19:40,720 --> 00:19:44,260 and it causes a lot of troubles internationally. 203 00:19:45,340 --> 00:19:48,700 This might actually help to test 204 00:19:48,700 --> 00:19:49,780 the different configurations. 205 00:19:52,360 --> 00:19:55,360 So what have we learned during the implementation 206 00:19:55,540 --> 00:19:57,220 of our system? 207 00:19:57,220 --> 00:20:01,920 There are a few, well, some surprising results. 208 00:20:02,440 --> 00:20:08,400 First, if you read almost any book on cellular networks, 209 00:20:09,200 --> 00:20:12,540 they will basically say something among the lines 210 00:20:12,540 --> 00:20:17,200 that the IMSI is basically the unique identifier 211 00:20:17,200 --> 00:20:20,460 of a SIM card and that they're also used 212 00:20:20,460 --> 00:20:23,460 to find your home operator and stuff like that. 213 00:20:24,100 --> 00:20:27,060 However, even in our small tests, 214 00:20:27,060 --> 00:20:30,020 we found several examples of SIM cards 215 00:20:30,020 --> 00:20:34,380 that can actually update the IMSI over the air 216 00:20:34,720 --> 00:20:36,860 or change it dynamically. 217 00:20:37,480 --> 00:20:44,680 This is usually used for selecting a roaming network, 218 00:20:45,000 --> 00:20:48,940 so it's not like you're not selecting the network 219 00:20:50,580 --> 00:20:55,340 that you're using as a visitor, you're selecting someone 220 00:20:55,340 --> 00:21:00,180 that will then, that has all the contracts in place 221 00:21:00,180 --> 00:21:02,380 with all the operators in the different country 222 00:21:02,380 --> 00:21:06,020 so that they have just one, like, one place 223 00:21:06,020 --> 00:21:08,580 to do their accounting and to work with. 224 00:21:09,200 --> 00:21:12,260 Another thing that we've learned is that 225 00:21:14,520 --> 00:21:19,100 theoretically there is a 127 device limit on USB, 226 00:21:19,420 --> 00:21:23,380 but practically it's hard to get over 20 or 30. 227 00:21:23,600 --> 00:21:25,320 That has to do with like, five, six, seven, eight, seven, 228 00:21:25,320 --> 00:21:30,420 lousy hardware, weak drivers, the power consumption, even if you use active hubs. 229 00:21:30,740 --> 00:21:33,260 And we've tried several things. 230 00:21:33,540 --> 00:21:34,700 Here are the pictures. 231 00:21:35,240 --> 00:21:42,680 So like on the left you can see like we bought like a box of 100 SIM card readers on AliExpress. 232 00:21:43,380 --> 00:21:53,840 And then we tried to run them like naively on all the single USB hubs that turned out 233 00:21:53,840 --> 00:21:55,800 to be very error prone. 234 00:21:56,800 --> 00:22:03,160 And then we also tried this professional USB hubs that are used by or have been used by 235 00:22:03,160 --> 00:22:07,080 miners for like this USB FPGA boards. 236 00:22:07,880 --> 00:22:10,320 But this also didn't work well. 237 00:22:13,440 --> 00:22:15,160 Where do we stand today? 238 00:22:15,420 --> 00:22:21,340 So now our system is deployed to ten European countries and two North American. 239 00:22:22,040 --> 00:22:23,740 You can see Canada. 240 00:22:23,740 --> 00:22:25,080 Canada isn't fully covered. 241 00:22:25,300 --> 00:22:32,700 That has to do with that in Canada not all the bare metal operators are available in 242 00:22:32,700 --> 00:22:33,520 all the provinces. 243 00:22:34,020 --> 00:22:38,280 Our current probe in Canada is in the Yukon territory. 244 00:22:38,840 --> 00:22:41,600 So that's why it's just half green. 245 00:22:45,580 --> 00:22:46,740 Ethical considerations. 246 00:22:47,400 --> 00:22:51,060 So there are some ethical considerations we have to talk about. 247 00:22:51,280 --> 00:22:53,360 You might, for example, ask why don't. 248 00:22:53,740 --> 00:22:57,580 Why do we use modems and don't use software defined radios? 249 00:22:58,260 --> 00:23:03,580 I mean, on the one side, software defined radios give you much more capabilities on 250 00:23:03,580 --> 00:23:04,140 the radio side. 251 00:23:04,500 --> 00:23:10,160 On the other side, all the open source implementations usually only focus on one access technology. 252 00:23:10,380 --> 00:23:16,240 So you can get like a GSM implementation or you can get an LTE implementation. 253 00:23:16,460 --> 00:23:21,080 But you cannot get like one implementation that covers all the access technologies. 254 00:23:21,440 --> 00:23:23,160 And the other thing is that it's. 255 00:23:23,160 --> 00:23:25,640 A regulatory minefield. 256 00:23:25,860 --> 00:23:33,280 So we give out or so far we gave out these probes to friends and family in different 257 00:23:33,280 --> 00:23:33,780 countries. 258 00:23:34,380 --> 00:23:42,220 And we cannot like subject them to the risk of having a software defined radio and all 259 00:23:42,220 --> 00:23:46,860 the radio regulatory problems that might come with that. 260 00:23:47,040 --> 00:23:52,400 So we rather opt for unmodified globally certified modems. 261 00:23:52,400 --> 00:23:57,260 That are safe to use in all the countries. 262 00:23:57,560 --> 00:24:04,740 The second thing that I want to mention is we do not enrich ourselves with our tests. 263 00:24:05,020 --> 00:24:06,720 For example, with the traffic accounting tests. 264 00:24:07,000 --> 00:24:12,960 So we made sure that at the end of the month we let expire at least that amount of traffic 265 00:24:14,200 --> 00:24:17,260 that wasn't accounted in our tests. 266 00:24:20,040 --> 00:24:21,440 And with that. 267 00:24:21,440 --> 00:24:26,840 I'll switch over to Gabriel who will talk about the results and what you can actually 268 00:24:26,840 --> 00:24:28,040 do with our system. 269 00:24:29,460 --> 00:24:30,060 Yeah. 270 00:24:30,200 --> 00:24:30,720 Thank you. 271 00:24:30,840 --> 00:24:32,920 So I would say let the games begin. 272 00:24:33,140 --> 00:24:37,140 So let's take a look at what we can do with this fancy platform. 273 00:24:38,860 --> 00:24:41,140 I'll walk you through a few showcases. 274 00:24:41,280 --> 00:24:45,580 Of course our platform has very versatile capabilities. 275 00:24:46,280 --> 00:24:51,420 But the first one will be an internet related measurement case. 276 00:24:51,420 --> 00:24:53,760 So it will be about zero rating measurements. 277 00:24:54,120 --> 00:24:55,480 It will be billing measurements. 278 00:24:55,960 --> 00:25:02,640 And also after presenting the measurements, we will show some proof of concept how you 279 00:25:02,640 --> 00:25:08,160 could abuse this zero rating offers or how an attacker could abuse this to gain some 280 00:25:08,160 --> 00:25:09,140 free internet traffic. 281 00:25:09,740 --> 00:25:11,660 So what is zero rating? 282 00:25:11,840 --> 00:25:19,880 Actually there are some providers that offers this kind of programs and offers. 283 00:25:20,640 --> 00:25:21,400 Usually it's the same thing. 284 00:25:21,420 --> 00:25:25,120 Usually they provide several groups for applications. 285 00:25:25,360 --> 00:25:30,580 So in this screen shot example, there is a group for messaging application, for social 286 00:25:30,580 --> 00:25:32,480 media applications and also for video. 287 00:25:32,720 --> 00:25:34,200 So for example for Netflix. 288 00:25:34,600 --> 00:25:35,760 And yeah. 289 00:25:35,860 --> 00:25:37,100 They offer this. 290 00:25:37,280 --> 00:25:44,200 The customers can buy a package and then they can gain by buying this package they gain 291 00:25:44,200 --> 00:25:46,920 unmeted access to this kind of applications. 292 00:25:48,120 --> 00:25:50,480 Of course from a carrier perspective. 293 00:25:50,480 --> 00:25:57,100 This data traffic, all the data traffic that passes the provider needs to be classified. 294 00:25:57,500 --> 00:26:04,520 So they need to be, it needs to be separated and needs to be classified into bill traffic 295 00:26:04,520 --> 00:26:06,000 and also zero rating traffic. 296 00:26:07,680 --> 00:26:13,320 And let's take a look at which possibilities there are for the cellular carrier. 297 00:26:13,620 --> 00:26:16,940 So which metrics could be used for the classification. 298 00:26:17,660 --> 00:26:19,160 A very old metric. 299 00:26:19,160 --> 00:26:25,620 A metric that has been used back in the days to classify and to then block BitTorrent 300 00:26:25,620 --> 00:26:28,500 traffic was the TCP or UDP port. 301 00:26:29,080 --> 00:26:32,680 Nowadays it's mainly used in conjunction with some other metrics. 302 00:26:33,980 --> 00:26:35,480 Because it's kind of vague. 303 00:26:35,880 --> 00:26:38,260 Most of the traffic anyway is web traffic. 304 00:26:38,480 --> 00:26:40,540 So it might be using port four for free. 305 00:26:41,500 --> 00:26:42,340 And yeah. 306 00:26:42,380 --> 00:26:44,740 You could easily like fake this port. 307 00:26:45,380 --> 00:26:47,140 There by it's not that reliable. 308 00:26:47,700 --> 00:26:49,060 However the IP address. 309 00:26:49,060 --> 00:26:50,140 Is kind of accurate. 310 00:26:51,040 --> 00:26:54,020 Especially for all those big services like WhatsApp. 311 00:26:54,380 --> 00:26:58,260 Usually the IP address of the services is pretty static. 312 00:26:58,420 --> 00:27:00,600 So it's a reliable classification metric. 313 00:27:01,060 --> 00:27:04,280 Some provider might use some cloud hosting. 314 00:27:04,380 --> 00:27:05,140 So some applications. 315 00:27:05,720 --> 00:27:06,880 But yeah. 316 00:27:06,960 --> 00:27:10,080 Usually if it's a big application it's pretty stable. 317 00:27:10,280 --> 00:27:11,720 So it's a good classification metric. 318 00:27:12,500 --> 00:27:15,280 Also some operators use the packet inspection. 319 00:27:15,780 --> 00:27:16,860 So this is. 320 00:27:16,880 --> 00:27:17,620 When the. 321 00:27:17,620 --> 00:27:22,000 The classification mechanism doesn't only look at the packet header. 322 00:27:22,160 --> 00:27:24,180 But also at the content of the packets. 323 00:27:24,460 --> 00:27:28,880 So the classifier needs to be protocol aware. 324 00:27:29,100 --> 00:27:31,740 It needs to understand what the fields of the protocol mean. 325 00:27:32,740 --> 00:27:34,100 And yeah. 326 00:27:34,180 --> 00:27:36,700 This is also commonly used. 327 00:27:38,160 --> 00:27:42,340 Also for our measurements we focused on IP address. 328 00:27:42,620 --> 00:27:45,400 And on the packet inspection classification. 329 00:27:46,920 --> 00:27:47,600 So. 330 00:27:47,620 --> 00:27:51,780 For the packet inspection we mainly focused on host name based classification. 331 00:27:52,700 --> 00:27:54,340 But also there are some other metrics. 332 00:27:54,560 --> 00:27:57,780 So some operators for example classify by the time to live. 333 00:27:57,920 --> 00:28:01,780 To detect or to block mobile hotspots. 334 00:28:02,080 --> 00:28:05,200 And since this is kind of popular. 335 00:28:05,400 --> 00:28:06,620 With any problem. 336 00:28:06,880 --> 00:28:09,240 There are also some people throwing machine learning at it. 337 00:28:10,820 --> 00:28:13,160 Yeah let's take a look for the packet inspection. 338 00:28:13,620 --> 00:28:15,520 So this packet inspection. 339 00:28:15,760 --> 00:28:16,680 So this is an example. 340 00:28:16,680 --> 00:28:18,320 For host name based classification. 341 00:28:18,980 --> 00:28:21,760 If the traffic is just HTTP free. 342 00:28:21,860 --> 00:28:22,900 It's pretty straight forward. 343 00:28:23,120 --> 00:28:24,520 Because we do not have any encryption. 344 00:28:24,920 --> 00:28:29,400 So the classifier can simply take a look at the host header of the protocol. 345 00:28:30,060 --> 00:28:31,740 If it's an encrypted connection. 346 00:28:32,100 --> 00:28:34,160 Like HTTPS or HTTP free. 347 00:28:35,800 --> 00:28:40,240 The classifier actually has to take a look at the TLS handshake. 348 00:28:40,520 --> 00:28:44,440 And thereby take a look at the client hello message. 349 00:28:44,480 --> 00:28:46,200 That contains the server name. 350 00:28:46,200 --> 00:28:46,780 Indication. 351 00:28:47,180 --> 00:28:48,040 But yeah. 352 00:28:48,100 --> 00:28:49,460 It's again pretty similar. 353 00:28:49,620 --> 00:28:51,080 So just the host name is extracted. 354 00:28:51,280 --> 00:28:53,820 And thereby the traffic is classified. 355 00:28:55,360 --> 00:28:58,300 Within our study we've bought some SIM cards. 356 00:28:58,820 --> 00:29:01,600 We've measured seven operators of three different countries. 357 00:29:01,880 --> 00:29:06,640 And within those SIM cards we've analyzed the available applications. 358 00:29:06,940 --> 00:29:07,760 Your rating applications. 359 00:29:08,240 --> 00:29:11,320 And we figured that WhatsApp, Snapchat and Facebook. 360 00:29:11,440 --> 00:29:13,940 And Facebook Messenger were the most popular applications. 361 00:29:16,260 --> 00:29:20,160 And like any Android or iOS application. 362 00:29:20,440 --> 00:29:23,780 They are heavily communicating via web APIs. 363 00:29:24,080 --> 00:29:25,080 Via web endpoints. 364 00:29:25,560 --> 00:29:30,160 We got some traffic dumps from those applications. 365 00:29:30,360 --> 00:29:32,320 And also reverse engineered the applications. 366 00:29:33,040 --> 00:29:34,060 And yeah. 367 00:29:34,140 --> 00:29:37,400 We found some endpoints that we could use for our measurements. 368 00:29:37,580 --> 00:29:41,060 So to probe this kind of web servers. 369 00:29:41,620 --> 00:29:44,360 And for the selected web endpoints. 370 00:29:45,140 --> 00:29:46,060 We found. 371 00:29:46,200 --> 00:29:49,640 That they support HTTP, HTTPS and HTTP free. 372 00:29:49,820 --> 00:29:52,760 And also they are hosted by a dual stack. 373 00:29:52,900 --> 00:29:58,060 So you could communicate to them via IPv4 or IPv6. 374 00:29:58,940 --> 00:29:59,580 Yeah. 375 00:29:59,700 --> 00:30:01,440 We've had two measurement campaigns. 376 00:30:02,060 --> 00:30:03,340 And yeah. 377 00:30:03,400 --> 00:30:03,880 We've measured. 378 00:30:04,100 --> 00:30:07,600 We've executed measurements in the domestic case. 379 00:30:07,740 --> 00:30:09,520 But also during roaming conditions. 380 00:30:10,240 --> 00:30:13,520 Basic methodology for this kind of seed rating measurements. 381 00:30:13,740 --> 00:30:15,240 Was to get the credits. 382 00:30:15,240 --> 00:30:17,060 Then to execute some experiments. 383 00:30:17,120 --> 00:30:20,120 And then wait for the data to be built. 384 00:30:20,220 --> 00:30:20,720 And again. 385 00:30:21,260 --> 00:30:21,820 Yeah. 386 00:30:21,920 --> 00:30:22,460 Get the credit. 387 00:30:22,600 --> 00:30:23,840 And calculate the delta. 388 00:30:25,220 --> 00:30:26,980 And within the experiment. 389 00:30:27,100 --> 00:30:29,900 We had some payload that was potentially seed rated. 390 00:30:30,160 --> 00:30:30,880 And afterwards. 391 00:30:30,980 --> 00:30:32,420 As Adrian already explained. 392 00:30:32,640 --> 00:30:35,120 We also had some control traffic. 393 00:30:35,720 --> 00:30:37,920 That was acting as a marker. 394 00:30:38,100 --> 00:30:41,480 So we knew when all the data units were built. 395 00:30:41,880 --> 00:30:44,000 And for the seed rating experiments. 396 00:30:44,000 --> 00:30:45,540 We had three experiments. 397 00:30:45,800 --> 00:30:51,880 The first one was to verify that the web endpoints that we selected are actually zero rated. 398 00:30:52,840 --> 00:30:56,880 And the other two were to kind of learn more about the classification. 399 00:30:57,180 --> 00:31:01,180 So to detect IP based or host name based classification methods. 400 00:31:01,560 --> 00:31:05,380 So this is a chart for the very first experiment. 401 00:31:05,720 --> 00:31:09,160 We have our mobile Atlas measurement probe on the left side. 402 00:31:09,300 --> 00:31:12,340 And we have some web endpoints on the right side. 403 00:31:12,480 --> 00:31:13,280 So in this case. 404 00:31:13,280 --> 00:31:14,860 We are probing WhatsApp. 405 00:31:15,560 --> 00:31:24,300 So we are just repeatedly querying or retrieving some web endpoints. 406 00:31:24,380 --> 00:31:29,800 Until our specified data units were retrieved. 407 00:31:29,980 --> 00:31:31,240 And afterwards. 408 00:31:31,380 --> 00:31:33,820 We do the same with some control traffic. 409 00:31:34,120 --> 00:31:35,600 That usually is bigger. 410 00:31:35,840 --> 00:31:39,320 And when the control traffic is built. 411 00:31:39,440 --> 00:31:42,100 We know that the experiment is finished. 412 00:31:42,280 --> 00:31:42,960 And we can say. 413 00:31:42,960 --> 00:31:48,160 Whether the first traffic was subtracted from our data quota or whether or not. 414 00:31:49,420 --> 00:31:51,560 To detect IP based classification. 415 00:31:51,660 --> 00:31:53,800 The test case was pretty similar. 416 00:31:54,040 --> 00:31:56,060 So the actors didn't change. 417 00:31:56,340 --> 00:31:59,780 But we just spoofed the host header. 418 00:31:59,920 --> 00:32:04,200 So the data packets were still going to the WhatsApp web server. 419 00:32:04,400 --> 00:32:07,680 But the host header didn't match the WhatsApp endpoint anymore. 420 00:32:08,060 --> 00:32:09,860 And so if for this case. 421 00:32:09,980 --> 00:32:11,680 The packets still were zero rated. 422 00:32:11,680 --> 00:32:17,000 We knew that most probably some IP based classification is in place. 423 00:32:17,680 --> 00:32:21,740 And we did a similar thing to detect host name based classification. 424 00:32:22,240 --> 00:32:25,120 But we needed to introduce another actor. 425 00:32:25,420 --> 00:32:27,200 So in this test case. 426 00:32:27,380 --> 00:32:30,280 We automatically spin up an AWS instance. 427 00:32:30,600 --> 00:32:34,860 That just forwards all the necessary ports to the WhatsApp application. 428 00:32:35,480 --> 00:32:37,940 So to the WhatsApp web server. 429 00:32:38,380 --> 00:32:39,640 And thereby. 430 00:32:39,940 --> 00:32:41,320 The host header. 431 00:32:41,680 --> 00:32:41,980 Didn't change. 432 00:32:42,200 --> 00:32:46,660 Because the content of the data packets was exactly the same. 433 00:32:47,140 --> 00:32:49,920 But the IP address changed. 434 00:32:50,140 --> 00:32:53,520 So when the traffic classifier is watching the data packets. 435 00:32:53,700 --> 00:32:55,360 Is inspecting the data packets. 436 00:32:56,220 --> 00:32:58,360 The host header is still WhatsApp. 437 00:32:58,420 --> 00:33:03,440 But the IP address is the IP address of our AWS instance. 438 00:33:03,820 --> 00:33:04,200 And thereby. 439 00:33:04,300 --> 00:33:06,880 If the traffic is still zero rated in this case. 440 00:33:07,020 --> 00:33:08,920 We knew again. 441 00:33:09,000 --> 00:33:11,440 That some host name based classification. 442 00:33:11,680 --> 00:33:12,160 Is used. 443 00:33:13,200 --> 00:33:14,820 So let's come to some results. 444 00:33:16,320 --> 00:33:17,680 As you can see. 445 00:33:17,800 --> 00:33:23,280 We found that operators are using both IP based and host name based classification. 446 00:33:24,160 --> 00:33:25,780 Sometimes they even combine it. 447 00:33:25,880 --> 00:33:26,980 So in these cases. 448 00:33:27,340 --> 00:33:32,760 They zero rated the traffic when either one of the rules applied. 449 00:33:33,380 --> 00:33:35,460 And interestingly for two operators. 450 00:33:35,600 --> 00:33:39,140 Actually we were not able to verify zero rating. 451 00:33:39,320 --> 00:33:40,500 So all the. 452 00:33:40,880 --> 00:33:41,480 Tested. 453 00:33:41,680 --> 00:33:42,800 Packets. 454 00:33:42,840 --> 00:33:43,700 Were fully built. 455 00:33:43,800 --> 00:33:44,200 Although. 456 00:33:44,670 --> 00:33:45,420 This operator. 457 00:33:46,300 --> 00:33:46,960 Promoted. 458 00:33:47,120 --> 00:33:50,060 And sold some zero rating packages to their customers. 459 00:33:51,150 --> 00:33:53,200 We were very surprised by this. 460 00:33:53,520 --> 00:33:58,380 And to make sure that this isn't just a quirk of our measurement methodology. 461 00:33:58,900 --> 00:34:02,320 We also simulated this on our smartphone. 462 00:34:02,540 --> 00:34:05,040 So we just verified it. 463 00:34:05,100 --> 00:34:06,980 We downloaded the Facebook application. 464 00:34:07,440 --> 00:34:09,220 We plugged our SIM cards. 465 00:34:09,340 --> 00:34:10,400 The corresponding SIM cards. 466 00:34:10,400 --> 00:34:12,740 And we again did some measurements. 467 00:34:12,940 --> 00:34:15,300 And we could verify that a huge portion. 468 00:34:15,480 --> 00:34:20,300 So over 90% of the actual application traffic was wrongfully built. 469 00:34:21,520 --> 00:34:25,680 Yeah additionally some operators turned off zero rating during roaming. 470 00:34:26,260 --> 00:34:32,060 So this already was challenged by the national regulators in some countries. 471 00:34:32,640 --> 00:34:37,040 And nevertheless we found some operators still doing this. 472 00:34:38,420 --> 00:34:39,140 Additionally. 473 00:34:39,180 --> 00:34:40,380 We found one operator. 474 00:34:40,380 --> 00:34:47,680 That was billing traffic when the endpoint was retrieved via IPv6. 475 00:34:48,000 --> 00:34:50,080 So when IPv6 was used. 476 00:34:50,300 --> 00:34:53,680 The packets again were wrongfully built. 477 00:34:53,840 --> 00:34:55,940 Similarly for HTTP3. 478 00:34:56,100 --> 00:34:59,960 So when we were accessing the relevant endpoints. 479 00:35:00,000 --> 00:35:02,860 Relevant application via HTTP3. 480 00:35:03,020 --> 00:35:05,340 Again the traffic was fully built. 481 00:35:05,580 --> 00:35:07,560 And interestingly for one operator. 482 00:35:07,920 --> 00:35:09,320 As I showed earlier. 483 00:35:09,320 --> 00:35:11,140 We had two measurement campaigns. 484 00:35:11,340 --> 00:35:12,080 For one operator. 485 00:35:12,120 --> 00:35:14,980 Actually the packets got built in the first period. 486 00:35:15,260 --> 00:35:17,080 But then it got fixed. 487 00:35:17,140 --> 00:35:19,120 And in the second period it was fine. 488 00:35:20,460 --> 00:35:21,000 Yeah. 489 00:35:22,260 --> 00:35:24,480 So Archie is a security researcher. 490 00:35:24,720 --> 00:35:28,360 So he is not only interested in how those things work. 491 00:35:28,560 --> 00:35:33,180 But also how he or how an attacker could exploit this kind of things. 492 00:35:34,500 --> 00:35:35,040 Yeah. 493 00:35:35,140 --> 00:35:36,760 We have two cases. 494 00:35:36,940 --> 00:35:37,560 So the first one. 495 00:35:37,600 --> 00:35:38,040 Is if. 496 00:35:38,040 --> 00:35:40,100 Host name base classification was used. 497 00:35:40,600 --> 00:35:41,640 In this case. 498 00:35:42,440 --> 00:35:43,400 For HTTP. 499 00:35:43,680 --> 00:35:45,140 It's pretty straight forward. 500 00:35:45,360 --> 00:35:47,380 You just would need to write some relaying script. 501 00:35:47,540 --> 00:35:48,460 That takes the host header. 502 00:35:48,980 --> 00:35:54,000 Sometimes the provider during the classification even just uses a simple regex for the host 503 00:35:54,000 --> 00:35:54,300 string. 504 00:35:55,440 --> 00:35:56,940 If HTTPS was used. 505 00:35:57,140 --> 00:35:58,720 It's maybe a little more complex. 506 00:35:58,960 --> 00:36:01,660 But still this is just content of the packet. 507 00:36:01,860 --> 00:36:04,120 So you can spoof that. 508 00:36:04,240 --> 00:36:05,160 You can change that. 509 00:36:05,380 --> 00:36:06,440 And you could maybe. 510 00:36:07,060 --> 00:36:07,540 Like. 511 00:36:07,560 --> 00:36:08,000 Like. 512 00:36:08,040 --> 00:36:08,380 Like. 513 00:36:08,380 --> 00:36:08,760 Implement. 514 00:36:08,760 --> 00:36:09,340 Implement. 515 00:36:09,340 --> 00:36:10,700 Something on the top of open VPN. 516 00:36:11,020 --> 00:36:14,340 And spoof the SNI to to kind of pretend to be. 517 00:36:15,120 --> 00:36:16,100 WhatsApp traffic. 518 00:36:16,220 --> 00:36:16,640 For example. 519 00:36:16,660 --> 00:36:17,860 So this is similar to. 520 00:36:18,000 --> 00:36:19,340 To domain fronting. 521 00:36:19,420 --> 00:36:20,000 This technique. 522 00:36:20,260 --> 00:36:21,380 If it's for TLS connections. 523 00:36:23,920 --> 00:36:27,680 For IP base classification, this is a little more complex. 524 00:36:29,100 --> 00:36:33,680 So you would need to have a server where you could spoof IP addresses. 525 00:36:34,860 --> 00:36:35,460 Also. 526 00:36:35,460 --> 00:36:40,340 Also, it would only work for the downlink because if the client sends some packets to 527 00:36:40,340 --> 00:36:49,120 some Spotify IP or some WhatsApp IP, obviously the packets will just land at Spotify or WhatsApp. 528 00:36:49,660 --> 00:36:53,340 But for the downlink, this is a feasible thing to do. 529 00:36:53,660 --> 00:37:02,480 So you could simply replace the source IP address at your relay point, at your VPN maybe, 530 00:37:02,480 --> 00:37:08,880 and then pretend to be Spotify, and then the packets will be classified as zero-rated packets 531 00:37:08,880 --> 00:37:14,180 and you can get some free internet, or an attacker could do that. 532 00:37:15,360 --> 00:37:20,040 For TCP, it might be a little more complex because we have this connection-based approach 533 00:37:20,040 --> 00:37:24,620 and we have the freeway handshake, but for UDP, this is totally feasible. 534 00:37:24,880 --> 00:37:26,340 And this is what we did. 535 00:37:26,720 --> 00:37:31,080 We had a SIM card with Spotify, with free Spotify. 536 00:37:31,980 --> 00:37:32,460 We had a SIM card with Spotify, with free Spotify. 537 00:37:32,480 --> 00:37:37,840 We set up a VPN with WireGuard on the server where we could spoof the packets. 538 00:37:38,160 --> 00:37:46,120 And then we wrote a kernel module, a kernel extension that rewrites the IP address of the outgoing packets. 539 00:37:46,760 --> 00:37:51,540 And for the provider, these kind of packets look like Spotify. 540 00:37:52,380 --> 00:37:58,520 And we already came up with a nice name for this proof of concept, and I hope you like it as well. 541 00:37:58,620 --> 00:37:59,660 So we called it Spoofify. 542 00:38:02,660 --> 00:38:05,520 Okay, now let's continue with some other showcases. 543 00:38:05,620 --> 00:38:08,300 So the second one is some privacy-related showcase. 544 00:38:08,560 --> 00:38:11,440 It's location tracking with ringback tones. 545 00:38:11,900 --> 00:38:13,540 So what is the ringback tone? 546 00:38:13,640 --> 00:38:16,300 The ringback tone is the tone that you hear when you call somebody 547 00:38:16,680 --> 00:38:19,480 and when you basically wait for them to pick up. 548 00:38:19,600 --> 00:38:21,700 So it's this audio feedback that you get. 549 00:38:22,260 --> 00:38:26,480 The interesting thing is that this is issued by the terminating operator. 550 00:38:26,800 --> 00:38:30,060 So in case of roaming, this is issued by the roaming partner. 551 00:38:30,940 --> 00:38:36,600 And the interesting thing as well is that we have different ringback tones for different regions. 552 00:38:36,820 --> 00:38:42,980 So for example, in the U.S., operators use this dual ringing of 440 and 480 hertz. 553 00:38:43,200 --> 00:38:48,140 And in Europe, most operators use something around 425 hertz. 554 00:38:48,340 --> 00:38:52,360 So for these two cases, you could even hear the difference with your bare ear. 555 00:38:53,060 --> 00:38:57,880 But also we found that within Europe, when operators use very similar settings, 556 00:38:58,120 --> 00:38:59,640 it's totally feasible to... 557 00:39:00,180 --> 00:39:03,580 record this tone and to differentiate between operators. 558 00:39:03,700 --> 00:39:05,940 So I'll show you some examples. 559 00:39:06,600 --> 00:39:08,620 This is from Vodafone in Romania. 560 00:39:08,860 --> 00:39:12,020 We have a peak frequency of 430 hertz. 561 00:39:12,140 --> 00:39:12,920 This is the spectrum. 562 00:39:13,400 --> 00:39:15,780 And also at the left, we see the amplitude. 563 00:39:16,220 --> 00:39:22,060 If we compare it to a German provider, we see that another different frequency is used. 564 00:39:22,200 --> 00:39:26,660 And also the amplitude differs, so it's louder for the German provider. 565 00:39:27,420 --> 00:39:29,560 And if we compare it to another German provider, 566 00:39:29,640 --> 00:39:34,540 we see that the frequency stays the same, but the amplitude changes also. 567 00:39:35,120 --> 00:39:37,680 Like the signal is less clear. 568 00:39:37,800 --> 00:39:39,580 There are some side loops, some... 569 00:39:39,580 --> 00:39:39,940 Yeah. 570 00:39:40,560 --> 00:39:43,240 And we did this for all the available operators. 571 00:39:43,480 --> 00:39:48,300 And then we printed a scatterplot with the amplitude and with the frequency. 572 00:39:48,660 --> 00:39:54,280 And as you see, this is kind of nice scattered, nice divided across the diagram, the figure. 573 00:39:54,480 --> 00:39:58,560 So yeah, you can easily take those two metrics. 574 00:39:58,680 --> 00:39:59,220 And... 575 00:39:59,220 --> 00:40:04,060 And determine the operator that terminated the call. 576 00:40:04,260 --> 00:40:12,660 And yeah, you can use this to kind of find out the country of the person that you just called. 577 00:40:12,800 --> 00:40:18,080 So you just need one test call, and then you know the country where the person is in. 578 00:40:18,860 --> 00:40:26,600 Also, you could, of course, use some other metrics like the overtones I just showed you or some duty cycle. 579 00:40:26,660 --> 00:40:28,660 We also had differences in this. 580 00:40:29,220 --> 00:40:32,920 Or you could also use some other call progress tones to fingerprint. 581 00:40:33,340 --> 00:40:37,720 And this is also interesting from a tech perspective for SIM swapping. 582 00:40:38,180 --> 00:40:43,880 Because you could also use this to find out the responsible home operator. 583 00:40:44,220 --> 00:40:48,640 And then you know, yeah, whom you need to call to swap the SIM card, maybe. 584 00:40:49,840 --> 00:40:50,400 Yeah. 585 00:40:50,460 --> 00:40:51,840 Now let's come to the last showcase. 586 00:40:52,060 --> 00:40:56,660 So this is some proactive SIM communication showcase. 587 00:40:57,000 --> 00:40:57,340 Yeah. 588 00:40:57,940 --> 00:40:58,500 Yeah. 589 00:40:59,220 --> 00:41:00,420 So we have all this SIM communication. 590 00:41:00,820 --> 00:41:08,380 We have full access to the communication, to the payload that is sent between the modem and the SIM card. 591 00:41:08,580 --> 00:41:12,260 And SIM cards are kind of mighty and powerful microcontrollers. 592 00:41:12,380 --> 00:41:14,020 So they can even run some Java. 593 00:41:14,360 --> 00:41:15,160 They can... 594 00:41:15,160 --> 00:41:22,620 There is this instruction set of proactive SIM commands where the SIM basically can take over control and can tell the smartphone what to do. 595 00:41:22,740 --> 00:41:29,200 So the SIM could tell the smartphone to send an SMS message to display some text on the head. 596 00:41:29,200 --> 00:41:29,380 And for the hand... 597 00:41:31,100 --> 00:41:36,520 Since we have all this communication of our measurements, we can analyze it. 598 00:41:36,680 --> 00:41:39,920 And for measured SIM cards, we found two SIM cards that were phoning home. 599 00:41:40,060 --> 00:41:43,960 So that were covertly sending some binary SMS messages. 600 00:41:44,880 --> 00:41:47,200 And this is pretty scary, actually. 601 00:41:47,280 --> 00:41:49,420 Because it happens totally in the background. 602 00:41:49,800 --> 00:41:52,480 The user, the smartphone user doesn't know of it. 603 00:41:53,440 --> 00:41:59,180 Interestingly also we had some cases where this kind of binary SMS also... 604 00:41:59,180 --> 00:42:06,100 built by the operator so during roaming these SMS's were even built. That's 605 00:42:06,100 --> 00:42:11,780 pretty shit from a user perspective. Yeah we tried to analyze the content of this 606 00:42:11,780 --> 00:42:19,260 binary SMS and we found out that there is some information about the user 607 00:42:19,260 --> 00:42:25,200 equipment so for example the EMI but also from the SIM card so ECCC ID and 608 00:42:25,200 --> 00:42:31,160 MC were in there. If you're interested in getting some more insights we've 609 00:42:31,160 --> 00:42:34,740 published two papers so the first one is about seer rating measurements. It's 610 00:42:34,740 --> 00:42:38,800 called Seer Rating One Big Mess and the second one is basically the white paper 611 00:42:38,800 --> 00:42:43,280 of our platform. It was just presented at USNIC's conference some days ago. 612 00:42:48,000 --> 00:42:52,940 So for conclusion Archibald can now like when he's traveling 613 00:42:54,400 --> 00:42:55,180 spend time from the SOC to the ALLC 614 00:42:55,200 --> 00:43:01,520 more times with his friends because for all the measurements, like longitudinal measurements 615 00:43:01,520 --> 00:43:08,360 or export testing and development, he can now use a platform to do this from the comfort 616 00:43:08,720 --> 00:43:10,180 of his home. 617 00:43:13,420 --> 00:43:20,220 We find roaming especially interesting because it's this special case where two operators 618 00:43:20,220 --> 00:43:24,860 with completely different setup have to cooperate and pretend to be one. 619 00:43:25,760 --> 00:43:29,160 We showed you a few use cases. 620 00:43:29,460 --> 00:43:36,640 You find more in our paper from two days ago from Usenik Security about how to hide and 621 00:43:36,640 --> 00:43:44,440 dress up traffic as one of the free services so you don't have to pay for it, how you can 622 00:43:44,440 --> 00:43:49,400 locate other subscribers based on the ringback tone. 623 00:43:54,980 --> 00:44:01,660 We'd like to thank all these institutions like NLNet, University of Vienna, Technical 624 00:44:01,660 --> 00:44:09,460 University of Vienna, SBA Research, CISPA, and SSL Laboratory from UCI for supporting 625 00:44:09,460 --> 00:44:11,320 us over these five years. 626 00:44:12,020 --> 00:44:17,140 You'll find the URL and our contact information up here. 627 00:44:17,340 --> 00:44:19,380 The whole project is open source. 628 00:44:19,380 --> 00:44:27,940 If you are from a country that you think that is interesting to us to host a probe, please 629 00:44:27,940 --> 00:44:29,220 get in contact with us. 630 00:44:30,120 --> 00:44:39,740 We have actually brought some probes here to DEF CON, and yes, thank you a lot. 631 00:44:49,520 --> 00:44:50,720 Thank you for watching.